IHE XCA, FHIR and DICOMweb: Understanding the NHS National Imaging Registry Architecture

Written by Technical Team Last updated 20.11.2026 21 minute read

Home>Insights>IHE XCA, FHIR and DICOMweb: Understanding the NHS National Imaging Registry Architecture

The NHS National Imaging Registry (NIR) uses a federated architecture to make diagnostic imaging and reports discoverable and retrievable across organisational boundaries. Rather than moving every imaging study into a national repository, NIR connects existing imaging networks through standardised interfaces, allowing authorised clinical systems to locate and retrieve examinations held by other healthcare providers.

The architecture brings together several interoperability standards with different responsibilities. Integrating the Healthcare Enterprise (IHE) Cross-Community Access (XCA) provides the initial framework for cross-organisational document discovery and retrieval. Fast Healthcare Interoperability Resources (FHIR), particularly through the IHE Mobile access to Health Documents (MHDS) profile, supports the development of more modern metadata discovery and document-sharing interfaces. DICOMweb provides REST-based mechanisms for retrieving imaging objects.

These technologies are not interchangeable. XCA addresses communication between healthcare communities, FHIR provides a structured resource model and API framework for exchanging clinical information and document metadata, while DICOMweb handles access to imaging studies, series and instances.

NIR’s architecture is also evolving. Its initial capabilities concentrate on XCA-based discovery and retrieval, including imaging retrieval through IHE RAD-75. FHIR-based discovery, integration with the National Record Locator (NRL), and DICOMweb WADO-RS retrieval form part of the wider technical roadmap. For NHS organisations and software suppliers, understanding which capabilities are available in a particular release is essential when designing integrations that must operate reliably today without requiring extensive rework as the service develops.

How the NIR Federated Architecture Works

NIR operates above existing imaging infrastructure, including Picture Archiving and Communication Systems (PACS), Radiology Information Systems (RIS), Vendor Neutral Archives (VNA) and regional imaging networks.

A participating organisation continues to maintain its own clinical systems, imaging archives and information governance arrangements. NIR provides the national integration layer through which another authorised organisation can discover and retrieve relevant imaging information.

A typical architecture contains four functional elements: a consuming clinical application, the national NIR service, responding imaging network gateways, and the repositories holding the original documents and imaging objects.

The consuming application might be a PACS viewer, enterprise imaging platform or Electronic Patient Record (EPR) interface. It initiates a request for imaging records associated with a patient, usually using the patient’s NHS number. NIR receives the request and distributes it to connected responding communities, where the relevant registries and repositories can be searched.

Each responding community returns information about available documents. NIR aggregates the responses and makes them available to the consuming system, which can then request specific reports or images.

The distinction between discovery and retrieval is fundamental to this design.

Discovery identifies what imaging information exists and where it can be obtained. Retrieval transfers the selected documents or imaging objects to the consuming environment. A search result does not imply that a complete imaging study has already been downloaded.

For example, a radiologist working at one NHS trust may need to review a previous CT examination performed at another hospital. The local application queries NIR using the patient’s NHS number. NIR forwards the request to participating communities, receives matching document metadata and returns the available results. The radiologist selects the appropriate examination, after which the application initiates retrieval of the associated report or imaging data.

The original study remains under the operational control of the source organisation. NIR facilitates access rather than becoming the authoritative archive for the examination.

This federated model has several engineering consequences.

First, NIR can only discover information made available by connected organisations. An unsuccessful search does not establish that a patient has no relevant imaging history elsewhere.

Second, query performance depends partly on the responsiveness of downstream systems. A slow or unavailable regional gateway can affect an aggregated search even when NIR itself remains operational.

Third, applications must distinguish a genuinely empty search result from incomplete discovery caused by failed downstream queries. NIR’s functional capabilities include reporting successful and unsuccessful searches, allowing consuming systems to recognise when only part of the network has responded.

