NHS Wales MPI / developer example
Patient demographic query
Find patient records by identifier or demographic details using SOAP and HL7 v2.5 XML.
Search criteria
Published sandbox examples
From the supplied NHS Wales PDQ specification. Enter these synthetic values in the search form; all valid searches use the public sandbox.
| Search type | Values | Documented scenario |
|---|---|---|
| NHS number | 8888834516 | Existing patient |
| NHS number | 5555599226 | Existing patient |
| NHS number | 1111111111 | No match |
| PAS number | HDD613567Authority: 204 | Hospital identifier search |
| PAS number | E123679Authority: 204 | Hospital identifier search |
| Demographics | Surname: EDWARDSPostcode: SA71 4AEDOB: 1985-09-14 | Demographic search |
| Name + DOB | Surname: HOLMESGiven name: SherlockDOB: 1938-11-08 | Name/date search |
| Name + DOB | Surname: HUDSONGiven name: MarthaDOB: 1939-03-21 | Multiple matches, including deceased patient |
The HOLMES and HUDSON examples use surname + given name + DOB; postcode is optional for this pattern.
The sandbox currently returns HTTP 400 SOAP faults for NHS number 1111111111, PAS number E123679, and the published HOLMES and HUDSON requests, rather than their documented outcomes.
Search validation follows the detailed Valid minimum search criteria section, which permits alternatives to the overview's surname/postcode/DOB rule. Surname case sensitivity is not documented; use the published casing to reproduce examples. Some published response examples contain malformed XML, which the app rejects explicitly.