From a doctor's note to a paid claim, inside the UAE
The engine reads the note, checks it against the payer's rules, drafts the prior-approval pack and hands it to a billing coordinator, who approves it before a bot submits it. Remittances come back and feed the dashboard.


Screenshots of this demo, captured with Playwright. Synthetic data.
The flow, step by step
Select a step to see what it does, what data it touches and where it runs. The green boundary is the UAE: patient data never leaves it.
The steps as a list
- Doctor's note (Inside the UAE: patient data allowed): The doctor writes the encounter note and orders a service, such as an MRI or physiotherapy. 60 synthetic notes written by a model from a deterministic case mix.
- Clinic EMR (Inside the UAE: patient data allowed): Holds the encounter, the member's insurance and the order, and sends them to the engine. A JSON file of synthetic encounters stands in for the EMR.
- Claims Engine (Inside the UAE: patient data allowed): Reads the note with a language model: suggested ICD-10 and CPT codes, documentation gaps per payer element, a doctor query and a justification draft. Google Cloud me-central1 (Doha) and Gemini 4 Argon, which is possible only because the data is synthetic.
- Payer rules (Inside the UAE: patient data allowed): Decides whether prior approval is required, which elements the payer expects, session caps and code rules. Deterministic: the model never decides the verdict. Illustrative JSON rules for three fictional payers, not real payer policy.
- PA pack (Inside the UAE: patient data allowed): Puts together the pre-submission verdict, the codes to submit, the editable justification and the attachments list. Shown on the engine page under the verdict.
- Billing coordinator (Inside the UAE: patient data allowed): Reviews the pack, edits it if needed and approves. Nothing is submitted without a person approving it. You, pressing "Approve and submit". Worklists show what is due first.
- eClaimLink / TPA portal (Inside the UAE: patient data allowed): A bot logs in to the payer's portal, fills the prior-approval form, submits it and reads the status back. A deliberately clunky fictional TPA portal. Nothing reaches a real insurer or eClaimLink.
- Remittance advice (Inside the UAE: patient data allowed): The payer's remittance comes back with denial codes. The engine explains each one and drafts the corrected resubmission. 16 synthetic remittances with DoH/DHA-style denial codes.
- Dashboard (Inside the UAE: patient data allowed): Shows value at risk before submission, denials after it, and the prior-approval clock. Every number opens its definition and source. Computed from the synthetic set on every request.
- Global model endpoint (Outside the UAE: synthetic data only): Gemini 4 Argon reads synthetic notes for this demo. In production it sees public documents, code and synthetic data only. Used here because every note is synthetic.
- RPA developers (Outside the UAE: synthetic data only): Build and test the bots against synthetic data and mock portals, and ship code through CI/CD. The bot in this repository was built against the mock portal.