Details
-
Change Request
-
Resolution: Persuasive with Modification
-
Medium
-
FHIR Core (FHIR)
-
DSTU2
-
Modeling & Methodology
-
Datatypes
-
-
Vassil Peytchev/Ron Shapiro: 2-0-0
-
Enhancement
-
Compatible, substantive
-
DSTU2
Description
We need to have a way to say:
Take one tablet four times daily on Monday of each week or Take one tablet once daily at 22 hour each day.
The invariants on Timing - day of week and time of day are not allowing examples to be created.
https://chat.fhir.org/#narrow/stream/implementers/subject/Timing.20Example
I'm trying to create an example that includes a dosageInstruction for the following: "Take one tablet four times daily on Monday of each week." The following is invalid because of an invariant that exists. <timing>\\<repeat>
<frequency value="4"/>
<period value="1"/>
<periodUnit value="d"/>
<dayOfWeek value="Mon"></dayOfWeek>\\</repeat>\\</timing>
Invariant: If there's a dayOfWeek, there cannot be be a frequency, or a period [dayOfWeek.exists() implies (frequency.empty() and period.empty())] (src = InstanceValidator)
What is the correct way to say this? or is the invariant incorrect?
Also, the examples in the timing table seem to be incorrect:
Response from Grahame on Zulip chat
Grahame Grieve: well, when we talked about this, we wanted to avoid conflict. Conflicts like
once every 3 days on Tuesdays
twice a week on Monday and Friday
Grahame Grieve: so we said, can't mix them.
Grahame Grieve: it's not clear to me what a more refined set of rules would be that would allow you to mix them, and still have certainty of meaning