Nirmitee.io

E-prescribing, pharmacy claims and medication data

Pharmacy Integration Services

We connect prescribers, pharmacies and digital health products to the US medication network: NCPDP SCRIPT e-prescribing over the Surescripts network, EPCS for controlled substances, formulary and real-time benefit checks, NCPDP Telecommunication pharmacy claims, and FHIR medication resources inside your product.

  • NCPDP SCRIPT 2023011
  • Surescripts
  • EPCS
  • RTPB
  • NCPDP D.0 and F6
  • FHIR MedicationRequest

One prescription, four connected steps
  1. 01Check benefit

    Eligibility, formulary and real-time benefit shown before the prescriber signs.

  2. 02Prescribe

    FHIR MedicationRequest in your product, NCPDP SCRIPT NewRx on the network.

  3. 03Route

    Surescripts delivers to the pharmacy the patient chose, with EPCS where needed.

  4. 04Follow up

    RxFill, RxRenewal, RxChange and CancelRx flow back to the original order.

The short answer

Pharmacy integration services, in short

In the US, electronic prescriptions travel as NCPDP SCRIPT messages over the Surescripts network, pharmacy claims travel as NCPDP Telecommunication transactions to PBMs, and medication data inside EHRs and apps travels as FHIR. CMS has adopted NCPDP SCRIPT version 2023011 for Medicare Part D, and it becomes the only accepted version on 1 January 2028. We build the integrations that connect your product to all three worlds: e-prescribing through a certified eRx vendor or directly, EPCS with DEA-compliant identity proofing and two-factor signing, benefit checks before the prescriber signs, and a clean FHIR model inside your product.

Who it is for
Telehealth and virtual care products, EHR and practice management vendors, digital pharmacies, specialty pharmacy platforms and pharmacy software teams.
What we build
NCPDP SCRIPT e-prescribing (NewRx, RxRenewal, RxChange, CancelRx, RxFill), EPCS workflows, RTPB and formulary checks, NCPDP D.0 claims, and FHIR MedicationRequest mapping.
The outcome
Prescriptions that reach the right pharmacy, controlled substances signed the way the DEA requires, and every pharmacy response tied back to the original order.

Pharmacy standards

Pharmacy standards and transactions we integrate

Each standard serves a different step. These are the versions and rules in force for US pharmacy workflows in September 2026.

StandardVersion and dateWhat it carriesWhat we design for
NCPDP SCRIPT2023011 adopted by CMS for Part D in a final rule published 17 June 2024; required from 1 January 2028, when 2017071 retiresNewRx, RxRenewalRequest and Response, RxChangeRequest and Response, CancelRx, RxFill, RxHistory, ePA transactionsStructured sig, RxNorm and NDC coding, and upgrading from 2017071 before the cutoff
EPCS (DEA 21 CFR 1311)In force; CMS EPCS program requires at least 70 percent of Part D Schedule II to V prescriptions to be electronic, after exceptionsControlled substance prescriptions signed with two-factor authenticationIdentity proofing, two-factor signing, logical access controls and the third-party audit or certification of the application
Real-Time Prescription BenefitNCPDP RTPB version 13 required for Part D sponsors from 1 January 2028Patient-specific cost and covered alternatives at the point of prescribingShowing price and alternatives before signing, without slowing the prescriber
Formulary and BenefitNCPDP Formulary and Benefit standard, updated in the same 2024 CMS rulePlan formulary status, coverage limits and alternativesPairing with an X12 270/271 pharmacy eligibility check to find the patient's PBM
NCPDP TelecommunicationD.0 today; F6 required from 14 April 2028, with a transition from 14 August 2027Pharmacy claims to PBMs: B1 billing, B2 reversal, B3 rebill, E1 eligibilityPlanning the D.0 to F6 upgrade inside pharmacy and PBM software
HL7 FHIR R4US Core MedicationRequest; MedicationDispense and MedicationStatementOrders, dispenses and reported use inside EHRs and appsKeeping order, dispense and reported use distinct, coded to RxNorm

