← Laboratory

US-LAB-PHARMACY

Prescription to dispense and back

A patient leaves the GP with a prescription written during her consultation. She chooses her pharmacy. The e-script flows through the Estonian e-Health backbone. She picks up the medication on her way home. The dispense event flows back, closing the prescription on her timeline and feeding the adherence dashboard the GP will see at the next visit.

The scene

Wednesday 15:40 at a general practice in Tallinn. The patient, Marina K., 51, is being seen for a follow-up on hypertension. Her blood pressure on home readings has been 148/92 average over the past month despite being on amlodipine 5 mg. The GP, Dr. Suur, decides to add a low dose of perindopril. She also renews Marina's atorvastatin chronic prescription, which expires next month.

In a third item, Marina mentions she's been having recurrent bacterial vaginosis; the GP examines, agrees, prescribes a 7-day course of metronidazole.

The smart-action surface during the consultation drafts:

PRESCRIPTIONS — today's visit
─────────────────────────────────────────────────
NEW
 ☑ Perindopril 2.5 mg PO OD, 90-day supply, repeats × 3
 ☑ Metronidazole 500 mg PO BD × 7 days, 1 supply, no repeat

RENEWAL
 ☑ Atorvastatin 20 mg PO ON, 90-day supply, repeats × 3
   (current expires 2026-05-30)

NO CHANGE
 ─ Amlodipine 5 mg PO OD (continues; remaining supply OK)

[Confirm prescriptions]   [Schedule next BP review: 4 weeks]

Dr. Suur reviews, confirms. The signing surface asks for her identity confirmation (Mobiil-ID is the standard surface in Estonia; she taps and authenticates).

Marina is asked which pharmacy she'd like. The platform shows her saved-preferences pharmacy in Telliskivi as the default, plus three nearby alternatives. She confirms Telliskivi. The consultation closes.

What flows where

Three prescriptions go out:

Outbound — Marina K. — 2026-04-22 15:43

→  the national health information system (Eesti e-Tervise infosüsteem / Estonian e-Health):
   3 × digital prescriptions signed by Dr. Suur (Mobiil-ID),
   bound to Marina's national ID
   - perindopril 2.5 mg
   - metronidazole 500 mg
   - atorvastatin 20 mg

→  Marina's pharmacy preference: Telliskivi Apteek
   (the pharmacy choice is metadata on the e-script;
    she can still pick any pharmacy when she presents)

→  Marina's patient-side timeline:
   3 new prescription events; pickup status = pending

→  Dr. Suur's outbox:
   Audit trail of the three e-scripts; awaiting dispense events

The e-scripts live in the national health information system — the Estonian national e-health system — not directly in Jengu. Jengu's role at this point is to have authored the prescription, sent it to the national health information system (which is the authoritative e-script registry), and to listen for dispense events that will come back from the national health information system.

Marina leaves the clinic. The patient-portal app on her phone shows the three prescriptions, with a "ready at Telliskivi Apteek" status on each (the pharmacy choice is sticky but advisory; she can present at any pharmacy in the country).

At the pharmacy

17:05. Marina walks into Telliskivi Apteek on her way home. She presents at the counter. The pharmacist asks for her ID; Marina shows her national ID card. The pharmacy's terminal, linked to the national health information system, queries: "any active prescriptions for this patient?" Three come back.

The pharmacist confirms each:

  • Perindopril 2.5 mg, 90-day supply. In stock. Dispenses.
  • Metronidazole 500 mg, 7-day course. In stock. Dispenses. Asks Marina if she's been on it before; she has; gives the standard alcohol-warning leaflet.
  • Atorvastatin 20 mg, 90-day supply. In stock (the cheaper generic is available; Marina is fine with the generic). Dispenses.

