Skip to content

NCPDP SCRIPT basics (e-prescribing)

NCPDP SCRIPT is the US e-prescribing standard: XML transactions exchanged between prescriber systems, pharmacies, and intermediary networks. A prescriber sends a NewRx to start a prescription; renewals, cancellations, and fill notifications each have their own transaction type. The version federally named for e-prescribing under Medicare Part D is SCRIPT 2017071. The specification itself is licensed by NCPDP to its members, so this page covers the concepts, not the transaction structure.

StewardNCPDP (National Council for Prescription Drug Programs)
FormatXML transactions over intermediary networks
Common transactionsNewRx (new prescription), RxRenewalRequest and response, CancelRx, RxFill (fill status)
Named versionSCRIPT 2017071 (Medicare Part D e-prescribing)
LicensingThe specification and its schemas are NCPDP member material; this page reproduces none of it

Example

A new prescription, conceptually:

  Prescriber EHR --- NewRx ------------------> Pharmacy system
  Pharmacy system --- Status/Verify ---------> Prescriber EHR
  Pharmacy system --- RxFill (dispensed) ----> Prescriber EHR   (when enabled)

A renewal starts in the opposite direction:

  Pharmacy system --- RxRenewalRequest ------> Prescriber EHR
  Prescriber EHR  --- RxRenewalResponse -----> Pharmacy system

Both flows ride an intermediary network that routes by pharmacy and
prescriber directory identifiers (NPI, NCPDP Provider ID).

Hand-authored concept diagram; transaction names are public knowledge, and no licensed SCRIPT structure or field content appears here. In Pidgeon, NCPDP generation is closed by default and opens only when a member supplies the SCRIPT package (pidgeon data install ncpdp-script --accept-license); pidgeon capabilities reports NCPDP as license-required until then.

Validation context

Strict and compatibility validation notes land here with the phase-1 data export.

This answer, in your terminal

pidgeon capabilities

Wire it into your AI agent:

claude mcp add pidgeon -- npx -y @pidgeonhealth/mcp

Download Post free to browse this reference with generation attached.

HL7® and FHIR® are registered trademarks of Health Level Seven International.

Published by Pattern Engine LLC (Pidgeon Health).

Rendered from the same machine-readable definitions the Pidgeon engine validates against. Hand-authored reference page (phase 1b). Concept-level only: NCPDP SCRIPT is member-licensed and none of its specification content is reproduced.