ePMA Implementation Guidance for FHIR STU3

This guidance is under active development by NHS Digital and content may be added or updated on a regular basis.
Please note: This guidance has been superseded by the Implementation guide for digitial medicines, which contains up-to-date information.

Scenario: Outpatient Discharge

Patient Carrie Oakey has attended the dermatology outpatients clinic and is prescribed Betamethasone valerate 0.1% cream to be applied twice daily for 2 weeks.

MedicationRequest

Note: This example below is a draft and requires clinical verification.
<!-- This xml example is for illustrative purposes only and has not been clinically verified. -->
<Bundle xmlns="http://hl7.org/fhir">
    <id value="32e2adf8-595b-4b39-b6f1-f0073464c7f9" />
    <type value="message" />
    <!--      Message Header      -->
    <entry>
        <fullUrl value="message-header-167434" />
        <resource>
            <MessageHeader>
                <id value="message-header-167434" />
                <text>
                    <status value="generated" />
                    <div xmlns="http://www.w3.org/1999/xhtml"><p>The quick brown fox jumps over the lazy dog</p></div>
                </text>
                <event>
                    <system value="https://fhir.nhs.uk/STU3/CodeSystem/EventType-1" />
                    <code value="individual-requirements-1" />
                    <display value="Individual Requirements" />
                </event>
                <timestamp value="2021-05-07T16:15:32Z" />
                <source>
                    <endpoint value="nhs-uk:addressing:ods:T48NT" />
                </source>
                <focus>
                    <reference value="med-req-56745612" />
                </focus>
            </MessageHeader>
        </resource>
    </entry>
    <!-- Patient associated with the encounter. -->
    <entry>
        <fullUrl value="patient-748395739" />
        <resource>
            <Patient>
                <id value="patient-748395739" />
                <identifier>
                    <extension url="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1">
                        <valueCodeableConcept>
                            <coding>
                                <system value="https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-NHSNumberVerificationStatus-1" />
                                <code value="01" />
                                <display value="Number present and verified" />
                            </coding>
                        </valueCodeableConcept>
                    </extension>
                    <system value="https://fhir.nhs.uk/Id/nhs-number" />
                    <value value="748395739" />
                </identifier>
                <name>
                    <use value="official" />
                    <text value="Miss Carrie Oakey" />
                    <family value="Oakey" />
                    <given value="Carrie" />
                    <prefix value="Miss" />
                </name>
                <gender value="male" />
                <birthDate value="1977-06-04" />
            </Patient>
        </resource>
    </entry>
    <!-- Prescribing clinician associated with the encounter.  -->
    <entry>
        <fullUrl value="staff-0001" />
        <resource>
            <Practitioner>
                <id value="staff-0001" />
                <name>
                    <text value="Dr Justin Thyme" />
                    <family value="Thyme" />
                    <given value="Justin" />
                    <prefix value="Dr" />
                </name>
                <qualification>
                    <code>
                        <coding>
                            <system value="https://fhir.hl7.org.uk/Id/gmc-number" />
                            <code value="2145879" />
                            <display value="General Medical Council" />
                        </coding>
                    </code>
                </qualification>
            </Practitioner>
        </resource>
    </entry>
    <!-- Medication prescribed  -->
    <entry>
        <fullUrl value="medication-27658006" />
        <resource>
            <Medication>
                <id value="medication-27658006" />
                <code>
                    <coding>
                        <system value="http://snomed.info/sct" />
                        <code value="374372000" />
                        <display value="Betamethasone valerate 0.1% cream" />
                    </coding>
                </code>
            </Medication>
        </resource>
    </entry>
    <!--  Medication Request  -->
    <entry>
        <fullUrl value="med-req-56745612" />
        <resource>
            <MedicationRequest>
                <id value="med-req-56745612" />
                <status value="active" />
                <intent value="order" />
                <category>
                    <coding>
                        <system value="http://hl7.org/fhir/medication-request-category" />
                        <code value="inpatient" />
                        <display value="inpatient" />
                    </coding>
                </category>
                <medicationReference>
                    <reference value="medication-374372000" />
                    <display value="Betamethasone valerate 0.1% cream" />
                </medicationReference>
                <subject>
                    <reference value="patient-748395739" />
                    <display value="Miss Carrie Oakey" />
                </subject>
                <authoredOn value="2020-05-20T10:51:00Z" />
                <requester>
                    <agent>
                        <reference value="staff-0001" />
                        <display value="Dr Justin Thyme" />
                    </agent>
                </requester>
                <recorder>
                    <reference value="staff-0001" />
                    <display value="Dr Justin Thyme" />
                </recorder>
                <dosageInstruction>
                    <timing>
                        <repeat>
                            <duration value="2" />
                            <durationUnit value="wk" />
                            <frequency value="2" />
                            <period value="1" />
                            <periodUnit value="d" />
                        </repeat>
                    </timing>
                    <method>
                        <coding>
                            <system value="http://snomed.info/sct" />
                            <code value="417924000" />
                            <display value="Apply" />
                        </coding>
                    </method>
                </dosageInstruction>
                <substitution>
                    <allowed value="false" />
                </substitution>
            </MedicationRequest>
        </resource>
    </entry>
