On-Device AI Inference

Unlike cloud-dependent EMRs, ChartLite executes entirely locally. sherpa-onnx powered ASR with 7 model tiers runs fully offline, including medASR for clinical vocabulary accuracy. Quantized Qwen 3.5 runs through llama.cpp for clinical extraction. An on-device RAG pipeline retrieves only the most relevant diagnoses and drugs per encounter.

Zero-Trust Security

Data at rest is protected by a SQLCipher encrypted database. Offline synchronization uses v4 AES-256-GCM encrypted binary payloads (92 bytes → 120 bytes encrypted → 160 Base64 chars = 1 SMS) transmitted over standard SMS networks. The v4 format carries expanded vitals, 5 chronic conditions, immunization history, growth z-scores, and clinical status flags (HIV, TB, pregnancy). Key derivation relies on PBKDF2 with 100,000 iterations. Play Integrity device attestation verifies app authenticity before any cloud API access.

Global Interoperability

FHIR R4 bundles are generated on-demand for external systems including DHIS2 and OpenMRS. Automated ICD-10 to CPT/HCPCS mappings power insurance claims. The architecture is ready for national health information exchanges across 3 active + 5 planned countries.


100% offline, scales as you grow

A tiered architecture that starts with zero connectivity requirements and progressively unlocks capabilities as infrastructure improves.


Tech stack

Every component is open-source, auditable, and selected for reliability at the edge.

Layer Technology Purpose
Platform Kotlin + Jetpack Compose Native Android UI with declarative components
Database Room + SQLCipher Encrypted FHIR-native schema, zero-setup local storage
ASR sherpa-onnx (7 model tiers) Multi-language speech recognition, fully offline, including medASR for clinical use
NLP llama.cpp (quantized Qwen 3.5) + 5 cloud fallbacks 6-strategy extraction: Gemini Nano → Qwen on-device → Claude → OpenAI → Gemini → Regex. Flash attention, Q8 KV cache
Encryption AES-256-GCM + PBKDF2 End-to-end data protection at rest and in transit
Sync Bluetooth / WiFi P2P + SMS v4 fallback Peer-to-peer data exchange with cross-facility patient-scoped sync; v4 SMS packs 92 bytes (34B encounter + 38B health history + 19B free text + 1B CRC) into a single 160-char message
Billing ICD-10 → CPT/HCPCS, E/M Levels, SOAP Insurance claims engine with automated coding and SOAP note generation
Standards FHIR R4, ICD-10, CPT/HCPCS, DHIS2 Interoperability with national health systems and insurers
Security Play Integrity API Device attestation for cloud API authentication
License Apache 2.0 Always free, always auditable, no vendor lock-in

Go deeper

Explore the technical details behind each layer of the architecture.