A refill queue often presents a deceptively simple question: can the next supply move forward? The answer may depend on several records that describe different things. A MedicationRequest describes the prescriber’s order and its dispense instructions. MedicationDispense records what a pharmacy prepared or supplied. Coverage identifies a plan and its period. A payer authorization is another decision with its own scope and dates. This guide shows how to assemble a reviewable handoff without treating any one of those facts as proof of the others.

Start with the prescription, not the previous fill

Retrieve the current MedicationRequest by a stable business identifier and verify the patient, requested product, intent, status, and prescriber. FHIR R4 defines dispenseRequest.validityPeriod as the period in which the prescription is dispensable. Its numberOfRepeatsAllowed counts repeats after the original dispense, not the total number of fills. The resource can also carry a minimum dispenseInterval and an expectedSupplyDuration. Those fields help interpret the order, but their absence is not permission to infer an unlimited supply.

Check whether the order has been changed, stopped, replaced, or entered in error. If a renewed order exists, link the old and new identifiers in the work item and have the appropriate pharmacy or prescribing staff resolve which order governs. Do not silently copy a previous dose, product, or quantity into a new request. Prescription validity is only the prescriber-side timeline; it does not by itself establish current coverage or payer approval.

  • Record order identifier, status, product, quantity, repeat count, and validity period.
  • Flag a missing or conflicting field for human review instead of guessing.
  • Preserve the previous order when a renewal creates a new MedicationRequest.

Reconcile what was actually dispensed

Use MedicationDispense.authorizingPrescription to connect dispense events to the relevant order. Check each event’s status, quantity, daysSupply, whenPrepared, and whenHandedOver when present. A prepared dispense and a completed handoff are different operational states. A partial fill, cancellation, or entered-in-error event should not be counted like a completed full supply. Compare product identifiers as well as dates, particularly if a substitution or formulation change appears.

Build a chronological view with one row per dispense event and its source identifier. This makes a remaining-fill estimate auditable, but the estimate is not a substitute for the pharmacy’s dispensing system or applicable rules. If the data arrives from multiple systems, reconcile duplicates and late corrections before using it to drive an automated work queue.

  • Match each dispense to its authorizing order and patient.
  • Keep event status and actual handoff time visible.
  • Escalate partial fills and conflicting quantities rather than decrementing a guessed balance.

Recheck benefit and authorization scope separately

FHIR Coverage.status, beneficiary, payor, and period help identify the coverage record that may apply on the proposed service date. A record labeled active can still require verification with the payer or benefit channel. If the plan or benefit has changed since the last fill, route a fresh benefits and authorization check to the appropriate team. Do not carry a prior authorization number forward merely because the same medication appeared in a prior dispense.

Compare any payer decision with the intended product, service, quantity, site or channel, and effective dates that the actual response states. Keep an authorization review result separate from the prescription’s validityPeriod. A payer may request updated documentation, a new submission, or no new authorization; the local workflow should record the source and date of that conclusion. FHIR R4 MedicationRequest.insurance can reference Coverage or ClaimResponse, but such a reference does not prove that a future fill is approved.

  • Capture the proposed fill date and the Coverage record used for the check.
  • Record the payer response identifier and reviewed scope when available.
  • Assign an owner for any missing response or changed coverage.

Make the handoff explicit

A useful refill work item carries four independent answers: whether the prescription is current, what supply has already been dispensed, which coverage is being evaluated, and whether the intended fill has a documented authorization outcome. Store a source identifier and review timestamp for each answer. A single green “refill ready” label hides important uncertainty if one source is stale or missing.

At handoff, show the unresolved question and the person or team expected to answer it: prescriber for a new order, pharmacy for dispense reconciliation, benefits staff for plan verification, or authorization staff for payer follow-up. Close the item only after the needed source evidence is attached or linked. This is a documentation and workflow pattern, not a determination that a medication should be dispensed or that a payer must cover it.

Primary references