Pharmacy identifiers run through every step: NCPDP Provider ID and NPI for the pharmacy, NPI and DEA number for the prescriber, NDC and RxNorm RxCUI for the drug.

What we build

What our pharmacy integration services build

Each workstream ships with a specification, tests and an owner.

01

E-prescribing through an eRx vendor or direct

NewRx, CancelRx and pharmacy responses through a certified eRx vendor API such as DoseSpot or DrFirst, or a direct Surescripts connection when your volume justifies certification.

NCPDP SCRIPT 2023011 · NewRx · CancelRx · Status · Error

Surescripts and NCPDP SCRIPT guide →
02

Renewals, changes and fill status

RxRenewalRequest from the pharmacy routed to the right prescriber queue, RxChangeRequest for therapeutic or prior authorization changes, and RxFill notifications tied to the original order.

RxRenewalRequest · RxChangeRequest · RxFill · RxFillIndicatorChange

NCPDP SCRIPT and FHIR MedicationRequest →
03

EPCS for controlled substances

Identity proofing through a credential service provider, two-factor signing at the moment of prescribing, access controls set by two people, and the audit trail the DEA rule requires.

21 CFR 1311 · identity proofing · two-factor · audit logs

Telehealth software solutions →
04

Benefit checks before signing

Pharmacy eligibility, formulary status and real-time prescription benefit shown in the prescribing screen, so cost and covered alternatives are visible before the prescription is sent.

X12 270/271 · NCPDP F&B · NCPDP RTPB 13 · ePA

Prior authorization integration →
05

FHIR medication model

MedicationRequest, MedicationDispense and MedicationStatement mapped to US Core, coded to RxNorm, and converted to NCPDP SCRIPT at the network edge, so your product works in FHIR.

FHIR R4 · US Core MedicationRequest · RxNorm · NDC

FHIR integration services →
06

Pharmacy system and claims interfaces

Interfaces between pharmacy management systems, PBMs, inventory and dispensing tools, NCPDP D.0 claims with a plan for F6, and HL7 RDE and RDS messages for hospital pharmacy.

NCPDP D.0 and F6 · HL7 RDE and RDS · inventory sync

Mirth Connect for NCPDP and pharmacy →

Buyer decisions

E-prescribing integration options compared

How you reach pharmacies is the biggest decision in a prescribing product. We build on each path.

OptionBest fitWhat you getWhat to plan for
Certified eRx vendor API (DoseSpot, DrFirst and similar)Telehealth and digital health products that need to prescribe fastSurescripts connectivity, EPCS and pharmacy directory through one APIPer-prescriber fees, the vendor's UI or API limits, and data you can export
Direct Surescripts certificationEHRs and high-volume prescribing platformsFull control of the SCRIPT workflow and the prescriber experienceSurescripts certification testing, EPCS audit, and a longer runway
EHR-native prescribingProducts embedded in an EHR such as Epic or athenahealthThe EHR's existing eRx and EPCSLaunching into the EHR and reading orders back through FHIR
Pharmacy-side integrationDigital and specialty pharmacies receiving prescriptionsInbound NewRx, RxRenewal and RxChange to your pharmacy systemPharmacy certification with the network and inbound routing rules
FHIR only, inside your productMedication lists, reconciliation and care coordinationMedicationRequest and MedicationStatement across apps and EHRsFHIR does not send a prescription to a retail pharmacy on its own

Most telehealth products start on an eRx vendor API and move to direct certification only when volume and product control justify it.

Integration boundaries

Pharmacy integration boundaries: who owns what

Prescribing crosses clinical, regulatory and network lines. We write ownership down before the build.

Prescribers and your clinical team

Clinical decisions, drug selection, substitutions and signing. The software supports them; it never decides for them.

The network and eRx vendor

Surescripts or your eRx vendor owns network participation, certification testing and pharmacy directory data.

DEA and state rules

EPCS requirements come from 21 CFR 1311 and state law, and the application's audit or certification is a gating step we plan for.

