There is no public Surescripts API. The two routes in, the standard deadline to plan for, and why controlled substances come first.
Originally published on Nirmitee.io: Surescripts Integration Guide: E-Prescribing, NCPDP SCRIPT, API Options and Certification
If your EHR or clinical app needs to send prescriptions to pharmacies, you will need Surescripts. It runs the main US e-prescribing network, connecting prescribers, pharmacies, pharmacy benefit managers and health systems.
The first surprise for most teams: there is no public, self-serve Surescripts API. The source found no developer portal and no self-serve keys. Access runs through a commercial agreement and certification of your software, or through a partner that already has them.
You connect once and reach everyone on the network. In return, you accept its certification, standards and contract terms.
Why it is harder than it looks
The message code is only one of five jobs. In the source's planning judgment, the others are:
- Access is gated. You need an agreement and certified software before live traffic moves.
- It is a conversation. Renewals, changes, cancellations and fill notices arrive later, and someone in your product has to act on them.
- Controlled substances bring federal rules. Identity proofing, two-factor signing and a third-party audit sit outside the message format.
- The standard is mid-migration. Two versions are allowed until the end of 2027.
- Supporting data must be right. Pharmacy lookup, drug coding, prescriber identity and patient matching all have to work first.
Two routes in
Direct certification or a certified partner. Source: Nirmitee.io
This is the fork most teams face, and switching late is expensive. The source's rule of thumb:
- Direct certification when prescribing is the product, such as a stand-alone prescribing product or a large EHR. You hold the certification and have the most control over the workflow. The controlled-substance audit is yours to arrange and repeat.
- A certified partner when prescribing is one feature of a wider product. Vendors such as DoseSpot, DrFirst, ScriptSure, Bravado Health and LogiCoy sell APIs or embedded prescribing. Your control is limited by the partner's API and roadmap, so confirm who is responsible for the audit.
The standard and its deadline
Prescriptions are written in NCPDP SCRIPT, which plays the role for e-prescribing that HL7 v2 plays for hospital interfaces. The dates that matter now:
- Until the end of 2027, CMS allows either SCRIPT 2017071 or 2023011 for Medicare Part D.
- From January 1, 2028, 2023011 is the only allowed version.
Plan anything new for 2023011. There is disagreement on whether the new version is backward compatible, and upgrading can count as a change to controlled-substance functions that triggers a new audit. Ask your auditor.
Controlled substances: plan these first
Electronic prescribing of controlled substances (EPCS) covers Schedule II to V drugs and is regulated by the DEA. In the source's judgment, it is the hardest part of a Surescripts project, because the difficulty sits in the controls around the message:
- Identity proofing of each prescriber to a set federal standard.
- Two-factor authentication to sign each controlled-substance prescription.
- Access control managed by at least two people at each location.
- A digital signature and an audit trail kept for two years.
- A third-party audit before first use, then every two years or when those functions change.
Surescripts adds its own gate: applications must prove they passed that audit before sending EPCS messages on the network.
There is demand pressure too. Medicare's EPCS program expects 70% or more of Part D controlled-substance prescriptions to be electronic, with an exception for prescribers with 100 or fewer.
This touches your login and authentication design directly and is hard to retrofit. If controlled substances are in scope, design for EPCS first.
Certification sets the timeline
Certification and onboarding set the timeline. Source: Nirmitee.io
Certification and contracting usually set the schedule, and the source budgets months for them. Surescripts publishes no duration, so ask Surescripts or your partner for a date before you commit to one. The plan:
- Choose your route and list the transactions you need.
- Build and test each conversation. The source expects renewals and cancellations to take the most rework.
- Certify and contract, with an owner and milestones from week one.
- Enable production in stages.
Before any of that, your product needs prescriber records, pharmacy search, drug coding, a clinical inbox for renewal and change requests, and message tracking. The original guide lists everything a custom EHR needs, with sources for each rule. It also covers every SCRIPT message and version date.
Nirmitee.io builds e-prescribing and pharmacy integrations for EHRs and clinical apps, through direct certification or certified partners. For the full route comparison and EPCS rules, read the original: Surescripts Integration Guide on Nirmitee.io.
Dinesh Thorat is Healthtech Growth Partner at Nirmitee.io.
Originally published at nirmitee.io.


