This page is part of the FHIR Core Extensions Registry (v1.0.0: Releases) based on FHIR v5.0.0. This is the current published version in its permanent home (it will always be available at this URL). 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="DeviceUsage4Bto5"/>
<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/DeviceUsage4Bto5'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'DeviceUsage4Bto5'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FML Conversion for DeviceUsage: R4B to R5'</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/R4B/codesystem-device-statement-status.html" title="DeviceUseStatementStatus">http://hl7.org/fhir/4.3/device-statement-status</a><span style="color: navy">"
</span><b> prefix </b>t<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>
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>"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/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>source</b>
<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>target</b>
<b>imports</b><span style="color: navy"> "</span>http://hl7.org/fhir/StructureMap/*4Bto5<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>DeviceUseStatementR4B, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>DeviceUsageR5<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.subject<span style="color: navy"><b> -> </b></span>tgt.patient<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.recordedOn<span style="color: navy"><b> -> </b></span>tgt.dateAsserted<span style="color: navy">;</span>
src.source<span style="color: navy"><b> -> </b></span>tgt.informationSource<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.reasonCode<span style="color: navy"><b> -> </b></span>tgt.reason<span style="color: navy">;</span>
src.reasonReference<span style="color: navy"><b> -> </b></span>tgt.reason<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/4.3/device-statement-status"/>
<target value="http://hl7.org/fhir/deviceusage-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"/>
<comment value="s:"not-done" - t:"not-done""/>
</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-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/DeviceUsage4Bto5"/>
<version value="1.0.0"/>
<name value="DeviceUsage4Bto5"/>
<title value="FML Conversion for DeviceUsage: R4B to R5"/>
<status value="active"/>
<date value="2023-03-26T08:47:34+11:00"/>
<publisher value="HL7 International / FHIR Infrastructure"/>
<contact>
<telecom>
<system value="url"/>
<value value="http://hl7.org/Special/committees/fhir-i"/>
</telecom>
</contact>
<description value="FMLConversionforDeviceUsageR4BtoR5"/>
<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/4.3/StructureDefinition/DeviceUseStatement"/>
<mode value="source"/>
<alias value="DeviceUseStatementR4B"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/StructureDefinition/DeviceUsage"/>
<mode value="target"/>
<alias value="DeviceUsageR5"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/*4Bto5"/>
<group>
<name value="DeviceUsage"/>
<extends value="DomainResource"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="DeviceUseStatementR4B"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="DeviceUsageR5"/>
<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="subject"/>
<source>
<context value="src"/>
<element value="subject"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="patient"/>
<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="recordedOn"/>
<source>
<context value="src"/>
<element value="recordedOn"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="dateAsserted"/>
<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="source"/>
<source>
<context value="src"/>
<element value="source"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="informationSource"/>
<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="reasonCode"/>
<source>
<context value="src"/>
<element value="reasonCode"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="reason"/>
<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="reasonReference"/>
<source>
<context value="src"/>
<element value="reasonReference"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="reason"/>
<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>
IG © 2022+ HL7 International / FHIR Infrastructure. Package hl7.fhir.uv.extensions#1.0.0 based on FHIR 5.0.0. Generated 2023-03-26
Links: Table of Contents |
QA Report
| Version History |
|
Propose a change