A further architectural consideration is the separation between the identity of a healthcare organisation and the identity of the technical community through which it exchanges records. A single imaging network may provide access to documents originating from several hospitals, while individual clinical systems may operate behind shared gateways.

Implementations therefore need to preserve organisational provenance rather than assuming that the responding technical endpoint is necessarily the organisation that performed the examination.

IHE XCA: Cross-Community Discovery and Retrieval

IHE XCA provides the principal interoperability mechanism for NIR’s initial federated document-sharing capabilities.

XCA builds on the IHE Cross-Enterprise Document Sharing (XDS) architecture. XDS defines how healthcare organisations can register, discover and retrieve clinical documents within a document-sharing community. XCA extends this model so separate communities can exchange information through gateways without exposing every internal registry and repository directly to external consumers.

An XDS environment generally distinguishes between a document registry and a document repository.

The registry maintains metadata describing available documents, including identifiers, patient association, document type, creation information and repository location. The repository holds the actual document content and responds to authorised retrieval requests.

An XCA gateway provides a standards-based interface to this infrastructure. It can receive a query from another community, communicate with its internal services and return the results using the XCA transaction model.

For NIR, the primary discovery transaction is IHE ITI-38, Cross Gateway Query.

ITI-38 is based on SOAP web services and uses an ebXML registry query model. It is not a conventional REST endpoint returning a collection of JSON objects. An application integrating at this level must support the appropriate XML structures, SOAP messaging requirements, transaction identifiers and response handling.

An NIR discovery request identifies the patient using a valid NHS number and can include additional constraints. The published functional capabilities support federated queries across connected systems, restriction to specified communities using Home Community IDs, and filtering by document creation period.

The service also restricts discovery to documents with an Approved availability status.

In the XDS metadata model, a document is typically represented by an XDSDocumentEntry, which contains information required to identify, classify and retrieve it. Relevant metadata includes the document unique identifier, repository identifier, patient identifier, creation time, document class or type, and other clinical or technical attributes.

The Home Community ID is particularly important in XCA.

It identifies the community responsible for making a document available and provides information needed to route subsequent retrieval requests. It should not be treated as a display name for a hospital or confused with a repository identifier.

For document retrieval, the consuming system needs a combination of identifiers:

  • Home Community ID: identifies the responding community through which the document can be obtained.
  • Repository Unique ID: identifies the repository responsible for the document.
  • Document Unique ID: identifies the particular document to retrieve.

These identifiers need to survive the entire discovery-to-retrieval workflow. If an application normalises XCA results into an internal data model, it should retain the original identifiers without truncation, rewriting or substituting local database keys.

The corresponding XCA document retrieval transaction is ITI-39, Cross Gateway Retrieve. This allows a requesting gateway to obtain previously discovered documents through the appropriate responding gateway.

NIR’s imaging retrieval architecture adds another layer because a clinical document describing an imaging examination is not necessarily the same thing as the DICOM objects that make up the study.

IHE imaging document sharing commonly uses a DICOM Key Object Selection (KOS) object as an imaging manifest. The manifest identifies imaging objects associated with a study and provides the references required for subsequent retrieval.

A KOS is not a replacement for the original images. It contains references to selected DICOM objects, typically organised by study, series and SOP Instance identifiers.

Once the KOS has been discovered and retrieved, the consuming application can use its contents to request the corresponding imaging data.

NIR’s initial image retrieval capability uses IHE RAD-75, Cross Gateway Retrieve Imaging Document Set, which is associated with the XCA-I imaging profile and uses WADO-WS.

The published NIR capability description requires imaging retrieval requests to include the relevant community, repository, document, series and study identifiers, with retrieval linked to imaging previously discovered through NIR.

This is a more constrained process than allowing an arbitrary application to request any imaging object from any connected repository. Discovery establishes the references that the retrieval workflow is permitted to use.

