How AuraPharm works
GenAI understands natural speech. Plain, tested rules make every safety decision. The person stays in control in between.
- Step 1
Speak
Mrs. Chan speaks naturally in Cantonese or English — or types.
- Step 2
GenAI extraction
The model turns her words into a fixed JSON schema. It may leave fields empty; it may not diagnose, advise or decide.
- Step 3
User confirmation
She sees every field, corrects mistakes and confirms. Nothing unconfirmed is saved.
- Step 4
Deterministic rules
Plain code compares the confirmed record with the fictional care plan. The highest-severity rule wins.
The AI may
- Turn spoken or typed words into the fixed fields
- Leave a field empty and add a warning when unsure
- Restate already-approved care-plan text in simpler words (optional)
The AI may not
- Diagnose, triage or judge clinical risk
- Prescribe or change medication
- Set the status, contacts or escalation route
- Save anything without the user's confirmation
Rules in the fictional care plan
Rules are data, evaluated in order; when several match, the highest severity wins. Each result records the rule ID and reason.
Not clinically validated. Every threshold, term and message here is a fictional placeholder. A clinician or qualified partner must review any real rule set.
Fictional thresholds: review level 140/90 mmHg · urgent-demo level 180/110 mmHg · low level: top number under 90.
URG-RED-FLAGUrgent (demo)A confirmed symptom matches a red-flag term in this fictional plan.
URG-BP-VERY-HIGHUrgent (demo)Confirmed reading at or above 180/110 mmHg (fictional demo level).
URG-GLUCOSE-VERY-LOWUrgent (demo)Confirmed blood sugar below 3 mmol/L (fictional demo level).
FUP-MISSED-DOSEFollow-upThe planned tablet was confirmed as missed.
FUP-DOSE-UNCONFIRMEDFollow-upWhether the planned tablet was taken is unsure or not recorded.
FUP-NO-READINGFollow-upNo blood-pressure reading was confirmed in the check-in.
FUP-BP-REPEATEDFollow-upToday's reading and at least one of the previous two are at or above 140/90 mmHg (fictional review level).
FUP-BP-LOWFollow-upConfirmed top number below 90 mmHg (fictional demo level).
FUP-GLUCOSE-LOWFollow-upConfirmed blood sugar below 4 mmol/L (fictional demo level).
FUP-GLUCOSE-HIGHFollow-upConfirmed blood sugar above 15 mmol/L (fictional demo level).
FUP-HEART-RATEFollow-upConfirmed heart rate below 50 or above 110 per minute (fictional demo range).
FUP-SYMPTOMFollow-upAny other confirmed symptom that is not a red-flag term.
Red-flag terms (fictional, unvalidated)
- chest pain or tightness · chest + pain, chest + tight, chest + pressure, 胸 + 痛, 心口 + 痛, 胸 + 翳, 心口 + 翳, 胸 + 悶
- fainting · fainted, fainting, passed out, blacked out, 暈倒, 昏倒, 失去知覺
- weakness or numbness on one side · weak + one side, numb + one side, face + droop, 一邊 + 無力, 一邊 + 麻, 半邊 + 無力, 半邊 + 麻, 面 + 歪
- slurred or confused speech · slurred, trouble speaking, difficulty speaking, can't speak, cannot speak, 講嘢 + 唔清楚, 講唔到嘢, 口齒不清, 說話 + 不清
- severe difficulty breathing · can't breathe, cannot breathe, difficulty breathing, short + breath (severe), 呼吸困難, 透唔到氣, 唞唔到氣, 喘不過氣
- sudden, severe headache · headache (severe), worst + headache, 頭 + 痛 (severe), 劇烈 + 頭痛
- sudden loss of vision · lost + vision, vision + loss, can't see, cannot see, 睇唔到嘢, 看不見, 失明
Current mode
Simulation · no model call
Simulation: stored fixtures for the demo scripts and a simple pattern parser for other text. No model is called.
Privacy and safety in this alpha
- Only fictional people and records. No real patient data.
- In Simulation mode nothing is sent to a model. Only your browser's own speech service may hear you.
- A model key stays on the AuraPharm AI relay and never enters this app. If you paste your own key for a demo, it stays in this browser and you can forget it.
- The relay does not write transcripts or health details to its logs.
- Model output is schema-checked and treated as untrusted data, never as instructions.
- Alerts and calls are simulated. Nothing contacts a real person.
- Legal, privacy, security and clinical review are required before any real pilot.
Limits of this version
- Data lives on each device. What you record is kept in this browser only. Elderly and Caregiver modes share it only when they are opened in the same browser, which is fine for a one-phone demo. Sharing between phones would need a server that stores care data too. That is a next step and is not built yet.
- Voice needs https; typing works everywhere. On an address that is not secure, the microphone is blocked and only typing works.
- Check-ins, alerts and reminders run on the device only while AuraPharm is open, on Hong Kong time.