This page is part of the FHIR Core Extensions Registry (v5.1.0-snapshot1: Release 5.1) based on FHIR (HL7® FHIR® Standard) v5.0.0. The current version which supersedes this version is 1.0.0. For a full list of available versions, see the Directory of published versions
Page standards status: Trial-use | Maturity Level: 1 |
<StructureMap xmlns="http://hl7.org/fhir">
<id value="DeviceUsage5to4B"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><pre class="fml">
<span style="color: #cc00cc">/// <b>url</b> = </span><span style="color: blue">'http://hl7.org/fhir/StructureMap/DeviceUsage5to4B'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'DeviceUsage5to4B'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FML Conversion for DeviceUsage: R5 to R4B'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>
<b>conceptmap</b><span style="color: navy"> "</span>DeviceUsageStatus<span style="color: navy">" {
</span><b> prefix </b>s<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R5/codesystem-deviceusage-status.html" title="Device Usage Status">http://hl7.org/fhir/deviceusage-status</a><span style="color: navy">"
</span><b> prefix </b>t<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R4B/codesystem-device-statement-status.html" title="DeviceUseStatementStatus">http://hl7.org/fhir/4.3/device-statement-status</a><span style="color: navy">"
</span>
s<span style="color: navy">:</span>active <b>-</b> t<span style="color: navy">:</span>active
s<span style="color: navy">:</span>completed <b>-</b> t<span style="color: navy">:</span>completed
s<span style="color: navy">:</span>"not-done" <b>-</b> t<span style="color: navy">:</span>intended
s<span style="color: navy">:</span>"entered-in-error" <b>-</b> t<span style="color: navy">:</span><span style="color: navy">"</span>entered-in-error<span style="color: navy">"</span>
s<span style="color: navy">:</span>intended <b>-</b> t<span style="color: navy">:</span>intended
s<span style="color: navy">:</span>stopped <b>-</b> t<span style="color: navy">:</span>stopped
s<span style="color: navy">:</span>"on-hold" <b>-</b> t<span style="color: navy">:</span><span style="color: navy">"</span>on-hold<span style="color: navy">"</span>
<span style="color: navy">}
</span><b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R5/deviceusage.html" title="DeviceUsage">http://hl7.org/fhir/StructureDefinition/DeviceUsage</a><span style="color: navy">" </span><b>alias </b>DeviceUsageR5 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R4B/deviceusestatement.html" title="DeviceUseStatement">http://hl7.org/fhir/4.3/StructureDefinition/DeviceUseStatement</a><span style="color: navy">" </span><b>alias </b>DeviceUseStatementR4B <b>as </b><b>target</b>
<b>imports</b><span style="color: navy"> "</span>http://hl7.org/fhir/StructureMap/*5to4B<span style="color: navy">"
</span>
<b>group </b>DeviceUsage<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>DeviceUsageR5, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>DeviceUseStatementR4B<span style="color: navy">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style="color: navy"> {
</span> src.identifier<span style="color: navy"><b> -> </b></span>tgt.identifier<span style="color: navy">;</span>
src.basedOn<span style="color: navy"><b> -> </b></span>tgt.basedOn<span style="color: navy">;</span>
src.status<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -> </b></span>tgt.status = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#DeviceUsageStatus'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
src.patient<span style="color: navy"><b> -> </b></span>tgt.subject<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.category -> tgt.category;</span>
src.derivedFrom<span style="color: navy"><b> -> </b></span>tgt.derivedFrom<span style="color: navy">;</span>
src.timing<span style="color: navy"> : </span>Timing<span style="color: navy"><b> -> </b></span>tgt.timing<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.context -> tgt.context;</span>
src.timing<span style="color: navy"> : </span>Period<span style="color: navy"><b> -> </b></span>tgt.timing<span style="color: navy">;</span>
src.timing<span style="color: navy"> : </span>dateTime<span style="color: navy"><b> -> </b></span>tgt.timing<span style="color: navy">;</span>
src.dateAsserted<span style="color: navy"><b> -> </b></span>tgt.recordedOn<span style="color: navy">;</span>
src.informationSource<span style="color: navy"><b> -> </b></span>tgt.source<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.usageStatus as v -> tgt.usageStatus = translate(v, '#DeviceUsageStatus', 'code');</span>
src.device<span style="color: navy"><b> -> </b></span>tgt.device<span style="color: navy">;</span>
src.reason<span style="color: navy"><b> -> </b></span>tgt.reasonCode<span style="color: navy">;</span>
src.reason<span style="color: navy"><b> -> </b></span>tgt.reasonReference<span style="color: navy">;</span>
src.bodySite<span style="color: navy"><b> -> </b></span>tgt.bodySite<span style="color: navy">;</span>
src.note<span style="color: navy"><b> -> </b></span>tgt.note<span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<contained>
<ConceptMap>
<id value="DeviceUsageStatus"/>
<status value="active"/>
<group>
<source value="http://hl7.org/fhir/deviceusage-status"/>
<target value="http://hl7.org/fhir/4.3/device-statement-status"/>
<element>
<code value="active"/>
<target>
<code value="active"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="completed"/>
<target>
<code value="completed"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="not-done"/>
<target>
<code value="intended"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="entered-in-error"/>
<target>
<code value="entered-in-error"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="intended"/>
<target>
<code value="intended"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="stopped"/>
<target>
<code value="stopped"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="on-hold"/>
<target>
<code value="on-hold"/>
<relationship value="related-to"/>
</target>
</element>
</group>
</ConceptMap>
</contained>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
<valueCode value="fhir"/>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
<valueInteger value="1">
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
<valueCanonical
value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"/>
</extension>
</valueInteger>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
<valueCode value="trial-use">
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
<valueCanonical
value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"/>
</extension>
</valueCode>
</extension>
<url value="http://hl7.org/fhir/StructureMap/DeviceUsage5to4B"/>
<version value="5.1.0-snapshot1"/>
<name value="DeviceUsage5to4B"/>
<title value="FML Conversion for DeviceUsage: R5 to R4B"/>
<status value="active"/>
<date value="2024-03-12T13:30:10+11:00"/>
<publisher value="HL7 International / FHIR Infrastructure"/>
<contact>
<telecom>
<system value="url"/>
<value value="http://www.hl7.org/Special/committees/fiwg"/>
</telecom>
</contact>
<description value="FMLConversionforDeviceUsageR5toR4B"/>
<jurisdiction>
<coding>
<system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
<code value="001"/>
</coding>
</jurisdiction>
<structure>
<url value="http://hl7.org/fhir/StructureDefinition/DeviceUsage"/>
<mode value="source"/>
<alias value="DeviceUsageR5"/>
</structure>
<structure>
<url
value="http://hl7.org/fhir/4.3/StructureDefinition/DeviceUseStatement"/>
<mode value="target"/>
<alias value="DeviceUseStatementR4B"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/*5to4B"/>
<group>
<name value="DeviceUsage"/>
<extends value="DomainResource"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="DeviceUsageR5"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="DeviceUseStatementR4B"/>
<mode value="target"/>
</input>
<rule>
<name value="identifier"/>
<source>
<context value="src"/>
<element value="identifier"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="identifier"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="basedOn"/>
<source>
<context value="src"/>
<element value="basedOn"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="basedOn"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="status"/>
<source>
<context value="src"/>
<element value="status"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<element value="status"/>
<transform value="translate"/>
<parameter>
<valueId value="v"/>
</parameter>
<parameter>
<valueString value="#DeviceUsageStatus"/>
</parameter>
<parameter>
<valueString value="code"/>
</parameter>
</target>
</rule>
<rule>
<name value="patient"/>
<source>
<context value="src"/>
<element value="patient"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="subject"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
<documentation value="src.category -> tgt.category;"/>
</rule>
<rule>
<name value="derivedFrom"/>
<source>
<context value="src"/>
<element value="derivedFrom"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="derivedFrom"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="timingTiming"/>
<source>
<context value="src"/>
<type value="Timing"/>
<element value="timing"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="timing"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
<documentation value="src.context -> tgt.context;"/>
</rule>
<rule>
<name value="timingPeriod"/>
<source>
<context value="src"/>
<type value="Period"/>
<element value="timing"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="timing"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="timingDateTime"/>
<source>
<context value="src"/>
<type value="dateTime"/>
<element value="timing"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="timing"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="dateAsserted"/>
<source>
<context value="src"/>
<element value="dateAsserted"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="recordedOn"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="informationSource"/>
<source>
<context value="src"/>
<element value="informationSource"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="source"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
<documentation
value="src.usageStatus as v -> tgt.usageStatus = translate(v, '#DeviceUsageStatus', 'code');"/>
</rule>
<rule>
<name value="device"/>
<source>
<context value="src"/>
<element value="device"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="device"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="reason"/>
<source>
<context value="src"/>
<element value="reason"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="reasonCode"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="reason"/>
<source>
<context value="src"/>
<element value="reason"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="reasonReference"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="bodySite"/>
<source>
<context value="src"/>
<element value="bodySite"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="bodySite"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="note"/>
<source>
<context value="src"/>
<element value="note"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="note"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
</group>
</StructureMap>