Medplum e-prescribing with DoseSpot or ScriptSure

Adding e-prescribing to a Medplum-based EHR means choosing between DoseSpot's embedded iframe and ScriptSure's FHIR operations and Bots, then confirming EPCS, prescriber enrollment and self-hosting availability before build starts.

On this page

How to add e-prescribing to a Medplum EHR

Clinical teams expect to prescribe from inside the EHR they chart in, so the first decision is which e-prescribing integration fits the way your prescribers work. Medplum documents two routes. DoseSpot is embedded in the Medplum EHR as an iframe and supports EPCS for controlled substances through DoseSpot's own platform. ScriptSure, delivered by DAW Systems, uses FHIR operations and Bots with an authenticated iframe to support custom prescribing workflows, including EPCS and medication history through SureScripts. Both options cover controlled substances, so the choice usually turns on workflow customization, licensing and who on your team will maintain the integration.

Two eligibility limits should be settled before any build starts. Medplum's DoseSpot e-prescribing is available only to providers directly engaged in patient care as part of the Medplum EHR, so administrative users, scheduling staff and some consultants may not qualify. Confirm with DoseSpot and Medplum how your prescriber population maps to that definition. ScriptSure is a premium integration, and for self-hosted deployments it is available on the Medplum Enterprise plan, so ask Medplum to confirm the plan and the contract terms for your deployment model before you commit to it.

Prescriber enrollment and identity controls run in parallel with the technical build and often take longer than the code. EPCS requires identity proofing, credentialing and two-factor authentication for each prescriber under the DEA rules, so plan for a registration step per prescriber and an owner who tracks renewals and revocations. Ask each vendor which steps they perform, which ones your compliance or credentialing team must complete, and what evidence they keep. Also confirm where prescriber data, audit logs and medication history are stored, because those records will be reviewed when your organization is assessed.

Prerequisites for Medplum e-prescribing

Most e-prescribing delays come from decisions made before any configuration starts: which Medplum deployment model you run, which vendor you contract with, and who the prescribers are. The cards below cover what to settle, in roughly the order you need to settle it.

Medplum deployment model

Start by confirming whether you run Medplum Cloud, the free Community option, or Enterprise Self-Hosted. The Medplum docs state that ScriptSure is a premium integration that self-hosted deployments can use on the Enterprise plan, and the availability of DoseSpot for your model must be confirmed with Medplum before you design the build. Record the model in writing, since it determines which vendor options and support boundaries apply.

Medplum pricing

ScriptSure plan requirement

A ScriptSure build needs the Medplum plan that covers the premium integration, and self-hosted deployments need the Enterprise tier. Ask Medplum to confirm in writing which plan, licenses and integration fees apply to your setup, and whether any ScriptSure or DAW Systems charges sit outside the Medplum subscription. Treat this as a go or no-go gate, because changing plans after the build starts changes the architecture.

ScriptSure docs

Vendor agreements and accounts

DoseSpot and ScriptSure each require their own commercial agreement, account setup and onboarding before you can prescribe in production. Confirm who signs each contract, who pays for each seat or prescriber, and how sandbox and production environments are provisioned. The exact onboarding steps differ by vendor and may change, so confirm them directly with the vendor rather than relying on this page.

Prescriber identity and enrollment

Each prescriber must be a real, identifiable clinician linked to a Medplum Practitioner record, and each vendor will need enrollment data such as names, licensure, NPI and practice location. Decide who owns the enrollment roster, how deactivated prescribers are removed, and how identity proofing for controlled substance prescribing is handled. Confirm the DEA registration and identity-proofing requirements with the vendor and your compliance lead, because those rules are set outside Medplum.

BAA and MSA position

Medplum's paid cloud plans include standard BAA and MSA agreements, but a BAA with Medplum does not cover your e-prescribing vendor. Map the data flow between your EHR, DoseSpot or ScriptSure, and any pharmacy or medication history source, then confirm that each party handling ePHI has a business associate contract with you. The HIPAA Security Rule requires those contracts to flow Security Rule terms and incident reporting down to subcontractors that handle ePHI.