</Bundle>
{
    "resourceType": "Bundle",
    "id": "32e2adf8-595b-4b39-b6f1-f0073464c7f9",
    "type": "message",
    "entry":  [
        {
            "fullUrl": "message-header-167434",
            "resource": {
                "resourceType": "MessageHeader",
                "id": "message-header-167434",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>The quick brown fox jumps over the lazy dog</p></div>"
                },
                "event": {
                    "system": "https://fhir.nhs.uk/STU3/CodeSystem/EventType-1",
                    "code": "individual-requirements-1",
                    "display": "Individual Requirements"
                },
                "timestamp": "2021-05-07T16:15:32+00:00",
                "source": {
                    "endpoint": "nhs-uk:addressing:ods:T48NT"
                },
                "focus":  [
                    {
                        "reference": "med-req-56745612"
                    }
                ]
            }
        },
        {
            "fullUrl": "patient-748395739",
            "resource": {
                "resourceType": "Patient",
                "id": "patient-748395739",
                "identifier":  [
                    {
                        "extension":  [
                            {
                                "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1",
                                "valueCodeableConcept": {
                                    "coding":  [
                                        {
                                            "system": "https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-NHSNumberVerificationStatus-1",
                                            "code": "01",
                                            "display": "Number present and verified"
                                        }
                                    ]
                                }
                            }
                        ],
                        "system": "https://fhir.nhs.uk/Id/nhs-number",
                        "value": "748395739"
                    }
                ],
                "name":  [
                    {
                        "use": "official",
                        "text": "Miss Carrie Oakey",
                        "family": "Oakey",
                        "given":  [
                            "Carrie"
                        ],
                        "prefix":  [
                            "Miss"
                        ]
                    }
                ],
                "gender": "male",
                "birthDate": "1977-06-04"
            }
        },
        {
            "fullUrl": "staff-0001",
            "resource": {
                "resourceType": "Practitioner",
                "id": "staff-0001",
                "name":  [
                    {
                        "text": "Dr Justin Thyme",
                        "family": "Thyme",
                        "given":  [
                            "Justin"
                        ],
                        "prefix":  [
                            "Dr"
                        ]
                    }
                ],
                "qualification":  [
                    {
                        "code": {
                            "coding":  [
                                {
                                    "system": "https://fhir.hl7.org.uk/Id/gmc-number",
                                    "code": "2145879",
                                    "display": "General Medical Council"
                                }
                            ]
                        }
                    }
                ]
            }
        },
        {
            "fullUrl": "medication-27658006",
            "resource": {
                "resourceType": "Medication",
                "id": "medication-27658006",
                "code": {
                    "coding":  [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "374372000",
                            "display": "Betamethasone valerate 0.1% cream"
                        }
                    ]
                }
            }
        },
        {
            "fullUrl": "med-req-56745612",
            "resource": {
                "resourceType": "MedicationRequest",
                "id": "med-req-56745612",
                "status": "active",
                "intent": "order",
                "category": {
                    "coding":  [
                        {
                            "system": "http://hl7.org/fhir/medication-request-category",
                            "code": "inpatient",
                            "display": "inpatient"
                        }
                    ]
                },
                "medicationReference": {
                    "reference": "medication-374372000",
                    "display": "Betamethasone valerate 0.1% cream"
                },
                "subject": {
                    "reference": "patient-748395739",
                    "display": "Miss Carrie Oakey"
                },
                "authoredOn": "2020-05-20T10:51:00Z",
                "requester": {
                    "agent": {
                        "reference": "staff-0001",
                        "display": "Dr Justin Thyme"
                    }
                },
                "recorder": {
                    "reference": "staff-0001",
                    "display": "Dr Justin Thyme"
                },
                "dosageInstruction":  [
                    {
                        "timing": {
                            "repeat": {
                                "duration": 2,
                                "durationUnit": "wk",
                                "frequency": 2,
                                "period": 1,
                                "periodUnit": "d"
                            }
                        },
                        "method": {
                            "coding":  [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "417924000",
                                    "display": "Apply"
                                }
                            ]
                        }
                    }
                ],
                "substitution": {
                    "allowed": false
                }
            }
        }
    ]
}
Bundle.id[0]32e2adf8-595b-4b39-b6f1-f0073464c7f9
Bundle.type[0]message
Bundle.entry[0].fullUrl[0]message-header-167434
Bundle.entry[0].resource[0].id[0]message-header-167434
Bundle.entry[0].resource[0].text[0].status[0]generated
Bundle.entry[0].resource[0].text[0].div[0]<div xmlns="http://www.w3.org/1999/xhtml"><p>The quick brown fox jumps over the lazy dog</p></div>
Bundle.entry[0].resource[0].event[0].system[0]https://fhir.nhs.uk/STU3/CodeSystem/EventType-1
Bundle.entry[0].resource[0].event[0].code[0]individual-requirements-1
Bundle.entry[0].resource[0].event[0].display[0]Individual Requirements
Bundle.entry[0].resource[0].timestamp[0]2021-05-07T16:15:32+00:00
Bundle.entry[0].resource[0].source[0].endpoint[0]nhs-uk:addressing:ods:T48NT
Bundle.entry[0].resource[0].focus[0].reference[0]med-req-56745612
Bundle.entry[1].fullUrl[0]patient-748395739
Bundle.entry[1].resource[0].id[0]patient-748395739
Bundle.entry[1].resource[0].identifier[0].extension[0].url[0]https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1
Bundle.entry[1].resource[0].identifier[0].extension[0].value[0].coding[0].system[0]https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-NHSNumberVerificationStatus-1
Bundle.entry[1].resource[0].identifier[0].extension[0].value[0].coding[0].code[0]01
Bundle.entry[1].resource[0].identifier[0].extension[0].value[0].coding[0].display[0]Number present and verified
Bundle.entry[1].resource[0].identifier[0].system[0]https://fhir.nhs.uk/Id/nhs-number
Bundle.entry[1].resource[0].identifier[0].value[0]748395739
Bundle.entry[1].resource[0].name[0].use[0]official
Bundle.entry[1].resource[0].name[0].text[0]Miss Carrie Oakey
Bundle.entry[1].resource[0].name[0].family[0]Oakey
Bundle.entry[1].resource[0].name[0].given[0]Carrie
Bundle.entry[1].resource[0].name[0].prefix[0]Miss
Bundle.entry[1].resource[0].gender[0]male
Bundle.entry[1].resource[0].birthDate[0]1977-06-04
Bundle.entry[2].fullUrl[0]staff-0001
Bundle.entry[2].resource[0].id[0]staff-0001
Bundle.entry[2].resource[0].name[0].text[0]Dr Justin Thyme
Bundle.entry[2].resource[0].name[0].family[0]Thyme
Bundle.entry[2].resource[0].name[0].given[0]Justin
Bundle.entry[2].resource[0].name[0].prefix[0]Dr
Bundle.entry[2].resource[0].qualification[0].code[0].coding[0].system[0]https://fhir.hl7.org.uk/Id/gmc-number
Bundle.entry[2].resource[0].qualification[0].code[0].coding[0].code[0]2145879
Bundle.entry[2].resource[0].qualification[0].code[0].coding[0].display[0]General Medical Council
Bundle.entry[3].fullUrl[0]medication-27658006
Bundle.entry[3].resource[0].id[0]medication-27658006
Bundle.entry[3].resource[0].code[0].coding[0].system[0]http://snomed.info/sct
Bundle.entry[3].resource[0].code[0].coding[0].code[0]374372000
Bundle.entry[3].resource[0].code[0].coding[0].display[0]Betamethasone valerate 0.1% cream
Bundle.entry[4].fullUrl[0]med-req-56745612
Bundle.entry[4].resource[0].id[0]med-req-56745612
Bundle.entry[4].resource[0].status[0]active
Bundle.entry[4].resource[0].intent[0]order
Bundle.entry[4].resource[0].category[0].coding[0].system[0]http://hl7.org/fhir/medication-request-category
Bundle.entry[4].resource[0].category[0].coding[0].code[0]inpatient
Bundle.entry[4].resource[0].category[0].coding[0].display[0]inpatient
Bundle.entry[4].resource[0].medication[0].reference[0]medication-374372000
Bundle.entry[4].resource[0].medication[0].display[0]Betamethasone valerate 0.1% cream
Bundle.entry[4].resource[0].subject[0].reference[0]patient-748395739
Bundle.entry[4].resource[0].subject[0].display[0]Miss Carrie Oakey
Bundle.entry[4].resource[0].authoredOn[0]2020-05-20T10:51:00Z
Bundle.entry[4].resource[0].requester[0].agent[0].reference[0]staff-0001
Bundle.entry[4].resource[0].requester[0].agent[0].display[0]Dr Justin Thyme
Bundle.entry[4].resource[0].recorder[0].reference[0]staff-0001
Bundle.entry[4].resource[0].recorder[0].display[0]Dr Justin Thyme
Bundle.entry[4].resource[0].dosageInstruction[0].timing[0].repeat[0].duration[0]2
Bundle.entry[4].resource[0].dosageInstruction[0].timing[0].repeat[0].durationUnit[0]wk
Bundle.entry[4].resource[0].dosageInstruction[0].timing[0].repeat[0].frequency[0]2
Bundle.entry[4].resource[0].dosageInstruction[0].timing[0].repeat[0].period[0]1
Bundle.entry[4].resource[0].dosageInstruction[0].timing[0].repeat[0].periodUnit[0]d
Bundle.entry[4].resource[0].dosageInstruction[0].method[0].coding[0].system[0]http://snomed.info/sct
Bundle.entry[4].resource[0].dosageInstruction[0].method[0].coding[0].code[0]417924000
Bundle.entry[4].resource[0].dosageInstruction[0].method[0].coding[0].display[0]Apply
Bundle.entry[4].resource[0].substitution[0].allowed[0]False
Bundle