The total comes to a small co-payment (Estonia's pricing model subsidises chronic medications heavily; new acute prescriptions have higher co-pay). Marina pays. She leaves the pharmacy with three small bags.

The pharmacy's terminal posts dispense events back to the national health information system:

DISPENSE — Marina K. — 2026-04-22 17:14 — Telliskivi Apteek
  - perindopril 2.5 mg × 90 days dispensed (lot: PER-2026-04-018)
  - metronidazole 500 mg × 14 tablets dispensed (lot: MTZ-2026-03-122)
  - atorvastatin 20 mg generic × 90 days dispensed (lot: ATG-2026-04-009)

Substitution: atorvastatin brand → generic (patient consented)
Co-payment processed.

What lands back at Jengu

the national health information system pushes the dispense events back to the participating providers under the patient's data-sharing consent. Jengu listens on the national health information system bridge:

INBOUND — the national health information system bridge — Marina K. — 17:14

3 dispense events:
  perindopril, metronidazole, atorvastatin

→  Patient timeline:
   prescription events transition from "pending" to "dispensed";
   pickup-status flag clears
→  Dr. Suur's medication-adherence dashboard:
   refresh: Marina's three new prescriptions show as filled
→  Smart-action queue:
   schedule: BP review reminder in 4 weeks (set at consultation)
   schedule: metronidazole completion check in 8 days (per protocol)

The dispense events become MedicationDispense resources on Marina's record, tied to the original MedicationRequest resources that Dr. Suur authored. The loop is closed.

At the next visit

Four weeks later Marina comes back for the planned BP review. Dr. Suur opens her record. The medication-adherence dashboard shows:

Marina K. — medication overview (12 weeks)
═══════════════════════════════════════════════════════════════════
                         dispensed   adherence    next due
─────────────────────────────────────────────────────────────────
amlodipine 5 mg           yes (90d)   97%         2026-06-12
perindopril 2.5 mg        yes (90d)   started ✓   2026-07-21
atorvastatin 20 mg        yes (90d)   94%         2026-07-21
metronidazole 500 mg      yes (14×)   completed ✓ (28-day past)
                                       early refill: no

Home BP since perindopril add (4 weeks):
  baseline avg: 148/92  →  current avg: 134/82  ✓

The adherence percentages come from the gap between expected and actual dispense intervals — atorvastatin is supposed to be refilled every 90 days; if Marina has gone 96 days between two dispenses, that's 90/96 ≈ 94% adherence. (Adherence as a metric has well-known limitations; it measures dispensing, not taking; the dashboard surfaces the metric for what it is.)

Marina has been good on perindopril; her home BP has dropped 14/10 points; Dr. Suur is happy. They discuss continuing the dose.

The metronidazole shows as completed in the dispense record; Dr. Suur asks Marina how that course went; Marina reports resolution. The completion check that was queued by the smart-action surface auto-resolves.

Why this matters

The prescription-to-dispense loop is one of the few in healthcare where digital infrastructure mostly already exists — the national health information system in Estonia, equivalents in many EU countries — and the platform's role is not to build the loop but to close it cleanly:

  • Author the prescription as a structured artefact of a recorded consultation, not as a manually-typed afterthought.
  • Surface the patient's adherence trajectory at the next visit.
  • Detect anomalies (early refills suggesting overuse, missed refills suggesting non-adherence, drug-drug interactions when the patient is on a new prescription from a different provider).

Without the loop closure, prescribing is fire-and-forget. The GP doesn't know whether the patient picked up the medication unless the patient says so. Adherence is invisible. Drug interaction detection only works at the point of dispense, not at the point of prescribing.

With loop closure, the GP can see the trajectory of medication behaviour over months, can have a fact-based conversation with the patient ("you've been refilling at about 60% of expected — is the medication causing problems?"), and can detect when a separate provider has added something unexpected.

The the national health information system integration is the unsexy plumbing that enables all of this. It's also where data-sovereignty constraints get exercised most concretely: the e-script is registered in a national system, the dispense event is in the national system, the patient's authoritative medication record is in the national system, and Jengu is a participant in the data flow under patient consent — not the primary holder.

What it rests on
0 / 1 passing
  • gap: not yet stated US LAB-PHARMACY: what it rests on is not yet stated here as promises. US-GAP-bd9c9792