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="Provenance4Bto5"/>
<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/Provenance4Bto5'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'Provenance4Bto5'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FML Conversion for Provenance: 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>ProvenanceEntityRole<span style="color: navy">" {
</span><b> prefix </b>s<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R4B/codesystem-provenance-entity-role.html" title="ProvenanceEntityRole">http://hl7.org/fhir/4.3/provenance-entity-role</a><span style="color: navy">"
</span><b> prefix </b>t<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R5/codesystem-provenance-entity-role.html" title="Provenance Entity Role">http://hl7.org/fhir/provenance-entity-role</a><span style="color: navy">"
</span>
s<span style="color: navy">:</span>revision <b>-</b> t<span style="color: navy">:</span>revision
s<span style="color: navy">:</span>quotation <b>-</b> t<span style="color: navy">:</span>quotation
s<span style="color: navy">:</span>source <b>-</b> t<span style="color: navy">:</span>source
s<span style="color: navy">:</span>removal <b>-</b> t<span style="color: navy">:</span>removal
<span style="color: navy">}
</span><b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R4B/provenance.html" title="Provenance">http://hl7.org/fhir/4.3/StructureDefinition/Provenance</a><span style="color: navy">" </span><b>alias </b>ProvenanceR4B <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R5/provenance.html" title="Provenance">http://hl7.org/fhir/StructureDefinition/Provenance</a><span style="color: navy">" </span><b>alias </b>ProvenanceR5 <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>Provenance<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>ProvenanceR4B, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>ProvenanceR5<span style="color: navy">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style="color: navy"> {
</span> src.target<span style="color: navy"><b> -> </b></span>tgt.target<span style="color: navy">;</span>
src.occurred<span style="color: navy"> : </span>Period<span style="color: navy"><b> -> </b></span>tgt.occurred<span style="color: navy">;</span>
src.occurred<span style="color: navy"> : </span>dateTime<span style="color: navy"><b> -> </b></span>tgt.occurred<span style="color: navy">;</span>
src.recorded<span style="color: navy"><b> -> </b></span>tgt.recorded<span style="color: navy">;</span>
src.policy<span style="color: navy"><b> -> </b></span>tgt.policy<span style="color: navy">;</span>
src.location<span style="color: navy"><b> -> </b></span>tgt.location<span style="color: navy">;</span>
src.activity<span style="color: navy"><b> -> </b></span>tgt.activity<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.authorization -> tgt.authorization;</span>
src.agent<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -> </b></span>tgt.agent<b> as </b><span style="color: maroon">t</span><b> then </b>ProvenanceAgent<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><span style="color: green">src.basedOn -> tgt.basedOn;</span>
src.entity<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -> </b></span>tgt.entity<b> as </b><span style="color: maroon">t</span><b> then </b>ProvenanceEntity<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>
src.signature<span style="color: navy"><b> -> </b></span>tgt.signature<span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>ProvenanceAgent<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.type<span style="color: navy"><b> -> </b></span>tgt.type<span style="color: navy">;</span>
src.role<span style="color: navy"><b> -> </b></span>tgt.role<span style="color: navy">;</span>
src.who<span style="color: navy"><b> -> </b></span>tgt.who<span style="color: navy">;</span>
src.onBehalfOf<span style="color: navy"><b> -> </b></span>tgt.onBehalfOf<span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>ProvenanceEntity<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.role<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -> </b></span>tgt.role = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#ProvenanceEntityRole'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
src.what<span style="color: navy"><b> -> </b></span>tgt.what<span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<contained>
<ConceptMap>
<id value="ProvenanceEntityRole"/>
<status value="active"/>
<group>
<source value="http://hl7.org/fhir/4.3/provenance-entity-role"/>
<target value="http://hl7.org/fhir/provenance-entity-role"/>
<element>
<code value="revision"/>
<target>
<code value="revision"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="quotation"/>
<target>
<code value="quotation"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="source"/>
<target>
<code value="source"/>
<relationship value="related-to"/>
<comment
value="s:"instantiates" - t:"instantiates""/>
</target>
</element>
<element>
<code value="removal"/>
<target>
<code value="removal"/>
<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/Provenance4Bto5"/>
<version value="1.0.0"/>
<name value="Provenance4Bto5"/>
<title value="FML Conversion for Provenance: 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="FMLConversionforProvenanceR4BtoR5"/>
<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/Provenance"/>
<mode value="source"/>
<alias value="ProvenanceR4B"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/StructureDefinition/Provenance"/>
<mode value="target"/>
<alias value="ProvenanceR5"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/*4Bto5"/>
<group>
<name value="Provenance"/>
<extends value="DomainResource"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="ProvenanceR4B"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="ProvenanceR5"/>
<mode value="target"/>
</input>
<rule>
<name value="target"/>
<source>
<context value="src"/>
<element value="target"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="target"/>
<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="occurredPeriod"/>
<source>
<context value="src"/>
<type value="Period"/>
<element value="occurred"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="occurred"/>
<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="occurredDateTime"/>
<source>
<context value="src"/>
<type value="dateTime"/>
<element value="occurred"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="occurred"/>
<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="recorded"/>
<source>
<context value="src"/>
<element value="recorded"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="recorded"/>
<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="policy"/>
<source>
<context value="src"/>
<element value="policy"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="policy"/>
<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="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="activity"/>
<source>
<context value="src"/>
<element value="activity"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="activity"/>
<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.authorization -> tgt.authorization;"/>
</rule>
<rule>
<name value="agent"/>
<source>
<context value="src"/>
<element value="agent"/>
<variable value="s"/>
</source>
<target>
<context value="tgt"/>
<element value="agent"/>
<variable value="t"/>
</target>
<dependent>
<name value="ProvenanceAgent"/>
<parameter>
<valueId value="s"/>
</parameter>
<parameter>
<valueId value="t"/>
</parameter>
</dependent>
<documentation value="src.basedOn -> tgt.basedOn;"/>
</rule>
<rule>
<name value="entity"/>
<source>
<context value="src"/>
<element value="entity"/>
<variable value="s"/>
</source>
<target>
<context value="tgt"/>
<element value="entity"/>
<variable value="t"/>
</target>
<dependent>
<name value="ProvenanceEntity"/>
<parameter>
<valueId value="s"/>
</parameter>
<parameter>
<valueId value="t"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="signature"/>
<source>
<context value="src"/>
<element value="signature"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="signature"/>
<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="ProvenanceAgent"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="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="role"/>
<source>
<context value="src"/>
<element value="role"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="role"/>
<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="who"/>
<source>
<context value="src"/>
<element value="who"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="who"/>
<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="onBehalfOf"/>
<source>
<context value="src"/>
<element value="onBehalfOf"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="onBehalfOf"/>
<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="ProvenanceEntity"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="role"/>
<source>
<context value="src"/>
<element value="role"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<element value="role"/>
<transform value="translate"/>
<parameter>
<valueId value="v"/>
</parameter>
<parameter>
<valueString value="#ProvenanceEntityRole"/>
</parameter>
<parameter>
<valueString value="code"/>
</parameter>
</target>
</rule>
<rule>
<name value="what"/>
<source>
<context value="src"/>
<element value="what"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="what"/>
<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