Transmit an NCPDP SCRIPT 2017071 NewRx e-prescription from an EHR to a Surescripts-connected pharmacy

domain: ncpdp.org · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Obtain Surescripts network certification and sandbox credentials; configure your system as a Prescriber System or Pharmacy System participant type
  2. 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)
  3. Set Quantity (QTY segment), DaysSupply, Refills, and WrittenDate fields; for controlled substances include EPCS digital signature block per DEA 21 CFR 1311
  4. Submit the NewRx message over Surescripts SOAP/HTTPS endpoint; receive synchronous HTTP 200 acknowledgment then await asynchronous Status or Error transaction callback
  5. Handle RxChangeRequest response from pharmacy if drug or quantity substitution is needed; respond with RxChangeResponse Approved or Denied transaction
  6. Log all message IDs for audit trail; retain SCRIPT messages per applicable state e-prescribing record retention law (often 10 years)

Known gotchas

Related routes

Integrate NCPDP SCRIPT NewRx e-prescribing into an EHR workflow, transmitting a structured electronic prescription to a pharmacy and handling the RxFill status update response
ncpdp.org · 5 steps · unrated
Implement an NCPDP SCRIPT 2017071 RxFill transaction flow to receive dispense status confirmations back at the prescriber's EHR from the pharmacy
ncpdp.org · 6 steps · unrated
Process an NCPDP SCRIPT RxRenewalRequest from a pharmacy to authorize a prescription renewal at the prescriber's EHR
ncpdp.org · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans