# EHDSDocument to FHIR Composition Mapping - HL7 Europe Base and Core FHIR IG v2.0.0

* [**Table of Contents**](toc.md)
* **EHDSDocument to FHIR Composition Mapping**

## EHDSDocument to FHIR Composition Mapping

# EHDSDocument ↔ CompositionEuCore

**Ongoing alignment:**The models are expected to continue evolving, with updates incorporated into this Implementation Guide to maintain alignment with the EHDS Implementing Acts.

### EHDSDocument ↔ CompositionEuCore

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

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

| | | | | |
| :--- | :--- | :--- | :--- | :--- |
| Element | Relation | Resource | Element | Notes |
| header | related-to | Composition | . | Dataset-level information across the Composition instance. |
| header.subject | equivalent | Composition | subject |  |
| header.identifier | equivalent | Composition | identifier | Multiple identifiers allowed; Composition R4 allows 0..1, R5 0..*.`setId`in HL7 CDA |
| header.identifier | equivalent | Bundle | identifier | Identifier of a specific version of this document.`id`in HL7 CDA |
| header.author[x] | equivalent | Composition | author |  |
| header.date | equivalent | Composition | date |  |
| header.status | equivalent | Composition | status |  |
| header.language | equivalent | Composition | language |  |
| header.documentType | equivalent | Composition | type |  |
| header.documentTitle | equivalent | Composition | title |  |
| header.period | related-to | Composition | event.period | Map to the primary Composition.event entry. |
| header.version | related-to | Composition | extension:version〔R4〕version〔R5〕 |  |
| header.attestation | related-to | Composition | attester | Use mode to distinguish assertions. |
| header.attestation.attester[x] | equivalent | Composition | attester.party |  |
| header.attestation.datetime | equivalent | Composition | attester.time | Set attester.mode as appropriate (e.g., professional). |
| header.legalAuthentication | related-to | Composition | attester | Use attester.mode = "legal" for the legal authenticator. |
| header.legalAuthentication.legalAuthenticator[x] | related-to | Composition | attester.party | Use attester.mode = "legal" for the legal authenticator. |
| header.legalAuthentication.datetime | equivalent | Composition | attester.time | Use attester.mode = "legal" for the legal authenticator. |
| header.eventType | related-to | Composition | category | The mapping proposed reflects a possible interpretation of this element as classification of the document; DocumentReference.category should be used if used for filtering document searches. If instead it represents the type of event that occurred, event.code for〔R4〕and event.detail.concept for〔R5〕 |
| header.serviceSpecialty | source-is-narrower-than-target | Composition | category | The mapping proposed reflects a possible classification of the document based on the service specialty. However it is more appropriated to be captured in the DiagnosticReport.category, or in the DocumentReference.category if used for filtering document searches. |
| header.custodian | equivalent | Composition | custodian | Reference to Organization. |
| presentedForm | no-map | Composition |  |  |

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