MedicationDispense

Note: This example below is a draft and requires clinical verification.
<!--   This xml example is for illustrative purposes only and has not been clinically verified.   -->
<Bundle xmlns="http://hl7.org/fhir">
    <id value="317590f8-ba1f-4583-a4e3-2c61cb2308a4" />
    <type value="message" />
    <!--    Message Header    -->
    <entry>
        <fullUrl value="message-header-167434" />
        <resource>
            <MessageHeader>
                <id value="message-header-167434" />
                <text>
                    <status value="generated" />
                    <div xmlns="http://www.w3.org/1999/xhtml"><p>The quick brown fox jumps over the lazy dog</p></div>
                </text>
                <event>
                    <system value="https://fhir.nhs.uk/STU3/CodeSystem/EventType-1" />
                    <code value="individual-requirements-1" />
                    <display value="Individual Requirements" />
                </event>
                <timestamp value="2021-05-07T16:15:32Z" />
                <source>
                    <endpoint value="nhs-uk:addressing:ods:T48NT" />
                </source>
                <focus>
                    <reference value="medication-disp-1231253" />
                </focus>
            </MessageHeader>
        </resource>
    </entry>
    <!--  Patient associated with the encounter.  -->
    <entry>
        <fullUrl value="patient-748395739" />
        <resource>
            <Patient>
                <id value="patient-748395739" />
                <identifier>
                    <extension url="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1">
                        <valueCodeableConcept>
                            <coding>
                                <system value="https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-NHSNumberVerificationStatus-1" />
                                <code value="01" />
                                <display value="Number present and verified" />
                            </coding>
                        </valueCodeableConcept>
                    </extension>
                    <system value="https://fhir.nhs.uk/Id/nhs-number" />
                    <value value="748395739" />
                </identifier>
                <name>
                    <use value="official" />
                    <text value="Miss Carrie Oakey" />
                    <family value="Oakey" />
                    <given value="Carrie" />
                    <prefix value="Miss" />
                </name>
                <gender value="male" />
                <birthDate value="1977-06-04" />
            </Patient>
        </resource>
    </entry>
    <!--    Performer associated with the encounter.    -->
    <entry>
        <fullUrl value="staff-0002" />
        <resource>
            <Practitioner>
                <id value="staff-0002" />
                <name>
                    <text value="Dr Allo Kate" />
                    <family value="Kate" />
                    <given value="Allo" />
                    <prefix value="Dr" />
                </name>
                <qualification>
                    <code>
                        <coding>
                            <system value="https://fhir.hl7.org.uk/Id/gpc-number" />
                            <code value="123543" />
                            <display value="General Pharmaceutical Council" />
                        </coding>
                    </code>
                </qualification>
            </Practitioner>
        </resource>
    </entry>
    <!--  Medication prescribed   -->
    <entry>
        <fullUrl value="medication-23423453464565" />
        <resource>
            <Medication>
                <id value="medication-23423453464565" />
                <code>
                    <coding>
                        <system value="http://snomed.info/sct" />
                        <code value="374372000" />
                        <display value="Betamethasone valerate 0.1% cream" />
                    </coding>
                </code>
            </Medication>
        </resource>
    </entry>
    <!--    Medication Dispense    -->
    <entry>
        <fullUrl value="medication-disp-1231253" />
        <resource>
            <MedicationDispense>
                <id value="medication-disp-1231253" />
                <status value="in-progress" />
                <category>
                    <coding>
                        <system value="http://hl7.org/fhir/medication-request-category" />
                        <code value="outpatient" />
                        <display value="outpatient" />
                    </coding>
                </category>
                <medicationReference>
                    <reference value="medication-23423453464565" />
                    <display value="Betamethasone valerate 0.1% cream" />
                </medicationReference>
                <subject>
                    <reference value="patient-748395739" />
                    <display value="Miss Carrie Oakey" />
                </subject>
                <performer>
                    <actor>
                        <reference value="staff-0002" />
                        <display value="Dr Allo Kate" />
                    </actor>
                </performer>
                <dosageInstruction>
                    <timing>
                        <repeat>
                            <duration value="2" />
                            <durationUnit value="wk" />
                            <frequency value="2" />
                            <period value="1" />
                            <periodUnit value="d" />
                        </repeat>
                    </timing>
                    <method>
                        <coding>
                            <system value="http://snomed.info/sct" />
                            <code value="417924000" />
                            <display value="Apply" />
                        </coding>
                    </method>
                    <doseQuantity>
                        <value value="1" />
                        <unit value="Cutaneous cream" />
                        <system value="http://snomed.info/sct" />
                        <code value="421628006" />
                    </doseQuantity>
                </dosageInstruction>
            </MedicationDispense>
        </resource>
    </entry>