The integration layer (ours)

SCRIPT and FHIR mapping, routing, identity and signing workflows, correlation, retries and alerts. Defects here are ours to fix.

Security and PHI

Prescription data is encrypted in transit and at rest, access is logged, and we sign a BAA and work inside our ISO 27001:2022 certified management system.

Deliverables

Pharmacy integration deliverables

Everything below lands in your repository and your runbook.

01

Integration specification

SCRIPT transactions, FHIR resources, identifiers, routing rules and annotated sample messages.

02

Connectors and code

eRx vendor or network connector, FHIR mapping and pharmacy interfaces in your repository.

03

EPCS evidence pack

Identity proofing flow, two-factor signing, access control records and audit logs ready for the third-party review.

04

Test evidence

NewRx, renewal, change, cancel and fill scenarios, including errors and pharmacy rejections.

05

Terminology maps

RxNorm and NDC mapping with reviewer sign-off and a queue for unmapped drugs.

06

Monitoring and runbook

Alerts on failed or unacknowledged prescriptions, escalation contacts and support procedures.

Delivery phases

Pharmacy integration timeline

Prescribing through an eRx vendor API typically takes 6 to 10 weeks. Direct network certification and EPCS audit add time, set largely by the certifying bodies.

  1. 01

    Route and requirements

    Weeks 1 to 2

    eRx route chosen, vendor or network onboarding started, EPCS scope and state rules confirmed

  2. 02

    Build

    Weeks 2 to 6

    SCRIPT or vendor API integration, FHIR mapping, benefit checks and prescriber workflow built

  3. 03

    Certification and testing

    Weeks 5 to 9

    Vendor or network test scripts, EPCS identity and signing tested, pharmacy responses verified

  4. 04

    Go-live and hypercare

    Weeks 8 to 10

    Production prescribers enabled, monitoring live, runbook handed over

Cost drivers

What drives pharmacy integration cost

You get a fixed scope after one scoping call. These are the factors that move it.

Route to the network

An eRx vendor API is the fastest path; direct certification is a larger, longer workstream.

Controlled substances

EPCS adds identity proofing, two-factor signing and an application audit or certification.

Transactions in scope

NewRx alone is the smallest unit; renewals, changes, fills and history each add workflows.

Benefit and prior authorization

Formulary, RTPB and ePA checks add payer and PBM connectivity.

FHIR and EHR integration

Mapping to US Core and reading or writing to an EHR adds its own testing.

Pharmacy-side systems

Pharmacy management, PBM claims and inventory interfaces are scoped per system.

Get a fixed scope on a 30-minute call ↗

Proof

Pharmacy and medication work you can check

Client names are withheld. The code linked here is public.

Live in production

Pharmacy group-purchasing order platform

Built and run for a pharmacy group-purchasing organization serving independent pharmacies: one order desk kept in sync with inventory, CRM and member communications, so every order ships against real stock.

Public GitHub repository

Open-source headless EHR on FHIR R4

Our FHIR R4 EHR backend passed 47 of 47 ONC (g)(10) Inferno SMART App Launch STU2 standalone patient tests, the same foundation we use for MedicationRequest workflows.

View the repository on GitHub →

Public GitHub repository

Open-source Da Vinci CRD server

Our CDS Hooks coverage requirements server returns coverage and documentation rules at order-sign, the same moment a prescriber needs benefit information.

View the CRD server on GitHub →

Nirmitee platform

Interoply integration platform

Our platform runs X12, HL7 v2 and FHIR connectors behind one API, with per-partner configuration, replay and monitoring built in.

See Interoply →

Security

ISO 27001:2022 certified, BAAs signed

We are ISO 27001:2022 certified and sign Business Associate Agreements for work that touches patient data.

FAQ

Pharmacy integration services: questions buyers ask

What are pharmacy integration services?

Pharmacy integration services connect prescribers, pharmacies, PBMs and health products so medication data and prescriptions move electronically. The work covers NCPDP SCRIPT e-prescribing, EPCS for controlled substances, benefit and formulary checks, NCPDP Telecommunication pharmacy claims, pharmacy system interfaces and FHIR medication resources.

