Medical errors remain the third leading cause of death in the United States, with preventable adverse drug events alone accounting for over 1.5 million emergency department visits annually and an estimated global cost of $42 billion per year. A significant proportion of these events are attributable not to clinical incompetence but to information asymmetry: the failure to deliver the right patient information to the right clinician at the right time. Current electronic health record (EHR) systems, while digitizing clinical data, have not resolved the fundamental problem of fragmented patient information distributed across disconnected institutional silos.
This paper presents Maya, a sovereign voice-enabled artificial intelligence system developed by LeptonX LLC that addresses healthcare information asymmetry through a novel privacy-preserving architecture. Maya executes all inference, retrieval, and natural language generation entirely on patient-controlled hardware, transmitting zero protected health information to external servers. The system integrates structured medical records via FHIR R4 interoperability standards, unstructured clinical notes via retrieval-augmented generation (RAG) over 1,139 documents, genomic data pathways, and a natural voice interface accessible to users regardless of age, technical literacy, or medical expertise. Early operational testing demonstrates sub-second voice-to-voice latency for structured queries, 96.6% pattern retrieval accuracy on a 35-query sarcoma research corpus — educational, not diagnostic — and the system's capacity for proactive care-coordination support, including autonomous identification of pending genomic tests, clinical trial candidacy notes, and physician correspondence the patient can choose to send.
We introduce the Resonant Wave Communications framework, a conceptual model describing Maya's seven convergent input streams that collapse into unified voice responses grounded in the patient's own records, and the Federated Portal Intelligence Network (FPIN), a two-tier architecture separating cloud-based structural navigation telemetry from device-side sovereign data execution. The implications for patient safety, healthcare equity, and the transition from reactive, provider-centric care to proactive, patient-centric care are discussed.
Keywords: sovereign AI, patient safety, medication errors, retrieval-augmented generation, FHIR interoperability, voice assistant, privacy-preserving inference, on-device AI, care fragmentation, patient empowerment, personal-health voice agents
1. Introduction
1.1 The Information Asymmetry Crisis
The modern healthcare system generates an unprecedented volume of patient data — electronic health records, laboratory results, diagnostic imaging, genomic profiles, pathology reports, pharmacy records, and clinical notes — yet this information remains fragmented across institutional boundaries in ways that directly contribute to patient harm. In the United States, 35% of Medicare beneficiaries saw five or more physicians in 2019, while 34% of primary care physicians reported that they do not consistently receive useful information from specialists about shared patients (Kern et al., 2024). This fragmentation creates an environment in which critical clinical decisions are routinely made with incomplete information.
The consequences are quantifiable and devastating. Preventable medical errors are estimated to cause between 200,000 and 400,000 deaths annually in the United States alone, making them the third leading cause of death behind heart disease and cancer (Makary & Daniel, 2016; James, 2013). Medication errors — a subset of this broader crisis — affect approximately 1.3 million Americans annually, with adverse drug events accounting for nearly 700,000 emergency department visits and 100,000 hospitalizations each year (AHRQ PSNet, 2024; CDC, 2024). The World Health Organization estimates the global cost of medication errors at $42 billion annually (WHO, 2024), while the broader category of medical error costs the U.S. healthcare system between $20 billion and $50 billion per year in excess healthcare expenditures, disability, and lost productivity (Tariq et al., 2024).
These statistics, however, obscure the human reality. An 82-year-old man dies because his cardiologist prescribed amiodarone at three times the typical loading dose. An 18-year-old woman dies from serotonin syndrome because emergency residents prescribed meperidine without checking her existing MAOI regimen. A patient develops Stevens-Johnson syndrome because a nurse practitioner doubled a lamotrigine dose too quickly. In each case, the information necessary to prevent the catastrophe existed within the healthcare system — in a pharmacy database, in a prior prescriber's notes, in a manufacturer's dosing guidelines. It was not absent. It was inaccessible.
1.2 The Limitations of Current Digital Health Infrastructure
The widespread adoption of electronic health records, accelerated by the HITECH Act of 2009 and the 21st Century Cures Act, was expected to resolve the information fragmentation problem. While EHR systems have eliminated certain categories of error — most notably those attributable to illegible handwriting — they have introduced new failure modes and left the fundamental structural problem unaddressed. A systematic review by Snow et al. (2020) found that interhospital care fragmentation was associated with increased mortality (adjusted odds ratio range 0.95–3.62), longer lengths of stay, and higher readmission rates.
The critical insight is that digitization of health records is necessary but not sufficient for patient safety. The data must be not only digital but also unified, contextually accessible, and delivered at the point of clinical decision-making. Current EHR architectures are fundamentally institution-centric: each healthcare system maintains its own database, accessible primarily to its own clinicians, with interoperability achieved — when it is achieved at all — through complex health information exchange networks that often operate with significant latency and incomplete data transfer. The patient, who is the common thread across all institutional encounters, typically has no mechanism to unify their own records into a single, queryable, comprehensive medical narrative.
1.3 A New Paradigm: Patient-Sovereign Personal Data Navigation
This paper proposes a fundamental architectural inversion: rather than requiring healthcare institutions to share data with each other (a coordination problem that has resisted solution for decades), we equip the patient with the technological infrastructure to aggregate, unify, and intelligently query their own complete medical history on hardware they control. This approach — which we term sovereign personal data navigation — shifts the patient from passive data subject to active custodian of their medical reality.
Maya, the voice-enabled AI system described in this paper, embodies this paradigm. By executing all large language model inference, retrieval-augmented generation, speech recognition, and text-to-speech synthesis on a local computing device (currently an NVIDIA DGX Spark with 128 GB unified memory), Maya ensures that no protected health information is transmitted to external servers during operation. The patient's complete medical record — including clinical notes, laboratory results, imaging reports, pathology findings, medication histories, allergy records, and genomic data — resides and is processed entirely within a sovereign boundary controlled by the patient.
2. System Architecture
2.1 The Resonant Wave Communications Framework
Maya's architecture is described through the Resonant Wave Communications framework, a conceptual model drawing from wave-particle duality in quantum mechanics. In this framework, seven distinct input streams (denoted λ₁ through λ₇) operate as continuous wave functions that collapse into a single coherent particle — the voiced response grounded in the patient's own records — when a patient query is observed. These seven streams are:
- λ₁ — Structured Data (SQLite/FHIR): A 3,030-row metadata database providing sub-millisecond keyword and regex-based query routing for allergies, medications, laboratory values, imaging dates, provider information, and timeline events. This stream achieves approximately 0.95-second first-audio latency on structured queries.
- λ₂ — Unstructured Knowledge (RAG): Retrieval-augmented generation over 1,139 clinical documents ingested from the patient's healthcare portal, stored as dense vector embeddings (BGE-M3, 1024 dimensions) in a Qdrant vector database with BGE-reranker-v2-m3 cross-encoder reranking.
- λ₃ — Identity (FHIR R4): Integration with healthcare portals via the HL7 FHIR R4 standard using OAuth2 PKCE authorization, supporting USCDI v3 data classes across 498 health systems via Epic's automatic distribution network.
- λ₄ — Empathetic Persona: A voice-native system prompt engineering layer that shapes responses for warmth, accessibility, and appropriate emotional calibration based on query context.
- λ₅ — Clinical Literature: Pathways for integration with medical literature databases and clinical trial registries, enabling contextualization of patient-specific findings within broader medical knowledge.
- λ₆ — Inference Engine: A Qwen3.5-35B-A3B large language model (Mixture of Experts architecture, 34.6 billion parameters) executing locally via llama.cpp with Q4_K_XL quantization, achieving approximately 41 tokens per second.
- λ₇ — Voice Interface: An end-to-end voice pipeline comprising NVIDIA Parakeet-1.1B speech-to-text, Kokoro-82M text-to-speech at 24 kHz PCM, and WebRTC real-time transport, orchestrated through the Pipecat open-source framework.
2.2 Two-Tier Privacy Architecture
Maya's architecture enforces a strict separation between two operational tiers designed to preserve patient data sovereignty while enabling scalable navigation intelligence:
Tier 1 — Sovereign Execution Engine (Device-Side): All operations involving protected health information execute exclusively on patient-controlled hardware. This includes LLM inference, RAG retrieval, FHIR data processing, speech recognition, speech synthesis, and the complete reasoning pipeline. No PHI leaves the device boundary.
Tier 2 — Federated Portal Intelligence Network (Cloud-Side): A planned cloud service that aggregates anonymized structural intelligence about healthcare portal navigation — login flows, page layouts, button locations, menu hierarchies — without transmitting any patient data. This tier functions analogously to Waze for healthcare portals: each device-side agent contributes anonymized navigation telemetry that improves all agents' ability to autonomously traverse healthcare portals.
This two-tier architecture addresses a fundamental tension in this category: the need for collective navigation knowledge (learning from the experiences of many patients across many institutions) while maintaining absolute individual privacy. The FPIN achieves this by strictly confining shared learning to structural metadata — how portals are organized — while executing all data retrieval and processing within the sovereign boundary.
2.3 Technical Implementation
The current operational implementation runs on an NVIDIA DGX Spark GB10, a desktop-class system with a Blackwell-architecture GPU (compute capability sm_121), ARM64 CPU, CUDA 13.0, and 128 GB unified memory. The voice pipeline is orchestrated by Pipecat v0.0.104, an open-source framework for real-time voice AI, using the SmallWebRTC transport for peer-to-peer audio streaming without cloud relay dependencies.
The retrieval-augmented generation pipeline employs a hybrid routing strategy: a query classifier first determines whether the user's question is best served by structured data (SQL queries against the metadata database), semantic search (vector retrieval from the RAG corpus), or general conversation. Structured queries achieve sub-millisecond routing latency through a 3,030-row SQLite lookup database with keyword and regex-based patterns. Semantic queries proceed through BGE-M3 embedding, Qdrant approximate nearest-neighbor search, and BGE-reranker-v2-m3 cross-encoder reranking, with a hallucination guard that forces the model to explicitly decline fabrication when no matching records are found.
3. Applications to Patient Safety
3.1 Medication Error Prevention
The most immediate and quantifiable application of sovereign personal data navigation is the prevention of medication errors. The cases documented in clinical and medicolegal literature reveal a consistent pattern: errors occur not because pharmacological knowledge is unavailable, but because patient-specific information — allergy histories, concurrent medications, dosing guidelines, organ function data — is not accessible to the prescriber at the moment of decision.
Maya addresses this failure mode by maintaining a continuously accessible, voice-queryable repository of the patient's complete medication and allergy profile. In operational testing, the system correctly identified documented allergies to penicillins (with associated anaphylaxis, hives, itching, rash, and swelling reactions) and amoxicillin (with associated itching, rash, and facial swelling) from structured FHIR records when queried by voice. This information, delivered in under two seconds via natural speech, represents precisely the type of safety-critical data that is frequently missing during prescribing decisions.
The system's drug interaction detection capability follows logically from its unified medication view. Because Maya has access to the patient's complete active medication list, it can flag known contraindications — such as the MAOI-opioid interaction that caused the death of Libby Zion in 1984 — before the patient ingests the prescribed drug. While current clinical decision support systems embedded in EHRs provide similar alerting within individual institutional contexts, Maya operates across institutional boundaries, capturing medications prescribed by any provider the patient has seen through any connected health portal.
3.2 Continuity of Care Across Institutional Boundaries
Care fragmentation — defined as poorly coordinated care among multiple providers and organizations — is among the most persistent challenges in healthcare delivery. Rossen et al. (2023) demonstrated in a nationwide Danish cohort study of 4.7 million adults that high levels of care fragmentation were associated with both higher rates of potentially inappropriate medication prescribing and higher mortality, even after adjusting for morbidity, demographics, and socioeconomic factors. The dose-response relationship between fragmentation indicators and adverse outcomes pointed to a systemic effect that current coordination mechanisms fail to adequately address.
Maya fundamentally alters this dynamic by positioning the patient as the integration point for their own care.
Consider a hypothetical patient — call her Marie — who over the course of several years has been seen by oncologists, surgeons, radiologists, interventional radiologists, and primary care physicians across multiple institutions. Her treatment history spans an initial surgical resection, multi-year chemotherapy, external beam radiation, cryoablation procedures, and a current immunotherapy regimen. No single provider in her care team holds the complete picture.
In a system like the one described above, Marie's device-side voice agent synthesizes that complete history from her connected health portals on demand — surfacing the timeline, the procedures, the dates, the providers — in seconds, without any of that information ever leaving her control. She walks into each appointment with the full record at her fingertips, in her own voice, on her own terms.
3.3 Proactive Care Coordination
Perhaps the most significant finding from operational testing is Maya's capacity for proactive care-coordination reasoning — identifying actionable opportunities to follow up on existing care plans without explicit user prompting.
Consider the same hypothetical patient. Marie asks about her current immunotherapy options. In an operational system designed for this purpose, the voice agent could:
- Correctly identify her current immunotherapy regimen from her clinical records;
- Identify specific clinical trials previously noted as candidate options in her prior oncology notes;
- Proactively offer to check for updates on pending genomic testing whose results haven't yet arrived;
- Upon her request, draft a note the patient could send to her oncology team requesting status updates on the pending test results.
This four-step sequence — spanning retrieval, synthesis, proactive identification, and care coordination — represents a qualitative shift from reactive information retrieval to active patient advocacy. The system would not merely answer questions; it would identify a gap in care follow-up and offer to help close it — while leaving every clinical decision, and every communication, in the patient's hands.
4. Privacy Architecture and Regulatory Compliance
The privacy architecture of Maya differs fundamentally from cloud-based AI services that handle health data. In conventional architectures, patient queries and clinical records are transmitted to remote servers for processing — creating regulatory exposure, expanding the attack surface, and requiring complex data processing agreements. Maya inverts this model: the navigation intelligence comes to the data, rather than the data going to the intelligence.
All large language model inference executes on the patient's local device. All retrieval-augmented generation queries and responses remain within the local vector database. All speech recognition and synthesis occur locally. The WebRTC transport carries only voice audio between the patient's client device and the local server, with no intermediate cloud relay. This architecture achieves HIPAA compliance not through contractual mechanisms (Business Associate Agreements) but through physical and logical isolation: there is no covered entity receiving PHI because no PHI leaves the patient's control.
The provisional patent application (No. 64/000,111, filed March 9, 2026) covering Maya's architecture includes 42 claims across three domains: 25 claims for the Particle Taxonomy retrieval system, 8 claims for the FPIN architecture, and 9 claims for the NeuroNet two-tier retrieval pipeline. The NeuroNet pipeline specification includes differential privacy guarantees (ε ≤ 1, per NIST SP 800-226) and ARM TrustZone/OP-TEE secure enclave execution for the most sensitive operations.
5. Implications for Healthcare Equity and Patient Empowerment
A critical design principle of Maya is universal accessibility regardless of age, technical literacy, or medical expertise. The voice interface eliminates the barriers that prevent many patients from engaging with their health information through conventional digital health tools. A 78-year-old patient who cannot navigate a patient portal can ask Maya about their kidney function. A teenager managing a chronic condition can inquire about medication interactions. A caregiver supporting a family member with cancer can ask about treatment history, pending tests, and care team composition — and receive immediate, accurate, source-cited answers in natural speech.
This accessibility has particular significance for health equity. Populations that are disproportionately affected by medical errors and care fragmentation — older adults, patients with limited English proficiency, individuals with multiple chronic conditions requiring complex multi-provider care, and patients in rural settings with limited access to specialist consultation — are precisely the populations for whom a voice-accessible, always-available, patient-controlled personal data navigator could provide the greatest benefit.
The transition from reactive, provider-centric care to proactive, patient-centric care that Maya enables represents more than a technological innovation. It is an ethical reorientation: the assertion that patients have a right not only to access their medical records but to understand them, query them, and act upon them — through an interface that respects their cognitive and sensory capabilities rather than demanding specialized technical skills.
6. Limitations and Future Work
Several limitations of the current system warrant acknowledgment. First, the hardware requirements — while rapidly decreasing in cost — currently represent a significant barrier to adoption. The NVIDIA DGX Spark retails at approximately $3,999, a price point accessible to some patients and caregivers but not to all. Moore's Law dynamics and the ongoing commoditization of local AI inference hardware suggest this barrier will diminish rapidly; nonetheless, near-term deployment strategies should consider shared-device models (e.g., clinical kiosks or community health center installations) to extend access.
Second, the system's accuracy is inherently bounded by the quality and completeness of the source data ingested from healthcare portals. If a provider fails to document an allergy, or a medication reconciliation is incomplete at the portal level, Maya cannot detect what was never recorded. The system mitigates this through explicit hallucination guards and by sourcing every retrieved claim to a specific document, but it cannot manufacture information that does not exist in the patient's record.
Third, the current RAG retrieval latency (2–12 seconds for complex semantic queries) exceeds the threshold for truly natural conversational flow. Ongoing optimization efforts — including embedding model warm-up, reranker acceleration, retrieval result caching, and the potential migration to TensorRT-LLM for inference — aim to reduce total voice-to-voice latency below two seconds for all query types.
Fourth, rigorous clinical validation through randomized controlled trials has not yet been conducted. The system has been operationally tested with a single patient's clinical dataset. Multi-patient validation, sensitivity and specificity measurements for medication error detection, and longitudinal outcome studies are necessary before clinical deployment.
Future work includes deployment of the patient-facing FHIR onboarding interface (enabling any patient to authorize portal data access via a simple web wizard), the Evo2 genomic variant scoring pipeline for on-premises genetic analysis, and the PersonaPlex speculative retrieval architecture for pre-fetching relevant records in parallel with the audio stream.
7. Conclusion
The preventable deaths and injuries caused by medical errors represent a systemic failure of information delivery, not a failure of medical knowledge. The pharmacological facts necessary to prevent the amiodarone overdose, the Libby Zion serotonin syndrome, the lamotrigine titration catastrophe, and the topiramate prescribing error were all available somewhere within the healthcare system at the time of each event. What was missing was a mechanism to deliver that information — completely, accurately, and in time — to the person with the most at stake: the patient.
Maya provides that mechanism. By executing all data retrieval and inference on patient-controlled hardware, accessing records across institutional boundaries through standard interoperability protocols, and presenting complex medical information through an accessible voice interface, the system transforms the patient from passive recipient of fragmented care into active custodian of their unified medical reality. The early operational evidence — including correct allergy identification, accurate treatment history synthesis across multiple institutions, proactive identification of pending genomic tests, and autonomous drafting of physician correspondence the patient can choose to send — suggests that this architectural approach merits further development and rigorous clinical validation.
The fundamental question is not whether artificial intelligence can improve patient safety — the evidence for this is substantial and growing. The question is who controls the intelligence, where the data resides, and who benefits from the synthesis. Maya's answer is unambiguous: the patient. Their data. Their hardware. Their voice. Their safety.
References
- Agency for Healthcare Research and Quality (AHRQ) Patient Safety Network. (2024). Medication errors and adverse drug events. https://psnet.ahrq.gov/primer/medication-errors-and-adverse-drug-events
- Bates, D. W., Boyle, D. L., Vander Vliet, M. B., Schneider, J., & Leape, L. (1995). Relationship between medication errors and adverse drug events. Journal of General Internal Medicine, 10(4), 199–205.
- Centers for Disease Control and Prevention (CDC). (2024). FastStats: Medication safety data. https://www.cdc.gov/medication-safety/data-research/facts-stats/
- Chen, Y., Lehmann, C. U., & Malin, B. (2024). Digital information ecosystems in modern care coordination and patient care pathways and the challenges and opportunities for AI solutions. Journal of Medical Internet Research, 26, e60258.
- Institute of Medicine (IOM). (2000). To err is human: Building a safer health system. National Academies Press.
- Institute of Medicine (IOM). (2001). Crossing the quality chasm: A new health system for the 21st century. National Academies Press.
- James, J. T. (2013). A new, evidence-based estimate of patient harms associated with hospital care. Journal of Patient Safety, 9(3), 122–128.
- Kern, L. M., Bynum, J. P. W., & Pincus, H. A. (2024). Care fragmentation, care continuity, and care coordination — how they differ and why it matters. JAMA Internal Medicine, 184(3), 236–237.
- Kripalani, S., LeFevre, F., Phillips, C. O., Williams, M. V., Basaviah, P., & Baker, D. W. (2007). Deficits in communication and information transfer between hospital-based and primary care physicians: Implications for patient safety and continuity of care. JAMA, 297(8), 831–841.
- Makary, M. A., & Daniel, M. (2016). Medical error — the third leading cause of death in the US. BMJ, 353, i2139.
- Meyer, H. (2024). Patient care journey mapping for care coordination. In Chen, Y. et al. (Eds.), Digital information ecosystems in modern care coordination. JMIR.
- National Academy of Medicine (NAM). (2025). Toward a national health digital and data architecture: Laying the foundation for digital transformation. NAM Perspectives.
- Rossen, S., Holm, A., Juel, K., Meier, N. K., Sørensen, M. L., & Prior, A. (2023). Healthcare fragmentation, multimorbidity, potentially inappropriate medication, and mortality: A Danish nationwide cohort study. BMC Medicine, 21, 305.
- Snow, K., Snow, V., McAlister, F. A., & Eurich, D. T. (2020). Patient outcomes following interhospital care fragmentation: A systematic review. Journal of General Internal Medicine, 35(5), 1550–1558.
- Tariq, R. A., Vashisht, R., Sinha, A., & Scherbak, Y. (2024). Medication dispensing errors and prevention. In StatPearls [Internet]. StatPearls Publishing.
- Tran, T., Luo, W., Phung, D., Harvey, R., Berk, M., & Venkatesh, S. (2020). Preventable medication harm across health care settings: A systematic review and meta-analysis. BMC Medicine, 18, 313.
- U.S. Department of Health and Human Services (HHS). (2025). HHS proposes HTI-5 rule to streamline certification program, further protect patients from information blocking, and foster an artificial intelligence-enabled future.
- World Health Organization (WHO). (2024). Global burden of preventable medication-related harm in health care: A systematic review.