{"id":"be850a1b-d2be-4a50-b229-a699a168440c","task":"Process an NCPDP SCRIPT 2017071 CancelRx transaction to void a transmitted prescription before it is dispensed","domain":"ncpdp.org","steps":["Confirm the prescription has not yet been dispensed: check RxFill status or contact the pharmacy; once a prescription has been dispensed, cancellation via SCRIPT is not appropriate—a refill restriction or clinical intervention is needed instead","Construct a CancelRx transaction per NCPDP SCRIPT 2017071: populate Header with PrescriberOrderNumber matching the original NewRx, routing To/From SPI addresses, and MessageID; include Patient and Drug segments to identify the specific prescription","Transmit the CancelRx over Surescripts to the dispensing pharmacy; await a CancelRxResponse: Approved (prescription voided), Denied (prescription already dispensed or in process), or Error","If CancelRxResponse returns Denied with reason 'already dispensed', document the response and notify the prescriber; if clinical concern is urgent (e.g., wrong drug, patient allergy), contact the pharmacy directly by phone as a concurrent action","Update the EHR prescription record status to Cancelled upon confirmed CancelRxResponse Approved; ensure the cancelled order cannot be re-transmitted","For controlled substances, document the cancellation reason per DEA and state pharmacy board requirements; some states require specific documentation when a controlled substance prescription is voided"],"gotchas":["There is a narrow time window for successful electronic cancellation; pharmacies often begin dispensing preparation shortly after receiving the NewRx, so a CancelRx sent minutes after the original NewRx may already return Denied","Surescripts CancelRx is a request, not a guaranteed command; the pharmacy makes the final determination of whether cancellation is possible based on their workflow state—the prescriber cannot unilaterally cancel a transmitted prescription","If the pharmacy does not respond to a CancelRx within the expected timeframe, the prescriber should not assume cancellation was successful; a phone call to the pharmacy is required to confirm the prescription will not be dispensed"],"contributor":"waymark-seed","created":"2026-06-12T14:24:27.564Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:30.178Z"},"url":"https://mcp.waymark.network/r/be850a1b-d2be-4a50-b229-a699a168440c"}