A drug interaction checker API takes a patient's medication list, usually identified by RxNorm codes, and returns the interactions it finds with a severity and an explanation. EHR builders have four ways to add one: license a commercial drug knowledge base, build on free FDA and NLM data, rely on their e-prescribing vendor's screening, or call a usage-based interaction API.

This guide is for engineering, product, and clinical informatics leads at small and mid-size EHR, telehealth, and practice software companies. It covers the four paths, where checks fire, the data model, severity tiers, ONC certification, and the operational details that decide whether clinicians trust the alerts. It is written for software builders and is not clinical or treatment advice.

What does a drug interaction checker API need to do?

At minimum it has to accept a full medication list, map every entry to a standard drug concept, find the clinically relevant interactions, and return each with a severity your UI can act on. Mechanism text, references, and management suggestions decide whether the alert is useful.

Most implementations follow the same pipeline:

  1. Collect the medications: active prescriptions, the order being entered, refills, OTC drugs, and supplements the patient reports.
  2. Normalize each one to an RxNorm concept (RxCUI) where one exists. Drugs arrive as NDCs from pharmacy feeds, free text from intake forms, and coded concepts from FHIR resources; many supplements have no RxCUI and need another path.
  3. Reduce clinical drugs to ingredients, and ingredients to classes where the knowledge is written that way. Labels often name a class such as "strong CYP3A4 inhibitors" rather than each drug.
  4. Evaluate the list. Many engines check every pair. Some also apply rules for cumulative effects across three or more drugs, such as several drugs that each add to bleeding risk.
  5. Assign severity and decide presentation: interruptive, passive, or suppressed.
  6. Return an explanation the clinician can act on: the mechanism, what to monitor, and the evidence behind it.
  7. Log what was shown and what the user did.

The knowledge source you choose answers step 4. Steps 2, 3, 6 and 7 are integration work you own on every path. Budget for them before you compare vendors. Every path also inherits the quality of the medication list itself: fills paid in cash at an outside pharmacy, hospital discharge medications, and drugs the patient stopped taking all distort the result.

The four ways to add drug interaction checking, compared

The choice comes down to licensing terms, how much clinical content work you are willing to own, and whether checks must run outside the prescribing screen.

PathWhat you getWhat you ownWhere checks can fireMain risk
License a commercial drug knowledge baseCurated interaction content with severity, monographs, and alert controlsIntegration, concept mapping, update loads, UI, contract termsAnywhere you call itContract length and minimums can outweigh a small product's volume
Build on free public data (openFDA, DailyMed, RxNorm)Label text, product identifiers, normalizationExtracting interactions from prose, assigning severity, clinical review, ongoing maintenanceAnywhere you call itYou become a knowledge base publisher without the clinical staff of one
Rely on the e-prescribing vendor's bundled screeningScreening at the moment of prescribingVery littleUsually inside the vendor's prescribing workflow, unless results are exposed to your appGaps at med reconciliation, refills, and patient-reported drugs if those happen outside the module
Call a usage-based interaction APIInteraction results over HTTP, billed by useIntegration, normalization at the edge, UI, loggingAnywhere you call itVendor dependence; you need to check sources, latency, and the BAA

Many products combine two of these. A common pattern is eRx vendor screening at the prescribing step plus a separate API or licensed database for everything that happens outside it.

Option 1: license a commercial drug knowledge base

Licensing a compendium gives you curated content from an established editorial process, along with a license contract to manage. It fits a smaller vendor when the product already has scale or a hospital buyer who expects a named knowledge source.

The established vendors publish product information, though rarely prices. Wolters Kluwer's Medi-Span describes drug information that can be integrated into an application, with user controls that can limit interaction, precaution, duplicate therapy, and dosing alerts. Merative describes Micromedex as evidence-based clinical decision support with interaction checking that supports integration into existing healthcare technology.

Before signing, ask each vendor the same questions:

  • Is the content delivered as database files you host, a hosted API, or both? Hosted APIs shift updates to the vendor; local files give you latency control.
  • Which drug identifiers does it accept? You want RxCUI support so you are not maintaining a separate crosswalk from RxNorm to a proprietary ID.
  • How are severity levels defined, and can an administrator tune them? This matters for alert fatigue and for 170.315(a)(4) if you certify.
  • Does it screen supplements and OTC products, or only prescription drugs?
  • What are the redistribution rules if you show interaction text to patients or pass it to a downstream system?
  • How is pricing calculated (per site, per prescriber, per transaction), and what is the minimum term?

Contract minimums can decide the question for an early stage company. Several of these vendors also sell hosted APIs, so delivery method and billing model are separate questions from whose content you license.

