JemmaPass is a Gemma 4-powered AI health companion running entirely on your device. Below is a complete, verified breakdown of what is fully implemented in the contest demo and what is planned for the production release.
Full conversational AI companion via LiteRT-LM (E4B 3.4 GB or E2B 2.4 GB). Multi-turn context, system prompts, patient-aware reasoning.
Gemma 4 function-calling into the clinical KB: resolveDrug, checkDdi, checkOneDrugAgainstFocusProfile, resolveAllergy, searchCodes, triggerRedAlert and 10 more.
Camera โ ML Kit OCR โ structured drug extraction pipeline powered by Gemma. GemmaMedScanPipeline with MedScanTools passes OCR text through Gemma for structured drug entry.
Speech-to-text module fully implemented (ai/stt/). Wired to the chat interface โ speak to Jemma to add entries, ask clinical questions, or give commands. Works on all Android devices with a microphone.
TTS module fully implemented (ai/tts/). Jemma speaks her responses aloud โ clinical summaries, drug interaction alerts, and plain-language explanations. Hands-free mode for emergency scenarios.
Gemma generates patient summaries in English, French, and Japanese via its KB. Full UI localization (strings for all 3 locales) planned post-contest.
Full on-device SQLite FTS5 knowledge base: 302,516 DDI records, 8,359 drug-disease mappings, SNOMED CT, RxNorm, ATC, LOINC, FoodData. Sub-50ms queries.
KbCrossCheck scans a drug against all three pillars at once: allergy collisions (SNOMED + ATC class), DDI (Major/Moderate), drug-disease contraindications.
When Gemma detects a critical collision, it calls triggerRedAlert which fires a full-screen alert with sound on the device. Fully event-driven via JemmaToolEvent.
JemmaFhirBundleBuilder generates a fully-compliant HL7 IPS FHIR R4 document bundle from the active pillars. Serialized via FhirR4Json.
JemmaPayloadCodec + JemmaPayloadPruner compress the FHIR bundle ~70% via clinical pruning + GZIP. JemmaQrBitmapEncoder generates the QR. Split into multi-frame for large payloads.
JemmaTextPayloadBuilder generates a plain-text human-readable IPS summary embedded as a QR layer, readable by any paramedic without an app.
Live scan module (ai/livescan/) implemented for the rescuer flow. Reads another device's JemmaPass QR and reconstructs the clinical profile in the rescue context.
JemmaSosService (69 KB) + JemmaSosChunkCodec: encrypts and broadcasts the clinical profile in 131-byte chunks over Google Nearby Connections P2P_CLUSTER. Zero infrastructure.
RadarController (40 KB) + JemmaNearbySosService reassemble victim chunks, reconstruct full clinical profiles, and display victims on a 360ยฐ radar with distance estimate.
SaltCode + StatusResolver + StatusEvent: rescuers tag victims Green/Yellow/Red/Black. Tags propagate across all Nearby peers in real-time. JemmaRescuerBroadcaster handles relay.
JemmaSosBleAdvertiser + JemmaSosBleScanner: BLE advertising fallback for when Nearby is not available. Ensures victim discovery even in degraded RF environments.
JemmaEmergencyWidget + JemmaWidgetEmergencyService: Android home screen widget that displays blood type, critical allergies, and emergency contact โ no app launch needed.
mesh/relay/ module scaffolded. Multi-hop message relay (victim โ relay device โ rescuer) for larger disaster zones. Planned for v3.0 production.
JemmaPass and its Gemma 4 engine work with zero network access. All inference, clinical reasoning and data storage happen locally โ no sync, no server, no outage. Perfect for disaster zones, rural areas, or simply protecting your privacy.
A 3.36 GB on-device knowledge base (SNOMED CT, RxNorm, ATC, LOINC, FoodData) powers JemmaPass's Clinical Shield. Gemma 4 uses native Function Calling to query it and detect drug-drug (DDI) and drug-food (DFI) interactions โ all without a single byte of cloud traffic.
JemmaPass's Clinical Forge compresses your FHIR R4 bundle by 70% and encodes it in three QR layers: binary FHIR (machine-to-machine), Gemma 4-generated human-readable IPS summary, and a locale-specific plain-text fallback readable by any generic scanner.
Gemma 4's autonomous localized reasoning generates patient summaries in the doctor's language on the fly โ French, English, and Japanese.
Demo: 3 languages supported.
Your data and your AI companion never leave your device. Gemma 4 runs locally via LiteRT โ zero telemetry, zero analytics, zero account required. Even your AI conversations are private.
Broadcast your clinical profile over Google Nearby Mesh. No network, no QR display needed. Perfect when pinned under rubble or hands-free. BLE fallback ensures victim discovery even in degraded RF environments.
JemmaPass implements the International Patient Summary (IPS) standard, mandated by the EU Health Data Space and adopted by WHO. Every field maps to a FHIR R4 resource built with the Open Health Stack Kotlin FHIR library (dev.ohs.fhir:fhir-model:1.0.0-beta03, Apache 2.0 โ launched by Google, now stewarded by the OHS community). Jemma's AI companion guides you through filling each section via natural conversation.
AllergyIntoleranceBuilderMedicationStatementBuilderPatientBuilderJemmaPass embeds the entire DDInter 2.0 professional clinical database. With over 302,516 drug-drug interactions and 8,359 drug-disease mappings, it detects lethal combinations at the point of care. Powered by molecular identity (SMILES/InChI), Jemma's Shield operates with hospital-grade accuracy, 100% offline.
Jemma's brain is Gemma 4 running via LiteRT, augmented by native @Tool function calling into a 3.36 GB clinical knowledge base (SNOMED CT, RxNorm, ATC, LOINC). Say "is sashimi safe with my Warfarin?" โ Jemma reasons over your medications, queries the DFI engine and gives you a clinical-grade answer. Entirely offline. Under 2 seconds.
JemmaPass transforms a collection of smartphones into a localized medical mesh. Rescuers can perform collaborative triage (SALT protocol), tagging victims as Green, Yellow, Red, or Black. These tags propagate across all Nearby devices instantly, ensuring no one is triaged twice.
No other solution combines an on-device AI companion with a portable clinical standard and full air-gap capability.