Which NCPDP SCRIPT version is required?

CMS adopted NCPDP SCRIPT version 2023011 for Medicare Part D e-prescribing in a final rule published 17 June 2024. Either 2017071 or 2023011 may be used during the transition, and from 1 January 2028 only 2023011 is accepted. Products still on 2017071 should plan the upgrade now.

Can I use FHIR for electronic prescribing?

Use FHIR inside your product and between apps and EHRs: MedicationRequest for the order, MedicationDispense and MedicationStatement for what happened next. To send a prescription to a US retail pharmacy, the network still expects NCPDP SCRIPT, so we convert FHIR to SCRIPT at the network edge.

Can we set up e-prescribing without running a full EHR?

Yes. A telehealth or digital health product can prescribe through a certified eRx vendor API, keep its own FHIR medication model and skip building an EHR. We connect the prescriber workflow, patient and pharmacy data and the vendor API, and store orders as FHIR MedicationRequest resources.

Do we need Surescripts, or can we use an eRx vendor?

Almost every US retail pharmacy is reached through the Surescripts network. You can connect directly, which means Surescripts certification, or through a certified eRx vendor such as DoseSpot or DrFirst that already holds it. Most products start with a vendor and move direct when volume justifies it.

How do refill requests and renewals work electronically?

The pharmacy sends an RxRenewalRequest when refills run out. Your product routes it to the right prescriber, who approves, denies or modifies it, and an RxRenewalResponse goes back. RxChangeRequest handles substitutions and prior authorization changes, and RxFill tells you the prescription was dispensed.

What does EPCS require?

Under DEA rule 21 CFR 1311, each prescriber's identity must be proofed by an approved credential service provider, every controlled substance prescription is signed with two-factor authentication, access controls are set by two people, and the application needs a third-party audit or certification. Many states also mandate EPCS.

How do you route a prescription to the right pharmacy?

The patient chooses a pharmacy, which we look up in the network's pharmacy directory by NCPDP Provider ID and NPI. The NewRx is addressed to that pharmacy, and Status, Error and RxFill responses come back tied to the original prescription, so failed routing shows up immediately.

What are NCPDP Telecommunication D.0 and F6?

The Telecommunication standard carries pharmacy claims from pharmacies to PBMs: B1 billing, B2 reversal, B3 rebill and E1 eligibility. D.0 is the current HIPAA version. HHS adopted F6 as its replacement, with a transition starting 14 August 2027 and compliance required from 14 April 2028.

What is real-time prescription benefit?

Real-time prescription benefit shows the patient's actual cost and covered alternatives while the prescriber is choosing a drug. CMS requires Part D sponsors to support NCPDP RTPB version 13 from 1 January 2028. We add it to the prescribing screen alongside formulary and eligibility checks.

How long does a pharmacy integration take?

Prescribing through an eRx vendor API typically takes 6 to 10 weeks. Direct Surescripts certification and the EPCS audit add time, set largely by the certifying bodies. FHIR medication mapping inside your product runs in parallel with the network work.

How much do pharmacy integration services cost?

Cost depends on the route to the network, whether you prescribe controlled substances, the SCRIPT transactions in scope, benefit and prior authorization checks, FHIR and EHR integration, and pharmacy-side systems. We give a fixed scope after one scoping call, before you commit.

Next step

Scope your pharmacy integration in one call

Tell us your product, prescribers, pharmacy targets and whether you prescribe controlled substances. An integration engineer replies with the right route to the network and a fixed scope.

Send your details

Which medication handoff needs to work?

Tell us about your product, the prescribers and pharmacies involved and the workflow you need. Please do not send patient data.

  • The systems and partners involved
  • Available API, SFTP or interface access
  • Your workflow and target date

Please exclude patient data and credentials. We use these details to respond to your enquiry. Privacy policy

Thank you. Your enquiry has been received. Our team will review your requirements.