Option 2: build on free public drug data

You can build interaction checking on openFDA, DailyMed, and RxNorm without a license fee, but none of them is a ready-made interaction database. Turning their label text and identifiers into severity-graded, pairwise or list-level alerts is your work.

Is there a free drug interaction checker API?

NLM ran the best-known free one, the RxNav Drug Interaction API, and retired it on January 2, 2024. The request path now returns HTTP 404. The guide to alternatives to the retired NLM drug interaction API covers what it returned and what teams use now.

What openFDA and DailyMed give you

The openFDA drug label API returns Structured Product Labeling (SPL) submissions converted to JSON, updated weekly, with harmonized openfda fields including RxCUI. Most prescription labels include a drug_interactions field, though sections vary by product and a missing field never means "no interactions." For labels in the current physician labeling format, that field is section 7, which 21 CFR 201.57(c)(8) requires to describe clinically significant interactions, observed or predicted, with practical instructions for preventing or managing them and a brief mechanism where known.

In practice the field is prose. A query for simvastatin 40 mg tablets (api.fda.gov/drug/label.json?search=openfda.rxcui:198211) returned 43 labels when we ran it in November 2026, one per manufacturer or repackager, and section 7 opens with sentences like "Simvastatin is a substrate of CYP3A4 and of the transport protein OATP1B1." You would need to extract the interacting drugs and classes from that text, reconcile 43 near-identical versions, and assign severity yourself, because the label does not use a severity scale. openFDA also states plainly: "Do not rely on openFDA to make decisions regarding medical care." Its rate limits are 240 requests per minute and 1,000 per day per IP without a key, or 120,000 per day with one.

The openFDA drug interactions guide walks through the queries and the parsing.

The licensing traps in "free" interaction datasets

Two datasets come up whenever teams search for open interaction data, and both carry terms that block most commercial products. DrugBank's Academic License is free only for academic researchers whose work is not primarily for a commercial third party, its full datasets are released under CC BY-NC 4.0, and academic downloads were paused when we checked in November 2026. Its CC0 Open Data files (vocabulary and structures) allow commercial use but contain no interaction data. DDInter is licensed CC BY-NC-SA 4.0, which adds a ShareAlike requirement to the non-commercial restriction. If you sell software, read those terms with counsel before a developer loads either into production.

This path works for a prototype, a research tool, or a team with pharmacists on staff who will review and maintain the content. For a shipping product, the expensive part is the clinical review that has to continue with every label change.

Option 3: rely on your e-prescribing vendor's screening

If your product prescribes through an embedded e-prescribing module, that module may already screen for interactions. It adds little cost if your vendor includes it. The question is which moments it covers and which medications it can see.

Embedded eRx tools typically run inside an iframe or a vendor-hosted screen. Their screening fires when the prescriber builds a new prescription in that screen. Two things decide coverage: where screening runs, and which medication list it evaluates. Unless your integration sends your full list into the module and pulls warnings back out, screening there usually misses:

  • medication reconciliation at intake, when a patient's outside prescriptions are entered into your chart;
  • refill review that happens in your own task queue rather than the vendor's screen;
  • OTC drugs and supplements recorded on an intake form;
  • medications imported from another system through a C-CDA or FHIR feed, if they never reach the module's list;
  • care team members who review the list but never open the prescribing module.

Confirm the exact behavior with your vendor, since implementations differ. Ask whether screening results are available to your application through an API, and whether the vendor screens against the full medication list in your chart or only the list held inside its own module. If the answer is the latter, the two lists will drift and the screening will be incomplete. The guide to Weno Exchange eRx integration covers how an independent eRx network fits alongside a separate screening layer.

Option 4: call a usage-based interaction API

A usage-based interaction API gives you curated results over HTTP without a compendium license, priced by how much you call it. It suits products whose volume is growing or spiky, and products that need checks in places the eRx module never reaches.

What to verify with any vendor in this category:

  • The knowledge sources behind the results, and whether a clinician reviews them.
  • Whether it accepts the full list in one request, and whether it reasons about cumulative effects across three or more drugs or just runs every pair. One request does not imply the second.
  • Coverage of OTC drugs and supplements, since patient-reported products are the gap most other paths leave.
  • Whether each result explains the mechanism and cites evidence alongside the severity code.
  • Accepted identifiers (RxCUI, NDC, free text) and how it reports drugs it could not resolve.
  • Response time at your expected list size, rate limits, and uptime commitments.
  • A business associate agreement, if any PHI will travel with the request.

For developers who want to prototype against label-derived data first, RxLabelGuard's drug interaction API for developers is self-serve: it returns severity-scored interactions drawn from FDA labeling, with the SPL set ID behind each one.

