Inera Core Implementation Guide
0.2.0 - ci-build Sweden

Inera Core Implementation Guide - Local Development build (v0.2.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

: ConceptMap GetMedicationHistory TKB to FHIR MedicationStatement - XML Representation

Draft as of 2025-11-26

Raw xml | Download


<ConceptMap xmlns="http://hl7.org/fhir">
  <id value="ConceptMapGetMedicationHistoryTKBToMedicationStatement"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: ConceptMap ConceptMapGetMedicationHistoryTKBToMedicationStatement</b></p><a name="ConceptMapGetMedicationHistoryTKBToMedicationStatement"> </a><a name="hcConceptMapGetMedicationHistoryTKBToMedicationStatement"> </a><p>Mapping from https://rivta.se/domains/clinicalprocess/activityprescription/actoutcome/GetMedicationHistoryResponder/2 to <a href="http://hl7.org/fhir/R4/medicationstatement.html">MedicationStatement</a></p><br/><p><b>Group 1 </b>Mapping from <code>https://rivta.se/domains/clinicalprocess/activity/prescription/GetMedicationHistoryResponder/2</code> to <a href="http://hl7.org/fhir/R4/bundle.html">Bundle</a></p><table class="grid"><tr><td><b>Source Code</b></td><td><b>Relationship</b></td><td><b>Target Code</b></td><td><b>Comment</b></td></tr><tr><td>patientId</td><td colspan="2" style="background-color: #efefef">(not mapped)</td><td style="background-color: #efefef">Query parameter: GET /MedicationStatement?subject=Patient/191212121212</td></tr></table><hr/><p><b>Group 2 </b>Mapping from <code>https://rivta.se/domains/clinicalprocess/activity/prescription/GetMedicationHistoryResponder/2</code> to <a href="http://hl7.org/fhir/R4/medicationstatement.html">MedicationStatement</a></p><table class="grid"><tr><td><b>Source Code</b></td><td><b>Relationship</b></td><td><b>Target Code</b></td><td><b>Comment</b></td></tr><tr><td>medication.medicationHeader.documentId</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>identifier</td><td>Medication ID. ATC codes, NPL product IDs, dosage instructions.</td></tr></table><hr/><p><b>Group 3 </b>Mapping from <code>https://rivta.se/domains/clinicalprocess/activity/prescription/GetMedicationHistoryResponder/2</code> to <a href="http://hl7.org/fhir/R4/provenance.html">Provenance</a></p><table class="grid"><tr><td><b>Source Code</b></td><td><b>Relationship</b></td><td><b>Target Code</b></td></tr><tr><td>medication.medicationHeader.sourceSystemHSAid</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>entity.what</td></tr></table><hr/><p><b>Group 4 </b>Mapping from <code>https://rivta.se/domains/clinicalprocess/activity/prescription/GetMedicationHistoryResponder/2</code> to <a href="http://hl7.org/fhir/R4/bundle.html">Bundle</a></p><table class="grid"><tr><td><b>Source Code</b></td><td><b>Relationship</b></td><td><b>Target Code</b></td></tr><tr><td>result.resultCode</td><td colspan="2" style="background-color: #efefef">(not mapped)</td></tr></table></div>
  </text>
  <url
       value="https://inera.se/fhir/core/ConceptMap/getmedicationhistory-tkb-to-medicationstatement"/>
  <version value="0.2.0"/>
  <name value="ConceptMapGetMedicationHistoryTKBToMedicationStatement"/>
  <title
         value="ConceptMap GetMedicationHistory TKB to FHIR MedicationStatement"/>
  <status value="draft"/>
  <experimental value="true"/>
  <date value="2025-11-26"/>
  <publisher value="Inera AB"/>
  <contact>
    <name value="Inera AB"/>
    <telecom>
      <system value="url"/>
      <value value="https://www.inera.se"/>
    </telecom>
    <telecom>
      <system value="email"/>
      <value value="info@inera.se"/>
    </telecom>
  </contact>
  <contact>
    <name value="Inera AB"/>
    <telecom>
      <system value="url"/>
      <value value="https://www.inera.se"/>
    </telecom>
    <telecom>
      <system value="email"/>
      <value value="info@inera.se"/>
    </telecom>
  </contact>
  <description
               value="Mapping from GetMedicationHistory TKB service to FHIR resources.
Based on Excel-generated logical model with enhanced field descriptions.

**TKB Service**: GetMedicationHistory v2.0  
**TKB Domain**: clinicalprocess:activityprescription:actoutcome v2.0
**Logical Model**: GetMedicationHistoryLM (from FSH-konvertering.xlsx)
**FHIR Resources**: MedicationStatement, MedicationRequest, Medication

**Mapping Coverage**: 50+ elements across medication data, prescriptions, dosage
**Pattern**: 4-group approach (query params, MedicationStatement, Provenance, unmapped)
**Note**: Dosage mappings are comprehensive but complex; prioritize prescription and medication product"/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="SE"/>
      <display value="Sweden"/>
    </coding>
  </jurisdiction>
  <sourceUri
             value="https://rivta.se/domains/clinicalprocess/activityprescription/actoutcome/GetMedicationHistoryResponder/2"/>
  <targetCanonical
                   value="http://hl7.org/fhir/StructureDefinition/MedicationStatement"/>
  <group>
    <source
            value="https://rivta.se/domains/clinicalprocess/activity/prescription/GetMedicationHistoryResponder/2"/>
    <target value="http://hl7.org/fhir/StructureDefinition/Bundle"/>
    <element>
      <code value="patientId"/>
      <target>
        <equivalence value="unmatched"/>
        <comment
                 value="Query parameter: GET /MedicationStatement?subject=Patient/191212121212"/>
      </target>
    </element>
  </group>
  <group>
    <source
            value="https://rivta.se/domains/clinicalprocess/activity/prescription/GetMedicationHistoryResponder/2"/>
    <target
            value="http://hl7.org/fhir/StructureDefinition/MedicationStatement"/>
    <element>
      <code value="medication.medicationHeader.documentId"/>
      <target>
        <code value="identifier"/>
        <equivalence value="equivalent"/>
        <comment
                 value="Medication ID. ATC codes, NPL product IDs, dosage instructions."/>
      </target>
    </element>
  </group>
  <group>
    <source
            value="https://rivta.se/domains/clinicalprocess/activity/prescription/GetMedicationHistoryResponder/2"/>
    <target value="http://hl7.org/fhir/StructureDefinition/Provenance"/>
    <element>
      <code value="medication.medicationHeader.sourceSystemHSAid"/>
      <target>
        <code value="entity.what"/>
        <equivalence value="equivalent"/>
      </target>
    </element>
  </group>
  <group>
    <source
            value="https://rivta.se/domains/clinicalprocess/activity/prescription/GetMedicationHistoryResponder/2"/>
    <target value="http://hl7.org/fhir/StructureDefinition/Bundle"/>
    <element>
      <code value="result.resultCode"/>
      <target>
        <equivalence value="unmatched"/>
      </target>
    </element>
  </group>
</ConceptMap>