Skip to content
Partner Developer Portal

Schema

Elements of MedicationStatement that the FHIR Platform populates or constrains. Elements not listed here are not populated.

Element Type Cardinality Description
MedicationStatement.id id 1..1 The EMIS Web drug record GUID, in upper case.
MedicationStatement.meta Meta 1..1 Resource metadata.
MedicationStatement.meta.profile canonical 1..* Always the EMIS-X MedicationStatement profile URL.
MedicationStatement.language code 1..1 Language of the resource content. Always en.
Allowed values: en (English) (system: urn:ietf:bcp:47)
MedicationStatement.extension:courseOfTherapyType Extension (valueCodeableConcept) 0..1 The overall pattern of medication administration, derived from the EMIS Web prescription type. Acute is returned as acute; Repeat, Repeat dispensing and Automatic are returned as continuous. valueCodeableConcept.text always holds the EMIS Web prescription type (Acute, Repeat, Repeat dispensing or Automatic). Omitted if the prescription type is not recognised.
Extension URL: https://fhir.partner.emis-x.uk/StructureDefinition/emis-x-course-of-therapy-type
Binding (extensible): http://hl7.org/fhir/ValueSet/medicationrequest-course-of-therapy
Allowed values: acute (Short course (acute) therapy) (system: http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy), continuous (Continuous long term therapy) (system: http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy)
MedicationStatement.extension:supplyDuration Extension (valueDuration) 0..1 The expected supply duration of the current authorisation, in days (UCUM system http://unitsofmeasure.org, code d). Omitted if no duration is recorded in EMIS Web or the recorded duration is not positive.
Extension URL: https://fhir.partner.emis-x.uk/StructureDefinition/emis-x-supply-duration
MedicationStatement.status code 1..1 Status of the medication, derived from the EMIS Web drug status, the issue counts and any cancellation. The authorising organisation is not considered. Evaluated in this order: - stopped: acute medication that has a cancellation recorded in EMIS Web. - completed: any other acute medication, as an acute prescription is a single supply and is complete until it is cancelled; or non-acute medication, current or past, whose recorded authorised issue count equals its issued count of at least one, i.e. every authorised issue has been issued. - active: any other current non-acute medication. - stopped: any other past non-acute medication that has a cancellation recorded in EMIS Web. - unknown: past non-acute medication with no recorded cancellation, or an EMIS Web drug status that is not recognised.
Binding (required): http://hl7.org/fhir/ValueSet/medication-statement-status
Allowed values: active (Active) (system: http://hl7.org/fhir/CodeSystem/medication-statement-status), completed (Completed) (system: http://hl7.org/fhir/CodeSystem/medication-statement-status), stopped (Stopped) (system: http://hl7.org/fhir/CodeSystem/medication-statement-status), unknown (Unknown) (system: http://hl7.org/fhir/CodeSystem/medication-statement-status)
MedicationStatement.medication[x] CodeableConcept 1..1 The medication (medicationCodeableConcept). When the EMIS Web code can be matched to a dm+d preparation, a single coding is returned with system https://dmd.nhs.uk, the dm+d code and its display term. Otherwise no coding is returned and text contains the term recorded in EMIS Web.
MedicationStatement.subject Reference(Patient) 1..1 The patient the medication was recorded for. reference contains the EMIS patient GUID and type is Patient.
MedicationStatement.context Reference(Encounter) 0..1 The consultation linked to the earliest issue that has one. reference contains the EMIS consultation GUID and type is Encounter. The consultation is taken from the earliest issue of the drug record (by effective date, then availability time) that is linked to a consultation. Omitted if no issue is linked to a consultation. There is no Encounter endpoint yet, so the reference cannot currently be resolved.
MedicationStatement.dosage Dosage 1..* Dosage information. One dosage is returned for each structured dosage recorded in EMIS Web, ordered by sequence. When no structured dosage is recorded, a single dosage is returned built from the drug record’s dosage text and patient instruction. Of the structured dosage data, only the sequence, text, patient instruction and as-needed indicator are currently provided.
MedicationStatement.dosage.sequence integer 0..1 The order of the structured dosage within the drug record. Omitted when there is no structured dosage or the sequence is not recorded.
MedicationStatement.dosage.text string 1..1 The dosage instructions of the structured dosage. Falls back to the drug record’s dosage instructions when the structured dosage has none, and to “No information available” when neither was recorded.
MedicationStatement.dosage.patientInstruction string 0..1 Additional instructions for the patient from the structured dosage. Falls back to the drug record’s patient text when the structured dosage has none. Omitted when neither was recorded.
MedicationStatement.dosage.asNeeded[x] boolean 0..1 Whether the medication is to be taken as needed (asNeededBoolean), from the structured dosage it belongs to. Omitted when the as-needed value is not recorded or when there is no structured dosage; a missing value is never returned as false. It is not derived from the free-text dosage.