45 CFR 164.314 text

Shared compliance responsibilities

Medplum states that compliance is a shared responsibility between Medplum and its customers, so the controls around prescribing sit partly with you. Decide who owns EPCS audit logs, access reviews, prescriber termination, and the evidence you will show during an assessment. Write this split down before configuration, because each vendor will ask who is accountable for which control.

Medplum compliance docs

DoseSpot or ScriptSure: which path fits the EHR

DoseSpot is the e-prescribing path that Medplum documents for its EHR. The prescribing screen is embedded in the Medplum application, so your team configures the connection and prescriber experience and does not build the medication workflow from scratch. Medplum's e-prescribing documentation limits use to providers directly engaged in patient care as part of Medplum EHR, and EPCS for controlled substances runs through DoseSpot's platform.

  • Integration surface: The embedded screen sits inside your app, so most prescribing logic, drug lookup and workflow stays with DoseSpot.
  • Scope of use: Access is limited to providers directly engaged in patient care, so confirm how staff, pharmacy or delegate roles in your organization fall outside that definition.
  • EPCS: Identity proofing, two-factor steps and signing follow DoseSpot's enrollment process, not a build your team owns.
  • Customization limits: Layout and workflow changes are constrained to what the embedded product exposes, so test any custom ordering rules against the vendor's documentation during design.

Check whether your prescribing rules fit inside the embedded screen before you accept it as the default path.

How a prescription moves through Medplum, the vendor and the pharmacy

The prescriber starts in the Medplum app and opens the DoseSpot or ScriptSure iframe, which runs on the vendor's platform outside Medplum-hosted infrastructure. For controlled substances, the vendor's EPCS identity checks happen inside that iframe before the order is signed and sent to the pharmacy network. The order status returns to Medplum through the integration, where Bots and FHIR operations write the resulting MedicationRequest. Confirm where each identity check runs and which side holds the signed order record.

Request flow for both options, with the vendor trust boundary and EPCS checks marked.

Medplum e-prescribing setup sequence

This sequence takes a Medplum-based EHR from a plan check to verified e-prescribing, with DoseSpot or ScriptSure connected, prescribers enrolled and EPCS enabled only after each earlier layer has passed its check.

  1. Confirm plan and deployment availability

    Before any vendor contact, confirm which e-prescribing option your deployment can use. Medplum's DoseSpot e-prescribing is limited to providers directly engaged in patient care as part of Medplum EHR, and ScriptSure is a premium integration that self-hosted deployments can use on the Medplum Enterprise plan. Ask Medplum to confirm in writing which plan, and which self-hosting terms, apply to your organization. The check is a written confirmation naming the chosen integration and the plan it runs under, so no build work starts on an assumption.

  2. Complete vendor agreements and account setup

    Your compliance lead, not the build team, signs the agreements. Paid Medplum cloud plans include standard BAA and MSA terms, and a self-hosted deployment needs an equivalent review of the BAA position for the hosting provider and any other business associate touching ePHI. Under 45 CFR 164.314(a)(2)(i), a business associate contract must require Security Rule compliance and incident reporting. Then open accounts with DoseSpot or ScriptSure (DAW Systems) and collect the credentials and environment details each vendor issues. The check is a signed agreement on file and a working vendor sandbox login for each person who needs one.

  3. Register the Medplum project and client applications

    Create the Medplum project that will hold prescribing data and the client applications that call Medplum. Keep the e-prescribing clients separate from clinician-facing apps so their credentials, scopes and token lifetimes can be reviewed on their own. Record which identity provider signs prescribers in and which client credentials the server-to-server calls use. The check is a project and client list that a reviewer can read, with each client's purpose and owner written down.

  4. Configure prescriber identity and enrollment

    Set up how prescribers sign in and how each one is enrolled with the e-prescribing vendor. Confirm the identity provider and multi-factor method used, since the vendor's access and EPCS identity proofing depend on them. Enroll each prescriber through the vendor's process and link the vendor identity to the Medplum practitioner record. Prescribers who are not directly engaged in patient care should not be enrolled. The check is an enrollment record for each prescriber that matches a Medplum Practitioner, confirmed by the vendor.

  5. Wire the iframe, Bot or FHIR operations

    Connect the chosen integration. For DoseSpot, the prescribing interface is embedded as an iframe inside the Medplum EHR, so the build covers the launch context, the patient and practitioner data passed into it, and the permissions the embedded app receives. For ScriptSure, build the custom prescribing workflow with FHIR operations and Bots, and use the authenticated iframe for the prescribing screen, including medication history through SureScripts. Test each Bot and operation against a non-production patient. The check is a test medication order that creates the expected MedicationRequest and an audit trail entry that the developer can trace.

  6. Enable EPCS for controlled substances

    Turn on electronic prescribing of controlled substances only after the non-controlled workflow is stable. EPCS depends on the vendor's platform, the prescriber's identity proofing and the two-factor signing setup that the vendor requires. Confirm with the vendor which DEA-related steps your organization must complete and who holds each one. Keep the EPCS configuration under the same change control as the rest of the integration. The check is an EPCS signing test completed by an enrolled prescriber, with the signed record visible to the reviewer.

  7. Run test prescriptions and sign off

    Run a scripted set of test prescriptions in a non-production environment: a simple prescription, a refill, a cancellation, a medication history lookup and, where enabled, a controlled substance. Compare what reaches Medplum with what the vendor shows, and confirm that a pharmacy receives the test order in the vendor's test routing. Record failures and retest after each fix. Sign-off should come from both the clinical owner and the compliance lead. The check is a documented test run with every case passing, followed by written approval before any production prescribing is allowed.

Mapping prescriber, patient and medication data to FHIR

This table compares the FHIR resource each data type maps to, the Bot or operation that writes it, and where pharmacy, DEA or NPI identifiers are carried. Read it as a design checklist: confirm the exact Bot names and identifier fields with the vendor's current Medplum integration documentation before build, because the supplied sources do not specify them.

Data elementFHIR resourceWrite path and identifiers
Prescriber identityPractitioner and PractitionerRoleCreated or matched in Medplum before the first order; NPI and DEA numbers carried as identifiers, confirm the exact fields each vendor requires
Patient demographicsPatientMatched by the EHR's patient identifier and synced before prescribing; confirm which Bot or operation the chosen vendor uses to read patient data
Medication ordersMedicationRequestWritten when the prescription is transmitted; the prescriber-facing workflow and status updates depend on ScriptSure operations or DoseSpot's embedded iframe
Medication history from SureScriptsMedicationStatementPopulated from the medication history returned by the vendor; confirm whether the chosen integration writes this resource directly or only displays it
AllergiesAllergyIntoleranceRead or written so the prescriber sees allergy checks at ordering; confirm which side owns the record and how updates flow back
Pharmacy identifiersOrganization or Location references tied to the MedicationRequestCarried as references on the order; NCPDP or pharmacy identifiers should be confirmed with the vendor's pharmacy directory
Controlled substance (EPCS) signingMedicationRequest with prescriber referencesEPCS identity proofing and signing happen in the vendor's platform; confirm which signed record is returned to Medplum and where it is stored

Medplum e-prescribing security and EPCS controls

E-prescribing puts controlled-substance orders, prescriber identity and patient data through several systems at once: Medplum, the e-prescribing vendor and the prescriber's device. The controls below connect access rules, identity, logging and contracts so that each prescribing event can be traced to an authorized person and a covered vendor.

Prescriber access limited to care providers

DoseSpot is available only to providers directly engaged in patient care as part of Medplum EHR, so role design is the first control. Map which Medplum roles can open the prescribing function and confirm that staff who handle scheduling, billing or administration cannot sign prescriptions. Ask the vendor how a prescriber's clinical role is verified during enrollment and how removal of that role is handled when someone leaves care.

E-prescribe docs

Unique user identification for prescribers

Each prescriber needs a unique identity in Medplum and in the e-prescribing platform, with no shared logins at workstations. Confirm that the identity provider you use for Medplum sign-in supports multi-factor authentication and that prescriber accounts are never reused. Document how identities are linked between Medplum and the vendor so an order can be attributed to one named individual during an audit.

Automatic logoff and encryption settings

Automatic logoff and encryption are addressable technical safeguards under 45 CFR 164.312, so your organization must decide how it meets each one and record that decision. Set session timeouts for prescribing screens, confirm that data is encrypted in transit and at rest in your Medplum deployment and in the vendor's environment, and write down the rationale if you choose an alternative. Ask the vendor for its encryption and session documentation before go-live.

Business associate contract flow-down

Under 45 CFR 164.314, a business associate contract must require the vendor to follow the Security Rule, pass the same terms to subcontractors that handle ePHI, and report security incidents to you. Confirm that the agreement with DoseSpot or ScriptSure covers these points and that the vendor's own subcontractors are named. Medplum paid cloud plans include a BAA, but a self-hosted deployment still requires your own review of each vendor relationship.

Bot and client credential handling

ScriptSure work runs through FHIR operations and Bots, so server-side credentials carry prescribing authority. Store client credentials in a secrets manager, scope them to the minimum Bot permissions, rotate them on a fixed schedule and revoke them when a Bot is retired. Review which Bots can read medication and controlled-substance data and confirm that no credential is embedded in a front-end application.

Audit logging of prescribing events

Every prescription creation, change, cancellation and EPCS signing event should leave an audit record that names the prescriber, the patient and the time. Confirm that Medplum AuditEvents are enabled for these actions, that logs are forwarded to a store you control and retained for the period your policy requires, and that the vendor's own audit trail can be matched to yours. Test the trail by reconstructing one controlled-substance order end to end.

Availability limits for self-hosted Medplum

Before you choose a hosting model, confirm which prescribing paths your deployment can use. DoseSpot availability on self-hosted Medplum is not something to assume from the Medplum e-prescribing documentation alone. Ask Medplum and DoseSpot in writing whether DoseSpot is supported for your self-hosted version, your hosting environment and your prescriber population, and get the answer attached to the scope. ScriptSure is different: the supplied Medplum documentation states that it is a premium integration that self-hosted deployments can use on the Medplum Enterprise plan. If ScriptSure is your target, self-hosting and an Enterprise agreement go together, and the Enterprise agreement becomes part of the cost model rather than an optional extra.

That constraint changes the hosting decision. A team that wants Medplum Cloud for simplicity may find that its preferred prescribing vendor is not available there in the same way, while a team that self-hosts to keep data in its own infrastructure needs to price the Enterprise agreement, the infrastructure it runs, and the staff who will operate it. Ask Medplum for the Enterprise terms in writing, including what is included for ScriptSure, what support applies to the prescribing integration, and how the agreement treats upgrades. Ask DoseSpot or ScriptSure which environments and hosting arrangements they support, and whether their EPCS requirements for identity proofing, audit and two-factor authentication can be met in the environment you plan to run. Those answers drive the architecture more than any feature list.

The upgrade plan must account for prescribing as well. Medplum requires self-hosted servers to move through each minor version in sequence, and a skipped version can cause startup failures, so any prescribing feature that depends on the server inherits that constraint. Plan the vendor's compatibility window into each upgrade, test the prescribing workflow in a staging environment on the target version, and confirm with the vendor how long a version must be supported before you move. An illustrative example: if a server upgrade is staged but the prescribing vendor has not certified the new version, the upgrade waits, and the security patch window that applies to the server continues to run.

Common e-prescribing failures and their fixes

This table lists the failures teams most often hit when adding DoseSpot or ScriptSure to a Medplum EHR, with the likely cause and the fix for each. Read each row against the component that owns the step, since the fix usually sits in the vendor enrollment, the Medplum client or the Bot rather than in the chart itself.

FailureLikely causeFix
Prescriber cannot send prescriptionsThe prescriber is not enrolled with the e-prescribing vendor, or is not directly engaged in patient care as part of the Medplum EHR, which DoseSpot's availability in Medplum requires.Confirm the prescriber's role and clinical engagement with the compliance owner, then complete vendor enrollment for that user before go-live. Check with DoseSpot or DAW Systems which prescriber types are eligible.
DoseSpot iframe fails to loadBrowser content blockers, third-party cookie restrictions or a Content Security Policy in the EHR front end block the embedded DoseSpot frame.Test in each supported browser with the blockers enabled. Allow the DoseSpot origin in the front-end policy and confirm cookie settings with the vendor's embedding guidance.
ScriptSure Bot rejects the FHIR operation inputThe request body does not match the parameters the ScriptSure operation expects, such as a missing Patient, Practitioner or MedicationRequest reference or a malformed resource type.Log the exact input the Bot receives, validate it against the documented operation parameters, and return an OperationOutcome that names the missing field so the caller can correct it.
EPCS prescribing is blockedIdentity proofing for the prescriber has not finished, or the two-factor credential for signing controlled substances has not been registered.Ask the vendor for the proofing status of each prescriber and hold controlled-substance orders for that user until both steps are recorded as complete.
Medication history is empty for a patientThe patient lacks a match in the medication history network, the demographics sent do not match the network record, or the history request was never triggered.Check that name, date of birth, sex and address match the source demographics, confirm the history request ran, and document the no-history outcome in the chart.
MedicationRequest does not appear in the chart after a test orderThe vendor sent the prescription, but the return path that writes MedicationRequest to the Medplum repository failed, or the Patient reference points to a different record.Search the Medplum project for the MedicationRequest and its Bot execution log, confirm the Patient ID, and check the Bot's access policy and project before retrying the test.

What e-prescribing with Medplum costs and requires

What drives the cost of adding e-prescribing to a Medplum deployment?

The cost is driven by four separate components: the Medplum plan you run on, the fees charged by the e-prescribing vendor, the build hours to integrate the workflow, and the identity work required for EPCS. Medplum's hosted plans are listed at $2,000 per month for Production and $6,000 per month for Premium, with Enterprise custom-priced, and self-hosting is a free Community option or custom-priced Enterprise Self-Hosted (Medplum pricing page). Vendor fees for DoseSpot or ScriptSure are not published in the sources for this page, so ask each vendor for its written terms. ScriptSure is a premium integration that self-hosted deployments can use on the Enterprise plan, which changes the plan line in your quote. Build hours and EPCS identity work recur less predictably, so ask for them as separate line items.

How long does an e-prescribing integration take and what sets the duration?

No duration is established by the sources for this page, so treat any timeline as a planning assumption until it is written into a scope. The main duration drivers are the vendor path you choose, the vendor's enrollment and certification steps, how many prescribers need EPCS identity proofing, and whether your Medplum deployment is already on the Enterprise plan required for ScriptSure. Controlled substance prescribing usually adds the most time because identity and approval steps run on the vendor's and your organization's schedules. Ask the vendor for its enrollment steps and typical lead times in writing before you commit to a date.

What must our team provide before e-prescribing work can start?

Your team provides the inputs the vendor and the integration depend on, and the work stalls without them. Expect to supply a current list of prescribers with their licensure and DEA details where EPCS applies, named vendor contacts for enrollment and support, and sandbox or test patients that do not contain real protected health information. You also need a named owner for identity and access decisions, since DoseSpot is limited to providers directly engaged in patient care within Medplum EHR. Confirm with each vendor which of these items it requires and in what format.

