Example 4: Discharge MedicationRequest
Note: This example below is a draft and requires clinical verification.
Discharge TTO medication requests for Paracetamol , Ibuprofen and Pregabalin.
Actors
Provider System = Ward EMPA system
Consumer System = Hospital pharamcy system
Example
<!-- Message Header -->
<MessageHeader>
</eventCoding>
</source>
</focus>
</focus>
</focus>
</MessageHeader>
</resource>
</entry>
<!-- // Patient associated with the encounter -->
<Patient>
</identifier>
</name>
</Patient>
</resource>
</entry>
<!-- // Prescribing clinician associated with the encounter. -->
<Practitioner>
</name>
</coding>
</code>
</qualification>
</Practitioner>
</resource>
</entry>
<!-- // Medication #1: Paracetamol -->
<Medication>
</coding>
</code>
</Medication>
</resource>
</entry>
<!-- // Medication Request #1: Paracetamol 1g four times a day -->
<MedicationRequest>
</identifier>
</coding>
</category>
</medicationReference>
</subject>
</requester>
</recorder>
</timing>
</coding>
</route>
</doseQuantity>
</doseAndRate>
</dosageInstruction>
</substitution>
</MedicationRequest>
</resource>
</entry>
<!-- // Medication #2: Ibuprofen 800mg modified-release tablets -->
<Medication>
</coding>
</code>
</Medication>
</resource>
</entry>
<!-- // Medication Request #2: Ibuprofen 800mg modified-release tablets -->
<MedicationRequest>
</identifier>
</coding>
</category>
</medicationReference>
</subject>
</requester>
</recorder>
</timing>
</coding>
</route>
</doseQuantity>
</doseAndRate>
</dosageInstruction>
</substitution>
</MedicationRequest>
</resource>
</entry>
<!-- // Medication #3: Pregabalin -->
<Medication>
</coding>
</code>
</Medication>
</resource>
</entry>
<!-- // Medication Request #3: Pregabalin -->
<MedicationRequest>
</identifier>
</coding>
</category>
</medicationReference>
</subject>
</requester>
</recorder>
</timing>
</coding>
</route>
</doseQuantity>
</doseAndRate>
</dosageInstruction>
</substitution>
</MedicationRequest>
</resource>
</entry>
</Bundle>
{
{
},
},
{
},
{
},
{
}
]
}
},
{
],
{
"Chris"
],
"Mr"
]
}
],
}
},
{
],
{
{
}
]
}
}
]
}
},
{
}
}
},
{
],
{
{
}
]
}
],
},
},
},
},
{
},
},
{
}
]
}
],
}
}
},
{
{
}
]
}
}
},
{
],
{
{
}
]
}
],
},
},
},
},
{
},
},
{
}
}
]
}
],
}
}
},
{
}
}
},
{
],
{
{
}
]
}
],
},
},
},
},
{
},
},
{
}
}
]
}
],
}
}
}
]
}
Bundle.id[0] | acd1d58c-4abd-415b-a5a3-88f5dac71ec0 |
Bundle.type[0] | message |
Bundle.timestamp[0] | 2021-05-07T16:15:32+00:00 |
Bundle.entry[0].fullUrl[0] | urn:message-header-9920192 |
Bundle.entry[0].resource[0].id[0] | urn:message-header-9920192 |
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] | prescription-order |
Bundle.entry[0].resource[0].event[0].display[0] | Prescription Order |
Bundle.entry[0].resource[0].source[0].name[0] | ACME Clinical Systems |
Bundle.entry[0].resource[0].source[0].software[0] | ACME ePMA |
Bundle.entry[0].resource[0].source[0].version[0] | 3.5.68 |
Bundle.entry[0].resource[0].source[0].endpoint[0] | urn:nhs-uk:addressing:ods:T48NT |
Bundle.entry[0].resource[0].focus[0].reference[0] | urn:med-req-76462 |
Bundle.entry[0].resource[0].focus[1].reference[0] | urn:med-req-987765745 |
Bundle.entry[0].resource[0].focus[2].reference[0] | urn:med-req-11adfw53446 |
Bundle.entry[1].fullUrl[0] | urn:patient-01912 |
Bundle.entry[1].resource[0].id[0] | urn:patient-01912 |
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] | 4857773456 |
Bundle.entry[1].resource[0].name[0].use[0] | official |
Bundle.entry[1].resource[0].name[0].text[0] | Mr Chris Packet |
Bundle.entry[1].resource[0].name[0].family[0] | Packet |
Bundle.entry[1].resource[0].name[0].given[0] | Chris |
Bundle.entry[1].resource[0].name[0].prefix[0] | Mr |
Bundle.entry[1].resource[0].gender[0] | male |
Bundle.entry[1].resource[0].birthDate[0] | 1995-11-12 |
Bundle.entry[2].fullUrl[0] | urn:staff-1112 |
Bundle.entry[2].resource[0].id[0] | urn:staff-1112 |
Bundle.entry[2].resource[0].name[0].text[0] | Dr Maikeu Well |
Bundle.entry[2].resource[0].name[0].family[0] | Well |
Bundle.entry[2].resource[0].name[0].given[0] | Maikeu |
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] | urn:medication-90332006 |
Bundle.entry[3].resource[0].id[0] | urn:medication-90332006 |
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] | 90332006 |
Bundle.entry[3].resource[0].code[0].coding[0].display[0] | Paracetamol |
Bundle.entry[4].fullUrl[0] | urn:med-req-76462 |
Bundle.entry[4].resource[0].id[0] | urn:med-req-76462 |
Bundle.entry[4].resource[0].identifier[0].value[0] | 35873655-0d53-469a-9428-04df65f5cbb4 |
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].priority[0] | routine |
Bundle.entry[4].resource[0].medication[0].reference[0] | urn:medication-90332006 |
Bundle.entry[4].resource[0].medication[0].display[0] | Paracetamol |
Bundle.entry[4].resource[0].subject[0].reference[0] | urn:patient-01912 |
Bundle.entry[4].resource[0].subject[0].display[0] | Mr Chris Packet |
Bundle.entry[4].resource[0].authoredOn[0] | 2021-05-14T11:34:12+01:00 |
Bundle.entry[4].resource[0].requester[0].reference[0] | urn:staff-1112 |
Bundle.entry[4].resource[0].requester[0].display[0] | Dr Maikeu Well |
Bundle.entry[4].resource[0].recorder[0].reference[0] | urn:staff-1112 |
Bundle.entry[4].resource[0].recorder[0].display[0] | Dr Maikeu Well |
Bundle.entry[4].resource[0].dosageInstruction[0].timing[0].repeat[0].frequency[0] | 4 |
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].route[0].coding[0].system[0] | http://snomed.info/sct |
Bundle.entry[4].resource[0].dosageInstruction[0].route[0].coding[0].code[0] | 26643006 |
Bundle.entry[4].resource[0].dosageInstruction[0].route[0].coding[0].display[0] | oral |
Bundle.entry[4].resource[0].dosageInstruction[0].doseAndRate[0].dose[0].value[0] | 1 |
Bundle.entry[4].resource[0].dosageInstruction[0].doseAndRate[0].dose[0].unit[0] | gram |
Bundle.entry[4].resource[0].dosageInstruction[0].doseAndRate[0].dose[0].system[0] | http://unitsofmeasure.org |
Bundle.entry[4].resource[0].dosageInstruction[0].doseAndRate[0].dose[0].code[0] | g |
Bundle.entry[4].resource[0].substitution[0].allowed[0] | False |
Bundle.entry[5].fullUrl[0] | urn:medication-39110311000001101 |
Bundle.entry[5].resource[0].id[0] | urn:medication-39110311000001101 |
Bundle.entry[5].resource[0].code[0].coding[0].system[0] | http://snomed.info/sct |
Bundle.entry[5].resource[0].code[0].coding[0].code[0] | 39110311000001101 |
Bundle.entry[5].resource[0].code[0].coding[0].display[0] | Ibuprofen 800mg modified-release tablets |
Bundle.entry[6].fullUrl[0] | urn:med-req-987765745 |
Bundle.entry[6].resource[0].id[0] | urn:med-req-987765745 |
Bundle.entry[6].resource[0].identifier[0].value[0] | 63a40946-c387-4810-9458-c573f873d7b4 |
Bundle.entry[6].resource[0].status[0] | active |
Bundle.entry[6].resource[0].intent[0] | order |
Bundle.entry[6].resource[0].category[0].coding[0].system[0] | http://hl7.org/fhir/medication-request-category |
Bundle.entry[6].resource[0].category[0].coding[0].code[0] | inpatient |
Bundle.entry[6].resource[0].category[0].coding[0].display[0] | inpatient |
Bundle.entry[6].resource[0].priority[0] | routine |
Bundle.entry[6].resource[0].medication[0].reference[0] | urn:medication-39110311000001101 |
Bundle.entry[6].resource[0].medication[0].display[0] | Ibuprofen 800mg modified-release tablets |
Bundle.entry[6].resource[0].subject[0].reference[0] | urn:patient-01912 |
Bundle.entry[6].resource[0].subject[0].display[0] | Mr Chris Packet |
Bundle.entry[6].resource[0].authoredOn[0] | 2021-05-14T11:34:12Z |
Bundle.entry[6].resource[0].requester[0].reference[0] | urn:staff-1112 |
Bundle.entry[6].resource[0].requester[0].display[0] | Dr Maikeu Well |
Bundle.entry[6].resource[0].recorder[0].reference[0] | urn:staff-1112 |
Bundle.entry[6].resource[0].recorder[0].display[0] | Dr Maikeu Well |
Bundle.entry[6].resource[0].dosageInstruction[0].timing[0].repeat[0].frequency[0] | 2 |
Bundle.entry[6].resource[0].dosageInstruction[0].timing[0].repeat[0].period[0] | 1 |
Bundle.entry[6].resource[0].dosageInstruction[0].timing[0].repeat[0].periodUnit[0] | d |
Bundle.entry[6].resource[0].dosageInstruction[0].route[0].coding[0].system[0] | http://snomed.info/sct |
Bundle.entry[6].resource[0].dosageInstruction[0].route[0].coding[0].code[0] | 26643006 |
Bundle.entry[6].resource[0].dosageInstruction[0].route[0].coding[0].display[0] | oral |
Bundle.entry[6].resource[0].dosageInstruction[0].doseAndRate[0].dose[0].value[0] | 800 |
Bundle.entry[6].resource[0].dosageInstruction[0].doseAndRate[0].dose[0].unit[0] | milligram |
Bundle.entry[6].resource[0].dosageInstruction[0].doseAndRate[0].dose[0].system[0] | http://unitsofmeasure.org |
Bundle.entry[6].resource[0].dosageInstruction[0].doseAndRate[0].dose[0].code[0] | mg |
Bundle.entry[6].resource[0].substitution[0].allowed[0] | False |
Bundle.entry[7].fullUrl[0] | urn:medication-234567321 |
Bundle.entry[7].resource[0].id[0] | urn:medication-234567321 |
Bundle.entry[7].resource[0].code[0].coding[0].system[0] | http://snomed.info/sct |
Bundle.entry[7].resource[0].code[0].coding[0].code[0] | 415160008 |
Bundle.entry[7].resource[0].code[0].coding[0].display[0] | Pregabalin |
Bundle.entry[8].fullUrl[0] | urn:med-req-11adfw53446 |
Bundle.entry[8].resource[0].id[0] | urn:med-req-11adfw53446 |
Bundle.entry[8].resource[0].identifier[0].value[0] | 63a40946-c387-4810-9458-c573f873d7b4 |
Bundle.entry[8].resource[0].status[0] | active |
Bundle.entry[8].resource[0].intent[0] | order |
Bundle.entry[8].resource[0].category[0].coding[0].system[0] | http://hl7.org/fhir/medication-request-category |
Bundle.entry[8].resource[0].category[0].coding[0].code[0] | inpatient |
Bundle.entry[8].resource[0].category[0].coding[0].display[0] | inpatient |
Bundle.entry[8].resource[0].priority[0] | routine |
Bundle.entry[8].resource[0].medication[0].reference[0] | urn:medication-234567321 |
Bundle.entry[8].resource[0].medication[0].display[0] | Pregabalin |
Bundle.entry[8].resource[0].subject[0].reference[0] | urn:patient-01912 |
Bundle.entry[8].resource[0].subject[0].display[0] | Mr Chris Packet |
Bundle.entry[8].resource[0].authoredOn[0] | 2021-05-14T11:34:12Z |
Bundle.entry[8].resource[0].requester[0].reference[0] | urn:staff-1112 |
Bundle.entry[8].resource[0].requester[0].display[0] | Dr Maikeu Well |
Bundle.entry[8].resource[0].recorder[0].reference[0] | urn:staff-1112 |
Bundle.entry[8].resource[0].recorder[0].display[0] | Dr Maikeu Well |
Bundle.entry[8].resource[0].dosageInstruction[0].timing[0].repeat[0].frequency[0] | 3 |
Bundle.entry[8].resource[0].dosageInstruction[0].timing[0].repeat[0].period[0] | 1 |
Bundle.entry[8].resource[0].dosageInstruction[0].timing[0].repeat[0].periodUnit[0] | d |
Bundle.entry[8].resource[0].dosageInstruction[0].route[0].coding[0].system[0] | http://snomed.info/sct |
Bundle.entry[8].resource[0].dosageInstruction[0].route[0].coding[0].code[0] | 26643006 |
Bundle.entry[8].resource[0].dosageInstruction[0].route[0].coding[0].display[0] | oral |
Bundle.entry[8].resource[0].dosageInstruction[0].doseAndRate[0].dose[0].value[0] | 75 |
Bundle.entry[8].resource[0].dosageInstruction[0].doseAndRate[0].dose[0].unit[0] | milligram |
Bundle.entry[8].resource[0].dosageInstruction[0].doseAndRate[0].dose[0].system[0] | http://unitsofmeasure.org |
Bundle.entry[8].resource[0].dosageInstruction[0].doseAndRate[0].dose[0].code[0] | mg |
Bundle.entry[8].resource[0].substitution[0].allowed[0] | False |
Bundle |
id : acd1d58c-4abd-415b-a5a3-88f5dac71ec0 |
type : message |
timestamp : 2021-05-07T16:15:32Z |
entry |
fullUrl : urn:message-header-9920192 |
resource |
id : urn:message-header-9920192 |
event |
system : https://fhir.nhs.uk/STU3/CodeSystem/EventType-1 |
code : prescription-order |
display : Prescription Order |
source |
name : ACME Clinical Systems |
software : ACME ePMA |
version : 3.5.68 |
endpoint : urn:nhs-uk:addressing:ods:T48NT |
focus |
reference : urn:med-req-76462 |
focus |
reference : urn:med-req-987765745 |
focus |
reference : urn:med-req-11adfw53446 |
entry |
fullUrl : urn:patient-01912 |
resource |
id : urn:patient-01912 |
identifier |
system : https://fhir.nhs.uk/Id/nhs-number |
value : 4857773456 |
name |
use : official |
text : Mr Chris Packet |
family : Packet |
given : Chris |
prefix : Mr |
gender : male |
birthDate : 1995-11-12 |
entry |
fullUrl : urn:staff-1112 |
resource |
id : urn:staff-1112 |
name |
text : Dr Maikeu Well |
family : Well |
given : Maikeu |
prefix : Dr |
qualification |
code |
coding |
system : https://fhir.hl7.org.uk/Id/gmc-number |
code : 2145879 |
display : General Medical Council |
entry |
fullUrl : urn:medication-90332006 |
resource |
id : urn:medication-90332006 |
code |
coding |
system : http://snomed.info/sct |
code : 90332006 |
display : Paracetamol |
entry |
fullUrl : urn:med-req-76462 |
resource |
id : urn:med-req-76462 |
identifier |
value : 35873655-0d53-469a-9428-04df65f5cbb4 |
status : active |
intent : order |
category |
coding |
system : http://hl7.org/fhir/medication-request-category |
code : inpatient |
display : inpatient |
priority : routine |
medication |
reference : urn:medication-90332006 |
display : Paracetamol |
subject |
reference : urn:patient-01912 |
display : Mr Chris Packet |
authoredOn : 2021-05-14T11:34:12+01:00 |
requester |
reference : urn:staff-1112 |
display : Dr Maikeu Well |
recorder |
reference : urn:staff-1112 |
display : Dr Maikeu Well |
dosageInstruction |
timing |
repeat |
frequency : 4 |
period : 1 |
periodUnit : d |
route |
coding |
system : http://snomed.info/sct |
code : 26643006 |
display : oral |
doseAndRate |
dose |
value : 1 |
unit : gram |
system : http://unitsofmeasure.org |
code : g |
substitution |
allowed : False |
entry |
fullUrl : urn:medication-39110311000001101 |
resource |
id : urn:medication-39110311000001101 |
code |
coding |
system : http://snomed.info/sct |
code : 39110311000001101 |
display : Ibuprofen 800mg modified-release tablets |
entry |
fullUrl : urn:med-req-987765745 |
resource |
id : urn:med-req-987765745 |
identifier |
value : 63a40946-c387-4810-9458-c573f873d7b4 |
status : active |
intent : order |
category |
coding |
system : http://hl7.org/fhir/medication-request-category |
code : inpatient |
display : inpatient |
priority : routine |
medication |
reference : urn:medication-39110311000001101 |
display : Ibuprofen 800mg modified-release tablets |
subject |
reference : urn:patient-01912 |
display : Mr Chris Packet |
authoredOn : 2021-05-14T11:34:12Z |
requester |
reference : urn:staff-1112 |
display : Dr Maikeu Well |
recorder |
reference : urn:staff-1112 |
display : Dr Maikeu Well |
dosageInstruction |
timing |
repeat |
frequency : 2 |
period : 1 |
periodUnit : d |
route |
coding |
system : http://snomed.info/sct |
code : 26643006 |
display : oral |
doseAndRate |
dose |
value : 800 |
unit : milligram |
system : http://unitsofmeasure.org |
code : mg |
substitution |
allowed : False |
entry |
fullUrl : urn:medication-234567321 |
resource |
id : urn:medication-234567321 |
code |
coding |
system : http://snomed.info/sct |
code : 415160008 |
display : Pregabalin |
entry |
fullUrl : urn:med-req-11adfw53446 |
resource |
id : urn:med-req-11adfw53446 |
identifier |
value : 63a40946-c387-4810-9458-c573f873d7b4 |
status : active |
intent : order |
category |
coding |
system : http://hl7.org/fhir/medication-request-category |
code : inpatient |
display : inpatient |
priority : routine |
medication |
reference : urn:medication-234567321 |
display : Pregabalin |
subject |
reference : urn:patient-01912 |
display : Mr Chris Packet |
authoredOn : 2021-05-14T11:34:12Z |
requester |
reference : urn:staff-1112 |
display : Dr Maikeu Well |
recorder |
reference : urn:staff-1112 |
display : Dr Maikeu Well |
dosageInstruction |
timing |
repeat |
frequency : 3 |
period : 1 |
periodUnit : d |
route |
coding |
system : http://snomed.info/sct |
code : 26643006 |
display : oral |
doseAndRate |
dose |
value : 75 |
unit : milligram |
system : http://unitsofmeasure.org |
code : mg |
substitution |
allowed : False |