This is the category we built Orisan Sage for. Sage evaluates a full medication list at once (prescriptions, OTC drugs, and supplements), explains the pharmacological mechanism behind each interaction, such as a CYP450 pathway or additive toxicity, and links each result to its evidence. Its knowledge draws on FDA drug labeling, DailyMed, and Orisan's own clinical review. It is available over REST and GraphQL with usage-based pricing; the Sage features page describes the integration options. Newer capabilities include renal, hepatic, pregnancy, and food alerts, pharmacogenomic flags, and structured SIG generation.

Where do interaction checks need to fire in an EHR workflow?

Checks need to fire everywhere the medication list changes or gets reviewed, not only at prescribing. For most ambulatory products that means five points, and each one needs a different presentation.

Workflow pointTriggerWhat to sendSuggested presentation
Order entryA medication is selected or the order is about to be signedActive meds plus the draft order, allergiesInterruptive for the highest tier, inline for the rest
Medication reconciliationOutside meds are added or the list is confirmed at intakeThe full reconciled listSummary panel the clinician reviews before signing off
Refill requestRefill enters a queue or is approvedCurrent list including anything added since the last fillFlag on the queue item
Patient-reported drugs and supplementsIntake form, portal entry, or AI scribe extractionThe reported items plus the active listPassive alert to the reviewing clinician
Imported medicationsC-CDA, or FHIR MedicationRequest or MedicationStatement, ingestedImported plus existing medsPassive alert at chart review

If you integrate with larger EHRs, CDS Hooks 2.0.1 is the calling convention, and the separately versioned CDS Hooks Library 1.0.1 defines the trigger points. Several line up with this table: order-select (maturity 4), order-sign (5), and patient-view (5) are the established ones, while medication-refill is at maturity 1, so expect little EHR support for it yet. The older medication-prescribe hook is deprecated. Responses come back as cards with an indicator of info, warning, or critical. That field signals urgency for display; mapping your severity tiers onto it is your decision.

Builders on OpenEMR face a narrower set of choices, covered in the post on OpenEMR drug interaction checking.

The data model: normalize everything to RxCUI and ingredients

Store an RxNorm RxCUI alongside whatever identifier each medication arrived with, and resolve ingredients before you screen, unless your interaction source works on its own identifiers. Most interaction knowledge is expressed at the ingredient or class level, so screening on clinical drug strings or NDCs alone produces missed matches.

FHIR already points you here. US Core 9.0.0 MedicationRequest binds medication[x] extensibly to a clinical drug value set and states "When using a code, RXNorm concepts are used," with NDC allowed as an additional coding. The RxNorm API handles the mapping, and NLM says that with one exception no license is needed to use it. For class membership, the RxClass API returns the classes a drug belongs to and the members of a class, also without a license.

The calls below are real RxNorm API requests. The responses are trimmed and were captured in November 2026; values can change as RxNorm updates monthly.

# 1. Free text to RxCUI
GET https://rxnav.nlm.nih.gov/REST/rxcui.json?name=warfarin
{"idGroup":{"rxnormId":["11289"]}}

# 2. NDC from a pharmacy feed to RxCUI (note: NDC obsolete, concept active)
GET https://rxnav.nlm.nih.gov/REST/ndcstatus.json?ndc=00093715598
{"ndcStatus":{"ndc11":"00093715598","status":"OBSOLETE",
  "rxcui":"198211","conceptName":"simvastatin 40 MG Oral Tablet",
  "conceptStatus":"ACTIVE", ...}}

# 3. Clinical drug to ingredient
GET https://rxnav.nlm.nih.gov/REST/rxcui/198211/related.json?tty=IN
{"relatedGroup":{"conceptGroup":[{"tty":"IN",
  "conceptProperties":[{"rxcui":"36567","name":"simvastatin","tty":"IN"}]}]}}

# 4. Messy intake text to a best guess (needs human confirmation)
GET https://rxnav.nlm.nih.gov/REST/approximateTerm.json?term=simvastatin%2040mg&maxEntries=2

A few modeling rules save trouble later. Keep the original string or code, the RxCUI you resolved, the method (exact, NDC, approximate), and who confirmed an approximate match. Treat an obsolete NDC as normal: example 2 shows a retired package code that still maps to an active concept. Record unresolved items explicitly and show them in the UI as "not screened," because a silent drop looks like a clean result. Store supplements even when they have no RxCUI, so you can pass them to an API that accepts free text. Deduplicate before screening (the same drug often arrives from a pharmacy feed and an intake form), and expand combination products into their ingredients.

Allergies need their own model. An allergy to "penicillins" is a class, so drug-allergy screening needs allergen-to-class mapping and cross-sensitivity rules from your knowledge source, which ingredient normalization alone does not provide. Also keep "no known drug allergies" distinct from "allergies not yet recorded," because only the first supports a clean drug-allergy result.

Your internal request to whichever interaction source you choose can then be simple. This contract is illustrative, not any vendor's actual schema:

POST /internal/interaction-screen   (illustrative)
{
  "context": "order-sign",
  "patient_ref": "TEST-123456",
  "medications": [
    {"rxcui": "11289", "display": "warfarin", "status": "active"},
    {"rxcui": "198211", "display": "simvastatin 40 MG Oral Tablet", "status": "draft-order"},
    {"rxcui": null, "display": "St. John's wort (patient reported)", "status": "reported"}
  ],
  "allergies": [{"rxcui": "7980", "display": "penicillin G"}]
}

The response shape matters as much as the request. Whatever source sits behind it, normalize its output into something that distinguishes a complete screen from a partial one. Again illustrative; the alert text paraphrases the coumarin anticoagulant entry in section 7 of a simvastatin label on DailyMed:

200 OK   (illustrative)
{
  "status": "partial",
  "source": {"name": "example-knowledge-source", "version": "2026-11-01"},
  "alerts": [
    {
      "tier": "warning",
      "drugs": ["11289", "36567"],
      "summary": "Simvastatin with a coumarin anticoagulant",
      "effect": "Simvastatin may potentiate coumarin anticoagulants and increase the INR",
      "label_intervention": "Obtain an INR before starting simvastatin and after dose changes",
      "evidence": ["simvastatin prescribing information, section 7"]
    }
  ],
  "not_screened": [
    {"display": "St. John's wort (patient reported)", "reason": "unresolved"}
  ]
}

The status and not_screened fields are what let the UI say "1 item could not be checked" instead of implying the list is clean. Treat a timeout or error as a third status, never as an empty alerts array.

Dose and frequency matter for some interactions, so if you are also structuring directions, the NCPDP structured SIG guide explains how SCRIPT represents them.

Severity tiers and alert fatigue

An interaction checker that fires on everything gets ignored. Use a small number of severity tiers, interrupt only for the top tier, and give administrators a controlled way to adjust the rest.

Studies from 2006 to 2020 tell the same story. A 2006 JAMIA review by van der Sijs and colleagues found that "drug safety alerts are overridden by clinicians in 49% to 96% of cases." In 2012 an expert panel led by Phansalkar published a starter list: of 31 high-risk interactions considered, it approved 15, such as tizanidine with ciprofloxacin and triptans with MAO inhibitors, and recommended they be included in all EHR implementations and never inactivated. Five years later, McEvoy and colleagues tested 19 systems at 13 sites and found only about 69% of those high-priority pairs produced an alert, with individual systems ranging from 4 of 15 to 14 of 15. A 2020 JAMIA study by Edrees and colleagues found an override rate of nearly 90% even for the highest-severity interaction alerts.

So test your own build against a known list like that one before release, and design tiers around the action you want from the clinician:

TierMeaning for the UIPresentationOverride handling
CriticalCombination generally avoidedInterruptive; requires acknowledgmentReason required and logged
WarningUse with monitoring or dose changeInline on the order, visible before signingOptional reason, logged
InfoLower clinical significance; worth knowing but rarely changes the orderAvailable on demand in the medication listNot required

Keep three attributes separate in your data model even if the UI collapses them: the potential harm (severity), the strength of the evidence, and the recommended action. A well-documented moderate interaction and a poorly documented severe one need different handling. Mechanism text also helps. A clinician who reads "both drugs prolong the QT interval" or "the second drug inhibits CYP3A4, which clears the first" can judge the alert in seconds. A bare "major interaction" label gives the clinician nothing to weigh, which makes a reflexive override more likely.

Two more things belong in the tier design. Severity often depends on the patient as well as the pair: dose, route, kidney and liver function, and age can move an interaction between tiers, and a build that looks only at the pair cannot see any of that. And drug-allergy alerts need a place in the same scheme. A documented severe reaction to the ordered drug or its class usually belongs in the top tier, while a recorded intolerance may not; let your knowledge source and clinical reviewers define those rules instead of copying the drug-drug table.

ONC 170.315(a)(4): what certification requires

If you seek ONC certification for CPOE functionality, 45 CFR 170.315(a)(4) sets the interaction checking requirements. It applies only to Health IT Modules presented for certification to that criterion.

The criterion, "Drug-drug, drug-allergy interaction checks for CPOE," has two parts:

  • Interventions: before a medication order is completed and acted upon during CPOE, interventions must automatically indicate drug-drug and drug-allergy contraindications based on the patient's medication list and medication allergy list.
  • Adjustments: the system must let the severity level of drug-drug interventions be adjusted, and must limit who can adjust it, either to a specific set of identified users or as a system administrative function.

The check must be automatic and must run before the order is completed, which rules out a "check interactions" button the prescriber may skip. Drug-allergy checking is in scope, so the allergy list has to reach whatever component does that check, whether that is the same service or a separate one. Severity adjustment is required too, restricted to identified users or an administrative function. The criterion does not prescribe how; an admin screen with role-based access is the usual way teams meet it.

The HTI-5 final rule (91 FR 67916, published October 28, 2026, effective December 28, 2026) keeps (a)(4) in place; its final regulatory text still lists (a)(4) in the privacy and security applicability rules at §170.550(h)(3)(ii). It does remove the parenthetical "in addition to drug-drug and drug-allergy contraindication checking" from the decision support interventions criterion at §170.315(b)(11)(iii). For the wider certification picture, see the ONC health IT certification guide.

Latency, caching, and audit logging

Interaction checks sit in the path of order signing, so they need a latency budget, a caching strategy that does not serve stale clinical content, and an audit trail of what each user saw.

Latency

The CDS Hooks specification says services "SHOULD respond quickly (on the order of 500 ms.)" That is a reasonable target for your whole screening call, including normalization. Resolve RxCUIs when a medication is saved, not at signing time, so the signing path makes one screening call instead of a chain of lookups. Set a timeout, and on failure show "Interaction check unavailable" so a failed call never looks like a clean result.

Caching

Cache normalization aggressively and interaction results carefully. NLM's RxNav terms ask for no more than 20 requests per second per IP and recommend caching results for 12 to 24 hours, which suits RxCUI and ingredient lookups. Interaction results need two layers. Knowledge lookups, such as what the source says about one ingredient pair, can be cached by the sorted ingredient RxCUIs plus the knowledge source version, and invalidated when the source updates. A patient-level result depends on more than ingredients: dose, route, allergies, patient factors, and your tier configuration can all change it, so either recompute it per request or key its cache on every one of those inputs. One simvastatin label, for example, says not to exceed 10 mg daily with verapamil or diltiazem and 20 mg daily with amiodarone or amlodipine, so the same ingredient pair can call for different handling at different doses.

Audit logging

Log enough to reconstruct what happened at any order: the medication list sent, the knowledge source and version, each alert returned with its tier, what was displayed, the user's action (accepted, modified, overridden), and any override reason. The clinical team will need the override data to tune tiers. If you certify, privacy and security criteria such as audit logging apply to (a)(4) through the applicability rules noted above.

Integration checklist

Scope the work with this list before you pick a source.

  1. Inventory every place a medication enters or changes in your product: order entry, intake, refill queue, portal, imports, AI scribe output.
  2. Decide which of those points will trigger screening and with what presentation.
  3. Add RxCUI and ingredient RxCUI columns to your medication table, with resolution method and confirmation fields, and give allergies class mapping plus an explicit "no known allergies" state.
  4. Build normalization at save time, using the RxNorm API or a local RxNorm copy, and surface unresolved items as "not screened."
  5. Choose your knowledge source and confirm in writing: identifiers accepted, OTC and supplement coverage, severity definitions, update cadence, redistribution rights, and a BAA if PHI is sent.
  6. Define three severity tiers mapped to UI behavior, with a restricted way for administrators to adjust them.
  7. Route the allergy list to whatever component performs drug-allergy checks, if you need them or (a)(4).
  8. Set a latency budget and timeout, and design the failure state so it never looks like a clean result.
  9. Cache knowledge lookups by ingredient set plus source version; recompute patient-level results or key them on every input that can change them.
  10. Log requests, results, displays, user actions, and override reasons.
  11. Test against a known high-priority interaction list, such as the 15 pairs from the 2012 panel, before release and after each knowledge source update. Add your own cases for class expansion, combination products, unresolved drugs, timeouts, and lists that should produce no alert.
  12. Have a clinician review alert wording and tier assignments with real medication lists from your target specialty.

What to check first

Start with item 1 on that list. Open your product and write down every screen where a medication can be added, imported, or changed, then mark which ones run an interaction check today. If the only marked screen is the e-prescribing module, check whether reconciled, refilled, and patient-reported medications actually reach that module. Where they do not, you have a coverage gap, and that gap should drive your choice among the four paths. If you want a second opinion on the integration, our HL7, FHIR, and EDI integration team works on this kind of build.