FHIR Chat · dateTime testing · Touchstone

Stream: Touchstone

Topic: dateTime testing


view this post on Zulip John Moehrke (Jul 14 2021 at 13:59):

What is the current set of testing in Touchstone around the Observation.effective[x] element? Of interest to me is:
a) Variations on effectiveDateTime -- precision, timezone presence, offset presence
b) use of effectivePeriod
c) rather the use of effectiveTIming, and effectiveInstant

I ask as am seeing most US-Core data using just effectiveDateTime... and having high variability on the (a) front. So wondered to what extent that touchstone has the ability to cover the possibilities of variation... I presume that Touchstone has a library of testing capability in this space? Especially given the staff expertise in dateTime query knowledge.

and thus wondering if there is a sample data (e.g. synthetic) that covers this full range.

view this post on Zulip ryan moehrke (Jul 15 2021 at 20:19):

Currently we don't do any specific testing around Observation.effective[x] and our US Core tests are currently only covering v3.1.1 while we look at updating them to cover US Core v4.0.0 so we haven't done any testing around Timing or Instant just yet.
Also we don't do much reporting on how testers are using any specific element, and what we do track is mostly trends of if people are passing or failing asserts so if there aren't asserts for a specific piece we may not take note.
As for effectiveDateTime we recently noticed that vs-1 and us-core-1 are not functioning correctly in any version of base FHIR or US Core so we will going forward correct that and confirm that all Observation.effectiveDateTimes validated against a us core profile or the vital-signs profile have at precision at least down to the date.
As for timezone presence and offset presence, the validation will catch any DateTime elements that were precise to time but without a timezone, per the spec's definition of DateTime. But since there are no further restrictions besides the regex definition on which timezones/offsets are available to my knowledge we likely won't have any specific checks against that.


Last updated: Apr 12 2022 at 19:14 UTC