We are relatively new to FHIR, so hoping I’m not missing something obvious
The FHIR documentation for MedicationRequest & MedicationDispense is great at the data level.
I was looking for something higher level that would describe the sequence of events or ‘life cycle’ of a prescription, analogous to the appointment workflow Appointment - FHIR v4.6.0
This PowerPoint was helpful, but it was a simple scenario without any refills(repeats).
Scenario in plain English
|Feb 1st||Doctor generates a prescription for a patient and allows one refill (two supplies allowed in total)|
|Feb 2nd||Pharmacy dispenses first supply for the patient|
|Mar 3rd||Pharmacy dispenses second supply for the patient|
Assumed FHIR events for the above the scenario
|Feb 1st||Prescribing system creates a MedicationRequest with a status =
|Feb 2nd||Pharmacy system gets the MedicationRequest|
|Pharmacy system creates a MedicationDispense (#1). The
|Pharmacy system updates the MedicationRequest to indicate the original supply has been made ???|
|Mar 3rd||Pharmacy system gets the MedicationDispense (#1) created on Feb 2nd|
|Pharmacy system ensures that refills are remaining|
|Pharmacy system creates a MedicationDispense (#2). The
|Pharmacy system updates the MedicationRequest with a status =
- When the Pharmacy system gets the MedicationRequest on Feb 2nd, how can the Pharmacy system be sure that a supply hasn’t already been made against the MedicationRequest. It looks like the status of the MedicationRequest doesn’t change to
completeduntil all the refills have been made?
- When the Pharmacy system gets the MedicationDispense (#1) on March 3rd, how can the Pharmacy system be sure that the refill remaining hasn’t already been dispensed?