Can our own team build e-prescribing on Medplum without an outside partner?

Yes, a team with FHIR, Medplum Bots and identity experience can build the integration alone, but the work covers more than the code. The DoseSpot path uses an embedded iframe, while the ScriptSure path uses FHIR operations, Bots and an authenticated iframe, and both require vendor enrollment and EPCS identity steps that sit outside engineering. Your team also owns the HIPAA-related controls for the deployment, since Medplum notes that compliance is a shared responsibility with its customers (Medplum compliance docs). Decide whether your staff will hold the vendor relationship, the testing and the production runbook before you choose between building alone and engaging a partner.

Is HIPAA certification required for an e-prescribing deployment?

No. HHS states that no Security Rule standard requires an entity to certify compliance, and private certifications do not prevent HHS from later finding a violation (HHS FAQ 2003). The HHS Office for Civil Rights enforces the rule through complaints, compliance reviews and audits. Your obligations come from the Security Rule and from your business associate contracts, which must require the vendor and any subcontractor handling ePHI to comply and to report security incidents. Ask each vendor for its signed business associate agreement and for the evidence it can share, such as independent assessment reports. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications.

What should we ask a partner or vendor for in an e-prescribing quote?

Ask for a written scope that names each deliverable, so the quote can be compared line by line. Request the following: the Medplum plan assumed and whether ScriptSure requires the Enterprise plan, the vendor fees and who pays them, the EPCS identity and prescriber enrollment steps with the owner of each, the test and cutover plan, and the handover of configuration and runbooks. Also ask how the work treats the Security Rule technical safeguards, including unique user identification and automatic logoff, and which evidence will be delivered. DeployOpen plans and delivers most engagements as fixed-scope work, with scope, deliverables and timelines agreed in writing before work starts, and does not publish a price list, so a quote follows from that written scope.

What regulatory limits apply to a self-hosted e-prescribing deployment?

Availability depends on the vendor path and your deployment model, so confirm both before you design the workflow. DoseSpot's e-prescribing is available only to providers directly engaged in patient care as part of Medplum EHR, and EPCS for controlled substances runs through DoseSpot's platform. ScriptSure is a premium integration that self-hosted deployments can use on the Enterprise plan. Ask each vendor whether its service supports your state, your prescriber types and your deployment model, and record the answer in the scope. These limits shape the build more than any single technical choice.

How DeployOpen scopes and delivers Medplum e-prescribing

DeployOpen plans and implements e-prescribing inside a self-hosted Medplum deployment in infrastructure you control, starting from a written scope that names the DoseSpot or ScriptSure path, EPCS needs and prescriber enrollment. Work is delivered as fixed-scope engagements, with the security evidence and operating documents your compliance and clinical teams need to review.

How we scope

  • Confirm which e-prescribing path fits your plan, since DoseSpot and ScriptSure differ in how they connect to Medplum.
  • Record whether EPCS for controlled substances is in scope and which prescriber roles will need it.
  • Agree in writing the prescriber enrollment steps, identity proofing responsibilities and who performs each one.

How we build

  • Configure the chosen integration, including the embedded iframe or the FHIR operations and Bots, against your Medplum version.
  • Set access policies so only providers directly engaged in patient care can reach prescribing functions.
  • Test prescription, medication history and cancellation flows end to end in a non-production environment before cutover.

How we hand over

  • Deliver configuration records, runbooks and a map of the prescribing data flows for your architecture and security teams.
  • Document audit logging, access control and credential handling so your compliance reviewers can assess the setup.
  • Walk your administrators through enrollment, monitoring and the steps to follow when an upgrade touches prescribing components.

How we support

  • Support after handover is available as a retainer, covering Medplum upgrades and changes to the prescribing integration.
  • Re-test prescribing workflows after each Medplum upgrade, including the minor version sequence your deployment must follow.
  • Confirm the vendor's current EPCS and enrollment requirements with DoseSpot or ScriptSure before each change.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.