Starting with Medication
If a Patient wishes to start at viewing their Medications, a standard user journey would look like this:
Search by NHS Number to obtain
MedicationStatementresources related to the patient, using the endpoint: GET /FHIR/R4/Patient/{NHSNumber}/MedicationStatementThis returns a
BundlecontainingMedicationStatement'swhich includes information surrounding the Medication to be displayed to the patient.Each MedicationStatement references a
MedicationRequestwithintentofplan. TheMedicationRequestis a representation of the prescription, these contain further details about the prescription itself, i.e. whether it's acute or repeat and if it has expired.The next stage in the user journey would be to resolve the referenced
MedicationRequestto obtain thecourseOfTherapyTypeof the Prescription (as part of MVP we're only building for reordering of repeat prescriptions, although the API can cater for this), and also to validate that it is a valid authorization that hasn't expired. Use the Endpoint: GET /MedicationRequest/{id}for this stage.Once the prescription has been validated as authorized and repeat, we can then use the same id to request a reorder of that prescription.
Create a new request of a prescription reorder using
Taskand having afocusthat has a reference of the sameMedicationRequestthat hasintent, theTaskresource is then used as the requestbody for the endpoint: POST /FHIR/R4/Task/At this stage the patient can then track the status of the order, or send a cancellation up (until the point the request is actioned).
INTERACTION DIAGRAMS TO BE COMPLETED