Specialty medication intake often begins with a prescription, but later evidence may describe the product a pharmacy actually supplied. FHIR R4 has distinct resources for those steps. A medication substitution review should preserve both product identities and the documented reason for any change, without treating a dispense record as proof of administration or coverage approval.
Anchor the dispense to its order
MedicationRequest records the order and administration instructions. MedicationDispense records a supply that is to be or has been dispensed. Its authorizingPrescription can reference one or more MedicationRequest resources. Resolve that reference before comparing products; similar medication names alone are not a reliable link.
Check the patient, order status, dispense status, dates, and the medication in each resource. MedicationDispense.status includes preparation, in-progress, completed, stopped, cancelled, and other states. A preparation record should not be presented as proof that the patient received a product.
Inspect the actual substitution record
MedicationDispense.medication[x] identifies the supplied medication. The optional substitution element records whether substitution occurred through wasSubstituted. It can also carry a type, reasons, and responsible parties. If the element is absent, absence alone does not prove that no substitution occurred; it says the record has not supplied that structured answer.
Compare coded products and relevant identifiers at the granularity needed by the applicable policy or workflow. The same class of therapy is not necessarily the same product. If the dispense points to a different order than the intake packet, preserve both references and request reconciliation instead of overwriting the prescription.
- Resolve every authorizingPrescription reference.
- Compare ordered and supplied medication identities.
- Capture wasSubstituted, type, reason, and responsibleParty when documented.
- Distinguish whenPrepared from whenHandedOver and verify dispense status.
Use the difference to guide review
If a substitution is documented, determine whether the current authorization and benefit review refer to the prescribed or supplied product. That is a case-specific payer and clinical review question; FHIR does not make the coverage decision. If the reason or responsible party is missing, request the source documentation rather than inventing a rationale.
FHIRant’s SpecialtyRx Sidekick page describes organizing prescription, coverage, and clinical evidence and identifying coverage barriers and next actions. A substitution comparison is a concrete use of that workflow: it can make a product mismatch visible for a human reviewer and keep the source records attached to the question.
End with a traceable product history
Record the original MedicationRequest, each linked MedicationDispense, the product and status in each record, the substitution details, and the unresolved authorization question. Keep the dispense separate from MedicationAdministration, which documents actual administration. This preserves the sequence from order to supply without turning it into a claim that treatment occurred.