For engineering teams, the distinction between XCA and XCA-I is worth preserving in the application architecture. XCA manages cross-community clinical document exchange, while XCA-I extends cross-community exchange to imaging-related workflows. Applications that support document discovery but lack the necessary imaging retrieval transactions may successfully display available examinations without being able to download their pixel data.

The consuming application must also understand NIR’s default community-exclusion behaviour. Where a system is connected as both a producer and a consumer, its own Home Community ID is excluded from a federated query by default, preventing locally available examinations from being returned as external results.

A PACS integration should account for this behaviour when combining local and national search results. Otherwise, users may see duplicate studies or incorrectly interpret the absence of a locally held examination from NIR results as a discovery failure.

FHIR and MHDS: Moving Towards Modern Document Discovery

FHIR introduces a different approach to representing and exchanging the metadata required for document discovery.

Instead of relying exclusively on SOAP messages and ebXML registry objects, FHIR supports structured resources exchanged through HTTP-based APIs. The IHE MHDS profile applies these capabilities to document-sharing workflows, providing a standards-based approach to publishing, locating and retrieving healthcare documents.

For NIR, the transition towards FHIR and MHDS is an architectural extension rather than an immediate replacement of the existing XCA environment.

The national roadmap describes introducing MHDS-compliant query capabilities, supporting retrieval from FHIR repositories and enabling clients to query a central FHIR registry through the National Record Locator alongside existing XDS registries. Further planned capabilities include direct registration by MHDS-compliant producers and registration of metadata originating from legacy XDS repositories.

The aim is to accommodate established imaging infrastructure while allowing newer clinical applications to use FHIR-based interfaces.

In an MHDS implementation, the FHIR DocumentReference resource is central to document discovery.

A DocumentReference represents information about a clinical document rather than necessarily containing the document itself. It can include patient association, document type, creation or indexing timestamps, author or custodian information, content type and the information needed to locate the document.

A separate retrieval operation obtains the underlying content.

This resource model maps naturally to the separation between metadata discovery and content retrieval already present in XDS. However, translating between the standards is not a simple matter of renaming fields.

XDSDocumentEntry metadata and FHIR DocumentReference attributes have different structures, cardinalities and terminology requirements. Some information maps directly, while other attributes require transformations, extensions or implementation-specific handling.

For example, an XDS document unique identifier must remain distinguishable from the logical identifier assigned to a FHIR resource by the receiving server. Treating a FHIR resource ID as though it were the original document identifier can break retrieval when the resource has been copied, transformed or registered in another repository.

Similarly, document creation time, registry submission time and the date of the clinical examination represent different events. An integration that collapses them into one timestamp can produce misleading search results or cause examinations to disappear when users filter by date.

FHIR implementations also need to preserve the relationship between the imaging examination and its associated reports.

A DiagnosticReport resource can represent clinical findings and may reference an ImagingStudy resource. ImagingStudy describes the imaging examination using identifiers familiar to DICOM environments, including study, series and instance identifiers.

DocumentReference, DiagnosticReport and ImagingStudy therefore serve different purposes. DocumentReference supports discovering and locating documents, DiagnosticReport represents clinical reporting information, and ImagingStudy describes imaging study structure and identifiers.

An NIR-facing product should not assume that these resources are interchangeable or that every responding system supplies all three.

A practical integration architecture may use an internal imaging metadata model that can be populated from either XCA responses or FHIR resources. That model should retain original source identifiers, study metadata, document relationships, retrieval capabilities and provenance.

This allows a user interface to present a consistent imaging history while the integration layer handles differences between XCA, MHDS and any future NIR-supported interfaces.

The National Record Locator introduces another consideration.

A central registry can provide metadata indicating where clinical information is available without centrally holding the underlying clinical document or DICOM images. The registry entry and the clinical content have different storage, availability and access-control characteristics.

As NIR develops its NRL integration, software suppliers will need to account for discovery results originating from both federated XDS infrastructure and centrally registered FHIR metadata. Duplicate results, differing metadata quality and retrieval through different technical routes all require careful handling.

