<?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>EHDSAlert → Flag</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>EHDSAlert → Flag</h3>
    <a>  </a>
    <p></p>
    <p>
  This page explains how conceptual elements from the EHDS logical model are expressed
  in the corresponding FHIR FlagPatientEuCore 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-EHDSAlert.html" target="_blank">
        EHDSAlert
          </a>
        </li>
        <li>
          <strong>Target FHIR profile:</strong>
          <a href="StructureDefinition-flag-patient-eu-core.html">
        FlagPatientEuCore
          </a>
        </li>
      </ul>
    </div>
    <p></p>
    <div class="table-wrap">
      <table summary="EHDSAlert → Flag">
        <caption>EHDSAlert → Flag</caption>
        <thead>
          <tr>
            <th colspan="2" class="src-head">EHDSAlert (Logical Model)</th>
            <th class="relhead">Relationship</th>
            <th colspan="4" class="tgt-head">Flag (Alert)</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>Flag</td><td>.</td>
            <td>General metadata.</td>
            <td>Dataset-level; not usually carried in Flag as-is.</td>
          </tr>
          <tr>
            <td>header.subject</td>
            <td>Patient/subject this alert is about.</td>
            <td>equivalent</td>
            <td>Flag</td><td>subject</td>
            <td>Who/what the flag is about.</td>
            <td>Reference to Patient (or other subject).</td>
          </tr>
          <tr>
            <td>header.identifier</td>
            <td>Business identifier for the alert object.</td>
            <td>equivalent</td>
            <td>Flag</td><td>identifier</td>
            <td>Business identifier for the flag.</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>Flag</td><td>author</td>
            <td>Creator of the flag.</td>
            <td></td>
          </tr>
          <tr class="highlight-yellow">
            <td>header.date</td>
            <td>Date and optionally time of authoring/issuing.</td>
            <td>no-map</td>
            <td>Flag</td><td></td>
            <td></td>
            <td>No direct native Flag element for authoring timestamp.</td>
          </tr>
          <tr>
            <td>header.status</td>
            <td>Current status of the alert.</td>
            <td>equivalent</td>
            <td>Flag</td><td>status</td>
            <td>Indicates if the flag is active, inactive, etc.</td>
            <td>Map using the EHDS to HL7 Flag-status value set alignment.</td>
          </tr>
          <tr class="highlight-yellow">
            <td>header.source</td>
            <td>Source of the information (e.g. patient, proxy).</td>
            <td>no-map</td>
            <td>Flag</td><td></td>
            <td></td>
            <td>No direct native Flag element; consider extension if needed.</td>
          </tr>
          <tr>
            <td>header.language</td>
            <td>Language of the resource (IETF tag).</td>
            <td>equivalent</td>
            <td>Flag</td><td>language</td>
            <td>Language used in the flag text.</td>
            <td></td>
          </tr>
          <!-- ROOT EHDSAlert elements -->
          <tr>
            <td>description</td>
            <td>Narrative representation of the alert.</td>
            <td>source-is-broader-than-target</td>
            <td>Flag</td><td>extensions:note.valueAnnotation.text</td>
            <td>Additional notes that apply to this resource or element.</td>
            <td class="highlight-yellow">The mapping applies if the description represents additional information collected about the alert.</td>
          </tr>
          <tr>
            <td>description</td>
            <td>Narrative representation of the alert.</td>
            <td>source-is-broader-than-target</td>
            <td>Flag</td><td>code.text</td>
            <td>Additional notes that apply to this resource or element.</td>
            <td class="highlight-yellow"><code>code.text</code> can also be used for textual rendering of coded content, or textual description of the alert.</td>
          </tr>
          <tr>
            <td>priority</td>
            <td>Priority of the alert.</td>
            <td>equivalent</td>
            <td>Flag</td><td>extension:flagPriorityExt	</td>
            <td>A code that identifies the priority of the alert</td>
            <td></td>
          </tr>
          <tr>
            <td>code</td>
            <td>Coded alert/issue being highlighted.</td>
            <td>equivalent</td>
            <td>Flag</td><td>code</td>
            <td>Issue being highlighted.</td>
            <td>Often SNOMED CT or local code. Should have display.</td>
          </tr>
          <tr>
            <td>period</td>
            <td>Time period when the alert is relevant.</td>
            <td>equivalent</td>
            <td>Flag</td><td>period</td>
            <td>Time period when the flag is active.</td>
            <td>Map start/end 1:1.</td>
          </tr>
          <tr>
            <td>sourceReference</td>
            <td>A reference to the resource the alert is about.</td>
            <td>equivalent</td>
            <td>Flag</td><td></td>
            <td>extension:flagDetailExt</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>
