EU Health Data API
1.0.0-ballot - ballot 150

EU Health Data API, published by HL7 Europe. This guide is not an authorized publication; it is the continuous build for version 1.0.0-ballot 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

Relationship to XDS/FHIR Document Sharing

Overview

EHR systems across the EU manage health documents in different ways. Some expose their clinical data as FHIR resources and build a document from those resources on demand when a consumer asks for it. Others keep persistent documents, authored snapshots held in document sharing infrastructure, a registry and one or more repositories built on XDS/XCA or MHD. This IG defines one API surface (IHE MHD ITI-67 and ITI-68) that either approach can use.

This page separates two questions:

  • Document model. Is a document built on demand when it is retrieved, or is it a persistent document that was authored and stored?
  • Architecture. What answers the API: an EHR's FHIR server, or document sharing infrastructure (existing XDS/XCA behind an MHD bridge, or FHIR-native)?

Any of these can be deployed directly, behind a facade, or as part of a national infrastructure; see Member State Architectures. See Document Exchange for transaction details.


Document Model: On-Demand or Persistent

On-demand document. Built at retrieval time from the system's current data, for example by the IPS $summary operation. The document does not need to be kept between retrievals, and two retrievals can differ as records change. A retrieved on-demand document can be kept as a persistent copy, which MHD calls a snapshot (see MHD ITI-67).

Persistent document. Assembled at a point in time decided by the creating organization, often at a point in the clinical workflow such as report approval or encounter completion, and stored as a persistent document. It is a snapshot and does not necessarily automatically change when the underlying record does. Where the use case needs it, a persistent document can be signed or attested by the authoring clinician or organization, for example a discharge report or a laboratory report.

FHIR servers tend toward on-demand documents, but could also store persistent documents. XDS-based document sharing systems typically hold persistent documents but can also build documents on demand as well.

A consumer does not have to know in advance which kind it is getting. This IG relies on MHD for the distinction: an on-demand document has no attachment.hash or attachment.size (see MHD ITI-67), and a persistent document carries both, as MHD requires of publishers (see ITI-105 and ITI-65). Consumers can rely on this. See On-Demand Documents for the details.


Architectures

EHR FHIR server. The EHR exposes its clinical data as FHIR resources (Observation, Condition, MedicationStatement, Encounter, etc.) that reflect the current state of its record at the time they are retrieved. Documents are typically built on demand from these resources. The EHR can also store persistent documents created at points in its care process, such as a signed discharge report. The same resources can also be served directly through Resource Access. Documents and resources are complementary views of the same underlying data; see Resource Content for how they relate.

Document sharing infrastructure. Many existing interoperability networks already share documents this way: a document registry indexes the documents and one or more document repositories hold them, usually built on IHE XDS, with XCA linking communities. Newer infrastructure is built directly on IHE MHD. These systems hold persistent documents, receive them from publishers, and serve them to consumers. IHE MHD lets them offer the same functions through a FHIR API based on the DocumentReference resource, so FHIR consumers can reach their documents through this IG's transactions:

  • XDS/XCA behind an MHD bridge. An MHD layer translates the FHIR transactions into the existing ones: the FHIR-based ITI-67 and ITI-68 into XDS Registry Stored Query and Retrieve Document Set (ITI-18, ITI-43) or XCA Cross Gateway Query and Retrieve (ITI-38, ITI-39), and publication into XDS Provide and Register (ITI-41), as MHD's "XDS on FHIR" Option defines. MHD calls this layer a proxy. MHD also defines the mappings between FHIR DocumentReference and XDS DocumentEntry metadata. XDS-backed systems that need richer XDS/XCA metadata should also use the metadata capabilities and mappings defined by MHD; this IG does not scope full XDS metadata conformance.
  • FHIR Document Store. The registry and repository are FHIR servers that store DocumentReference resources and their content (Binary or Bundle) directly, as in IHE MHDS. Publishers submit via ITI-105 (Simplified Publish) or ITI-65 (Provide Document Bundle).

Variant: Document Storage Separated from the Document Registry. Document sharing infrastructure may hold only DocumentReference metadata, with attachment.url pointing to documents hosted elsewhere (for example, at source systems). Consumers follow that URL at ITI-68.

Both architectures return base FHIR DocumentReference resources through ITI-67, and each declares DocumentReference search support and the required search parameters in its CapabilityStatement. Document sharing infrastructure can also serve clinical resources, for example extracted from the documents it holds (see Derived Resources).


The Shared API Contract

Whatever the architecture or document model, the document exchange transactions (ITI-67 and ITI-68) work the same way and return base FHIR DocumentReference resources. A consumer does not need to know what sits behind the API; one client works against all of them.