New integrations should therefore keep discovery orchestration separate from content retrieval and image rendering. A FHIR-based discovery result should not automatically imply the presence of a WADO-RS endpoint, just as an XCA document result does not guarantee that its associated image objects can be retrieved successfully.

DICOMweb and the Imaging Retrieval Layer

DICOMweb provides RESTful access to DICOM imaging data and introduces capabilities that are particularly useful for browser-based applications, cloud-native imaging platforms and modern enterprise viewers.

The DICOMweb family includes three principal services: QIDO-RS for querying imaging studies and metadata, WADO-RS for retrieving DICOM objects, metadata and rendered representations, and STOW-RS for storing DICOM objects.

Within NIR’s published roadmap, WADO-RS is the relevant planned capability for modern image retrieval. It should not be assumed that the presence of DICOMweb in the wider architecture means NIR currently exposes unrestricted QIDO-RS or STOW-RS functionality.

WADO-RS uses HTTP requests and DICOM identifiers to retrieve imaging content from a compatible service. Depending on the endpoint and representation requested, a client may obtain a complete study, selected series, individual instances, imaging metadata or rendered image representations.

For example, a WADO-RS service may expose a resource structure resembling:

/studies/{StudyInstanceUID}/series/{SeriesInstanceUID}/instances/{SOPInstanceUID}

The identifiers are DICOM Unique Identifiers (UIDs), not local application record IDs.

StudyInstanceUID identifies an imaging study, SeriesInstanceUID identifies a series within that study, and SOPInstanceUID identifies an individual DICOM object.

Their preservation across discovery, retrieval and local storage is essential. Rewriting a UID during integration can break references from imaging manifests, reports and downstream viewers.

Compared with SOAP-based imaging retrieval, WADO-RS gives developers a more natural interface for modern HTTP clients and allows content negotiation through standard HTTP mechanisms. Depending on the server and requested representation, responses may use multipart payloads and different DICOM media types.

Support for compressed transfer syntaxes is another implementation concern.

CT and MR studies may contain hundreds or thousands of instances. Whole-slide imaging and other specialist modalities can produce substantially larger datasets. A viewer that assumes every retrieved object is uncompressed, or that every server supports the same transfer syntax, will encounter compatibility and performance problems.

A robust retrieval component should understand which transfer syntaxes its decoding pipeline supports, preserve original diagnostic data where required and avoid unnecessary decompression or recompression.

Where WADO-RS provides rendered images, these can be useful for particular viewing scenarios, but they should not automatically be treated as equivalent to the full diagnostic DICOM objects. Rendered representations may not preserve the complete metadata, bit depth or processing flexibility needed for diagnostic interpretation.

NIR’s architecture also needs to accommodate the fact that the original source may not expose DICOMweb directly.

An established PACS might support DICOM C-MOVE, C-GET or WADO-WS, while a newer VNA may offer WADO-RS natively. An imaging network gateway or integration adapter can provide the standards translation needed to present a compatible retrieval interface.

These adapters should be designed around the actual supported transactions rather than assuming that a generic DICOMweb proxy is sufficient for NIR conformance.

The retrieval workload itself deserves careful engineering.

A chest radiograph may consist of only a few objects, while a multiphase CT examination can contain thousands of images. Downloading an entire study before displaying anything may introduce unacceptable delays, particularly when imaging is being retrieved across organisational boundaries.

However, NIR’s published initial capabilities do not provide scheduled, prioritised or streamed source retrieval. Implementations should not rely on features such as progressive NIR-managed streaming unless explicitly supported by the applicable service version.

Where permitted by the supported retrieval interface, a consuming application can still optimise its own processing through controlled concurrency, efficient temporary storage, suitable caching and decoupling image decoding from the user interface.

Concurrency must be bounded. Allowing every browser session to initiate unrestricted parallel retrievals can overload gateways, exhaust connection pools and place unnecessary demand on remote imaging archives.

