Skip to content
Partner Developer Portal

Definition

A Condition represents a problem recorded in a patient’s EMIS Web care record (for example, a long-term diagnosis on the patient’s problem list). Each Condition is returned with the problem-list-item category, a SNOMED CT code and a clinical status derived from the EMIS problem status.

Conditions are always accessed in the context of a patient, identified by an ERN of the form ern:{Vendor}:patient:{Type}:{Identifier} (for example ern:emis:patient:uuid:{patient GUID} or ern:nhs:patient:number:{NHS number}). The Condition id is the GUID of the underlying EMIS record, returned in upper case and repeated in a single identifier.value, without an identifier system.

When the record contains an unambiguous, non-blank severity qualifier, it is returned in severity.text. Severe, Moderate and Mild also include a SNOMED CT coding; other severity terms are returned as text only. An unambiguous, non-blank laterality qualifier is returned as a single text-only bodySite entry. Severity and body site are omitted when their respective qualifiers are absent, blank or recorded more than once.

Searching for a patient’s Conditions returns a searchset Bundle with up to 50 entries per page. When more results are available the Bundle includes a next link containing a cursor query parameter; pass that cursor to retrieve the following page. Every read and search is recorded in the EMIS Web access audit.

Every Condition returned by the FHIR Platform declares the https://fhir.partner.emis-x.uk/StructureDefinition/emis-x-condition-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}/Condition/{ConditionId}

Returns a single Condition, by id, for the given patient.

  • Scope: fpx-cond.read
  • Returns: Condition
Name In Type Required Description
Vendor path string Yes The vendor for the patient identifier. Allowed values: emis, nhs, jhs, gha. Only emis (with Type uuid) and nhs (with Type number) currently resolve a patient; other valid combinations return 404 Not Found.
Type path string Yes The identifier type for the patient identifier. Valid combinations are emis:uuid, nhs:number, nhs:chi, nhs:hospital, nhs:hcn, jhs:ssn and gha:number; any other combination is rejected with 400 Bad Request.
Identifier path string Yes The patient identifier. For Type uuid this must be a non-empty GUID (the EMIS patient GUID); for Type number it must be a valid NHS number.
ConditionId path uuid Yes The id (GUID) of the Condition to return.
_elements query string No Comma-separated list of top-level elements to include in the response. id, meta and mandatory elements are always returned, and the resource is tagged as SUBSETTED.
GET /R4/1/Patient/ern:{Vendor}:patient:{Type}:{Identifier}/Condition

Returns all Conditions for the given patient as a paged searchset Bundle.

  • Scope: fpx-cond.read
  • Returns: Bundle of Condition
Name In Type Required Description
Vendor path string Yes The vendor for the patient identifier. Allowed values: emis, nhs, jhs, gha. Only emis (with Type uuid) and nhs (with Type number) currently resolve a patient; other valid combinations return 404 Not Found.
Type path string Yes The identifier type for the patient identifier. Valid combinations are emis:uuid, nhs:number, nhs:chi, nhs:hospital, nhs:hcn, jhs:ssn and gha:number; any other combination is rejected with 400 Bad Request.
Identifier path string Yes The patient identifier. For Type uuid this must be a non-empty GUID (the EMIS patient GUID); for Type number it must be a valid NHS number.
_elements query string No Comma-separated list of top-level Condition elements to include in each Bundle entry. id, meta and mandatory elements are always returned, and each shaped entry is tagged as SUBSETTED.
cursor query string No Opaque paging cursor taken from the Bundle’s next or previous link. Omit to retrieve the first page (50 entries).