HL7 Czech Health information exchange Implementation Guide
0.0.1 - ci-build
HL7 Czech Health information exchange Implementation Guide, published by HL7 Czech Republic. This guide is not an authorized publication; it is the continuous build for version 0.0.1 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7-cz/HIE/ and changes regularly. See the Directory of published versions
This section describes the additional requirements for the Czech HIE of the Find Document References [ITI-67] transaction defined in the MHD Profile published in the IHE ITI Trial Implementation “Mobile Access to Health Documents”.
The Find Document References transaction is used to find DocumentReference Resources that satisfy a set of parameters. It is equivalent to the FindDocuments and FindDocumentsByReferenceId queries from the Registry Stored Query [ITI-18] transaction. The result of the query is a FHIR Bundle containing DocumentReference Resources that match the query parameters.
Table 1: Actor Roles
| Actor | Role |
|---|---|
| [Document Consumer] | Requests a list of DocumentReference Resources, matching the supplied set of criteria, from the Document Responder |
| [Document Responder] | Returns DocumentReference Resources that match the search criteria provided by the Document Consumer |
FHIR-R4 HL7 FHIR Release 4.0
The Document Consumer SHALL include the search parameter patient.identifier with the RID or DRID of the patient. The search parameters of type token SHALL contain both the system and the code.
Find Document Reference example request:
GET [base]/DocumentReference?patient.identifier=https://ncez.mzcr.cz/fhir/sid/rid|2066425387&status=current HTTP/1.1
Accept: application/fhir+json
traceparent: 00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-00
The Document Responder SHALL process the query to discover the DocumentReference entries that match the search parameters given.
The Document Responder SHALL support search page count requests from the Document Consumer of up to 100 resources.
The Document Responder SHALL set the DocumentReference.content.attachment.url value to the URL used in ITI-68
transactions to retrieve that document's content.
The response Bundle SHALL follow the CZ MHD Find Document References Comprehensive Response message.
If a Document Responder does not respond, an OperationOutcome with a severity warning SHALL be added to the aggregated results indicating the community does not respond.
For matching DocumentReferences returned by the Document Responder, the Document Responder SHALL ensure by rewriting the id and attachment.url that follow-up reads, updates or document retrieval will be handled by same Document Responder actor. Any id, url rewrite SHALL be resolvable for at least an hour.
The CapabilityStatement resource for the Document Consumer is MHD Document Consumer.
The CapabilityStatement resource for the Document Responder is MHD Document Responder.
Security of the transaction is based on the Czech Standard for Accredited Affinity Domains (AAfD). The transport layer (mTLS) and the application layer (IUA access token) are always used together; they are not alternatives.
The transaction SHALL be secured by TLS 1.3 (at least TLS 1.2 with strong cipher suites) with mutual node authentication (mTLS) as defined in the ATNA Authenticate Node [ITI-19] transaction. Both client and server authenticate with an X.509 certificate issued by the certification authority of the Czech Ministry of Health (MZČR), and each side validates the certificate of its peer. mTLS is used for all communication: between the healthcare provider's system (IS PZS) and the AAfD, between AAfDs, and between an AAfD and the central eHealth services.
The client SHALL convey an IHE IUA access token in JSON Web Token (JWT) format in every request:
Authorization: Bearer header as defined in Incorporate Access Token [ITI-72].When the home AAfD forwards a request to another AAfD, it obtains a new access token for the target AAfD using OAuth 2.0 Token Exchange as defined in RFC 8693: the subject_token is the access token of the healthcare provider and the actor_token is the system token of the calling AAfD. The target AAfD verifies in the eHealth Service Catalogue that the calling AAfD is accredited and issues a token containing the identity of the healthcare provider (sub) and of the intermediary AAfD (act). Forwarding the healthcare provider's token to another AAfD without validation is not allowed.
Actors SHALL support the traceparent header as defined in W3C Trace Context.
The actors SHALL record an audit event and send it with Record Audit Event [ITI-20]:
The audit event SHALL record the node identities from mTLS and the details of the IUA access token as defined in Recording the communication security. The AAfD records the query and its result (healthcare provider, healthcare professional, RID or DRID, query parameters). When querying other AAfDs, the home AAfD records each outgoing query as Document Consumer and the target AAfD records it as Document Responder, with the HCID of the home AAfD as the calling system.