: E-T-Rezept Structure Map for Task - XML Representation
Raw xml | Download
<StructureMap xmlns="http://hl7.org/fhir">
<id value="ERPTPrescriptionStructureMapTask"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureMap ERPTPrescriptionStructureMapTask</b></p><a name="ERPTPrescriptionStructureMapTask"> </a><a name="hcERPTPrescriptionStructureMapTask"> </a><pre class="fml">
<b>map</b><span style="color: navy"> "</span>https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapTask<span style="color: navy">" = "</span>ERPTPrescriptionStructureMapTask<span style="color: navy">"
</span><span style="color: navy">// </span><span style="color: green">Mappt die E-Rezept ID aus dem Task in ein Identifier Objekt</span>
<b>uses</b><span style="color: navy"> "</span><a href="https://simplifier.net/resolve?scope=de.gematik.erezept-workflow.r4@1.5.2&canonical=https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task" title="Task for Management of ePrescription Workflow">https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task</a><span style="color: navy">" </span><b>alias </b>task <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R4/datatypes.html#Identifier" title="Identifier">http://hl7.org/fhir/StructureDefinition/Identifier</a><span style="color: navy">" </span><b>alias </b>tgtIdentifier <b>as </b><b>target</b>
<span style="color: navy">// </span><span style="color: green">Mapping Anweisungen für GEM_Task</span>
<b>group </b>ERPTPrescriptionStructureMapTask<span style="color: navy">(</span><b>source</b> <span style="color: maroon">task</span><span style="color: navy"> : </span>task, <b>target</b> <span style="color: maroon">tgtIdentifier</span><span style="color: navy"> : </span>tgtIdentifier<span style="color: navy">)</span><span style="color: navy"> {
</span> task.identifier<b> as </b><span style="color: maroon">srcTaskIdentifier</span><b> where </b>$this.system='https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId'<b> then</b><span style="color: navy"> {
</span> srcTaskIdentifier.value<b> as </b><span style="color: maroon">srcTaskIdentifierValue</span><b> log </b>tgtIdentifier<span style="color: navy"><b> -> </b></span> tgtIdentifier.system = <span style="color: blue">'https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId'</span><span style="color: navy">, </span> tgtIdentifier.value = <span style="color: maroon">srcTaskIdentifierValue</span> <i>"prescriptionIdValue"</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Mappt die E-Rezept-ID aus dem Task in den Identifier</span>
<span style="color: navy">}</span> <i>"prescriptionId"</i><span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<url
value="https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapTask"/>
<version value="1.1.0-ballot-1"/>
<name value="ERPTPrescriptionStructureMapTask"/>
<title value="E-T-Rezept Structure Map for Task"/>
<status value="draft"/>
<experimental value="false"/>
<date value="2025-07-07"/>
<publisher value="gematik GmbH"/>
<contact>
<name value="gematik GmbH"/>
<telecom>
<system value="url"/>
<value value="https://gematik.de"/>
</telecom>
<telecom>
<system value="email"/>
<value value="erp-umsetzung@gematik.de"/>
</telecom>
</contact>
<description
value="Mappt die E-Rezept ID aus dem Task in ein Identifier Objekt"/>
<jurisdiction>
<coding>
<system value="urn:iso:std:iso:3166"/>
<code value="DE"/>
<display value="Germany"/>
</coding>
</jurisdiction>
<structure>
<url
value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task"/>
<mode value="source"/>
<alias value="task"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/StructureDefinition/Identifier"/>
<mode value="target"/>
<alias value="tgtIdentifier"/>
</structure>
<group>
<name value="ERPTPrescriptionStructureMapTask"/>
<typeMode value="none"/>
<documentation value="Mapping Anweisungen für GEM_Task"/>
<input>
<name value="task"/>
<type value="task"/>
<mode value="source"/>
</input>
<input>
<name value="tgtIdentifier"/>
<type value="tgtIdentifier"/>
<mode value="target"/>
</input>
<rule>
<name value="prescriptionId"/>
<source>
<context value="task"/>
<element value="identifier"/>
<variable value="srcTaskIdentifier"/>
<condition
value="$this.system='https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId'"/>
</source>
<rule>
<name value="prescriptionIdValue"/>
<source>
<context value="srcTaskIdentifier"/>
<element value="value"/>
<variable value="srcTaskIdentifierValue"/>
<logMessage value="tgtIdentifier"/>
</source>
<target>
<context value="tgtIdentifier"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString
value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/>
</parameter>
</target>
<target>
<context value="tgtIdentifier"/>
<contextType value="variable"/>
<element value="value"/>
<transform value="copy"/>
<parameter>
<valueId value="srcTaskIdentifierValue"/>
</parameter>
</target>
<documentation
value="Mappt die E-Rezept-ID aus dem Task in den Identifier"/>
</rule>
</rule>
</group>
</StructureMap>