6.2. Reference architecture
6.2.1. Scope and context
This reference architecture provides architectural context for Image Availability when the backend of a XIS is based on an XDS/XCA infrastructure.
The MedMij agreements describe the interactions between the PHR and the XIS. The internal architecture behind the XIS, including the use of XDS/XCA infrastructures, is outside the formal scope of MedMij. Hence, this reference architecture serves as informative guidance for implementations that connect a XIS to an XDS/XCA-based backend.
6.2.2. Architectural overview
Figure 1 illustrates the reference architecture for Image Availability using an XDS/XCA backend. The figure shows that the PHR interacts exclusively with the XIS within the MedMij domain. The XIS mediates access to the healthcare provider domain through an XDS/XCA Gateway exposing RESTful interfaces to an underlying XDS environment. This means that RESTful transactions used between the PHR and the XIS are translated by the XDS/XCA Gateway to semantically equivalent XDS/XCA transactions towards the backend systems.
Figure 1: Reference architecture for Image Availability using an XDS/XCA backend
6.2.3. Transaction equivalence
The RESTful transactions used within the MedMij Image Availability context are based on IHE profiles that explicitly define their relationship to XDS and XCA transactions. For XDS/XCA-based backends, the following conceptual equivalences apply:
- MHD ITI-67 (Find Document References) corresponds to XDS Registry Stored Query (ITI-18);
- MHD ITI-68 (Retrieve Document) corresponds to XDS Retrieve Document Set (ITI-43);
- WADO-RS (RAD-107) corresponds to XDS imaging retrieval semantics as defined by Retrieve Imaging Document Set (RAD-69), section 4.69.
The technical mechanisms used within the XDS/XCA environment to realize these transactions are implementation details and fall outside the scope of MedMij.
6.2.3.1. Parameter mappings
IHE provides normative documentation describing how RESTful query and retrieval parameters map to XDS/XCA parameters and identifiers. These mappings are maintained by IHE and are considered authoritative. Implementations connecting a XIS to an XDS/XCA backend are expected to follow these IHE-defined mappings when translating RESTful requests to XDS/XCA transactions.
The mapping of parameters between MHD ITI-67 and XDS ITI-18 is specified here in Table 2:3.67.4.1.3.1-1.
6.2.4. Authorization context
For interactions between the XIS and the XDS/XCA Gateway, requests are secured using JWT-based authorization. The XIS enriches the JWT with claims aligned with the IHE Internet User Authorization (IUA) profile, providing the contextual information required for authorization and audit logging within the XDS environment.
Figure 2 illustrates the sequence of interactions between the XIS and the XDS/XCA backend when using JWT-based authorization aligned with IHE IUA.
Figure 2: JWT-based authorization flow between XIS and XDS/XCA backend
6.2.4.1. Example of IUA claim structure
An example of the IUA-related claims included in the JWT is shown below. This example is illustrative and non-normative.
{
"extensions": {
"ihe-iua": {
"subject-name": "John Doe",
"subject-role": [
{
"code": "116154003",
"system": "urn:oid:2.16.840.1.113883.6.96",
"display": "Patient"
}
],
"purpose-of-use": [
{
"code": "6",
"system": "1.0.14265.1",
"display": "Subject of Care Uses"
}
],
"person_id": "999999990^^^&2.16.840.1.113883.2.4.6.3&ISO"
}
}
}