Skip to content

Instantly share code, notes, and snippets.

@mmsmits
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mmsmits/e7839958c1988a81fac5 to your computer and use it in GitHub Desktop.
Save mmsmits/e7839958c1988a81fac5 to your computer and use it in GitHub Desktop.
Slicing diagnostic[x]
<element>
<path value="DiagnosticReport.diagnostic[x]"/>
<slicing>
<!-- because I'm slicing on type,right? -->
<discriminator value="type"/>
<ordered value="false"/>
<rules value="closed"/>
</slicing>
<!-- both dateTime and Period are allowed. There are no constraints on dateTime. However, if you use a Period, you have to provide a begin time ánd end time -->
<definition>
<comments value="If you use period, you have to provide a begin and end date"/>
<min value="1"/>
<max value="1"/>
</definition>
</element>
<element>
<path value="DiagnosticReport.diagnostic[x]"/>
<name value="date"/>
<definition>
<short value="Physiologically Relevant time for report"/>
<formal value="The time the observed values are related to. This is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself."/>
<comments value="If the diagnostic procedure was performed on the patient, this is the time it was performed. If there are specimens, the diagnostically relevant time can be derived from the specimen collection times, but the specimen information is not always available, and the exact relationship between the specimens and the diagnostically relevant time is not always automatic."/>
<min value="0"/>
<max value="1"/>
<type>
<code value="dateTime"/>
</type>
<isModifier value="false"/>
<mapping>
<identity value="rim"/>
<map value="effectiveTime"/>
</mapping>
<mapping>
<identity value="v2"/>
<map value="OBR-7-Observation Date/Time"/>
</mapping>
</definition>
</element>
<element>
<path value="DiagnosticReport.diagnostic[x]"/>
<name value="period"/>
<definition>
<short value="Physiologically Relevant time-period for report"/>
<formal value="The time or time-period the observed values are related to. This is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself."/>
<comments value="If the diagnostic procedure was performed on the patient, this is the time it was performed. If there are specimens, the diagnostically relevant time can be derived from the specimen collection times, but the specimen information is not always available, and the exact relationship between the specimens and the diagnostically relevant time is not always automatic."/>
<min value="0"/>
<max value="1"/>
<type>
<code value="Period"/>
</type>
<isModifier value="false"/>
<mapping>
<identity value="rim"/>
<map value="effectiveTime"/>
</mapping>
<mapping>
<identity value="v2"/>
<map value="OBR-7-Observation Date/Time"/>
</mapping>
</definition>
</element>
<element>
<path value="DiagnosticReport.diagnostic[x].start"/>
<name value = "diagnosticPeriodStart"/>
<definition>
<short value="start date diagnostic report"/>
<formal value="start date of the diagnostic report"/>
<comments value="A period of a diagnostic report has to have a start date"/>
<min value="1"/>
<max value="1"/>
</definition>
</element>
<element>
<path value="DiagnosticReport.diagnostic[x].end"/>
<name value = "diagnosticPeriodEnd"/>
<definition>
<short value="end date diagnostic report"/>
<formal value="end date of the diagnostic report"/>
<comments value="A period of a diagnostic report has to have an end date"/>
<min value="1"/>
<max value="1"/>
</definition>
</element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment