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="CompartmentDefinition4to5"/>
<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/CompartmentDefinition4to5'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'CompartmentDefinition4to5'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FML Conversion for CompartmentDefinition: R4 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>CompartmentType<span style="color: navy">" {
</span><b> prefix </b>s<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R4/codesystem-compartment-type.html" title="CompartmentType">http://hl7.org/fhir/4.0/compartment-type</a><span style="color: navy">"
</span><b> prefix </b>t<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R5/codesystem-compartment-type.html" title="Compartment Type">http://hl7.org/fhir/compartment-type</a><span style="color: navy">"
</span>
s<span style="color: navy">:</span>Patient <b>-</b> t<span style="color: navy">:</span>Patient
s<span style="color: navy">:</span>Encounter <b>-</b> t<span style="color: navy">:</span>Encounter
s<span style="color: navy">:</span>RelatedPerson <b>-</b> t<span style="color: navy">:</span>RelatedPerson
s<span style="color: navy">:</span>Practitioner <b>-</b> t<span style="color: navy">:</span>Practitioner
s<span style="color: navy">:</span>Device <b>-</b> t<span style="color: navy">:</span>Device
<span style="color: navy">}
</span><b>conceptmap</b><span style="color: navy"> "</span>PublicationStatus<span style="color: navy">" {
</span><b> prefix </b>s<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R4/codesystem-publication-status.html" title="PublicationStatus">http://hl7.org/fhir/4.0/publication-status</a><span style="color: navy">"
</span><b> prefix </b>t<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R5/codesystem-publication-status.html" title="PublicationStatus">http://hl7.org/fhir/publication-status</a><span style="color: navy">"
</span>
s<span style="color: navy">:</span>draft <b>-</b> t<span style="color: navy">:</span>draft
s<span style="color: navy">:</span>active <b>-</b> t<span style="color: navy">:</span>active
s<span style="color: navy">:</span>retired <b>-</b> t<span style="color: navy">:</span>retired
s<span style="color: navy">:</span>unknown <b>-</b> t<span style="color: navy">:</span>unknown
<span style="color: navy">}
</span><b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R4/compartmentdefinition.html" title="CompartmentDefinition">http://hl7.org/fhir/4.0/StructureDefinition/CompartmentDefinition</a><span style="color: navy">" </span><b>alias </b>CompartmentDefinitionR4 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R5/compartmentdefinition.html" title="CompartmentDefinition">http://hl7.org/fhir/StructureDefinition/CompartmentDefinition</a><span style="color: navy">" </span><b>alias </b>CompartmentDefinitionR5 <b>as </b><b>target</b>
<b>imports</b><span style="color: navy"> "</span>http://hl7.org/fhir/StructureMap/*4to5<span style="color: navy">"
</span>
<b>group </b>CompartmentDefinition<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>CompartmentDefinitionR4, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>CompartmentDefinitionR5<span style="color: navy">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style="color: navy"> {
</span> src.url<span style="color: navy"><b> -> </b></span>tgt.url<span style="color: navy">;</span>
src.version<span style="color: navy"><b> -> </b></span>tgt.version<span style="color: navy">;</span>
src.name<span style="color: navy"><b> -> </b></span>tgt.name<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.versionAlgorithm : string -> tgt.versionAlgorithm;</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">'#PublicationStatus'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.title -> tgt.title;</span>
src.experimental<span style="color: navy"><b> -> </b></span>tgt.experimental<span style="color: navy">;</span>
src.date<span style="color: navy"><b> -> </b></span>tgt.date<span style="color: navy">;</span>
src.publisher<span style="color: navy"><b> -> </b></span>tgt.publisher<span style="color: navy">;</span>
src.contact<span style="color: navy"><b> -> </b></span>tgt.contact<span style="color: navy">;</span>
src.description<span style="color: navy"><b> -> </b></span>tgt.description<span style="color: navy">;</span>
src.useContext<span style="color: navy"><b> -> </b></span>tgt.useContext<span style="color: navy">;</span>
src.purpose<span style="color: navy"><b> -> </b></span>tgt.purpose<span style="color: navy">;</span>
src.code<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -> </b></span>tgt.code = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#CompartmentType'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
src.search<span style="color: navy"><b> -> </b></span>tgt.search<span style="color: navy">;</span>
src.resource<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -> </b></span>tgt.resource<b> as </b><span style="color: maroon">t</span><b> then </b>CompartmentDefinitionResource<span style="color: navy">(</span><span style="color: maroon">s</span><span style="color: navy">, </span><span style="color: maroon">t</span><span style="color: navy">)</span><span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>CompartmentDefinitionResource<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><b> extends </b>BackboneElement<span style="color: navy"> {
</span> src.code<span style="color: navy"><b> -> </b></span>tgt.code<span style="color: navy">;</span>
src.param<span style="color: navy"><b> -> </b></span>tgt.param<span style="color: navy">;</span>
src.documentation<span style="color: navy"><b> -> </b></span>tgt.documentation<span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<contained>
<ConceptMap>
<id value="CompartmentType"/>
<status value="active"/>
<group>
<source value="http://hl7.org/fhir/4.0/compartment-type"/>
<target value="http://hl7.org/fhir/compartment-type"/>
<element>
<code value="Patient"/>
<target>
<code value="Patient"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="Encounter"/>
<target>
<code value="Encounter"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="RelatedPerson"/>
<target>
<code value="RelatedPerson"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="Practitioner"/>
<target>
<code value="Practitioner"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="Device"/>
<target>
<code value="Device"/>
<relationship value="related-to"/>
<comment
value="s:"EpisodeOfCare" - t:"EpisodeOfCare""/>
</target>
</element>
</group>
</ConceptMap>
</contained>
<contained>
<ConceptMap>
<id value="PublicationStatus"/>
<status value="active"/>
<group>
<source value="http://hl7.org/fhir/4.0/publication-status"/>
<target value="http://hl7.org/fhir/publication-status"/>
<element>
<code value="draft"/>
<target>
<code value="draft"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="active"/>
<target>
<code value="active"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="retired"/>
<target>
<code value="retired"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="unknown"/>
<target>
<code value="unknown"/>
<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/CompartmentDefinition4to5"/>
<version value="1.0.0"/>
<name value="CompartmentDefinition4to5"/>
<title value="FML Conversion for CompartmentDefinition: R4 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="FMLConversionforCompartmentDefinitionR4toR5"/>
<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.0/StructureDefinition/CompartmentDefinition"/>
<mode value="source"/>
<alias value="CompartmentDefinitionR4"/>
</structure>
<structure>
<url
value="http://hl7.org/fhir/StructureDefinition/CompartmentDefinition"/>
<mode value="target"/>
<alias value="CompartmentDefinitionR5"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/*4to5"/>
<group>
<name value="CompartmentDefinition"/>
<extends value="DomainResource"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="CompartmentDefinitionR4"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="CompartmentDefinitionR5"/>
<mode value="target"/>
</input>
<rule>
<name value="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>
<rule>
<name value="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="name"/>
<source>
<context value="src"/>
<element value="name"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="name"/>
<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.versionAlgorithm : string -> tgt.versionAlgorithm;"/>
</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="#PublicationStatus"/>
</parameter>
<parameter>
<valueString value="code"/>
</parameter>
</target>
<documentation value="src.title -> tgt.title;"/>
</rule>
<rule>
<name value="experimental"/>
<source>
<context value="src"/>
<element value="experimental"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="experimental"/>
<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="date"/>
<source>
<context value="src"/>
<element value="date"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="date"/>
<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="publisher"/>
<source>
<context value="src"/>
<element value="publisher"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="publisher"/>
<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="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="description"/>
<source>
<context value="src"/>
<element value="description"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="description"/>
<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="useContext"/>
<source>
<context value="src"/>
<element value="useContext"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="useContext"/>
<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="purpose"/>
<source>
<context value="src"/>
<element value="purpose"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="purpose"/>
<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="code"/>
<source>
<context value="src"/>
<element value="code"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<element value="code"/>
<transform value="translate"/>
<parameter>
<valueId value="v"/>
</parameter>
<parameter>
<valueString value="#CompartmentType"/>
</parameter>
<parameter>
<valueString value="code"/>
</parameter>
</target>
</rule>
<rule>
<name value="search"/>
<source>
<context value="src"/>
<element value="search"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="search"/>
<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="resource"/>
<source>
<context value="src"/>
<element value="resource"/>
<variable value="s"/>
</source>
<target>
<context value="tgt"/>
<element value="resource"/>
<variable value="t"/>
</target>
<dependent>
<name value="CompartmentDefinitionResource"/>
<parameter>
<valueId value="s"/>
</parameter>
<parameter>
<valueId value="t"/>
</parameter>
</dependent>
</rule>
</group>
<group>
<name value="CompartmentDefinitionResource"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="code"/>
<source>
<context value="src"/>
<element value="code"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="code"/>
<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="param"/>
<source>
<context value="src"/>
<element value="param"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="param"/>
<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="documentation"/>
<source>
<context value="src"/>
<element value="documentation"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="documentation"/>
<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