</Bundle>
{
    "resourceType": "Bundle",
    "id": "317590f8-ba1f-4583-a4e3-2c61cb2308a4",
    "type": "message",
    "entry":  [
        {
            "fullUrl": "message-header-167434",
            "resource": {
                "resourceType": "MessageHeader",
                "id": "message-header-167434",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>The quick brown fox jumps over the lazy dog</p></div>"
                },
                "event": {
                    "system": "https://fhir.nhs.uk/STU3/CodeSystem/EventType-1",
                    "code": "individual-requirements-1",
                    "display": "Individual Requirements"
                },
                "timestamp": "2021-05-07T16:15:32+00:00",
                "source": {
                    "endpoint": "nhs-uk:addressing:ods:T48NT"
                },
                "focus":  [
                    {
                        "reference": "medication-disp-1231253"
                    }
                ]
            }
        },
        {
            "fullUrl": "patient-748395739",
            "resource": {
                "resourceType": "Patient",
                "id": "patient-748395739",
                "identifier":  [
                    {
                        "extension":  [
                            {
                                "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1",
                                "valueCodeableConcept": {
                                    "coding":  [
                                        {
                                            "system": "https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-NHSNumberVerificationStatus-1",
                                            "code": "01",
                                            "display": "Number present and verified"
                                        }
                                    ]
                                }
                            }
                        ],
                        "system": "https://fhir.nhs.uk/Id/nhs-number",
                        "value": "748395739"
                    }
                ],
                "name":  [
                    {
                        "use": "official",
                        "text": "Miss Carrie Oakey",
                        "family": "Oakey",
                        "given":  [
                            "Carrie"
                        ],
                        "prefix":  [
                            "Miss"
                        ]
                    }
                ],
                "gender": "male",
                "birthDate": "1977-06-04"
            }
        },
        {
            "fullUrl": "staff-0002",
            "resource": {
                "resourceType": "Practitioner",
                "id": "staff-0002",
                "name":  [
                    {
                        "text": "Dr Allo Kate",
                        "family": "Kate",
                        "given":  [
                            "Allo"
                        ],
                        "prefix":  [
                            "Dr"
                        ]
                    }
                ],
                "qualification":  [
                    {
                        "code": {
                            "coding":  [
                                {
                                    "system": "https://fhir.hl7.org.uk/Id/gpc-number",
                                    "code": "123543",
                                    "display": "General Pharmaceutical Council"
                                }
                            ]
                        }
                    }
                ]
            }
        },
        {
            "fullUrl": "medication-23423453464565",
            "resource": {
                "resourceType": "Medication",
                "id": "medication-23423453464565",
                "code": {
                    "coding":  [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "374372000",
                            "display": "Betamethasone valerate 0.1% cream"
                        }
                    ]
                }
            }
        },
        {
            "fullUrl": "medication-disp-1231253",
            "resource": {
                "resourceType": "MedicationDispense",
                "id": "medication-disp-1231253",
                "status": "in-progress",
                "category": {
                    "coding":  [
                        {
                            "system": "http://hl7.org/fhir/medication-request-category",
                            "code": "outpatient",
                            "display": "outpatient"
                        }
                    ]
                },
                "medicationReference": {
                    "reference": "medication-23423453464565",
                    "display": "Betamethasone valerate 0.1% cream"
                },
                "subject": {
                    "reference": "patient-748395739",
                    "display": "Miss Carrie Oakey"
                },
                "performer":  [
                    {
                        "actor": {
                            "reference": "staff-0002",
                            "display": "Dr Allo Kate"
                        }
                    }
                ],
                "dosageInstruction":  [
                    {
                        "timing": {
                            "repeat": {
                                "duration": 2,
                                "durationUnit": "wk",
                                "frequency": 2,
                                "period": 1,
                                "periodUnit": "d"
                            }
                        },
                        "method": {
                            "coding":  [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "417924000",
                                    "display": "Apply"
                                }
                            ]
                        },
                        "doseQuantity": {
                            "value": 1,
                            "unit": "Cutaneous cream",
                            "system": "http://snomed.info/sct",
                            "code": "421628006"
                        }
                    }
                ]
            }
        }
    ]
}
Bundle.id[0]317590f8-ba1f-4583-a4e3-2c61cb2308a4
Bundle.type[0]message
Bundle.entry[0].fullUrl[0]message-header-167434
Bundle.entry[0].resource[0].id[0]message-header-167434
Bundle.entry[0].resource[0].text[0].status[0]generated
Bundle.entry[0].resource[0].text[0].div[0]<div xmlns="http://www.w3.org/1999/xhtml"><p>The quick brown fox jumps over the lazy dog</p></div>
Bundle.entry[0].resource[0].event[0].system[0]https://fhir.nhs.uk/STU3/CodeSystem/EventType-1
Bundle.entry[0].resource[0].event[0].code[0]individual-requirements-1
Bundle.entry[0].resource[0].event[0].display[0]Individual Requirements
Bundle.entry[0].resource[0].timestamp[0]2021-05-07T16:15:32+00:00
Bundle.entry[0].resource[0].source[0].endpoint[0]nhs-uk:addressing:ods:T48NT
Bundle.entry[0].resource[0].focus[0].reference[0]medication-disp-1231253
Bundle.entry[1].fullUrl[0]patient-748395739
Bundle.entry[1].resource[0].id[0]patient-748395739
Bundle.entry[1].resource[0].identifier[0].extension[0].url[0]https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1
Bundle.entry[1].resource[0].identifier[0].extension[0].value[0].coding[0].system[0]https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-NHSNumberVerificationStatus-1
Bundle.entry[1].resource[0].identifier[0].extension[0].value[0].coding[0].code[0]01
Bundle.entry[1].resource[0].identifier[0].extension[0].value[0].coding[0].display[0]Number present and verified
Bundle.entry[1].resource[0].identifier[0].system[0]https://fhir.nhs.uk/Id/nhs-number
Bundle.entry[1].resource[0].identifier[0].value[0]748395739
Bundle.entry[1].resource[0].name[0].use[0]official
Bundle.entry[1].resource[0].name[0].text[0]Miss Carrie Oakey
Bundle.entry[1].resource[0].name[0].family[0]Oakey
Bundle.entry[1].resource[0].name[0].given[0]Carrie
Bundle.entry[1].resource[0].name[0].prefix[0]Miss
Bundle.entry[1].resource[0].gender[0]male
Bundle.entry[1].resource[0].birthDate[0]1977-06-04
Bundle.entry[2].fullUrl[0]staff-0002
Bundle.entry[2].resource[0].id[0]staff-0002
Bundle.entry[2].resource[0].name[0].text[0]Dr Allo Kate
Bundle.entry[2].resource[0].name[0].family[0]Kate
Bundle.entry[2].resource[0].name[0].given[0]Allo
Bundle.entry[2].resource[0].name[0].prefix[0]Dr
Bundle.entry[2].resource[0].qualification[0].code[0].coding[0].system[0]https://fhir.hl7.org.uk/Id/gpc-number
Bundle.entry[2].resource[0].qualification[0].code[0].coding[0].code[0]123543
Bundle.entry[2].resource[0].qualification[0].code[0].coding[0].display[0]General Pharmaceutical Council
Bundle.entry[3].fullUrl[0]medication-23423453464565
Bundle.entry[3].resource[0].id[0]medication-23423453464565
Bundle.entry[3].resource[0].code[0].coding[0].system[0]http://snomed.info/sct
Bundle.entry[3].resource[0].code[0].coding[0].code[0]374372000
Bundle.entry[3].resource[0].code[0].coding[0].display[0]Betamethasone valerate 0.1% cream
Bundle.entry[4].fullUrl[0]medication-disp-1231253
Bundle.entry[4].resource[0].id[0]medication-disp-1231253
Bundle.entry[4].resource[0].status[0]in-progress
Bundle.entry[4].resource[0].category[0].coding[0].system[0]http://hl7.org/fhir/medication-request-category
Bundle.entry[4].resource[0].category[0].coding[0].code[0]outpatient
Bundle.entry[4].resource[0].category[0].coding[0].display[0]outpatient
Bundle.entry[4].resource[0].medication[0].reference[0]medication-23423453464565
Bundle.entry[4].resource[0].medication[0].display[0]Betamethasone valerate 0.1% cream
Bundle.entry[4].resource[0].subject[0].reference[0]patient-748395739
Bundle.entry[4].resource[0].subject[0].display[0]Miss Carrie Oakey
Bundle.entry[4].resource[0].performer[0].actor[0].reference[0]staff-0002
Bundle.entry[4].resource[0].performer[0].actor[0].display[0]Dr Allo Kate
Bundle.entry[4].resource[0].dosageInstruction[0].timing[0].repeat[0].duration[0]2
Bundle.entry[4].resource[0].dosageInstruction[0].timing[0].repeat[0].durationUnit[0]wk
Bundle.entry[4].resource[0].dosageInstruction[0].timing[0].repeat[0].frequency[0]2
Bundle.entry[4].resource[0].dosageInstruction[0].timing[0].repeat[0].period[0]1
Bundle.entry[4].resource[0].dosageInstruction[0].timing[0].repeat[0].periodUnit[0]d
Bundle.entry[4].resource[0].dosageInstruction[0].method[0].coding[0].system[0]http://snomed.info/sct
Bundle.entry[4].resource[0].dosageInstruction[0].method[0].coding[0].code[0]417924000
Bundle.entry[4].resource[0].dosageInstruction[0].method[0].coding[0].display[0]Apply
Bundle.entry[4].resource[0].dosageInstruction[0].dose[0].value[0]1
Bundle.entry[4].resource[0].dosageInstruction[0].dose[0].unit[0]Cutaneous cream
Bundle.entry[4].resource[0].dosageInstruction[0].dose[0].system[0]http://snomed.info/sct
Bundle.entry[4].resource[0].dosageInstruction[0].dose[0].code[0]421628006
Bundle

