EU Health Data API
0.1.0 - ci-build 150

EU Health Data API, published by HL7 Europe. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/euridice-org/eu-health-data-api/ and changes regularly. See the Directory of published versions

Regulatory Anchors

EHDS Regulation

This Implementation Guide addresses technical requirements from the European Health Data Space (EHDS) regulation, specifically focusing on the interoperability requirements placed on EHR systems.

The regulatory basis is primarily found in EHDS ANNEX II - Essential Requirements for EHR Systems (EUR-Lex, Local Copy), which describes an obligation for EHR systems to include an Interoperability Component that does the following:

  • §2.1: "SHALL provide an interface enabling access to the personal electronic health data [formatted in EEHRxF]"
  • §2.2: "SHALL be able to receive personal electronic health data [formatted in EEHRxF]"

Note that this IG does NOT create legal obligations on EHR Systems unless adopted by the European Commission.

Xt-EHR Joint Action

This IG inherits and builds upon the work of the Xt-EHR Joint Action, which has created deliverables drafting the EHDS Implementing Acts. Specifically, we inherit the work done in Xt-EHR Work Package 5.1 which has mapped the EHDS text to more precise EHR requirements.

These requirements have also been adjusted to harmonize with Xt-EHR Work Packages 6 and 7, which define requirements for each priority category.

For more details on the Xt-EHR work, see the Xt-EHR Website. Note: Xt-EHR deliverables are not yet publicly released.

Requirements Framework

The EHDS regulation defines the interoperability component at a high level, but interoperability needs to be defined with technical precision in order for two systems to effectively achieve interoperability.

This table describes the bridge between the regulation text and precise and implementable specifications.

Layer EHDS Regulation EHR Functional Requirements Technical Specifications (You Are Here)
Description Law. High-level description of interoperability goals. EHDS Implementing acts. System roles and capabilities, requirements on EHR systems to achieve those goals

Strictly defined interoperability technical rules. Implementable Guide describing use FHIR (or other) specifications.

Basis of interoperability conformance
Level of Technical Detail low medium high
Example EHDS Annex § 2.1: The EHR system should provide access to data in the EEHRxF format api-access-doc: The EHR system Interoperability Software Component SHALL offer an API that enables an external system (such as a consumer) to access and retrieve its priority category data, for categories where that data is modeled as a FHIR Document
The api-access-doc requirement is met by the EHR System implementing the IHE MHD ITI-67 and ITI-68 transactions as the Document Responder actor.
Example FHIR Query: GET [base]/DocumentReference?category=123
Owner European Commission European Commission
(drafted by Xt-EHR), Member States
To be decided by the European Commission and Member States. SDOs (HL7 EU, IHE Europe) are proposing a draft with this Implementation Guide

Legal authority flows from left to right on this diagram. Self-testing of an EHR system in the EHDS Digital Testing Environment is best enabled by the right-most technical specification layer.

Scope of This IG

The Xt-EHR Work Packages, notably WP 5.1, have drafted the middle layer: EHR Functional Requirements.

We inherit and evolve that work, focusing on the technical specification layer of these interoperability requirements, using off the shelf IHE and HL7 standards. The requirements themselves and how they are applied to EHR products are not defined in this IG. These are ultimately owned by the European Commission to be finalized in the EHDS Implementing Acts.

D5.1 defined 26 requirements across three categories (see Xt-EHR D5.1 Annex for complete list):

  • [In Scope] 15 Interoperability Component Requirements: This implementation guide primarily focuses on the technical implementation of these requirements.
  • [Out of Scope] 6 Logging Component Requirements: This Implementation Guide does not specify the logging component format or the interoperability of logs from EHR systems. EHDS ANNEX II requires the generation of local audit logs for review, but does not specify the data format or require interoperability of those logs.
  • [Out of Scope] 5 General requirements: D5.1 also defines general requirements covering software installation, documentation, performance, and safety of EHR systems. These are not testable API specifications and are therefore out of scope for this IG.

Xt-EHR Deliverable 5.1

Xt-EHR Deliverable 5.1 interpreted 2.1 and 2.2 as two sides of a query-based architecture:

Regulation D5.1 Interpretation IG Actor
§2.1 "provide interface enabling access" Producer: Serve queries for EEHRxF data Access Provider
§2.2 "be able to receive" Consumer: Initiate queries and receive responses Consumer
Figure: Query-Based Exchange Model
Figure: Query-Based Exchange Model

This interpretation is grounded in the following rationale:

  • Clinical workflow fit: When a patient arrives at a new care setting, their health data often resides elsewhere. Query-based exchange allows the treating provider to retrieve patient data at the point of care, rather than requiring precoordination with the data source to transmit the patient's data.
  • MyHealth@EU alignment: EU Cross-border services are primarily modeled as query-based exchanges. The requesting country's National Contact Point queries the responding National Contact Point, which queries the providing country's systems.
  • Data availability: Healthcare is 24/7. An API endpoint can serve requests at any time, ensuring data is accessible when needed for care. With a push architecture, data availability depends on the receiver being online and the sender initiating data transmission.

§2.1: Provide Access

The Access Provider actors (Document Access Provider, Resource Access Provider) satisfy §2.1 by serving Document and Resource FHIR queries.

Delegated Access Option

Alternatively, this IG proposes a path for EHR systems to delegate their §2.1 obligations to another system.

The EHR system implements the Document Publisher role, publishing data to an Access Provider that serves queries on its behalf.

