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"
resourceDefinition="http://hl7.org/fhir/StructureDefinition/StructureMap|0.1.0">
<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><pre class="fml">
<span style="color: #cc00cc">/// <b>url</b> = </span><span style="color: blue">'http://hl7.org/fhir/uv/mapping-language/StructureMap/SimpleBatch'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'SimpleBatch'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>
<span style="color: #cc00cc">/// <b>description</b> = </span><span style="color: blue">'Example demonstrating the batch identity shorthand for copying multiple simple elements in a single rule'</span>
<b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/6.0.0-ballot5/patient.html" title="Patient">http://hl7.org/fhir/StructureDefinition/Patient</a><span style="color: navy">" </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/6.0.0-ballot5/patient.html" title="Patient">http://hl7.org/fhir/StructureDefinition/Patient</a><span style="color: navy">" </span><b>as </b><b>target</b>
<b>group </b>SimpleBatch<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>Patient, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>Patient<span style="color: navy">)</span><span style="color: navy"> {
</span> src<span style="color: navy"><b> -> </b></span>tgt<span style="color: navy">: </span>id<span style="color: navy">, </span>active<span style="color: navy">, </span>gender<span style="color: navy">;</span>
src<span style="color: navy"><b> -> </b></span>tgt<span style="color: navy">: </span>maritalStatus<span style="color: navy">, </span>birthDate <i>"Others"</i><span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<url
value="http://hl7.org/fhir/uv/mapping-language/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"/>
<language value="en"/>
</StructureMap>