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 SimpleBatch</b></p><a name="SimpleBatch"> </a><a name="hcSimpleBatch"> </a><p><b>url</b>: <a href="http://hl7.org/fhir/uv/fml/StructureMap/SimpleBatch">http://hl7.org/fhir/uv/fml/StructureMap/SimpleBatch</a></p><p><b>name</b>: SimpleBatch</p><p><b>status</b>: Active</p><p><b>description</b>: </p><div><p>Example demonstrating the batch identity shorthand for copying multiple simple elements in a single rule</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>group</b></p><p><b>name</b>: SimpleBatch</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>id</td><td>vvv</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><td><b>Transform</b></td></tr><tr><td style="display: none">*</td><td>tgt</td><td>id</td><td>vvv</td><td>create</td></tr></table><p><b>name</b>: unnamedid</p></blockquote><blockquote><p><b>rule</b></p><p><b>name</b>: unnamedactive</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>active</td><td>vvv</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><td><b>Transform</b></td></tr><tr><td style="display: none">*</td><td>tgt</td><td>active</td><td>vvv</td><td>create</td></tr></table></blockquote><blockquote><p><b>rule</b></p><p><b>name</b>: unnamedgender</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>gender</td><td>vvv</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><td><b>Transform</b></td></tr><tr><td style="display: none">*</td><td>tgt</td><td>gender</td><td>vvv</td><td>create</td></tr></table></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>maritalStatus</td><td>vvv</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><td><b>Transform</b></td></tr><tr><td style="display: none">*</td><td>tgt</td><td>maritalStatus</td><td>vvv</td><td>create</td></tr></table><p><b>name</b>: OthersmaritalStatus</p></blockquote><blockquote><p><b>rule</b></p><p><b>name</b>: OthersbirthDate</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>birthDate</td><td>vvv</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><td><b>Transform</b></td></tr><tr><td style="display: none">*</td><td>tgt</td><td>birthDate</td><td>vvv</td><td>create</td></tr></table></blockquote></blockquote></div>
</text>
<url value="http://hl7.org/fhir/uv/fml/StructureMap/SimpleBatch"/>
<name value="SimpleBatch"/>
<status value="active"/>
<description
value="Example demonstrating the batch identity shorthand for copying multiple simple elements in a single rule"/>
<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>
<group>
<name value="SimpleBatch"/>
<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="id"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="id"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<name value="unnamedid"/>
</rule>
<rule>
<name value="unnamedactive"/>
<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>
</rule>
<rule>
<name value="unnamedgender"/>
<source>
<context value="src"/>
<element value="gender"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="gender"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
</rule>
<rule>
<source>
<context value="src"/>
<element value="maritalStatus"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="maritalStatus"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<name value="OthersmaritalStatus"/>
</rule>
<rule>
<name value="OthersbirthDate"/>
<source>
<context value="src"/>
<element value="birthDate"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="birthDate"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
</rule>
</group>
<id value="SimpleBatch"/>
</StructureMap>