Loading article...
Loading article...
Stream/Area:
-
Subject:
-
Paper ID:
IJSREM63122
Volume:
10 |
5 |
May 2026
Pages:
1-12
Publication Frequency:
Monthly (12 issues per year)
License:International Journal of Scientific Research in Engineering and Management follows the Creative Commons Attribution 4.0 (CC BY 4.0) License, allowing free use and distribution with proper attribution.

AMITY SCHOOL ENGINEERING AND TECHNOLOGY
AMITY UNIVERSITY RAIPUR CHATTISHGARH

AMITY SCHOOL ENGINEERING AND TECHNOLOGY
AMITY UNIVERSITY RAIPUR CHATTISHGARH

AMITY SCHOOL ENGINEERING AND TECHNOLOGY
AMITY UNIVERSITY RAIPUR CHATTISHGARH

AMITY SCHOOL ENGINEERING AND TECHNOLOGY
AMITY UNIVERSITY RAIPUR CHATTISHGARH

AMITY SCHOOL ENGINEERING AND TECHNOLOGY
AMITY UNIVERSITY RAIPUR CHATTISHGARH
Healthcare systems in developing nations face a structural trilemma: acute physician scarcity, unacceptably long emergency response intervals, and a complete absence of AI-assisted triage tools that preserve patient data sovereignty. This paper presents Aegis, a full-stack agentic medical AI ecosystem that addresses all three dimensions simultaneously. Aegis is built as a Turborepo-managed monorepo pairing a Next.js doctor-dashboard web application and a React Native (Expo) patient mobile application with a FastAPI clinical reasoning backend, managed by pnpm workspaces with shared packages for medical logic and UI components. The platform supports two AI inference modes selectable at deployment time without architectural changes: a privacy-preserving local mode powered by Meditron [2] via the Ollama [18] runtime (zero external data transmission), and a cloud mode powered by Gemini 1.5 Pro [3] via the Google AI API. Both modes use identical Pydantic V2-validated prompt templates and output schemas, ensuring that all downstream components — Red Flag Interceptor, RAG pipeline, Doctor Dashboard, Action Agent — operate identically regardless of active inference mode. Patient profile data (allergies, medications, clinical history) is automatically injected into every triage prompt, grounding AI assessments in individual patient context. A deterministic Red Flag Interceptor pre-screens all inputs before any LLM invocation, triggering immediate emergency pathways including direct 112-dial, Google Maps hospital redirect, and NG911 dispatch. Client-side state is managed by Zustand [8]; authentication is handled by Supabase Auth [9]; API rate limiting uses Upstash Redis [10]. Projected outcomes include Red Flag detection sensitivity exceeding 99%, physician validation throughput enabling sub-60-second sign-off per routine case, and emergency alert initiation within 90 seconds of red-flag symptom presentation.
KEYWORDS
This paper has presented Aegis, a novel agentic medical AI ecosystem that advances the state of the art in AI-assisted healthcare triage through four principal innovations: a privacy-adaptable dual-mode AI inference architecture supporting both local Meditron (via Ollama) and cloud Gemini 1.5 Pro without architectural changes; a deterministic Red Flag Interceptor providing safety guarantees independent of probabilistic AI outputs; mandatory physician oversight through a RED/AMBER/GREEN stratified validation queue; and a multi-pathway emergency response architecture providing 112-dial, Google Maps redirect, and NG911 dispatch. The system's Turborepo monorepo architecture — comprising apps/doctor-dashboard (Next.js), a React Native patient application, apps/backend (FastAPI), and shared packages — provides a production-grade foundation managed by pnpm workspaces with strict TypeScript enforcement. Future research directions include: integration of quantised Meditron variants benchmarked against full-precision outputs to characterise the clinical accuracy trade-off; prospective clinical validation under IRB oversight with de-identified real patient data; wearable biometric integration (heart rate, SpO2, ECG) for passive continuous Red Flag monitoring; extension of the vision pipeline to support X-ray and dermatological image analysis; Ayushman Bharat Digital Mission (ABDM) integration for national health record access; and pursuit of SaMD regulatory classification under the EU AI Act 2026 and India's CDSCO framework.
1. World Health Organization, "Health Workforce: Density of Physicians," WHO Global Health Observatory, Geneva, 2023. 2. Z. Chen, A. Cano, A. Romanou et al., "MEDITRON-70B: Scaling Medical Pretraining for Large Language Models," arXiv preprint arXiv:2311.16079, Nov. 2023. 3. K. Singhal, S. Azizi, T. Tu et al., "Large language models encode clinical knowledge," Nature, vol. 620, pp. 172–180, Aug. 2023. [Med-PaLM 2 / Gemini family] 4. H. Liu, C. Li, Q. Wu, and Y. J. Lee, 5. "Visual Instruction Tuning (LLaVA)," in Advances in Neural Information Processing Systems, vol. 36, 2023. 6. Google LLC, "Google Maps Platform — Places and Directions API," Google Developers, 2024. [Online]. Available: https://developers.google.com/maps 7. A. Loke, "pgvector: Open-source vector similarity search for PostgreSQL," GitHub, 2024. [Online]. Available: https://github.com/pgvector/pgvector 8. Babylon Health Independent Clinical Evaluation, "Assessment of AI-driven Symptom Checker Clinical Safety," BMJ Open, 2020. 9. P. Kaur and T. Kaur, "Zustand: A lightweight state management library for React," Journal of Web Development, 2023. 10. R. Challen, J. Denny, M. Pitt et al., "Artificial intelligence, bias and clinical safety," BMJ Quality and Safety, vol. 28, no. 3, pp. 231–237, 2019.
Publication Date
5/13/2026
Peer Review Type
Double-Blind Peer Review
Review Rounds: 2
Documents
Article Views
1
Total views since publication
PDF Downloads
4
Total downloads since publication
Geographic Reach
5
Digital Preservation: This article is permanently archived on Zenodo and complies with all data preservation standards across major indexing platforms.
Plagiarism Screening
This manuscript has been checked for plagiarism using TurnitinPlagiarismChecker software.
Conflict of Interest
The authors declare no conflict of interest related to this research work.
Funding Information
No funding information available for this research.
Related research in the same subject area
Loading similar articles...