UKCore-MedicationDispense

Tree View

idΣ0..1string
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..*Resource
extensionC0..*Extension
modifierExtension?! C0..*Extension
identifierS0..*Identifier
partOfC0..*Reference(Procedure)
statusS Σ ?!1..1codeBinding
statusReasonCodeableConceptCodeableConcept
statusReasonReferenceReference(DetectedIssue)
category0..1CodeableConceptBinding
medicationCodeableConceptCodeableConcept
medicationReferenceReference(Medication)
subjectS Σ C0..1Reference(Group | Patient)
contextC0..1Reference(Encounter | EpisodeOfCare)
supportingInformationC0..*Reference(Resource)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
function0..1CodeableConcept
actorC1..1Reference(Device | Organization | Patient | Practitioner | PractitionerRole | RelatedPerson)
locationC0..1Reference(Location)
authorizingPrescriptionC0..*Reference(MedicationRequest)
type0..1CodeableConceptBinding
quantityS C0..1SimpleQuantity
daysSupplyC0..1SimpleQuantity
whenPreparedS Σ0..1dateTime
whenHandedOver0..1dateTime
destinationC0..1Reference(Location)
receiverC0..*Reference(Patient | Practitioner)
note0..*Annotation
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
sequenceΣ0..1integer
textS Σ0..1string
additionalInstructionΣ0..*CodeableConcept
patientInstructionΣ0..1string
timingS Σ0..1Timing
asNeededBooleanboolean
asNeededCodeableConceptCodeableConcept
siteΣ0..1CodeableConceptBinding
routeΣ0..1CodeableConceptBinding
methodΣ0..1CodeableConceptBinding
id0..1string
extensionC0..*Extension
typeΣ0..1CodeableConcept
doseQuantitySimpleQuantity
doseRangeRange
rateQuantitySimpleQuantity
rateRangeRange
rateRatioRatio
maxDosePerPeriodΣ C0..1Ratio
maxDosePerAdministrationΣ C0..1SimpleQuantity
maxDosePerLifetimeΣ C0..1SimpleQuantity
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
wasSubstituted1..1boolean
type0..1CodeableConcept
reason0..*CodeableConcept
responsiblePartyC0..*Reference(Practitioner | PractitionerRole)
detectedIssueC0..*Reference(DetectedIssue)
eventHistoryC0..*Reference(Provenance)

Example - Completed Dispensing

{
  "resource": {
    "resourceType": "MedicationDispense",
    "meta": {
      "profile": [
        "https://fhir.nhs.uk/StructureDefinition/UKCore-MedicationDispense"
      ]
    },
    "id": "312d757e-21f1-4f10-9f02-1746768bc31d",
    "status": "completed",
    "medicationCodeableConcept": {
      "coding": [
        {
          "system": "http://dmd-nhs.uk",
          "code": "42234211000001100",
          "display": "ProSource 20 liquid red berry (Nutrinovo Ltd)"
        }
      ]
    },
    "subject": {
      "identifier": {
        "system": "https://fhir.nhs.uk/Id/nhs-number",
        "value": "9449304130"
      },
      "display": "Mr Michael Mouser"
    },
    "performer": [
      {
        "actor": {
          "reference": "urn:uuid:7535862a-d46b-43a3-9d7f-2f489861e24c"
        }
      }
    ],
    "authorizingPrescription": [
      {
        "reference": "urn:uuid:7dc0390a-f416-4d8a-9751-257bfa6294cd"
      }
    ],
    "quantity": {
      "value": 60,
      "unit": "tablets",
      "system": "http://snomed.info/sct",
      "code": "428673006"
    },
    "whenPrepared": "2025-11-07T11:45:00+00:00",
    "dosageInstruction": [
      {
        "text": "Swallow 2 tablets - 3 times a day - for 1 week"
      }
    ]
  }
}

Example - Stopped / Non-Dispensing

{
  "resource": {
    "resourceType": "MedicationDispense",
    "meta": {
      "profile": [
        "https://fhir.nhs.uk/StructureDefinition/UKCore-MedicationDispense"
      ]
    },
    "id": "312d757e-21f1-4f10-9f02-1746768bc31d",
    "status": "stopped",
    "statusReasonCodeableConcept": {
      "text": "Cannot be hub assembled as per regulations as a Controlled Drug medication"
    },
    "medicationCodeableConcept": {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason",
          "valueCode": "not-applicable"
        }
      ]
    },
    "subject": {
      "identifier": {
        "system": "https://fhir.nhs.uk/Id/nhs-number",
        "value": "9449304130"
      },
      "display": "Mr Michael Mouser"
    },
    "performer": [
      {
        "actor": {
          "reference": "urn:uuid:7535862a-d46b-43a3-9d7f-2f489861e24c"
        }
      }
    ],
    "authorizingPrescription": [
      {
        "reference": "urn:uuid:7dc0390a-f416-4d8a-9751-257bfa6294cd"
      }
    ]
  }
}


Required / Minimum Dataset

The required fields that represent the minimum dataset to be shared with the spoke pharmacy (the requester) for medication assembled, labelled and shipped to the spoke pharmacy are as follows.

Element Implementation Requirements
id A locally generated UUID
status Fixed value completed
medicationCodeableConcept The dm+d code, display and system for the dispensed medication. If the dispensed medication cannot be mapped to a valid dm+d concept then use .text.
subject An identifier for the patient using NHS Number. Where NHS Number is not known use the unique identifier as provided by the requestor.
performer A reference to an Organization resource for the hub pharmacy.
authorizingPrescription A reference to the UKCore-MedicationRequest that is being dispensed against.
quantity The quantity of medication dispensed.
whenPrepared Date and time of medication assembly and labelling.
dosageInstruction.patientInstruction The dosing instruction as printed on the medication dispensing label.

Failed / Non-Dispensing

If the hub dispensing process has failed and no medication is to be shipped to the spoke pharmacy then a MedicationDispense resource should still be posted to the spoke pharmacy with the following data.

Element Implementation Requirements
id A locally generated UUID
status Fixed value stopped
statusReasonCodeableConcept.text The reason the medication could not be assembled by the hub pharmacy.
medicationCodeableConcept A mandatory element within the UKCore profile so populate with the extension data-absent-reason.
subject An identifier for the patient using NHS Number. Where NHS Number is not known use the unique identifier as provided by the requestor.
performer A reference to an Organization resource for the hub pharmacy.
authorizingPrescription A reference to the UKCore-MedicationRequest that is being dispensed against.