Stream: implementers
Topic: Relative Timing
Jose Costa Teixeira (Dec 14 2020 at 17:13):
When looking at timing and offset, some questions:
- Offset is to a fixed hour - how can we do "1 hour after breakfast"?
- Why is timing.offset an unsignedint? It says "before or after" but how can it be before if it is only a positive value? And why is it in minutes? if we need to do "0,5 day after your latest meal" - "720 minutes" is a very strange value. Can't this be a SimpleQuantity instead?
Jean Duteau (Dec 14 2020 at 17:22):
the events are "before breakfast" and "after breakfast", so the offset is an unsigned number of minutes relative to the event
Lloyd McKenzie (Dec 14 2020 at 17:24):
It used to be a signed integer, but the question was what does -30 minutes before breakfast mean?
Jose Costa Teixeira (Dec 14 2020 at 17:36):
why minutes?
Jose Costa Teixeira (Dec 14 2020 at 17:37):
and "before breakfast" - you mean it is coded as ACM?
Jose Costa Teixeira (Dec 14 2020 at 17:38):
so the offset is a precision on the actual meaning of the code?
Lloyd McKenzie (Dec 14 2020 at 17:55):
Because minutes is what the data type says? We're not aware of any use-cases for seconds
Jose Costa Teixeira (Dec 14 2020 at 17:56):
my question is why is the datatype minutes and not SimpleQuantity
Lloyd McKenzie (Dec 14 2020 at 17:56):
Avoiding unnecessary complexity and nesting
Jose Costa Teixeira (Dec 14 2020 at 18:00):
boundsRange is aRange which contains SimpleQuantity. So we can say "for no more than 3 days" but we cannot use the same thing for offset
Jose Costa Teixeira (Dec 14 2020 at 18:07):
Also just noted: we have Duration+DurationUnit, Period+PeriodUnit, Frequency (no frequencyUnit?)
Lloyd McKenzie (Dec 14 2020 at 18:10):
With the definition, why would it need a unit?
Jose Costa Teixeira (Dec 14 2020 at 18:14):
I guess that is my concern. I cannot recall the belgian case, but although this works only if we have the concepts coded, I hope it can be solved with the coded concepts for "before breakfast" etc.
Jose Costa Teixeira (Dec 14 2020 at 18:15):
I think the short definitions "Event occurs frequency times per period" does not indicate that for defining a frequency, we need to define a period...
Jose Costa Teixeira (Dec 14 2020 at 18:18):
And this is what is puzzling me - it's harder to implement/provide guidance if things are done in a specific way. Aren't there other places where we define Frequency and Period and Interval, and offsets.. etc...? Seems that this is too much pharmacy specific
Jose Costa Teixeira (Dec 14 2020 at 18:21):
anyway, i'll give it a try but I wanted to provide feedback - this seems a strange new way of doing it. in V2 we had offset value and offet units, so I think some guidance is needed (IIRC timing /posology / regimens are always something that needs quite some guidance)
Lin Zhang (Dec 15 2020 at 14:17):
This is also a common use case for some lab tests.
Last updated: Apr 12 2022 at 19:14 UTC