This pathway addresses real-world deployment scenarios:

  • Systems not suited for 24/7 API hosting: Not every EHR system is well-suited to serving APIs. For example - an iPad clinician app may create clinical documents but cannot practically act as a server. Such systems "provide access" by publishing to an Access Provider.
  • Aggregation at hospital scale: A hospital document management system (Access Provider) aggregates data from departmental modules (Publishers) to offer a unified access point for the healthcare organization. This provides a single "digital front door" and improved security benefits.
  • Aggregation at national scale: Healthcare organization EHRs (Publishers) submit documents to a national repository (Access Provider), which provides access across the region.

See Actors for complete definitions and Example Groupings for deployment illustrations.


§2.2: Receive Data

The Consumer actors (Document Consumer, Resource Consumer) satisfy §2.2 by initiating Document and Resource queries to retrieve and receive data from Access Providers.

Accepting Published Documents

Systems that need to accept documents pushed from Publishers (e.g., national infrastructure, regional repositories, integration engines) may implement the Document Submission Option on the Document Access Provider actor. This is an additional capability for systems acting as aggregation points—it is not required to satisfy §2.2.


Requirements Table

The following table maps each D5.1 interoperability requirement to its implementation in this IG:

API Requirements (Access Provider)

Terminology note: D5.1 uses "Producer" to describe the system serving the query API. This IG uses "Access Provider" to make the API-serving role explicit and avoid confusion with content creation.

D5.1 Req ID D5.1 Normative Requirement EHDS Basis Actor IG Section Technical Spec
api-provider-general The EHR system acting as a provider SHALL provide access to its priority category data by offering an API that complies to the EHDS API specification. Annex II §2.1 Access Provider Document Access Provider, Resource Access Provider This IG
api-provider-authDiscovery The EHR system Interoperability Software Component SHALL enable discovery of its authorization server information to enable a consumer to retrieve authorization. Annex II §1.4, Art. 36(3)(e) Access Provider Authorization - Discovery SMART .well-known/smart-configuration, IHE IUA
api-provider-authProvideToken The EHR system Interoperability Software Component SHALL support issuing authorization tokens to consumer EHR systems. Annex II §1.4, Art. 36(3)(e) Access Provider [1] Get Access Token (ITI-71) SMART Backend token endpoint, IHE IUA
api-provider-authRequireToken The EHR system Interoperability Software Component SHALL require a valid authorization token from the Consumer EHR on Interoperability Component exchange. Annex II §1.4, Art. 36(3)(e) Access Provider Incorporate Access Token (ITI-72) Bearer token validation, IHE IUA
api-provider-patient The EHR system Interoperability Software Component SHALL offer a patient lookup API. Annex II §2.1 Access Provider Patient Demographics Supplier PDQm ITI-78
api-provider-doc The EHR system Interoperability Software Component SHALL offer an API that enables an external system to access and retrieve its priority category data modelled as FHIR Documents. Annex II §2.1 Access Provider Document Responder MHD ITI-67, ITI-68
api-provider-resource The EHR system Interoperability Software Component SHALL offer search and read access via individual FHIR Resource API(s). Annex II §2.1 Access Provider Clinical Data Source IPA Server/QEDm

[1] Note on Authorization Server: The EHR system may or may not be bundled with its own authorization server. See Authorization Server Deployment for details.

API Requirements (Consumer)

D5.1 Req ID D5.1 Normative Requirement EHDS Basis Actor IG Section Technical Spec
api-consumer-general The EHR system Interoperability Software Component acting as a consumer SHALL consume external priority category data via an API conforming to the EHDS API specification. Annex II §2.2 Consumer Document Consumer, Resource Consumer This IG
api-consumer-authObtainToken The EHR system Interoperability Software Component SHALL obtain an authorization token from the provider's designated authorization server. Annex II §1.4, Art. 36(3)(e) Consumer Get Access Token (ITI-71) SMART Backend client credentials grant, IHE IUA
api-consumer-authPresentToken The EHR system Interoperability Software Component SHALL present a valid token to the Provider EHR on Interoperability Component Exchange. Annex II §1.4, Art. 36(3)(e) Consumer Incorporate Access Token (ITI-72) Bearer token in Authorization header
api-consumer-patient The EHR system Interoperability Software Component SHALL support an external patient lookup query API. Annex II §2.2 Consumer Patient Demographics Consumer PDQm Consumer
api-consumer-doc The EHR system Interoperability Software Component SHALL support an external document query API. Annex II §2.2 Consumer Document Consumer MHD Document Consumer
api-consumer-resource The EHR system Interoperability Software Component SHALL support an external resource query API. Annex II §2.2 Consumer Clinical Data Consumer IPA Client/QEDm

Content Format Requirements

These requirements apply regardless of which pathway is used to provide or receive data. The content must be valid EEHRxF whether served directly by an Access Provider or published via ITI-105.

D5.1 Req ID D5.1 Normative Requirement EHDS Basis Actor IG Section Technical Spec
api-producer-data The EHR system SHALL be capable of providing priority category data that conforms to the EEHRxF data format. Annex II 2.1, 2.1, Any system providing data Priority Category Content Profiles HL7 EU Content IGs
api-consumer-data The EHR system SHALL be able to receive and handle data conforming to the EEHRxF data format. Annex II §2.2 Any system receiving data Priority Category Content Profiles HL7 EU Content IGs

Security Requirements

D5.1 Req ID D5.1 Normative Requirement EHDS Basis Actor IG Section Technical Spec
api-encryption The EHR system Interoperability Component SHALL be capable of transport-encrypted data exchange. Annex II §1.4, Art. 36(3)(e) All Transport Security TLS 1.2+