FHIR Cross-Version Mapping Pack, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-cross-version/ and changes regularly. See the Directory of published versions
Page standards status: Draft | Maturity Level: 1 |
<StructureMap xmlns="http://hl7.org/fhir">
<id value="Device3to2"/>
<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/Device3to2'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'Device3to2'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'Device Transforms: R3 to R2'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>
<b>uses</b><span style="color: navy"> "</span>http://hl7.org/fhir/3.0/Device<span style="color: navy">" </span><b>alias </b>Device <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span>http://hl7.org/fhir/1.0/Device<span style="color: navy">" </span><b>alias </b>DeviceR2 <b>as </b><b>target</b>
<b>imports</b><span style="color: navy"> "</span>http://hl7.org/fhir/StructureMap/*3to2<span style="color: navy">"
</span>
<b>group </b>Device<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>Device, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>DeviceR2<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 <i>"Device-identifier"</i><span style="color: navy">;</span>
src.type<span style="color: navy"><b> -> </b></span>tgt.type <i>"Device-type"</i><span style="color: navy">;</span>
src.note<span style="color: navy"><b> -> </b></span>tgt.note <i>"Device-note"</i><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">'http://hl7.org/fhir/ConceptMap/Device.status-R3toR2'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span> <i>"Device-status"</i><span style="color: navy">;</span>
src.manufacturer<span style="color: navy"><b> -> </b></span>tgt.manufacturer <i>"Device-manufacturer"</i><span style="color: navy">;</span>
src.model<span style="color: navy"><b> -> </b></span>tgt.model <i>"Device-model"</i><span style="color: navy">;</span>
src.version<span style="color: navy"><b> -> </b></span>tgt.version <i>"Device-version"</i><span style="color: navy">;</span>
src.manufactureDate<span style="color: navy"><b> -> </b></span>tgt.manufactureDate <i>"Device-manufactureDate"</i><span style="color: navy">;</span>
src.expirationDate<span style="color: navy"><b> -> </b></span>tgt.expiry <i>"Device-expirationDate"</i><span style="color: navy">;</span>
src.udi<b> as </b><span style="color: maroon">u</span><b> then </b>udi<span style="color: navy">(</span><span style="color: maroon">u</span><span style="color: navy">, </span><span style="color: maroon">tgt</span><span style="color: navy">)</span> <i>"Device-udi"</i><span style="color: navy">;</span>
src.lotNumber<span style="color: navy"><b> -> </b></span>tgt.lotNumber <i>"Device-lotNumber"</i><span style="color: navy">;</span>
src.owner<span style="color: navy"><b> -> </b></span>tgt.owner <i>"Device-owner"</i><span style="color: navy">;</span>
src.location<span style="color: navy"><b> -> </b></span>tgt.location <i>"Device-location"</i><span style="color: navy">;</span>
src.patient<span style="color: navy"><b> -> </b></span>tgt.patient <i>"Device-patient"</i><span style="color: navy">;</span>
src.contact<span style="color: navy"><b> -> </b></span>tgt.contact <i>"Device-contact"</i><span style="color: navy">;</span>
src.url<span style="color: navy"><b> -> </b></span>tgt.url <i>"Device-url"</i><span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>udi<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span>, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy">)</span><span style="color: navy"> {
</span> src.deviceIdentifier<span style="color: navy"><b> -> </b></span>tgt.udi <i>"udi"</i><span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<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.xver"/>
</extension>
</valueInteger>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
<valueCode value="draft">
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
<valueCanonical
value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"/>
</extension>
</valueCode>
</extension>
<url value="http://hl7.org/fhir/StructureMap/Device3to2"/>
<version value="0.1.0"/>
<name value="Device3to2"/>
<title value="Device Transforms: R3 to R2"/>
<status value="active"/>
<date value="2024-02-22T03:16:50+00: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="DeviceTransformsR3toR2"/>
<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/3.0/Device"/>
<mode value="source"/>
<alias value="Device"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/1.0/Device"/>
<mode value="target"/>
<alias value="DeviceR2"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/*3to2"/>
<group>
<name value="Device"/>
<extends value="DomainResource"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="Device"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="DeviceR2"/>
<mode value="target"/>
</input>
<rule>
<name value="Device-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="Device-type"/>
<source>
<context value="src"/>
<element value="type"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="type"/>
<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="Device-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>
<rule>
<name value="Device-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="http://hl7.org/fhir/ConceptMap/Device.status-R3toR2"/>
</parameter>
<parameter>
<valueString value="code"/>
</parameter>
</target>
</rule>
<rule>
<name value="Device-manufacturer"/>
<source>
<context value="src"/>
<element value="manufacturer"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="manufacturer"/>
<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="Device-model"/>
<source>
<context value="src"/>
<element value="model"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="model"/>
<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="Device-version"/>
<source>
<context value="src"/>
<element value="version"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="version"/>
<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="Device-manufactureDate"/>
<source>
<context value="src"/>
<element value="manufactureDate"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="manufactureDate"/>
<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="Device-expirationDate"/>
<source>
<context value="src"/>
<element value="expirationDate"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="expiry"/>
<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="Device-udi"/>
<source>
<context value="src"/>
<element value="udi"/>
<variable value="u"/>
</source>
<dependent>
<name value="udi"/>
<parameter>
<valueId value="u"/>
</parameter>
<parameter>
<valueId value="tgt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Device-lotNumber"/>
<source>
<context value="src"/>
<element value="lotNumber"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="lotNumber"/>
<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="Device-owner"/>
<source>
<context value="src"/>
<element value="owner"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="owner"/>
<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="Device-location"/>
<source>
<context value="src"/>
<element value="location"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="location"/>
<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="Device-patient"/>
<source>
<context value="src"/>
<element value="patient"/>
<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>
</rule>
<rule>
<name value="Device-contact"/>
<source>
<context value="src"/>
<element value="contact"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="contact"/>
<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="Device-url"/>
<source>
<context value="src"/>
<element value="url"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="url"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
</group>
<group>
<name value="udi"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="udi"/>
<source>
<context value="src"/>
<element value="deviceIdentifier"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="udi"/>
<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>