MedicationStatement

Note: This example below is a draft and requires clinical verification.
<!--     This xml example is for illustrative purposes only and has not been clinically verified.     -->
<Bundle xmlns="http://hl7.org/fhir">
    <id value="2183304e-412e-4504-94bd-fbfb2ae16913" />
    <type value="message" />
    <!--        Message Header        -->
    <entry>
        <fullUrl value="message-header-167434" />
        <resource>
            <MessageHeader>
                <id value="message-header-167434" />
                <text>
                    <status value="generated" />
                    <div xmlns="http://www.w3.org/1999/xhtml"><p>The quick brown fox jumps over the lazy dog</p></div>
                </text>
                <event>
                    <system value="https://fhir.nhs.uk/STU3/CodeSystem/EventType-1" />
                    <code value="individual-requirements-1" />
                    <display value="Individual Requirements" />
                </event>
                <timestamp value="2021-05-07T16:15:32Z" />
                <source>
                    <endpoint value="nhs-uk:addressing:ods:T48NT" />
                </source>
                <focus>
                    <reference value="medication-statement-123423423" />
                </focus>
            </MessageHeader>
        </resource>
    </entry>
    <!--     Patient associated with the encounter.     -->
    <entry>
        <fullUrl value="patient-748395739" />
        <resource>
            <Patient>
                <id value="patient-748395739" />
                <identifier>
                    <extension url="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1">
                        <valueCodeableConcept>
                            <coding>
                                <system value="https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-NHSNumberVerificationStatus-1" />
                                <code value="01" />
                                <display value="Number present and verified" />
                            </coding>
                        </valueCodeableConcept>
                    </extension>
                    <system value="https://fhir.nhs.uk/Id/nhs-number" />
                    <value value="748395739" />
                </identifier>
                <name>
                    <use value="official" />
                    <text value="Miss Carrie Oakey" />
                    <family value="Oakey" />
                    <given value="Carrie" />
                    <prefix value="Miss" />
                </name>
                <gender value="male" />
                <birthDate value="1977-06-04" />
            </Patient>
        </resource>
    </entry>
    <!--     Medication    -->
    <entry>
        <fullUrl value="medication-27658006" />
        <resource>
            <Medication>
                <id value="medication-27658006" />
                <code>
                    <coding>
                        <system value="http://snomed.info/sct" />
                        <code value="374372000" />
                        <display value="Betamethasone valerate 0.1% cream" />
                    </coding>
                </code>
            </Medication>
        </resource>
    </entry>
    <!--      Medication Statement      -->
    <entry>
        <fullUrl value="medication-statement-123423423" />
        <resource>
            <MedicationStatement>
                <id value="medication-statement-123423423" />
                <status value="active" />
                <category>
                    <coding>
                        <system value="http://hl7.org/fhir/medication-request-category" />
                        <code value="outpatient" />
                        <display value="outpatient" />
                    </coding>
                </category>
                <medicationReference>
                    <reference value="medication-374372000" />
                    <display value="Betamethasone valerate 0.1% cream" />
                </medicationReference>
                <subject>
                    <reference value="patient-748395739" />
                    <display value="Miss Carrie Oakey" />
                </subject>
                <taken value="unk" />
                <dosage>
                    <timing>
                        <repeat>
                            <duration value="2" />
                            <durationUnit value="wk" />
                            <frequency value="2" />
                            <period value="1" />
                            <periodUnit value="d" />
                        </repeat>
                    </timing>
                    <method>
                        <coding>
                            <system value="http://snomed.info/sct" />
                            <code value="417924000" />
                            <display value="Apply" />
                        </coding>
                    </method>
                    <doseQuantity>
                        <value value="1" />
                        <unit value="Cutaneous cream" />
                        <system value="http://snomed.info/sct" />
                        <code value="421628006" />
                    </doseQuantity>
                </dosage>
            </MedicationStatement>
        </resource>
    </entry>
