<?xml version="1.0" encoding="UTF-8"?>
<div xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
    <title>EHDSAllergyIntolerance → AllergyIntolerance</title>
  </head>
  <body>
    <div class="model-map-block">
      <div class="callout-wrapper">
        <div class="callout-box">
          <strong>Ongoing alignment:</strong>
              The Xt-EHR logical models are under active revision and continuous refinement.
              Updates from Xt-EHR will be progressively incorporated into this Implementation
              Guide to maintain alignment with the evolving EHDS specifications.
        </div>
      </div>
    </div>
    <div class="model-map-block">
      <div class="callout-wrapper">
        <div class="callout-box">
          <strong>Yellow row/cells:</strong>
              In this ballot publication, some row/cells of the mapping table have been left in yellow to indicate areas requiring further review or refinement; including feedback from the Xt-EHR joint action (see note above). These highlights will be addressed in subsequent updates to ensure accuracy and completeness of the mappings.
        </div>
      </div>
    </div>
    <h3>EHDSAllergyIntolerance → AllergyIntolerance</h3>
    <a> </a>
    <p></p>
    <p>
  This page explains how conceptual elements from the EHDS logical model are expressed
  in the corresponding FHIR AllergyIntoleranceEuCore profile used by this Implementation Guide.
    </p>
    <p></p>
    <div class="table-wrap">
      <strong>Mapping Context</strong>
      <ul>
        <li>
          <strong>Source logical model:</strong>
          <a href="https://www.xt-ehr.eu/fhir/models/0.3.0/StructureDefinition-EHDSAllergyIntolerance.html" target="_blank">
        EHDSAllergyIntolerance
          </a>
        </li>
        <li>
          <strong>Target FHIR profile:</strong>
          <a href="StructureDefinition-allergyIntolerance-eu-core.html">
        AllergyIntoleranceEuCore
          </a>
        </li>
      </ul>
    </div>
    <p></p>
    <div class="table-wrap">
      <table summary="EHDSAllergyIntolerance → AllergyIntolerance">
        <caption>EHDSAllergyIntolerance → AllergyIntolerance</caption>
        <thead>
          <tr>
            <th colspan="2" class="src-head">EHDSAllergyIntolerance (Logical Model)</th>
            <th class="relhead">Relationship</th>
            <th colspan="4" class="tgt-head">AllergyIntolerance</th>
          </tr>
          <tr>
            <th class="src-sub">Element</th>
            <th class="src-sub">Description</th>
            <th class="relsub">Relation</th>
            <th class="tgt-sub">Resource</th>
            <th class="tgt-sub">Element</th>
            <th class="tgt-sub">Description</th>
            <th class="tgt-sub">Notes</th>
          </tr>
        </thead>
        <tbody>
          <!-- HEADER BLOCK (common dataset header) -->
          <tr>
            <td>header</td>
            <td>Common header for all patient-related data.</td>
            <td>related-to</td>
            <td>AllergyIntolerance</td><td>.</td>
            <td>General metadata.</td>
            <td>Dataset-level; not usually carried in AllergyIntolerance as-is.</td>
          </tr>
          <tr>
            <td>header.subject</td>
            <td>Patient/subject this alert is about.</td>
            <td>equivalent</td>
            <td>AllergyIntolerance</td><td>patient</td>
            <td>Reference to the patient or subject of the allergy/intolerance.</td>
            <td></td>
          </tr>
          <tr>
            <td>header.identifier</td>
            <td>Business identifier for the object.</td>
            <td>equivalent</td>
            <td>AllergyIntolerance</td><td>identifier</td>
            <td>Business identifier for this allergy.</td>
            <td>Copy over all identifiers if multiple.</td>
          </tr>
<tr>
            <td>header.author[x]</td>
            <td>Who created/issued the alert.</td>
            <td>equivalent</td>
            <td>AllergyIntolerance</td><td>recorder<span style="color:#2e7d32;font-weight:600;">〔R4〕</span></td>
            <td>Who recorded the sensitivity.</td>
            <td></td>
          </tr>
          <tr>
            <td>header.author[x]</td>
            <td>Who created/issued the alert.</td>
            <td>equivalent</td>
            <td>AllergyIntolerance</td><td>participant.actor<span style="color:#2e7d32;font-weight:600;">〔R5〕</span></td>
            <td>Who recorded the sensitivity.</td>
            <td>With participant.function = "http://terminology.hl7.org/CodeSystem/provenance-participant-type#author"</td>
          </tr>
          <tr>
            <td>header.date</td>
            <td>Date and optionally time of authoring/issuing.</td>
            <td>equivalent</td>
            <td>AllergyIntolerance</td><td>recordedDate</td>
            <td>When the allergy/intolerance was recorded.</td>
            <td> </td>
          </tr>
