FHIR Chat · Relative Timing · implementers

Stream: implementers

Topic: Relative Timing


view this post on Zulip Jose Costa Teixeira (Dec 14 2020 at 17:13):

When looking at timing and offset, some questions:

  1. Offset is to a fixed hour - how can we do "1 hour after breakfast"?
  2. 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?

view this post on Zulip 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

view this post on Zulip 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?

view this post on Zulip Jose Costa Teixeira (Dec 14 2020 at 17:36):

why minutes?

view this post on Zulip Jose Costa Teixeira (Dec 14 2020 at 17:37):

and "before breakfast" - you mean it is coded as ACM?

view this post on Zulip Jose Costa Teixeira (Dec 14 2020 at 17:38):

so the offset is a precision on the actual meaning of the code?

view this post on Zulip 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

view this post on Zulip Jose Costa Teixeira (Dec 14 2020 at 17:56):

my question is why is the datatype minutes and not SimpleQuantity

view this post on Zulip Lloyd McKenzie (Dec 14 2020 at 17:56):

Avoiding unnecessary complexity and nesting

view this post on Zulip 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

view this post on Zulip Jose Costa Teixeira (Dec 14 2020 at 18:07):

Also just noted: we have Duration+DurationUnit, Period+PeriodUnit, Frequency (no frequencyUnit?)

view this post on Zulip Lloyd McKenzie (Dec 14 2020 at 18:10):

With the definition, why would it need a unit?

view this post on Zulip 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.

view this post on Zulip 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...

view this post on Zulip 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

view this post on Zulip 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)

view this post on Zulip 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