</Bundle>
{
    "resourceType": "Bundle",
    "id": "2183304e-412e-4504-94bd-fbfb2ae16913",
    "type": "message",
    "entry":  [
        {
            "fullUrl": "message-header-167434",
            "resource": {
                "resourceType": "MessageHeader",
                "id": "message-header-167434",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>The quick brown fox jumps over the lazy dog</p></div>"
                },
                "event": {
                    "system": "https://fhir.nhs.uk/STU3/CodeSystem/EventType-1",
                    "code": "individual-requirements-1",
                    "display": "Individual Requirements"
                },
                "timestamp": "2021-05-07T16:15:32+00:00",
                "source": {
                    "endpoint": "nhs-uk:addressing:ods:T48NT"
                },
                "focus":  [
                    {
                        "reference": "medication-statement-123423423"
                    }
                ]
            }
        },
        {
            "fullUrl": "patient-748395739",
            "resource": {
                "resourceType": "Patient",
                "id": "patient-748395739",
                "identifier":  [
                    {
                        "extension":  [
                            {
                                "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1",
                                "valueCodeableConcept": {
                                    "coding":  [
                                        {
                                            "system": "https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-NHSNumberVerificationStatus-1",
                                            "code": "01",
                                            "display": "Number present and verified"
                                        }
                                    ]
                                }
                            }
                        ],
                        "system": "https://fhir.nhs.uk/Id/nhs-number",
                        "value": "748395739"
                    }
                ],
                "name":  [
                    {
                        "use": "official",
                        "text": "Miss Carrie Oakey",
                        "family": "Oakey",
                        "given":  [
                            "Carrie"
                        ],
                        "prefix":  [
                            "Miss"
                        ]
                    }
                ],
                "gender": "male",
                "birthDate": "1977-06-04"
            }
        },
        {
            "fullUrl": "medication-27658006",
            "resource": {
                "resourceType": "Medication",
                "id": "medication-27658006",
                "code": {
                    "coding":  [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "374372000",
                            "display": "Betamethasone valerate 0.1% cream"
                        }
                    ]
                }
            }
        },
        {
            "fullUrl": "medication-statement-123423423",
            "resource": {
                "resourceType": "MedicationStatement",
                "id": "medication-statement-123423423",
                "status": "active",
                "category": {
                    "coding":  [
                        {
                            "system": "http://hl7.org/fhir/medication-request-category",
                            "code": "outpatient",
                            "display": "outpatient"
                        }
                    ]
                },
                "medicationReference": {
                    "reference": "medication-374372000",
                    "display": "Betamethasone valerate 0.1% cream"
                },
                "subject": {
                    "reference": "patient-748395739",
                    "display": "Miss Carrie Oakey"
                },
                "taken": "unk",
                "dosage":  [
                    {
                        "timing": {
                            "repeat": {
                                "duration": 2,
                                "durationUnit": "wk",
                                "frequency": 2,
                                "period": 1,
                                "periodUnit": "d"
                            }
                        },
                        "method": {
                            "coding":  [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "417924000",
                                    "display": "Apply"
                                }
                            ]
                        },
                        "doseQuantity": {
                            "value": 1,
                            "unit": "Cutaneous cream",
                            "system": "http://snomed.info/sct",
                            "code": "421628006"
                        }
                    }
                ]
            }
        }
    ]
}
Bundle.id[0]2183304e-412e-4504-94bd-fbfb2ae16913
Bundle.type[0]message
Bundle.entry[0].fullUrl[0]message-header-167434
Bundle.entry[0].resource[0].id[0]message-header-167434
Bundle.entry[0].resource[0].text[0].status[0]generated
Bundle.entry[0].resource[0].text[0].div[0]<div xmlns="http://www.w3.org/1999/xhtml"><p>The quick brown fox jumps over the lazy dog</p></div>
Bundle.entry[0].resource[0].event[0].system[0]https://fhir.nhs.uk/STU3/CodeSystem/EventType-1
Bundle.entry[0].resource[0].event[0].code[0]individual-requirements-1
Bundle.entry[0].resource[0].event[0].display[0]Individual Requirements
Bundle.entry[0].resource[0].timestamp[0]2021-05-07T16:15:32+00:00
Bundle.entry[0].resource[0].source[0].endpoint[0]nhs-uk:addressing:ods:T48NT
Bundle.entry[0].resource[0].focus[0].reference[0]medication-statement-123423423
Bundle.entry[1].fullUrl[0]patient-748395739
Bundle.entry[1].resource[0].id[0]patient-748395739
Bundle.entry[1].resource[0].identifier[0].extension[0].url[0]https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1
Bundle.entry[1].resource[0].identifier[0].extension[0].value[0].coding[0].system[0]https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-NHSNumberVerificationStatus-1
Bundle.entry[1].resource[0].identifier[0].extension[0].value[0].coding[0].code[0]01
Bundle.entry[1].resource[0].identifier[0].extension[0].value[0].coding[0].display[0]Number present and verified
Bundle.entry[1].resource[0].identifier[0].system[0]https://fhir.nhs.uk/Id/nhs-number
Bundle.entry[1].resource[0].identifier[0].value[0]748395739
Bundle.entry[1].resource[0].name[0].use[0]official
Bundle.entry[1].resource[0].name[0].text[0]Miss Carrie Oakey
Bundle.entry[1].resource[0].name[0].family[0]Oakey
Bundle.entry[1].resource[0].name[0].given[0]Carrie
Bundle.entry[1].resource[0].name[0].prefix[0]Miss
Bundle.entry[1].resource[0].gender[0]male
Bundle.entry[1].resource[0].birthDate[0]1977-06-04
Bundle.entry[2].fullUrl[0]medication-27658006
Bundle.entry[2].resource[0].id[0]medication-27658006
Bundle.entry[2].resource[0].code[0].coding[0].system[0]http://snomed.info/sct
Bundle.entry[2].resource[0].code[0].coding[0].code[0]374372000
Bundle.entry[2].resource[0].code[0].coding[0].display[0]Betamethasone valerate 0.1% cream
Bundle.entry[3].fullUrl[0]medication-statement-123423423
Bundle.entry[3].resource[0].id[0]medication-statement-123423423
Bundle.entry[3].resource[0].status[0]active
Bundle.entry[3].resource[0].category[0].coding[0].system[0]http://hl7.org/fhir/medication-request-category
Bundle.entry[3].resource[0].category[0].coding[0].code[0]outpatient
Bundle.entry[3].resource[0].category[0].coding[0].display[0]outpatient
Bundle.entry[3].resource[0].medication[0].reference[0]medication-374372000
Bundle.entry[3].resource[0].medication[0].display[0]Betamethasone valerate 0.1% cream
Bundle.entry[3].resource[0].subject[0].reference[0]patient-748395739
Bundle.entry[3].resource[0].subject[0].display[0]Miss Carrie Oakey
Bundle.entry[3].resource[0].taken[0]unk
Bundle.entry[3].resource[0].dosage[0].timing[0].repeat[0].duration[0]2
Bundle.entry[3].resource[0].dosage[0].timing[0].repeat[0].durationUnit[0]wk
Bundle.entry[3].resource[0].dosage[0].timing[0].repeat[0].frequency[0]2
Bundle.entry[3].resource[0].dosage[0].timing[0].repeat[0].period[0]1
Bundle.entry[3].resource[0].dosage[0].timing[0].repeat[0].periodUnit[0]d
Bundle.entry[3].resource[0].dosage[0].method[0].coding[0].system[0]http://snomed.info/sct
Bundle.entry[3].resource[0].dosage[0].method[0].coding[0].code[0]417924000
Bundle.entry[3].resource[0].dosage[0].method[0].coding[0].display[0]Apply
Bundle.entry[3].resource[0].dosage[0].dose[0].value[0]1
Bundle.entry[3].resource[0].dosage[0].dose[0].unit[0]Cutaneous cream
Bundle.entry[3].resource[0].dosage[0].dose[0].system[0]http://snomed.info/sct
Bundle.entry[3].resource[0].dosage[0].dose[0].code[0]421628006
Bundle
back to top