Stream: implementers
Topic: Range datatype
Pranitha Sruthi (Apr 19 2017 at 11:43):
Hi all, can anyone give an example for the usage of range datatype?
John Moehrke (Apr 19 2017 at 11:55):
There are a couple of examples on the datatype page... http://hl7.org/fhir/STU3/datatypes.html#range
Pranitha Sruthi (Apr 19 2017 at 11:58):
@John Moehrke Thank you. But in the condition resource, what does onset.range indicate?
John Moehrke (Apr 19 2017 at 12:02):
That is a much more clear question... I don't know, the definition in Condition covers all but the range datatype... You should enter a CR to ask for clarity or to ask it be removed as unjustified.
Pranitha Sruthi (Apr 19 2017 at 12:11):
Can I use it to capture the past surgical history of a patient which happened 3 or 4 months ago? For example Onset "before 4 months"
Michelle (Moseman) Miller (Apr 19 2017 at 13:39):
Condition.onset is a choice of data types representing the "Estimated or actual date, date-time, or age". As such:
- onsetDateTime can be used for an actual date, such as 1/1/2017
- onsetAge can be used for an actual age, such as 2 years old
- onsetPeriod can be used for an estimated date, such as between 1/15/2017 and 2/15/2017
- onsetRange can be used for an estimated age, such as between 2 years old and 5 years old
Personally, I dislike using onsetRange to say 3-4 months ago since it is relative to some anchor (e.g. Condition.assertedDate?) and it could cause confusion for users who might incorrectly assume it is based on today's date instead of the assertedDate. It seems risky and error-prone to do that.
Yunwei Wang (Apr 19 2017 at 16:00):
@Pranitha Sruthi "before 4 month" is not a (easily) searchable term. Instead of using "before 4 month", you should use "January 2017" (assume the record creating date is today).
Pranitha Sruthi (Apr 21 2017 at 06:16):
@Yunwei Wang Okay thank you
Pranitha Sruthi (Apr 21 2017 at 06:16):
@Michelle (Moseman) Miller Ok thank you
Last updated: Apr 12 2022 at 19:14 UTC