FHIR Chat · Period Datatype · implementers

Stream: implementers

Topic: Period Datatype


view this post on Zulip Torben M. Hagensen (Feb 05 2018 at 16:16):

Hi all

view this post on Zulip Torben M. Hagensen (Feb 05 2018 at 16:25):

Hi all (sorry for my empty message before)

Regarding the datatype Period. The specification states: "A period specifies a range of times. The context of use will specify whether the entire range applies (e.g. "the patient was an inpatient of the hospital for this time range") or one value from the period applies (e.g. "give to the patient between 2 and 4 pm on 24-Jun 2013")."

The examples of this are all concerning date only values. Is this rule intended to apply to datetime intervals as well, i.e. a period from 10 am to 11 am should by 10:00 to 10:59 given that the granularity in this example is minutes (because 10:59 is inclusive)?

I do understand why the specification says both inclusive for dates, as this is what the end users would think, but for time it is less intuitive. On the other hand, different rules for different granularities is also confusing.

What is the correct interpretation of the specification?

view this post on Zulip Lloyd McKenzie (Feb 05 2018 at 16:45):

Yes, you can specify date with time and the rule would still apply. (Range doesn't support just times though.)


Last updated: Apr 12 2022 at 19:14 UTC