FHIR Mapping Language (FML), 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/mapping-language-ig/ and changes regularly. See the Directory of published versions
| Page standards status: Informative |
<StructureMap xmlns="http://hl7.org/fhir">
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureMap DependentGroup</b></p><a name="DependentGroup"> </a><a name="hcDependentGroup"> </a><p><b>url</b>: <a href="http://hl7.org/fhir/uv/fml/StructureMap/DependentGroup">http://hl7.org/fhir/uv/fml/StructureMap/DependentGroup</a></p><p><b>name</b>: DependentGroup</p><p><b>status</b>: Active</p><p><b>description</b>: </p><div><p>Example demonstrating invoking another group by name using then GroupName(params)</p>
</div><blockquote><p><b>structure</b></p><p><b>url</b>: <a href="http://hl7.org/fhir/R5/patient.html">Patient</a></p><p><b>mode</b>: Source Structure Definition</p></blockquote><blockquote><p><b>structure</b></p><p><b>url</b>: <a href="http://hl7.org/fhir/R5/patient.html">Patient</a></p><p><b>mode</b>: Target Structure Definition</p></blockquote><blockquote><p><b>structure</b></p><p><b>url</b>: <a href="http://hl7.org/fhir/R5/datatypes.html#HumanName">HumanName</a></p><p><b>mode</b>: Source Structure Definition</p></blockquote><blockquote><p><b>structure</b></p><p><b>url</b>: <a href="http://hl7.org/fhir/R5/datatypes.html#HumanName">HumanName</a></p><p><b>mode</b>: Target Structure Definition</p></blockquote><blockquote><p><b>group</b></p><p><b>name</b>: DependentGroup</p><blockquote><p><b>input</b></p><p><b>mode</b>: Source Instance</p><p><b>name</b>: src</p><p><b>type</b>: Patient</p></blockquote><blockquote><p><b>input</b></p><p><b>mode</b>: Target Instance</p><p><b>name</b>: tgt</p><p><b>type</b>: Patient</p></blockquote><blockquote><p><b>rule</b></p><h3>Sources</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Context</b></td><td><b>Element</b></td><td><b>Variable</b></td></tr><tr><td style="display: none">*</td><td>src</td><td>name</td><td>sn</td></tr></table><h3>Targets</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Context</b></td><td><b>Element</b></td><td><b>Variable</b></td></tr><tr><td style="display: none">*</td><td>tgt</td><td>name</td><td>tn</td></tr></table><blockquote><p><b>dependent</b></p><p><b>name</b>: CopyName</p><h3>Parameters</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Value[x]</b></td></tr><tr><td style="display: none">*</td><td>sn</td></tr><tr><td style="display: none">*</td><td>tn</td></tr></table></blockquote><p><b>name</b>: r1</p></blockquote></blockquote><blockquote><p><b>group</b></p><p><b>name</b>: CopyName</p><blockquote><p><b>input</b></p><p><b>mode</b>: Source Instance</p><p><b>name</b>: src</p><p><b>type</b>: HumanName</p></blockquote><blockquote><p><b>input</b></p><p><b>mode</b>: Target Instance</p><p><b>name</b>: tgt</p><p><b>type</b>: HumanName</p></blockquote><blockquote><p><b>rule</b></p><h3>Sources</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Context</b></td><td><b>Element</b></td><td><b>Variable</b></td></tr><tr><td style="display: none">*</td><td>src</td><td>family</td><td>v</td></tr></table><blockquote><p><b>target</b></p><p><b>context</b>: tgt</p><p><b>element</b>: family</p><p><b>transform</b>: copy</p><h3>Parameters</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Value[x]</b></td></tr><tr><td style="display: none">*</td><td>v</td></tr></table></blockquote><p><b>name</b>: family</p></blockquote><blockquote><p><b>rule</b></p><h3>Sources</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Context</b></td><td><b>Element</b></td><td><b>Variable</b></td></tr><tr><td style="display: none">*</td><td>src</td><td>given</td><td>v</td></tr></table><blockquote><p><b>target</b></p><p><b>context</b>: tgt</p><p><b>element</b>: given</p><p><b>transform</b>: copy</p><h3>Parameters</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Value[x]</b></td></tr><tr><td style="display: none">*</td><td>v</td></tr></table></blockquote><p><b>name</b>: given</p></blockquote></blockquote></div>
</text>
<url value="http://hl7.org/fhir/uv/fml/StructureMap/DependentGroup"/>
<name value="DependentGroup"/>
<status value="active"/>
<description
value="Example demonstrating invoking another group by name using then GroupName(params)"/>
<structure>
<url value="http://hl7.org/fhir/StructureDefinition/Patient"/>
<mode value="source"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/StructureDefinition/Patient"/>
<mode value="target"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/StructureDefinition/HumanName"/>
<mode value="source"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/StructureDefinition/HumanName"/>
<mode value="target"/>
</structure>
<group>
<name value="DependentGroup"/>
<input>
<mode value="source"/>
<name value="src"/>
<type value="Patient"/>
</input>
<input>
<mode value="target"/>
<name value="tgt"/>
<type value="Patient"/>
</input>
<rule>
<source>
<context value="src"/>
<element value="name"/>
<variable value="sn"/>
</source>
<target>
<context value="tgt"/>
<element value="name"/>
<variable value="tn"/>
</target>
<dependent>
<name value="CopyName"/>
<parameter>
<valueId value="sn"/>
</parameter>
<parameter>
<valueId value="tn"/>
</parameter>
</dependent>
<name value="r1"/>
</rule>
</group>
<group>
<name value="CopyName"/>
<input>
<mode value="source"/>
<name value="src"/>
<type value="HumanName"/>
</input>
<input>
<mode value="target"/>
<name value="tgt"/>
<type value="HumanName"/>
</input>
<rule>
<source>
<context value="src"/>
<element value="family"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<element value="family"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
<name value="family"/>
</rule>
<rule>
<source>
<context value="src"/>
<element value="given"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<element value="given"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
<name value="given"/>
</rule>
</group>
<id value="DependentGroup"/>
</StructureMap>