Written by Technical Team | Last updated 07.11.2026 | 20 minute read
The NHS Wales Digital Platform provides a managed interface for applications to access and exchange information with national health systems in Wales. Developed by Digital Health and Care Wales (DHCW), it exposes services through a catalogue of APIs, with common mechanisms for authentication, access control, testing, monitoring and operational governance.
For digital health suppliers already integrating with NHS England services, the platform offers a familiar approach to API-based interoperability, but the underlying systems, available resources and approval processes are different. An existing integration with NHS England’s Personal Demographics Service (PDS), for example, does not automatically provide access to the Welsh Master Patient Index (MPI). Similarly, an application using FHIR elsewhere in the NHS cannot assume that the same resources, profiles or operations will be supported in Wales.
Understanding the platform requires looking beyond its API catalogue. Developers need to establish where the underlying clinical information resides, how individual services expose that information, what happens at the API gateway, and which responsibilities remain with the consuming application.
The NHS Wales Digital Platform follows an API-led architecture in which managed interfaces provide controlled access to services and data held within the NHS Wales digital estate.
Its API management layer sits between consuming applications and the systems providing the requested functionality. Rather than allowing each supplier to establish a separate, direct connection with every clinical system, the platform provides a common route through which supported services can be published, secured and monitored.
The architecture can be understood through three functional layers.
The first is the consuming application, which might be a clinical decision-support system, patient engagement application, integration engine or third-party digital health product. It generates requests, authenticates with the platform and processes the responses according to its approved use case.
The second is the API management layer, which exposes managed endpoints and enforces the relevant security and traffic-management controls. This includes validating credentials, applying access policies, implementing rate limits and recording API activity. The platform also provides the infrastructure through which API products are published and maintained.
The third comprises the underlying NHS Wales services and data repositories. These include patient identification services, clinical record repositories, terminology services, medication systems and national messaging infrastructure. Each service has its own functional responsibilities, data model and access constraints.
An API request therefore follows a logical sequence: the consuming application obtains the necessary credentials, submits a request to the managed endpoint, passes the platform’s security controls and receives a response generated by the appropriate backend service.
This arrangement separates the public-facing API contract from the implementation of the underlying system. Backend services can evolve without requiring every consumer to connect directly to their internal interfaces, provided the published API contract remains compatible.
It does not, however, mean that all national systems are accessible through a single universal data model. NHS Wales contains services developed for different clinical and operational purposes, and the platform exposes their capabilities through distinct API products.
Some APIs use REST and JSON, others use HL7 FHIR, while certain interfaces support established healthcare messaging and identification standards. The appropriate integration method depends on the specific service.
DHCW’s API publishing model includes an API proxy, discovery documentation and an OpenAPI specification.
The proxy is the managed entry point through which requests reach an underlying service. It can apply authentication, validation, traffic controls and other policies before forwarding traffic to the backend.
The OpenAPI specification describes the interface presented to consumers, including its operations, parameters, request and response structures, and documented error conditions.
These elements are grouped into an API product published through the portal. API product configurations are maintained through repositories and deployment pipelines, allowing changes to be managed across environments.
The platform also supports URL-based versioning, such as /v1, so that changes to an interface can be introduced without necessarily disrupting existing consumers.
For application developers, the published specification should be treated as the technical contract. It is preferable to generate or validate client implementations against the relevant specification rather than relying on assumptions derived from another NHS integration.
The specification alone will not describe every operational constraint. Permitted use cases, rate limits, patient-level access rules and connectivity arrangements may also depend on the application’s onboarding approval.
The NHS Wales API Catalogue brings together managed interfaces covering patient identity, clinical information, medications, terminology, messaging and supporting infrastructure.
It contains APIs at different maturity levels, including discovery, alpha, beta and stable. An API being listed does not necessarily mean that every supplier can access it in production, or that every operation is available for every use case.
Several API families are particularly relevant when designing clinical applications.
The Welsh Master Patient Index provides patient identification and matching capabilities across NHS Wales systems.
Two relevant interfaces are the Patient Demographic Query (MPI PDQ) and Patient Identifier Cross-Reference (MPI PIX) APIs.
MPI PDQ supports demographic searches using information such as NHS number, date of birth, sex and address. It implements the Patient Demographic Query integration profile from Integrating the Healthcare Enterprise (IHE).
A clinical application can use this service to identify or verify the patient before requesting information from another system.
MPI PIX addresses a related but different problem: identifying the corresponding local identifiers associated with a patient. It implements the IHE Patient Identifier Cross-Reference profile and allows applications to resolve identifiers used by different hospital systems.
This becomes relevant when an application needs to retrieve records from systems that identify the same patient differently.
For example, a clinical application might identify a person using an NHS number but need a local hospital identifier to access a record in a particular system. The identifier cross-reference service can support that resolution where the relevant relationships are available.
Applications should not assume that a demographic search always returns exactly one match. Matching workflows need to handle ambiguous results, incomplete demographic information and cases where no matching record is found.
Patient identity should be established before clinical records are associated with a local patient account. Automatically selecting the first demographic search result is not an acceptable substitute for a properly designed matching process.
The catalogue includes APIs associated with the Clinical Data Repository (CDR), including a read-only FHIR store.
The CDR FHIR Store API provides access to supported clinical resources such as patient demographics, medications, allergies, observations and diagnostic information.
The use of HL7 FHIR enables applications to work with structured healthcare resources rather than depending entirely on proprietary data formats.
However, FHIR support should not be interpreted as unrestricted access to every resource or operation defined by the standard. Access to the CDR’s resources is determined by the application’s approved use case.
A system requiring medication information might receive permission to access certain medication-related resources without receiving permission to retrieve unrelated clinical information.
The catalogue also identifies a CDR HL7v2 interface, a FHIR bundle message processor and a FHIR bundle validator. These services support different aspects of clinical data integration, including message storage, validation and processing.
The CDR interfaces use Google Cloud Healthcare API capabilities. Developers working with them therefore need to understand both the relevant healthcare messaging standards and the specific contracts exposed by DHCW.
FHIR resources should be handled according to the profiles and implementation requirements applicable to the API. In particular, developers should examine identifier systems, required elements, supported search parameters, terminology bindings and reference resolution.
A FHIR Patient resource returned by one service should not be assumed to have identical identifiers, extensions or search behaviour to a Patient resource returned by another.
The Welsh Care Records Service (WCRS) provides access to clinical documents held within the NHS Wales environment.
The API catalogue includes interfaces for retrieving a patient’s document list and obtaining a PDF rendering of a selected document.
The document-list interface uses a patient identifier to query indexed records, while the document retrieval interface provides access to the document itself.
This enables a document-oriented integration pattern. An application first identifies the patient, retrieves the available document metadata and then requests the appropriate document when required by the clinical workflow.
For example, a specialist application could use an approved integration to retrieve relevant discharge correspondence or care documentation for a clinician reviewing a patient.
Developers should distinguish between document retrieval and structured clinical data retrieval.
A PDF containing a discharge summary may be useful for clinical review, but it is not equivalent to a structured FHIR resource containing individually coded diagnoses, observations or medications. Extracting clinical meaning from document content introduces separate validation, provenance and patient-safety considerations.
Where an application requires machine-readable information, its design should establish whether a structured API is available rather than assuming that document retrieval can satisfy the requirement.
The Shared Medications Record API supports reading and writing medication activity from multiple sources using FHIR.
Medication integration requires particular attention to record provenance, clinical status and the distinction between a prescription, an administration event and a statement about a patient’s medication use.
Applications should verify which medication activities and operations are supported by the approved interface before designing workflows that update or reconcile clinical information.
The platform also exposes terminology services through FHIR interfaces. These provide access to standardised clinical terms, codes, synonyms and definitions. Transactional terminology endpoints are intended for short interactions, such as populating clinical selection controls or validating terminology during data entry, rather than large-scale analytical extraction.
For patient-facing workflows, the catalogue includes NHS Wales App services covering general messaging, personalised feature settings and prescription collection notifications.
The prescription notification API, for example, allows an authorised system to submit information identifying patients by NHS number and specifying the pharmacy location where medication is ready for collection.
These interfaces support focused integration with patient communication functions. They should not be treated as a general-purpose mechanism for accessing all NHS Wales App functionality.
NHS Wales APIs hosted on the NHS Wales network require authentication. The available authentication mechanisms depend on the API product and the application’s registration.
One of the platform’s published services is Authorization Service V0, which supports OAuth-based access using signed JSON Web Tokens (JWTs).
Under this model, an application constructs and signs a JWT using its private key. The authorisation service validates the assertion against the public key registered for that application and, when the request is accepted, issues a time-limited bearer token for the associated API.
The application then includes the access token in subsequent requests to the protected service.
This separates the mechanism used to establish application identity from the credential presented when accessing the API.
Private keys should be protected using appropriate secrets-management or key-management infrastructure. They should not be embedded in frontend applications, committed to source control or included in application logs.
A backend integration service is generally the appropriate place to perform token acquisition and make protected API calls. This avoids exposing credentials through a browser or mobile application and provides a controlled location for request validation, auditing and operational monitoring.
The platform also lists connection-test APIs supporting bearer-token and API-key authentication patterns, including an X-API-KEY header mechanism.
These should be understood as supported patterns for particular API products, rather than an indication that every NHS Wales API accepts all authentication methods.
Authentication of the consuming application does not, by itself, establish the identity of the clinician or other individual accessing patient information.
For APIs returning patient-sensitive data, DHCW requires an end-user identifier, such as an email address or another agreed identifier, to be supplied with each request.
This creates two distinct identity concerns.
The application must demonstrate that it is an authorised consumer of the API, while the clinical workflow must establish which user is responsible for accessing the information.
A supplier should therefore design its identity and access-control model to preserve the relationship between the authenticated user, the selected patient and the clinical action being performed.
If a backend service makes calls on behalf of multiple users, each request must retain the correct user context. Using a shared service account without preserving the individual user’s identity would undermine the intended audit model.
The exact identity fields, headers or other request attributes must be taken from the relevant API authorisation documentation and agreed integration configuration.
The platform includes the National Intelligent Integrated Audit Solution (NIIAS) Audit Proxy API.
NIIAS supports the recording of access to patient clinical records, including scenarios where a system retrieves and temporarily holds information before an end user views it.
This distinction is relevant for applications that separate backend data retrieval from the point at which information becomes visible to a clinician.
For example, a system may retrieve information as part of an authorised workflow and later display that information when a user opens a patient record. The audit design must account for the actual access event rather than assuming that a backend API request always represents the complete clinical access history.
Implementations should preserve the necessary user, patient, action and timing information to meet the applicable auditing requirements.
The audit service is not a substitute for internal application audit logs. Suppliers still need appropriate records for security investigations, support and clinical safety, while avoiding unnecessary duplication of sensitive patient information.
DHCW’s acceptable use requirements restrict API activity to the approved purpose and legal basis.
They also prohibit systematic crawling of APIs and generally require applications to retrieve current data when needed rather than maintaining local caches.
Caching patient data requires explicit agreement where an exception is necessary.
This affects architectural decisions around local persistence, offline functionality, background synchronisation and data aggregation. A system originally designed to ingest an entire patient population into its own database may need a different integration pattern for NHS Wales.
A safer default is to request the minimum information necessary for the active workflow, retain it only as permitted, and avoid storing duplicate clinical records without a documented and approved requirement.
Integrating with NHS Wales APIs: The NHS Wales Digital Platform provides a secure, managed route for accessing national healthcare services, including the Welsh Master Patient Index (MPI), Clinical Data Repository (CDR) and Welsh Care Records Service (WCRS). However, NHS Wales API integration requires more than connecting to an endpoint. Digital health suppliers must verify API capabilities, meet DHCW security and governance requirements, and obtain appropriate approval before accessing live patient data. Existing NHS England integrations do not automatically grant access to NHS Wales services.
The NHS Wales Digital Platform defines five environments covering API development, testing and operation: Sandbox, Development, System Integration Testing (SIT), User Acceptance Testing (UAT) and Production.
The sandbox is intended for early exploration. It is isolated from the NHS Wales network and production data, enabling developers to examine supported API behaviour without interacting with live clinical services.
Sandbox implementations are particularly useful when validating request formats, developing client libraries and experimenting with sample responses.
They should not be assumed to reproduce every operational characteristic of production, including live data quality, access restrictions, backend latency or failure behaviour.
Development is primarily used by API provider teams building and integrating services.
SIT supports more comprehensive technical testing. This includes integration validation, security testing, penetration testing and load testing. Load testing helps establish acceptable production rate limits.
UAT allows approved applications to demonstrate working integrations to their intended users before operational deployment.
Production is the environment in which authorised applications access live services. Sensitive-data requests are subject to auditing, and operational incidents are handled through NHS Wales support arrangements.
The platform uses separate portal arrangements for non-production and production-related environments.
Third-party suppliers cannot independently request full API portal access without NHS Wales organisational sponsorship.
A sponsoring NHS Wales organisation must initiate the appropriate access process, including the necessary organisational and security approvals.
For an England-based supplier, obtaining a sandbox connection is therefore a different activity from gaining access to SIT, UAT or production.
The distinction should influence project planning from the beginning. Teams can often investigate API designs and implement early prototypes using sandbox resources, but progression towards live integration depends on the sponsoring organisation and the formal onboarding process.
DHCW reviews applications against the proposed use case, architecture, security arrangements and relevant governance requirements.
The documented onboarding decision process can take up to 25 days, depending on the application and the clarity of its design. This is not a guarantee that the complete technical integration or production deployment will be finished within that period.
Applications are also prioritised according to DHCW’s Integrated Medium Term Plan (IMTP). Requests without an associated IMTP milestone reference may face delays or rejection.
Before submission, suppliers should establish the exact APIs required, anticipated request volumes, relevant health board or national service, data flows, hosting arrangements and the people responsible for operational support.
The onboarding process calls for evidence covering several areas, including:
Non-NHS Wales consumers may also require an approved code of connection before obtaining SIT access.
Production approval involves agreement to the platform’s API Connection Terms and may include a charging arrangement.
The technical integration should be developed alongside the assurance work rather than leaving security and governance documentation until testing is complete. Decisions about caching, user identity, logging, hosting and operational responsibility are difficult to retrofit after the application architecture has been fixed.
A successful request in the sandbox establishes only that a particular interaction works under the conditions tested.
Production readiness requires a broader test strategy.
Applications need to handle expired credentials, rejected authorisation requests, malformed responses, HTTP errors, rate limiting and periods when the backend service is unavailable.
They must also handle incomplete clinical records and unexpected data without silently substituting misleading information.
Timeouts and retry policies deserve careful attention. Retrying a failed read request may be appropriate when the failure is transient, but automatically retrying a write operation can create duplicate actions if the original request succeeded and only the response was lost.
Where a write API supports idempotency or duplicate detection, the application should use the documented mechanism. Otherwise, reconciliation may be needed before repeating an operation.
A circuit breaker can prevent an application from continually calling an unavailable service, while bounded retries with exponential backoff can reduce unnecessary traffic during short disruptions.
The user interface also needs a defined failure state. If clinical information cannot be retrieved, users should be told that the data is unavailable rather than being shown an empty record that could incorrectly suggest no clinical information exists.
A maintainable NHS Wales integration benefits from a clearly separated service boundary between the application and the platform.
Rather than embedding NHS Wales-specific API requests throughout the product, an integration component can own authentication, request construction, response validation, audit context, error handling and observability.
This is especially useful for suppliers operating across both England and Wales.
The underlying application may use a common internal representation of a patient, medication or clinical observation, but each national integration should translate between that representation and the specific contracts of the target service.
This approach avoids assuming that equivalent business functions are implemented identically.
For example, a supplier might support patient identification through NHS England’s PDS and NHS Wales’ MPI. Both integrations contribute to patient identity workflows, but they differ in endpoints, available operations, authorisation, response handling and governance.
A shared internal patient model can reduce duplication without concealing those differences.
The mapping layer must preserve source identifiers, relevant coding systems and provenance rather than flattening records into a representation that loses clinically significant information.
Operational monitoring should distinguish platform connectivity failures from API-level authorisation errors and backend service failures.
A request returning HTTP 401 may indicate an expired or invalid credential. HTTP 403 can indicate insufficient permission, while HTTP 429 typically indicates that a rate limit has been encountered. Server-side errors may represent temporary failures, although the exact interpretation should follow the API’s documented error contract.
Applications should record request timing, endpoint identity, HTTP status, retry count and a suitable correlation identifier.
Logs should avoid storing access tokens, private keys, unrestricted clinical payloads or sensitive patient identifiers unless explicitly required and appropriately protected.
Useful metrics include API request volume, latency distributions, error rates, authentication failures and the proportion of calls affected by throttling.
For patient-facing services, it may also be useful to monitor whether API failures prevent a user from completing a particular workflow, such as retrieving a clinical document or submitting a medication-related update.
DHCW provides API monitoring and platform-level operational arrangements, but suppliers remain responsible for observing their own applications and diagnosing failures within their systems.
Incident management should therefore identify where responsibilities change between the supplier, the sponsoring organisation and DHCW. Support teams need enough technical evidence to establish whether a fault originates in the client, network connection, managed API layer or underlying service.
NHS Wales API products are versioned, and the catalogue includes services at different stages of maturity.
Suppliers should track the version and status of each API they consume and assess changes before deploying updated clients.
OpenAPI specifications can be incorporated into automated contract testing to identify incompatible changes in required fields, response structures and supported operations.
FHIR-based integrations additionally benefit from validation against the applicable resource profiles and terminology requirements.
A new field appearing in a response should not ordinarily cause an otherwise valid integration to fail, but an unexpected change to a required field or identifier system may need explicit handling.
Likewise, applications should not assume that every value in a clinical terminology set will remain unchanged indefinitely. Where terminology drives clinical logic, updates require controlled testing and review.
API configuration should be managed separately for each environment, with distinct credentials, endpoints and deployment settings. Production credentials should never be copied into test environments, and real patient data must not be introduced into non-production environments.
The available APIs support several practical integration patterns, but each requires a specific service capability and approved use case.
An application providing clinicians with a consolidated patient view could combine MPI-based identification with approved access to structured CDR information or WCRS documents.
A medication management product could investigate the Shared Medications Record API and any relevant terminology services, while ensuring its data model correctly distinguishes medication events and sources.
A pharmacy-related system could examine prescription collection notifications through the NHS Wales App, provided the intended workflow and participating organisations meet the relevant requirements.
A clinical data integration service might work with FHIR bundles, HL7v2 messages or subscription registration capabilities, depending on the direction of information flow and the services involved.
The National Subscription Registration Service, for example, is designed to allow consuming systems to manage which messages are routed to them. That provides a different integration pattern from repeatedly polling a clinical endpoint for updates.
These opportunities are not interchangeable. An API capable of returning clinical documents cannot necessarily support clinical data submission, and an API offering read-only FHIR access cannot be used to update patient records.
The first engineering task should therefore be to map the intended workflow to the exact operations supported by the relevant API products.
For a supplier planning an NHS Wales implementation, a useful starting sequence is to inspect the catalogue, identify the required operations and maturity levels, test representative interactions in the sandbox, confirm the sponsoring NHS Wales organisation, and establish the required production access arrangements.
The resulting architecture should explicitly document patient identity resolution, authorised data access, user-level audit context, permissible data retention, failure handling and operational ownership.
The NHS Wales Digital Platform provides the managed interfaces for these integrations, but it does not remove the need for application-specific engineering. Reliable implementations depend on understanding the contracts and constraints of the individual APIs, preserving clinical context throughout the data flow and operating the connection as a supported part of a live healthcare service.
Is your team looking for help with NHS Wales Digital Platform API integration? Click the button below.
Get in touch