Maintenance Notice

Due to necessary scheduled maintenance, the JMIR Publications website will be unavailable from Wednesday, July 01, 2020 at 8:00 PM to 10:00 PM EST. We apologize in advance for any inconvenience this may cause you.

Who will be affected?

Previously submitted to: JMIR Medical Informatics (no longer under consideration since Oct 26, 2026)

Date Submitted: Oct 25, 2026
Open Peer Review Period: Oct 26, 2026 - Oct 26, 2026
(closed for review but you can still tweet)

NOTE: This is an unreviewed Preprint

Warning: This is a unreviewed preprint (What is a preprint?). Readers are warned that the document has not been peer-reviewed by expert/patient reviewers or an academic editor, may contain misleading claims, and is likely to undergo changes before final publication, if accepted, or may have been rejected/withdrawn (a note "no longer under consideration" will appear above).

Peer review me: Readers with interest and expertise are encouraged to sign up as peer-reviewer, if the paper is within an open peer-review period (in this case, a "Peer Review Me" button to sign up as reviewer is displayed above). All preprints currently open for review are listed here. Outside of the formal open peer-review period we encourage you to tweet about the preprint.

Citation: Please cite this preprint only for review purposes or for grant applications and CVs (if you are the author).

Final version: If our system detects a final peer-reviewed "version of record" (VoR) published in any journal, a link to that VoR will appear below. Readers are then encourage to cite the VoR instead of this preprint.

Settings: If you are the author, you can login and change the preprint display settings, but the preprint URL/DOI is supposed to be stable and citable, so it should not be removed once posted.

Submit: To post your own preprint, simply submit to any JMIR journal, and choose the appropriate settings to expose your submitted version as preprint.

Warning: This is an author submission that is not peer-reviewed or edited. Preprints - unless they show as "accepted" - should not be relied on to guide clinical practice or health-related behavior and should not be reported in news media as established information.

An Adaptive Multi-Agent Framework for Medication Safety: Evidence-Grounded Assessment, Medication Resolution, and Uncertainty Handling

  • Priyangshu Adhikari

ABSTRACT

Background:

Medication safety assessment is complicated by ambiguous medication names, potential drug-related risks, and the need to distinguish reliable evidence from uncertain information. AI-based systems may assist with medication information processing, but their use requires careful handling of medication identity, evidence quality, and uncertainty.

Objective:

To develop and conduct a preliminary technical evaluation of an adaptive multi-agent framework for medication safety that combines medication identity resolution, evidence-grounded risk assessment, and explicit uncertainty handling.

Methods:

The framework was implemented using LangGraph and organized into ten modules for query processing, medication resolution, evidence retrieval, risk assessment, and response handling. Medication resolution used resources including RxNorm, openFDA, DailyMed, and curated medication data. A deterministic safety assessment component and an uncertainty-handling component were used to distinguish potential clinical risk from technical uncertainty. Evaluation included author-labeled offline test queries, live medication-identity checks, acceptance scenarios, and automated test suites. The evaluation focused on software behavior and technical performance rather than clinical outcomes.

Results:

In 42 author-labeled offline queries, medication entity resolution achieved a precision of 0.9167, recall of 1.0000, and F1 score of 0.9565. Routing accuracy was 42/42, and the false-positive rate for ordinary-word inputs was 0/22. Live identity matching succeeded in 14/14 checks, and safe handling of ambiguous or misspelled medication products was observed in 3/3 tested cases. All 18 acceptance scenarios passed. The reported test suites included 452 offline tests and 72 live tests. These results represent preliminary technical evaluations on small test sets and do not establish clinical effectiveness or patient safety.

Conclusions:

The framework demonstrates the technical feasibility of combining multi-agent orchestration, medication identity resolution, deterministic risk assessment, and explicit uncertainty handling in a medication-safety application. The preliminary results support further evaluation using independently developed test sets, comparisons with baseline systems, expert clinical review, and appropriately designed clinical validation before any use in patient care. Clinical Trial: Not applicable. This study did not involve a clinical trial or prospective intervention with human participants.


 Citation

Please cite as:

Adhikari P

An Adaptive Multi-Agent Framework for Medication Safety: Evidence-Grounded Assessment, Medication Resolution, and Uncertainty Handling

JMIR Preprints. 25/10/2026:115307

DOI: 10.2196/preprints.115307

URL: https://preprints.jmir.org/preprint/115307

Download PDF


Request queued. Please wait while the file is being generated. It may take some time.

© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.