This page is part of the FHIR Core Extensions Registry (v5.1.0-ballot: Releases Ballot 4) 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="Group4to5"/>
<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/Group4to5'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'Group4to5'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FML Conversion for Group: 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>GroupType<span style="color: navy">" {
</span><b> prefix </b>s<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R4/codesystem-group-type.html" title="GroupType">http://hl7.org/fhir/4.0/group-type</a><span style="color: navy">"
</span><b> prefix </b>t<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R5/codesystem-group-type.html" title="Group Type">http://hl7.org/fhir/group-type</a><span style="color: navy">"
</span>
s<span style="color: navy">:</span>person <b>-</b> t<span style="color: navy">:</span>person
s<span style="color: navy">:</span>animal <b>-</b> t<span style="color: navy">:</span>animal
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>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R4/group.html" title="Group">http://hl7.org/fhir/4.0/StructureDefinition/Group</a><span style="color: navy">" </span><b>alias </b>GroupR4 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R5/group.html" title="Group">http://hl7.org/fhir/StructureDefinition/Group</a><span style="color: navy">" </span><b>alias </b>GroupR5 <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>Group<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>GroupR4, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>GroupR5<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.active<span style="color: navy"><b> -> </b></span>tgt.active<span style="color: navy">;</span>
src.type<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -> </b></span>tgt.type = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#GroupType'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
src.code<span style="color: navy"><b> -> </b></span>tgt.code<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.membership as v -> tgt.membership = translate(v, '#group-membership-basis', 'code');</span>
src.name<span style="color: navy"><b> -> </b></span>tgt.name<span style="color: navy">;</span>
src.quantity<span style="color: navy"><b> -> </b></span>tgt.quantity<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.description -> tgt.description;</span>
src.managingEntity<span style="color: navy"><b> -> </b></span>tgt.managingEntity<span style="color: navy">;</span>
src.characteristic<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -> </b></span>tgt.characteristic<b> as </b><span style="color: maroon">t</span><b> then </b>GroupCharacteristic<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.member<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -> </b></span>tgt.member<b> as </b><span style="color: maroon">t</span><b> then </b>GroupMember<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>GroupCharacteristic<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.value<span style="color: navy"> : </span>CodeableConcept<span style="color: navy"><b> -> </b></span>tgt.value<span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>boolean<span style="color: navy"><b> -> </b></span>tgt.value<span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>Quantity<span style="color: navy"><b> -> </b></span>tgt.value<span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>Range<span style="color: navy"><b> -> </b></span>tgt.value<span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>Reference<span style="color: navy"><b> -> </b></span>tgt.value<span style="color: navy">;</span>
src.exclude<span style="color: navy"><b> -> </b></span>tgt.exclude<span style="color: navy">;</span>
src.period<span style="color: navy"><b> -> </b></span>tgt.period<span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>GroupMember<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.entity<span style="color: navy"><b> -> </b></span>tgt.entity<span style="color: navy">;</span>
src.period<span style="color: navy"><b> -> </b></span>tgt.period<span style="color: navy">;</span>
src.inactive<span style="color: navy"><b> -> </b></span>tgt.inactive<span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<contained>
<ConceptMap>
<id value="GroupType"/>
<status value="active"/>
<group>
<source value="http://hl7.org/fhir/4.0/group-type"/>
<target value="http://hl7.org/fhir/group-type"/>
<element>
<code value="person"/>
<target>
<code value="person"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="animal"/>
<target>
<code value="animal"/>
<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:"careteam" - t:"careteam""/>
</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/Group4to5"/>
<version value="5.1.0-ballot1"/>
<name value="Group4to5"/>
<title value="FML Conversion for Group: R4 to R5"/>
<status value="active"/>
<date value="2023-12-19T08:40:03+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="FMLConversionforGroupR4toR5"/>
<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/Group"/>
<mode value="source"/>
<alias value="GroupR4"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/StructureDefinition/Group"/>
<mode value="target"/>
<alias value="GroupR5"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/*4to5"/>
<group>
<name value="Group"/>
<extends value="DomainResource"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="GroupR4"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="GroupR5"/>
<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="active"/>
<source>
<context value="src"/>
<element value="active"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="active"/>
<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="type"/>
<source>
<context value="src"/>
<element value="type"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<element value="type"/>
<transform value="translate"/>
<parameter>
<valueId value="v"/>
</parameter>
<parameter>
<valueString value="#GroupType"/>
</parameter>
<parameter>
<valueString value="code"/>
</parameter>
</target>
</rule>
<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>
<documentation
value="src.membership as v -> tgt.membership = translate(v, '#group-membership-basis', 'code');"/>
</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>
</rule>
<rule>
<name value="quantity"/>
<source>
<context value="src"/>
<element value="quantity"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="quantity"/>
<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.description -> tgt.description;"/>
</rule>
<rule>
<name value="managingEntity"/>
<source>
<context value="src"/>
<element value="managingEntity"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="managingEntity"/>
<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="characteristic"/>
<source>
<context value="src"/>
<element value="characteristic"/>
<variable value="s"/>
</source>
<target>
<context value="tgt"/>
<element value="characteristic"/>
<variable value="t"/>
</target>
<dependent>
<name value="GroupCharacteristic"/>
<parameter>
<valueId value="s"/>
</parameter>
<parameter>
<valueId value="t"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="member"/>
<source>
<context value="src"/>
<element value="member"/>
<variable value="s"/>
</source>
<target>
<context value="tgt"/>
<element value="member"/>
<variable value="t"/>
</target>
<dependent>
<name value="GroupMember"/>
<parameter>
<valueId value="s"/>
</parameter>
<parameter>
<valueId value="t"/>
</parameter>
</dependent>
</rule>
</group>
<group>
<name value="GroupCharacteristic"/>
<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="valueCodeableConcept"/>
<source>
<context value="src"/>
<type value="CodeableConcept"/>
<element value="value"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<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="valueBoolean"/>
<source>
<context value="src"/>
<type value="boolean"/>
<element value="value"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<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="valueQuantity"/>
<source>
<context value="src"/>
<type value="Quantity"/>
<element value="value"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<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="valueRange"/>
<source>
<context value="src"/>
<type value="Range"/>
<element value="value"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<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="valueReference"/>
<source>
<context value="src"/>
<type value="Reference"/>
<element value="value"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<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="exclude"/>
<source>
<context value="src"/>
<element value="exclude"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="exclude"/>
<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="period"/>
<source>
<context value="src"/>
<element value="period"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="period"/>
<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="GroupMember"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="entity"/>
<source>
<context value="src"/>
<element value="entity"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="entity"/>
<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="period"/>
<source>
<context value="src"/>
<element value="period"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="period"/>
<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="inactive"/>
<source>
<context value="src"/>
<element value="inactive"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="inactive"/>
<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#5.1.0-ballot1 based on FHIR 5.0.0. Generated 2023-12-19
Links: Table of Contents |
QA Report
| Version History |
|
Propose a change