Regelverk för interoperabilitet inom vård och omsorg (RIV-TA) - POC
0.1.0 - draft

Regelverk för interoperabilitet inom vård och omsorg (RIV-TA) - POC - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

: Map from Patient Logical Model to FHIR Patient - XML Representation

Active as of 2025-05-21

Raw xml | Download


<StructureMap xmlns="http://hl7.org/fhir">
  <id value="MyStructureMap"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureMap MyStructureMap</b></p><a name="MyStructureMap"> </a><a name="hcMyStructureMap"> </a><a name="MyStructureMap-en-US"> </a><pre class="fml">
<b>map</b><span style="color: navy"> &quot;</span>http://example.org/fhir/StructureMap/MyStructureMap<span style="color: navy">&quot; = &quot;</span>MyStructureMap<span style="color: navy">&quot;

</span><span style="color: navy">// </span><span style="color: green">Maps fields from PatientLM (a logical model) to FHIR Patient resource.</span>

<b>uses</b><span style="color: navy"> &quot;</span>http://example.org/fhir/StructureDefinition/PatientSummaryHeaderType<span style="color: navy">&quot; </span><b>alias </b>src <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R4/patient.html" title="Patient">http://hl7.org/fhir/StructureDefinition/Patient</a><span style="color: navy">&quot; </span><b>alias </b>tgt <b>as </b><b>target</b>

<b>group </b>PatientMapping<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>patientId, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>identifier<span style="color: navy">)</span><span style="color: navy"> {
</span>  src.patientId<span style="color: navy"><b> -&gt; </b></span>tgt.identifier = <b>copy</b><span style="color: navy">(</span><span style="color: navy">)</span><span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <url value="http://example.org/fhir/StructureMap/MyStructureMap"/>
  <version value="0.1.0"/>
  <name value="MyStructureMap"/>
  <title value="Map from Patient Logical Model to FHIR Patient"/>
  <status value="active"/>
  <date value="2025-05-21T13:18:11+02:00"/>
  <publisher value="Inera AB"/>
  <contact>
    <name value="Inera AB"/>
    <telecom>
      <system value="url"/>
      <value value="http://inera.se"/>
    </telecom>
  </contact>
  <description
               value="Maps fields from PatientLM (a logical model) to FHIR Patient resource."/>
  <structure>
    <url
         value="http://example.org/fhir/StructureDefinition/PatientSummaryHeaderType"/>
    <mode value="source"/>
    <alias value="src"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/Patient"/>
    <mode value="target"/>
    <alias value="tgt"/>
  </structure>
  <group>
    <name value="PatientMapping"/>
    <typeMode value="none"/>
    <input>
      <name value="src"/>
      <type value="patientId"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="identifier"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="patientId"/>
      <source>
        <context value="src"/>
        <element value="patientId"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="identifier"/>
        <transform value="copy"/>
      </target>
    </rule>
  </group>
</StructureMap>