A useful design separates the user-facing examination selection from a managed retrieval component that handles request state, retries, storage and integration with the local viewer.

If a retrieval fails partway through a study, the application should retain enough information to determine which objects were received and which remain unavailable. It must not present a partially downloaded examination as complete without an appropriate indication.

Clinical applications should also retain the originating organisation and examination provenance when importing external imaging. If an imported study is given a local identifier or an additional report, the original source details and report relationships should remain traceable.

Implementing and Operating an NIR Integration

A production NIR integration requires more than protocol compatibility. The application must coordinate patient identification, cross-community queries, document metadata, retrieval workflows, authentication, clinical safety and operational monitoring across systems maintained by different organisations.

The first design decision is usually where the NIR integration should sit within the existing product architecture.

For a PACS or VNA supplier, implementing NIR connectivity within an established interoperability gateway may be appropriate because the product already manages DICOM objects, document references and clinical viewers.

For an EPR supplier, a dedicated integration service may provide a cleaner boundary between national imaging discovery and the existing patient record application.

In either case, the interface should be explicit about which parts of the workflow operate locally and which require a live national or remote-community transaction.

Patient identification and metadata quality

NIR’s current cross-community search capabilities require a valid NHS number. The consuming application should verify patient context before initiating discovery and ensure that patient identifiers are passed in the format required by the applicable transaction specification.

A patient selected in an EPR may have several local identifiers, but those identifiers cannot simply be substituted for the NHS number in a national query.

At the responding end, organisations must ensure that imaging metadata is associated with the correct patient. Historical examinations can contain missing, incorrect or inconsistently populated identifiers, particularly where legacy archives have undergone migrations or patient records have been merged.

Metadata quality also affects the usefulness of returned results.

Study dates, modality, body region, document type, clinical organisation and report availability help clinicians distinguish relevant prior examinations. If the source supplies incomplete or inconsistent attributes, a consuming application should avoid inventing values or treating uncertain classifications as definitive.

For example, a local body-part description may not correspond directly to a standard anatomical terminology. Implementations may need terminology mapping, but the original value should remain available for traceability.

A date-filtered search also needs a precise definition of the field being filtered. NIR’s current capability describes filtering by document creation period, which may not be the same as the date on which the imaging study was performed. Application labels and user expectations should reflect the implemented search semantics.

Failure handling and operational observability

Federated querying introduces partial failure as a normal condition that applications must be capable of handling.

Consider a search distributed to six imaging networks. Four return valid responses, one reports an error and another exceeds the allowed response time. NIR may return the successful results alongside information about the failed queries.

The consuming application should distinguish this outcome from a complete search and avoid presenting the returned list as the patient’s exhaustive imaging history.

Useful operational logging should capture the request correlation identifier, originating consumer, responding community, transaction type, elapsed time, outcome and relevant error classification. Patient-identifiable information should be minimised in routine logs and handled in accordance with security and information governance requirements.

Monitoring should distinguish between national service availability, gateway connectivity, document discovery performance and imaging retrieval performance.

A successful discovery request followed by a failed image download points to a different fault from an unsuccessful query. Combining both into a generic NIR connection error makes diagnosis considerably harder.

Retries should also be transaction-aware. Repeating a failed retrieval may be reasonable after a transient network interruption, but indiscriminately retrying searches across several unavailable communities can increase load without improving the outcome.

Timeouts, circuit breakers, bounded retry policies and clear failure states are useful architectural patterns, provided they respect the behaviour required by the NIR interface.

Performance testing should include representative imaging studies and realistic network conditions rather than relying exclusively on small test documents. A successful retrieval of a single DICOM instance says little about the behaviour of a production gateway transferring a large CT examination while other clinicians are querying the service.

Security, conformance and clinical deployment

NIR connectivity is restricted to authorised systems and requires the relevant onboarding, governance and technical assurance activities.

Authentication, certificate management, access controls and network connectivity must follow the requirements of the relevant NIR API and approved connection profile. Developers should not assume that general NHS API Platform authentication patterns automatically apply unchanged to every XCA, FHIR or imaging retrieval transaction.

