{"id":"b41489b4-899a-4e25-b262-ef316d0a547e","task":"Transmit an NCPDP SCRIPT 2017071 NewRx e-prescription from an EHR to a Surescripts-connected pharmacy","domain":"ncpdp.org","steps":["Obtain Surescripts network certification and sandbox credentials; configure your system as a Prescriber System or Pharmacy System participant type","Construct the SCRIPT 2017071 NewRx XML document: populate Header (MessageID, SentTime, To/From SPI routing addresses), Patient segment (PTT), Prescriber segment (PVD with NPI and DEA if controlled), Drug segment (DRU with NDC or RxNorm code), and SigText (up to 1,000 characters in v2017071)","Set Quantity (QTY segment), DaysSupply, Refills, and WrittenDate fields; for controlled substances include EPCS digital signature block per DEA 21 CFR 1311","Submit the NewRx message over Surescripts SOAP/HTTPS endpoint; receive synchronous HTTP 200 acknowledgment then await asynchronous Status or Error transaction callback","Handle RxChangeRequest response from pharmacy if drug or quantity substitution is needed; respond with RxChangeResponse Approved or Denied transaction","Log all message IDs for audit trail; retain SCRIPT messages per applicable state e-prescribing record retention law (often 10 years)"],"gotchas":["Surescripts requires prior certification testing in their sandbox before production access; the certification process includes mandatory test case scenarios that must pass before go-live approval","SCRIPT 2017071 SIG coded fields are optional but some pharmacy systems cannot parse free-text SigText reliably; always send both SigText and structured SIG elements where possible","The SPI (Surescripts Prescriber Identifier) is distinct from NPI; a provider must be enrolled in the Surescripts directory and have an active SPI before NewRx routing will succeed"],"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:26.626Z"},"url":"https://mcp.waymark.network/r/b41489b4-899a-4e25-b262-ef316d0a547e"}