<tr>
            <td>header.status</td>
            <td>Current status of the allergy or intolerance.</td>
            <td>equivalent</td>
            <td>AllergyIntolerance</td><td>clinicalStatus</td>
            <td>Clinical status of the allergy/intolerance.</td>
            <td>Map using the EHDS to HL7 allergy intolerance status value set alignment.</td>
          </tr>
          <tr>
            <td>header.source</td>
            <td>Source of the information (e.g. patient, proxy).</td>
            <td>equivalent</td>
            <td>AllergyIntolerance</td><td>asserter<span style="color:#2e7d32;font-weight:600;">〔R4〕</span></td>
            <td>Source of the information about the allergy</td>
            <td></td>
          </tr>
           <tr>
            <td>header.source</td>
            <td>Source of the information (e.g. patient, proxy).</td>
            <td>equivalent</td>
            <td>AllergyIntolerance</td><td>participant.actor<span style="color:#2e7d32;font-weight:600;">〔R5〕</span></td>
            <td>Source of the information about the allergy</td>
            <td>With participant.function = "http://terminology.hl7.org/CodeSystem/provenance-participant-type#informant"</td>
          </tr>
          <tr>
            <td>header.language</td>
            <td>Language of the resource (IETF tag).</td>
            <td>equivalent</td>
            <td>AllergyIntolerance</td><td>language</td>
            <td>Language used in the flag text.</td>
            <td></td>
          </tr>
          <!-- agentOrAllergen -->
          <tr>
            <td>agentOrAllergen</td>
            <td>A specific allergen or other agent/substance (drug, food, chemical agent, etc.) to which the patient has an adverse reaction propensity.</td>
            <td>equivalent</td>
            <td>AllergyIntolerance</td><td>code</td>
            <td>Concept that identifies the substance, product, or agent responsible.</td>
            <td>CodeableConcept. Bound in EHDS to eHDSI value sets; in FHIR usually VS: AllergyIntolerance Substance/Product.</td>
          </tr>
<!-- note -->
          <tr>
            <td>note</td>
            <td>Additional information about the allergy or intolerance.</td>
            <td>source-is-broader-than-target</td>
            <td>AllergyIntolerance</td><td>note.text</td>
            <td>Additional narrative about the allergy/intolerance.</td>
            <td></td>
          </tr>
          <!-- criticality -->
          <tr>
            <td>criticality</td>
            <td>Estimate of the potential clinical harm, or seriousness, of a reaction.</td>
            <td>equivalent</td>
            <td>AllergyIntolerance</td><td>criticality</td>
            <td>Estimate of potential clinical harm.</td>
            <td>ValueSets in EHDS reference eHDSICriticality; FHIR has its own required VS.</td>
          </tr>
          <!-- certainty -->
          <tr>
            <td>certainty</td>
            <td>Assertion about the certainty associated with the propensity (diagnostic/clinical evidence).</td>
            <td>equivalent</td>
            <td>AllergyIntolerance</td><td>verificationStatus</td>
            <td>Clinical verification status of the allergy/intolerance.</td>
            <td>EHDS name "certainty" ≈ FHIR "verificationStatus" (confirmed / refuted / unconfirmed).</td>
          </tr>
<!-- onsetDate -->
          <tr>
            <td>onsetDate</td>
            <td>When the allergy or intolerance was identified.</td>
            <td>equivalent</td>
            <td>AllergyIntolerance</td><td>onset[x]</td>
            <td>When the allergy/intolerance was identified or first became relevant.</td>
            <td>FHIR supports multiple datatypes; here you have dateTime → map to <code>onsetDateTime</code>.
            </td>
          </tr>
          <!-- endDate -->
          <tr>
            <td>endDate</td>
            <td>Date of resolution of the allergy (when it was deemed no longer necessary to track).</td>
            <td>equivalent</td>
            <td>AllergyIntolerance</td><td>extension:abatement</td>
            <td>Date and/or time of the last known occurrence of a reaction.</td>
            <td></td>
          </tr>
          <!-- reaction (container) -->
          <tr>
            <td>reaction</td>
            <td>Adverse Reaction Events linked to exposure to substance.</td>
            <td>equivalent</td>
            <td>AllergyIntolerance</td><td>reaction</td>
            <td>Details about each adverse reaction event.</td>
            <td>0..* in both models.</td>
          </tr>
          <tr>
            <td>reaction.agentOrAllergen</td>
            <td>Specific substance or pharmaceutical product considered to be responsible for the reaction event.</td>
            <td>equivalent</td>
            <td>AllergyIntolerance</td><td>reaction.substance</td>
            <td>Specific substance or pharmaceutical product considered to be responsible for event.</td>
            <td>Maps the reaction-level causative agent where provided.</td>
          </tr>
          <!-- reaction.manifestation -->
          <tr>
            <td>reaction.manifestation</td>
            <td>Description of the clinical manifestation of the allergic reaction (e.g. anaphylactic shock, angioedema).</td>
            <td>equivalent</td>
            <td>AllergyIntolerance</td><td>reaction.manifestation</td>
            <td>Clinical symptoms and/or signs that are observed during the reaction.</td>
            <td>CodeableConcept; EHDS allows multiple; FHIR reaction.manifestation is 1..* CodeableConcept.</td>
          </tr>
<!-- reaction.severity -->
          <tr>
            <td>reaction.severity</td>
            <td>Severity of the clinical manifestation.</td>
            <td>equivalent</td>
            <td>AllergyIntolerance</td><td>reaction.severity</td>
            <td>Mild / moderate / severe.</td>
            <td>FHIR has required VS; EHDS references eHDSISeverity.</td>
          </tr>
          <!-- reaction.onset (EHDS subelement) -->
          <tr>
            <td>reaction.onset</td>
            <td>Date of the observation of the reaction.</td>
            <td>equivalent</td>
            <td>AllergyIntolerance</td><td>reaction.onset</td>
            <td>When the reaction occurred.</td>
            <td></td>
          </tr>
        </tbody>
      </table>
    </div>
    <p style="margin-top:2rem;color:#555;">
      Return to overview: <a href="modelmap.html">EHDS Logical Models → FHIR Profiles</a>
    </p>
  </body>
</div>