Similarly, authorisation should not be reduced to verifying that the requesting application has valid technical credentials.

Organisations must maintain appropriate controls over who can access patient imaging, for what purpose, and how that access is recorded. Integrating NIR into an existing PACS or EPR does not remove local responsibilities for role-based access, auditability or clinical safety.

Supplier conformance and local deployment testing are separate activities.

A supplier must demonstrate technical conformance for its NIR-connected product and establish the required connection agreement. The adopting healthcare organisation must then test the supplier’s implementation against its own architecture, product version and governance requirements.

This distinction is particularly relevant where a PACS product supports NIR in one release but a trust operates an earlier version or uses a different integration configuration.

Local testing should cover more than successful queries. A useful clinical and technical test suite includes patient mismatch scenarios, unavailable communities, empty results, partial search responses, report retrieval without image retrieval, duplicate examinations, incorrect metadata and interrupted downloads.

Suppliers developing healthcare software also need to address their clinical risk management obligations under DCB0129, while healthcare organisations must assess deployment and use under DCB0160.

Risks such as displaying an external examination under the wrong patient, presenting incomplete results without warning, or concealing an unsuccessful retrieval should be reflected in the clinical safety assessment and associated controls.

The initial NIR implementation is read-only with respect to source imaging and reports. A local system may support importing a study, creating annotations or producing additional clinical documentation, but these activities should not be mistaken for modification of the originating record through NIR.

Where imported studies are retained locally, provenance, duplicate handling, retention and any additional reporting responsibilities need to be defined before the workflow enters production.

Designing for the next NIR releases

The most maintainable integration architecture treats NIR as a set of capabilities rather than assuming one protocol will remain the permanent interface for every operation.

A consuming application can define internal operations for discovering imaging records, retrieving documents, obtaining imaging manifests and retrieving DICOM objects. Protocol-specific adapters then implement those operations using supported XCA, FHIR or imaging retrieval transactions.

This approach allows the application to support current XCA-based workflows while introducing MHDS-based discovery or WADO-RS retrieval when those capabilities become available and the relevant product integration has been assured.

The adapters must preserve more than the apparent clinical metadata. They need to retain source identifiers, community routing information, retrieval permissions, original document relationships and the format of the content being requested.

Feature detection and service-version configuration should also be explicit. A supplier should not infer WADO-RS availability simply because a responding organisation uses a modern PACS, nor assume that a FHIR-discovered document can be retrieved through the same route as an XCA-discovered document.

As central FHIR registration develops, systems may encounter records exposed through more than one discovery mechanism. Duplicate detection must therefore consider stable document and DICOM identifiers, source provenance and document relationships, rather than relying solely on patient, modality and examination date.

It is also worth separating national API conformance from application-level presentation logic. Search filtering, external-study indicators, retrieval status, report association and error display may be implemented differently by individual PACS and EPR suppliers. These behaviours need to be specified and tested as part of the product’s clinical workflow.

For NHS organisations planning NIR adoption, the practical starting point is an inventory of the imaging systems, gateways, software versions and supported standards already in place. This establishes whether existing infrastructure can participate through XCA and XCA-I, which components require upgrades, and where future FHIR or DICOMweb capabilities may be introduced.

For software suppliers, the equivalent exercise is to define a stable internal imaging information model and a standards-aware integration boundary, then validate it against the NIR transactions actually available.

NIR’s longer-term architecture is designed to accommodate both established document-sharing infrastructure and newer FHIR and DICOMweb interfaces. Implementations that preserve the distinction between discovery, document retrieval and imaging retrieval will be better placed to support that evolution without losing the provenance, identifiers or operational controls on which safe cross-organisational imaging access depends.

Need help with NHS National Imaging Registry API integration?

Is your team looking for help with NHS National Imaging Registry API integration? Click the button below.

Get in touch