<?xml version="1.0" encoding="UTF-8"?>

<ConceptMap xmlns="http://hl7.org/fhir">
  <id value="donor-lm-to-fhir"/>
  <text>
    <status value="additional"/><div xmlns="http://www.w3.org/1999/xhtml"><table class="grid"><tr><td><b>DM field</b></td><td><b>Target profile</b></td><td><b>FHIR element</b></td><td><b>Relationship</b></td><td><b>Comment</b></td></tr><tr><td><a href="StructureDefinition-pcDonorLm.html#s-pcDonorLm.donorId">donor_id</a></td><td>donor</td><td><a href="StructureDefinition-donor.html#s-Patient.identifier.value">Patient.identifier.value</a></td><td>equivalent</td><td/></tr><tr><td><a href="StructureDefinition-pcDonorLm.html#s-pcDonorLm.ageYears">age_years</a></td><td>patient-demographics-observation</td><td><a href="StructureDefinition-patient-demographics-observation.html#s-Observation.component:age_years.value_x_">Observation.component:age_years.value[x]</a></td><td>equivalent</td><td>FHIR path: Observation.component[age_years].valueQuantity. UCUM a; in PatientDemographicsObservation with subject = Reference(Donor)</td></tr><tr><td><a href="StructureDefinition-pcDonorLm.html#s-pcDonorLm.ageMonths">age_months</a></td><td>patient-demographics-observation</td><td><a href="StructureDefinition-patient-demographics-observation.html#s-Observation.component:age_months.value_x_">Observation.component:age_months.value[x]</a></td><td>equivalent</td><td>FHIR path: Observation.component[age_months].valueQuantity. UCUM mo; in PatientDemographicsObservation with subject = Reference(Donor)</td></tr><tr><td><a href="StructureDefinition-pcDonorLm.html#s-pcDonorLm.type">type</a></td><td>donor-type-observation</td><td><a href="StructureDefinition-donor-type-observation.html#s-Observation.value_x_">Observation.value[x]</a></td><td>equivalent</td><td>FHIR path: Observation.valueCodeableConcept. DonorTypeObservation; LOINC 44788-8 Organ donor; Alive → Living (LA27447-4), Deceased → Deceased (LA10939-9)</td></tr><tr><td><a href="StructureDefinition-pcDonorLm.html#s-pcDonorLm.liverType">liver_type</a></td><td>donor-liver-type-observation</td><td><a href="StructureDefinition-donor-liver-type-observation.html#s-Observation.value_x_">Observation.value[x]</a></td><td>equivalent</td><td>FHIR path: Observation.valueCodeableConcept. DonorLiverTypeObservation; LOINC 74836-8; Liver only</td></tr></table></div>
  </text>
  <url value="https://hl7.eu/fhir/ig/hl7.eu.fhir.protect-child/ConceptMap/donor-lm-to-fhir"/>
  <version value="0.1.0-ci-build"/>
  <name value="DonorLmToFhir"/>
  <title value="Donor logical model → FHIR"/>
  <status value="draft"/>
  <experimental value="false"/>
  <date value="2026-09-28T06:51:47+00:00"/>
  <publisher value="Protect Child"/>
  <contact>
    <name value="Protect Child"/>
    <telecom>
      <system value="url"/>
      <value value="https://protect-child.eu/"/>
    </telecom>
  </contact>
  <description value="Where each field of the Donor logical model lands in this guide's profiles. Generated from the model-map page; one group per target profile. Equivalence `relatedto` marks a field that is derived, split or recoded on the way."/>
  <group>
    <source value="https://hl7.eu/fhir/ig/hl7.eu.fhir.protect-child/StructureDefinition/pcDonorLm"/>
    <target value="https://hl7.eu/fhir/ig/hl7.eu.fhir.protect-child/StructureDefinition/donor"/>
    <element>
      <code value="pcDonorLm.donorId"/>
      <display value="donor_id"/>
      <target>
        <code value="Patient.identifier.value"/>
        <equivalence value="equivalent"/>
      </target>
    </element>
  </group>
  <group>
    <source value="https://hl7.eu/fhir/ig/hl7.eu.fhir.protect-child/StructureDefinition/pcDonorLm"/>
    <target value="https://hl7.eu/fhir/ig/hl7.eu.fhir.protect-child/StructureDefinition/patient-demographics-observation"/>
    <element>
      <code value="pcDonorLm.ageYears"/>
      <display value="age_years"/>
      <target>
        <code value="Observation.component:age_years.value[x]"/>
        <equivalence value="equivalent"/>
        <comment value="FHIR path: Observation.component[age_years].valueQuantity. UCUM a; in PatientDemographicsObservation with subject = Reference(Donor)"/>
      </target>
    </element>
    <element>
      <code value="pcDonorLm.ageMonths"/>
      <display value="age_months"/>
      <target>
        <code value="Observation.component:age_months.value[x]"/>
        <equivalence value="equivalent"/>
        <comment value="FHIR path: Observation.component[age_months].valueQuantity. UCUM mo; in PatientDemographicsObservation with subject = Reference(Donor)"/>
      </target>
    </element>
  </group>
  <group>
    <source value="https://hl7.eu/fhir/ig/hl7.eu.fhir.protect-child/StructureDefinition/pcDonorLm"/>
    <target value="https://hl7.eu/fhir/ig/hl7.eu.fhir.protect-child/StructureDefinition/donor-type-observation"/>
    <element>
      <code value="pcDonorLm.type"/>
      <display value="type"/>
      <target>
        <code value="Observation.value[x]"/>
        <equivalence value="equivalent"/>
        <comment value="FHIR path: Observation.valueCodeableConcept. DonorTypeObservation; LOINC 44788-8 Organ donor; Alive → Living (LA27447-4), Deceased → Deceased (LA10939-9)"/>
      </target>
    </element>
  </group>
  <group>
    <source value="https://hl7.eu/fhir/ig/hl7.eu.fhir.protect-child/StructureDefinition/pcDonorLm"/>
    <target value="https://hl7.eu/fhir/ig/hl7.eu.fhir.protect-child/StructureDefinition/donor-liver-type-observation"/>
    <element>
      <code value="pcDonorLm.liverType"/>
      <display value="liver_type"/>
      <target>
        <code value="Observation.value[x]"/>
        <equivalence value="equivalent"/>
        <comment value="FHIR path: Observation.valueCodeableConcept. DonorLiverTypeObservation; LOINC 74836-8; Liver only"/>
      </target>
    </element>
  </group>
</ConceptMap>