How to build a telehealth platform, Part 3: e-prescribing and pharmacy routing
The clinician signs. What happens in the next seventy-two hours — the electronic prescription, the pharmacy choice, the fill, the box on the porch — is the part of a telehealth platform patients actually experience, and the part founders most often assume is one integration. It is several. Part 3 of the series.
After a clinician signs, the prescription leaves as an electronic message over the e-prescribing network to a pharmacy — with EPCS identity-proofing and two-factor signing if the drug is controlled. Which pharmacy depends on a routing rule, not a single contract: the patient’s state (the pharmacy must hold a license to ship there), the medication type (patient-specific compounded products go to a 503A compounding pharmacy, batch-made products to a 503B outsourcing facility, commercial brands to retail or mail order), cold-chain needs, capacity, and turnaround. The pharmacy fills and ships; fulfillment status comes from the pharmacy and carrier, not the prescribing network, so tracking is a separate integration. Your product needs a clean status model — signed, order created, shipped, delivered, exception — and every one of those should arrive as an event.
The signature is the beginning
In a clinic, prescribing ends at the printer. In telehealth it starts a pipeline: the prescription must reach a pharmacy that can lawfully fill it for a patient in that state, the pharmacy must fill and ship it, the package must arrive intact, and your product must know where it is at each step. Each stage has its own rules, its own failure modes, and its own source of truth.
Stage 1 · The electronic prescription
The clinician signs in e-prescribing software certified on the national network, and the prescription leaves as a standardized message — the NCPDP SCRIPT standard — addressed to a specific pharmacy. The pharmacy acknowledges receipt. Refill requests, cancellations, and changes travel the same way in the other direction. For controlled substances, DEA rules add identity proofing of the prescriber and two-factor authentication at the moment of signing, and the prescription must satisfy the federal telemedicine rules covered in our DEA telemedicine guide.
Two facts shape the architecture. You do not integrate with the network directly; certified software does, and infrastructure carries that certification so a brand never has to. And the network’s job ends at acknowledgement: it does not know whether the pharmacy filled or shipped anything. Status after this point comes from somewhere else.
Stage 2 · Choosing the pharmacy
The most common misconception in telehealth architecture is that pharmacy is a partnership you sign once. It is a routing decision made per order.
| Factor | Rule |
|---|---|
| Patient’s state | The pharmacy must hold a license — resident or non-resident — for the destination state. See non-resident pharmacy licensing. |
| Medication type | Patient-specific compounded products → 503A compounding pharmacy. Batch-produced products → 503B outsourcing facility (mostly office use). Commercial brands → retail or mail-order pharmacy. See 503A vs 503B. |
| Controlled status | Only pharmacies set up for controlled dispensing, with PDMP reporting in the destination state. |
| Cold chain | Injectables and many peptides need refrigerated packaging and a pharmacy that ships it well. |
| Capacity and turnaround | Pharmacies have queues; routing balances load against promised delivery windows. |
| Cost and formulation | Compounded pricing and available strengths differ by pharmacy; the catalog entry decides what is offered, routing decides who fills. |
A program selling compounded semaglutide in thirty states, finasteride in fifty, and a Schedule IV medication in a handful will use several pharmacies, and any single order should go to the right one automatically. That logic — plus the contracts, the onboarding, and the per-pharmacy integrations behind it — is what a brand is buying when it buys infrastructure.
Stage 3 · The fill
The pharmacy verifies the prescription, checks it against the patient’s profile (drug utilization review, interactions, duplicates), compounds or picks the product, labels it, and packages it. Compounded products carry a beyond-use date, which makes fill timing matter: a product compounded on Monday for a patient who receives it Friday has lost four days of a short window. Good routing accounts for it; good status reporting tells your product when the fill happened.
Stage 4 · Shipping and cold chain
Room-temperature tablets ship like any parcel. Injectables and many peptides ship cold chain: insulated packaging with refrigerant sized for the transit time, carrier service levels chosen so packages do not sit over a weekend, and exception handling when a delivery is delayed or a package arrives warm. The pharmacy owns packaging; the program owns the patient’s expectations, which means your product needs the carrier events — label created, in transit, out for delivery, delivered, exception — not just “shipped.” The cold-chain glossary entry covers what to ask a pharmacy.
The status model your product needs
Patients experience this pipeline as a single question asked repeatedly: where is it? Answering it well means modeling the stages explicitly and receiving each as an event rather than polling.
| Status | Source of truth | What the patient sees |
|---|---|---|
| Signed | Clinician / e-prescribing | “Your clinician approved your treatment” |
| Order created | Pharmacy acknowledged | “Your pharmacy is preparing your order” |
| Shipped | Pharmacy + carrier label | “Shipped — arriving Thursday” with tracking |
| Out for delivery / delivered | Carrier | Delivery confirmation; storage instructions for cold chain |
| Exception | Carrier or pharmacy | What happened and what happens next — proactively |
On Lithos the clinical side of this arrives as encounter.approved (with the signed prescriptions — medication, sig, quantity, days_supply, the prescribing physician’s NPI — on the encounter) and the fulfillment side as order.created, order.processing, and order.completed, with the fulfilling pharmacy on the order; carrier-level tracking is outside the API today, so model those stages from your pharmacy’s notifications; the next post in the integration series, event-driven telehealth, covers building around them.
Refills flow backward
Pharmacies also originate messages: when a patient’s fills run out, the pharmacy can send a renewal request to the prescriber over the same network. In subscription telehealth the program usually drives renewals instead — a check-in on your schedule, a refill encounter, a clinician’s authorization — so the design question is which system is the source of truth for “due.” Pick the program, and make the pharmacy’s requests informational. Our refill guide covers the program-driven loop.
Build or buy
Nobody should build this layer for one brand. E-prescribing certification, EPCS, pharmacy contracting in multiple states, per-pharmacy integrations, carrier integrations, and cold-chain operations are the same for every program and take quarters to assemble. What a brand should own is the patient-facing status experience and the decisions about which treatments to offer where. Everything between the signature and the doorstep is infrastructure.
Lithos handles prescribing and pharmacy routing behind every encounter: prescriptions route to your preferred pharmacy or through Lithos’s direct pharmacy partners (custom rates, no monthly fee, coming Q3 2026), and fulfillment status streams back as webhooks. Next in the build series: routing encounters to licensed physicians across 50 states.
Frequently asked questions
How does e-prescribing work in telehealth?
The clinician signs the prescription in certified e-prescribing software, which transmits it as a standardized electronic message over the e-prescribing network to the chosen pharmacy. Controlled substances additionally require EPCS: an identity-proofed prescriber completing two-factor authentication at signing.
What is the difference between a 503A and a 503B pharmacy for telehealth?
A 503A compounding pharmacy prepares patient-specific medications on individual prescriptions and is licensed by state boards. A 503B outsourcing facility produces larger batches under FDA registration and cGMP, typically for office use. Compounded GLP-1 and peptide programs mostly use 503A pharmacies.
Can one pharmacy ship to every state?
Only if it holds a non-resident pharmacy license in every state it ships to, which is rare. Most programs route each order to a pharmacy licensed for the patient’s state, which is why pharmacy routing is a rule, not a contract.
How do compounded GLP-1 injectables ship?
Cold chain: insulated packaging with refrigerant, carriers and service levels chosen for transit time, and exception handling for delays or temperature excursions. Beyond-use dates on compounded products make timing matter.
Does a telehealth brand need its own pharmacy integration?
Not when building on infrastructure that handles prescribing and pharmacy routing. Prescriptions route to your preferred pharmacy or the infrastructure’s direct pharmacy partners; the brand receives fulfillment status as webhooks and shows it to the patient.
Get the Journal by email
Our best guides on building compliant telehealth programs — a couple a week, unsubscribe any time.
From first call to first patient, in weeks.
A 15-minute intro call, sandbox credentials the same day, go-live in 2–4 weeks — new launches and existing patient bases alike.