Uploaded image for project: 'FHIR Specification Feedback'
  1. FHIR Specification Feedback
  2. FHIR-12460

Invariant on Timing - Day of Week and Time of Day

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Persuasive with Modification
    • Icon: Medium Medium
    • FHIR Core (FHIR)
    • DSTU2
    • Modeling & Methodology
    • Datatypes
    • Hide

      Fix the examples:

      • remove "period.low" from last two
      • Change "period.low" to "period.start" for 3rd last
      • Bottom two should be frequency of 1 (once per day)

      Increase cardinality of "when" to 0..* to allow "MORN and NIGHT" or "with breakfast" and "with dinner" and update definition to make clear that multiple repetitions are "and"

      Drop tim-3 (it's ok to have frequency or period and when)

      Loosen tim-10 to only prohibit "when" and "timeOfDay" from appearing together and remove the relationship with period and frequency - it's ok to say "2/day at 2:00 and 10:00" or "2/day at breakfast and dinner"

      Remove tim-11 - It's legitimate to say "1/day M/W/F"

      Will add a note that caution should be used to avoid incoherent combinations of when and timeOfDay such as "1/day at 2:00 and 4:00" or "every 3 days on Friday"

      Show
      Fix the examples: remove "period.low" from last two Change "period.low" to "period.start" for 3rd last Bottom two should be frequency of 1 (once per day) Increase cardinality of "when" to 0..* to allow "MORN and NIGHT" or "with breakfast" and "with dinner" and update definition to make clear that multiple repetitions are "and" Drop tim-3 (it's ok to have frequency or period and when) Loosen tim-10 to only prohibit "when" and "timeOfDay" from appearing together and remove the relationship with period and frequency - it's ok to say "2/day at 2:00 and 10:00" or "2/day at breakfast and dinner" Remove tim-11 - It's legitimate to say "1/day M/W/F" Will add a note that caution should be used to avoid incoherent combinations of when and timeOfDay such as "1/day at 2:00 and 4:00" or "every 3 days on Friday"
    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            melva peters Melva Peters
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: