Skip to content
Partner Developer Portal

Definition

The Patient resource represents a person registered with an EMIS-X organisation. It returns demographic details held in the EMIS-X Patient API (gender, date of birth, NHS Number and ethnic category). Every Patient returned conforms to the EMIS-X-Patient-1 profile.

Patients are read using an ERN (EMIS Resource Name) in the form ern:{Vendor}:patient:{Type}:{Identifier}. Today a patient can only be read by its EMIS patient GUID, i.e. ern:emis:patient:uuid:{patientGuid}; other vendor/type combinations pass validation but return 404 Not Found. To obtain a patient GUID, use $match (exactly one patient from demographics or NHS Number) or $find (zero or more patients from demographics or date of registration). Both operations return the GUID as a patient-id parameter.

The read interaction supports the _elements query parameter to return a subset of top-level elements; filtered responses carry a SUBSETTED tag in meta.tag. Patients flagged as sensitive in EMIS-X are marked with a sensitive code in meta.security, which is always returned even when _elements is used.

Every Patient returned by the FHIR Platform declares the https://fhir.partner.emis-x.uk/StructureDefinition/emis-x-patient-1 profile in meta.profile.

Paths are relative to the FHIR Platform base URL. Every request needs a bearer token with the listed scope. Responses are application/fhir+json by default, or application/fhir+xml when requested in the Accept header. Errors are returned as an OperationOutcome.

GET /R4/1/Patient/ern:{Vendor}:patient:{Type}:{Identifier}

Returns a single Patient identified by an ERN. Only the emis:uuid combination (the EMIS patient GUID) currently resolves to a patient; other valid vendor/type combinations return 404 Not Found.

  • Scope: fpx-pat.read
  • Returns: Patient
Name In Type Required Description
Vendor path string (enum) Yes The vendor for the patient identifier. Allowed values: emis, nhs, jhs, gha. Only emis currently resolves to a patient.
Type path string (enum) Yes The identifier type for the patient identifier. Must be valid for the vendor: emis → uuid; nhs → number, chi, hospital or hcn; jhs → ssn; gha → number. Any other combination returns 400 Bad Request. Only emis:uuid currently resolves to a patient.
Identifier path string Yes The identifier value. For uuid it must be a non-empty GUID (the EMIS patient GUID); for number it must be a valid NHS Number.
_elements query string No Comma-separated list of top-level elements to return, e.g. _elements=birthDate,name. id and meta are always returned, and the response is tagged SUBSETTED in meta.tag. The ethnic category is only retrieved when _elements is omitted or includes extension.
{
"resourceType": "Patient",
"id": "DD94649D-8BDF-4E6F-8462-EC8219A00A69",
"meta": {
"profile": [
"https://fhir.partner.emis-x.uk/StructureDefinition/emis-x-patient-1"
]
},
"extension": [
{
"url": "https://fhir.partner.emis-x.uk/StructureDefinition/emis-x-patient-ethnic-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "141481000000110",
"display": "Black and Chinese - ethnic category 2001 census"
}
]
}
}
],
"identifier": [
{
"system": "https://fhir.partner.emis-x.uk/Id/nhs-number",
"value": "9449309876"
}
],
"gender": "male",
"birthDate": "1934-02-14"
}
POST /R4/1/Patient/$match

Returns the patient GUID of exactly one patient matching the supplied demographics or NHS Number. Returns 404 Not Found if zero or more than one patient matches.

  • Scope: fpx-pat.read
  • Returns: Parameters
  • OperationDefinition: https://fhir.partner.emis-x.uk/OperationDefinition/emis-x-patient-match-1
Name In Type Required Description
Patient body Patient (emis-x-patient-match-input-1) Yes A candidate Patient resource sent as application/fhir+json or application/fhir+xml (other content types return 415). id must not be populated and meta.profile must contain exactly one value, https://fhir.partner.emis-x.uk/StructureDefinition/emis-x-patient-match-input-1. birthDate is required and must be in the past. Supply exactly one of: (1) a single identifier with system https://fhir.partner.emis-x.uk/Id/nhs-number and a valid NHS Number as value, with no name; or (2) a single name with family populated and no identifier. Only name.family is used for matching. Invalid combinations return 400 Bad Request with an OperationOutcome.
{
"resourceType": "Patient",
"meta": {
"profile": [
"https://fhir.partner.emis-x.uk/StructureDefinition/emis-x-patient-match-input-1"
]
},
"identifier": [
{
"system": "https://fhir.partner.emis-x.uk/Id/nhs-number",
"value": "9990252955"
}
],
"birthDate": "1934-02-14"
}
{
"resourceType": "Parameters",
"meta": {
"profile": [
"https://fhir.partner.emis-x.uk/StructureDefinition/emis-x-patient-match-output-1"
]
},
"parameter": [
{
"name": "patient-id",
"valueUuid": "urn:uuid:eee8c2d3-6062-482e-aec0-865e44cd1194"
}
]
}
POST /R4/1/Patient/$find

Returns the patient GUIDs of zero or more patients matching a single supported set of criteria (demographics or date of registration).

  • Scope: fpx-pat.read
  • Returns: Parameters
  • OperationDefinition: https://fhir.partner.emis-x.uk/OperationDefinition/emis-x-patient-find-1
Name In Type Required Description
Parameters body Parameters (emis-x-patient-find-input-1) Yes A Parameters resource sent as application/fhir+json or application/fhir+xml (other content types return 415). id must not be populated and meta.profile must contain exactly one value, https://fhir.partner.emis-x.uk/StructureDefinition/emis-x-patient-find-input-1. Supply exactly one criteria set. Set A (demographics): surname (valueString, required), exactly one of birthDate (valueDate, in the past) or birthDateRange (valuePeriod with start and end in the past, start before end, spanning less than 10 years), and optionally postcode (valueString; spaces are ignored). Set B (registration): a single dateOfRegistration (valueDate, in the past) or dateOfRegistrationRange (valuePeriod with start and end in the past, start before end, spanning less than 1 year). No other parameters are accepted; invalid combinations or values return 400 Bad Request with an OperationOutcome.
{
"resourceType": "Parameters",
"meta": {
"profile": [
"https://fhir.partner.emis-x.uk/StructureDefinition/emis-x-patient-find-input-1"
]
},
"parameter": [
{ "name": "birthDate", "valueDate": "1989-11-23" },
{ "name": "surname", "valueString": "Taylor" },
{ "name": "postcode", "valueString": "LS1 1AA" }
]
}
{
"resourceType": "Parameters",
"meta": {
"profile": [
"https://fhir.partner.emis-x.uk/StructureDefinition/emis-x-patient-find-output-1"
]
},
"parameter": [
{
"name": "patient-id",
"valueUuid": "urn:uuid:eee8c2d3-6062-482e-aec0-865e44cd1194"
},
{
"name": "patient-id",
"valueUuid": "urn:uuid:99734d16-9908-4667-ad0c-a06fd00f74f4"
}
]
}