# EHDSAlert to FHIR Flag Mapping - HL7 Europe Base and Core FHIR IG v2.0.0-gamma

* [**Table of Contents**](toc.md)
* **EHDSAlert to FHIR Flag Mapping**

## EHDSAlert to FHIR Flag Mapping

# EHDSAlert → Flag

**Ongoing alignment:**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.

**Yellow row/cells:**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.

### EHDSAlert → Flag

 This page explains how conceptual elements from the EHDS logical model are expressed in the corresponding FHIR FlagPatientEuCore profile used by this Implementation Guide. 

**Mapping Context**
*  **Source logical model:** [ EHDSAlert ](https://www.xt-ehr.eu/fhir/models/0.3.0/StructureDefinition-EHDSAlert.html) 
*  **Target FHIR profile:** [ FlagPatientEuCore ](StructureDefinition-flag-patient-eu-core.md) 

| | | | | | | |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Element | Description | Relation | Resource | Element | Description | Notes |
| header | Common header for all patient-related data. | related-to | Flag | . | General metadata. | Dataset-level; not usually carried in Flag as-is. |
| header.subject | Patient/subject this alert is about. | equivalent | Flag | subject | Who/what the flag is about. | Reference to Patient (or other subject). |
| header.identifier | Business identifier for the alert object. | equivalent | Flag | identifier | Business identifier for the flag. | Copy over all identifiers if multiple. |
| header.author[x] | Who created/issued the alert. | equivalent | Flag | author | Creator of the flag. |  |
| header.date | Date and optionally time of authoring/issuing. | no-map | Flag |  |  | No direct native Flag element for authoring timestamp. |
| header.status | Current status of the alert. | equivalent | Flag | status | Indicates if the flag is active, inactive, etc. | Map using the EHDS to HL7 Flag-status value set alignment. |
| header.source | Source of the information (e.g. patient, proxy). | no-map | Flag |  |  | No direct native Flag element; consider extension if needed. |
| header.language | Language of the resource (IETF tag). | equivalent | Flag | language | Language used in the flag text. |  |
| description | Narrative representation of the alert. | source-is-broader-than-target | Flag | extensions:note.valueAnnotation.text | Additional notes that apply to this resource or element. | The mapping applies if the description represents additional information collected about the alert. |
| description | Narrative representation of the alert. | source-is-broader-than-target | Flag | code.text | Additional notes that apply to this resource or element. | `code.text`can also be used for textual rendering of coded content, or textual description of the alert. |
| priority | Priority of the alert. | equivalent | Flag | extension:flagPriorityExt | A code that identifies the priority of the alert |  |
| code | Coded alert/issue being highlighted. | equivalent | Flag | code | Issue being highlighted. | Often SNOMED CT or local code. Should have display. |
| period | Time period when the alert is relevant. | equivalent | Flag | period | Time period when the flag is active. | Map start/end 1:1. |
| sourceReference | A reference to the resource the alert is about. | equivalent | Flag |  | extension:flagDetailExt |  |

 Return to overview: [EHDS Logical Models → FHIR Profiles](modelmap.md) 

