NHS Digital FHIR Medicines (Retired - 2.1.14)

This guidance is under active development by NHS Digital and content may be added or updated on a regular basis.

MedicationRequest Controlled Drug

This example contains a controlled drug.

{
    "resourceType": "MedicationRequest",
    "id": "a7b86f8d-1d7c-fc28-e050-d20ae3a215f4",
    "extension":  [
        {
            "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType",
            "valueCoding": {
                "system": "https://fhir.nhs.uk/CodeSystem/prescription-type",
                "code": "0101"
            }
        },
        {
            "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug",
            "extension":  [
                {
                    "url": "quantityWords",
                    "valueString": "twenty eight"
                },
                {
                    "url": "schedule",
                    "valueCoding": {
                        "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug",
                        "code": "CD2",
                        "display": "Schedule 2"
                    }
                }
            ]
        },
        {
            "url": "https://fhir.nhs.uk/StructureDefinition/Extension-NHSDigital-Account-code",
            "extension":  [
                {
                    "url": "costCentre",
                    "valueReference": {
                        "identifier": {
                            "use": "official",
                            "system": "https://fhir.nhs.uk/Id/ods-organization-code",
                            "value": "A99968"
                        },
                        "display": "SOMERSET BOWEL CANCER SCREENING CENTRE"
                    }
                },
                {
                    "url": "spuriousCode",
                    "valueReference": {
                        "identifier": {
                            "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code",
                            "value": "G7345213"
                        }
                    }
                }
            ]
        },
        {
            "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation",
            "extension":  [
                {
                    "url": "numberOfPrescriptionsIssued",
                    "valueUnsignedInt": 1
                },
                {
                    "url": "authorisationExpiryDate",
                    "valueDateTime": "2020-08-07"
                }
            ]
        }
    ],
    "identifier":  [
        {
            "system": "https://fhir.nhs.uk/Id/prescription-order-item-number",
            "value": "A7B86F8D-1D7C-FC28-E050-D20AE3A215F0"
        }
    ],
    "status": "active",
    "intent": "original-order",
    "category":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                    "code": "outpatient",
                    "display": "Outpatient"
                }
            ]
        }
    ],
    "medicationCodeableConcept": {
        "coding":  [
            {
                "system": "http://snomed.info/sct",
                "code": "36126511000001106",
                "display": "Morphine 10mg modified-release tablets"
            }
        ]
    },
    "subject": {
        "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2",
        "identifier": {
            "system": "https://fhir.nhs.uk/Id/nhs-number",
            "value": "9453740519"
        }
    },
    "authoredOn": "2019-12-30T12:00:00+00:00",
    "requester": {
        "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"
    },
    "basedOn":  [
        {
            "reference": "https://elmpt-hospitals.nhs.uk/MedicationRequest/654321"
        }
    ],
    "groupIdentifier": {
        "extension":  [
            {
                "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId",
                "valueIdentifier": {
                    "system": "https://fhir.nhs.uk/Id/prescription",
                    "value": "A7B86F8D-1CF8-FC28-E050-D20AE3A215F0"
                }
            }
        ],
        "system": "https://fhir.nhs.uk/Id/prescription-order-number",
        "value": "3C2366-B81001-0A409U"
    },
    "courseOfTherapyType": {
        "coding":  [
            {
                "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy",
                "code": "continuous",
                "display": "Continuous long term therapy"
            }
        ]
    },
    "dosageInstruction":  [
        {
            "text": "1 tablet, daily"
        }
    ],
    "dispenseRequest": {
        "extension":  [
            {
                "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType",
                "valueCoding": {
                    "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference",
                    "code": "0004"
                }
            }
        ],
        "performer": {
            "identifier": {
                "system": "https://fhir.nhs.uk/Id/ods-organization-code",
                "value": "FX748"
            }
        },
        "validityPeriod": {
            "start": "2020-07-13T12:00:00+00:00",
            "end": "2020-08-07T12:00:00+00:00"
        },
        "numberOfRepeatsAllowed": 0,
        "quantity": {
            "value": 28,
            "unit": "tablet",
            "system": "http://snomed.info/sct",
            "code": "428673006"
        }
    },
    "substitution": {
        "allowedBoolean": false
    }
}
<MedicationRequest xmlns="http://hl7.org/fhir">
    <id value="a7b86f8d-1d7c-fc28-e050-d20ae3a215f4" />
    <extension url="https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType">
        <valueCoding>
            <system value="https://fhir.nhs.uk/CodeSystem/prescription-type" />
            <code value="0101" />
        </valueCoding>
    </extension>
    <extension url="https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug">
        <extension url="quantityWords">
            <valueString value="twenty eight" />
        </extension>
        <extension url="schedule">
            <valueCoding>
                <system value="https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug" />
                <code value="CD2" />
                <display value="Schedule 2" />
            </valueCoding>
        </extension>
    </extension>
    <extension url="https://fhir.nhs.uk/StructureDefinition/Extension-NHSDigital-Account-code">
        <extension url="costCentre">
            <valueReference>
                <identifier>
                    <use value="official" />
                    <system value="https://fhir.nhs.uk/Id/ods-organization-code" />
                    <value value="A99968" />
                </identifier>
                <display value="SOMERSET BOWEL CANCER SCREENING CENTRE" />
            </valueReference>
        </extension>
        <extension url="spuriousCode">
            <valueReference>
                <identifier>
                    <system value="https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code" />
                    <value value="G7345213" />
                </identifier>
            </valueReference>
        </extension>
    </extension>
    <extension url="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation">
        <extension url="numberOfPrescriptionsIssued">
            <valueUnsignedInt value="1" />
        </extension>
        <extension url="authorisationExpiryDate">
            <valueDateTime value="2020-08-07" />
        </extension>
    </extension>
    <identifier>
        <system value="https://fhir.nhs.uk/Id/prescription-order-item-number" />
        <value value="A7B86F8D-1D7C-FC28-E050-D20AE3A215F0" />
    </identifier>
    <status value="active" />
    <intent value="original-order" />
    <category>
        <coding>
            <system value="http://terminology.hl7.org/CodeSystem/medicationrequest-category" />
            <code value="outpatient" />
            <display value="Outpatient" />
        </coding>
    </category>
    <medicationCodeableConcept>
        <coding>
            <system value="http://snomed.info/sct" />
            <code value="36126511000001106" />
            <display value="Morphine 10mg modified-release tablets" />
        </coding>
    </medicationCodeableConcept>
    <subject>
        <reference value="urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" />
        <identifier>
            <system value="https://fhir.nhs.uk/Id/nhs-number" />
            <value value="9453740519" />
        </identifier>
    </subject>
    <authoredOn value="2019-12-30T12:00:00+00:00" />
    <requester>
        <reference value="urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" />
    </requester>
    <basedOn>
        <reference value="https://elmpt-hospitals.nhs.uk/MedicationRequest/654321" />
    </basedOn>
    <groupIdentifier>
        <extension url="https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId">
            <valueIdentifier>
                <system value="https://fhir.nhs.uk/Id/prescription" />
                <value value="A7B86F8D-1CF8-FC28-E050-D20AE3A215F0" />
            </valueIdentifier>
        </extension>
        <system value="https://fhir.nhs.uk/Id/prescription-order-number" />
        <value value="3C2366-B81001-0A409U" />
    </groupIdentifier>
    <courseOfTherapyType>
        <coding>
            <system value="http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy" />
            <code value="continuous" />
            <display value="Continuous long term therapy" />
        </coding>
    </courseOfTherapyType>
    <dosageInstruction>
        <text value="1 tablet, daily" />
    </dosageInstruction>
    <dispenseRequest>
        <extension url="https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType">
            <valueCoding>
                <system value="https://fhir.nhs.uk/CodeSystem/dispensing-site-preference" />
                <code value="0004" />
            </valueCoding>
        </extension>
        <validityPeriod>
            <start value="2020-07-13T12:00:00+00:00" />
            <end value="2020-08-07T12:00:00+00:00" />
        </validityPeriod>
        <numberOfRepeatsAllowed value="0" />
        <quantity>
            <value value="28" />
            <unit value="tablet" />
            <system value="http://snomed.info/sct" />
            <code value="428673006" />
        </quantity>
        <performer>
            <identifier>
                <system value="https://fhir.nhs.uk/Id/ods-organization-code" />
                <value value="FX748" />
            </identifier>
        </performer>
    </dispenseRequest>
    <substitution>
        <allowedBoolean value="false" />
    </substitution>
</MedicationRequest>
MedicationRequest
back to top