Clinical operations / Case study
One patient journey. Connected at every step.
A customized healthcare ERP connected to an external automation platform. It brings patient intake, online orientation, appointments, doctor dictation, and reviewed clinical records into one workflow.
My role
Custom ERP development, backend integration, and the doctor-facing mobile workflow.
Scope
Patient coordination, real-time sessions, AI-assisted documentation, and longitudinal records.
Current status
Core workflows implemented. AI accuracy and reliability are being refined.
The problem behind the project
Patient information was spread across spreadsheets, phone calls, messaging applications, and manually written case sheets. Staff repeatedly transferred the same details between systems.
Clinical documentation also had to accommodate both modern medicine and Ayurveda, including histories, examinations, prescriptions, diet schedules, procedures, and follow-up plans. The aim was to connect these stages and reduce repeated administrative and documentation work.
How the systems connect
The external backend connects the doctor application, processing services, and custom ERP workflows. This is a high-level integration map.
Flutter application
Focused dictation, transcript preview, editable case sheets, and doctor review.
FastAPI backend
Consultation sessions, processing coordination, and synchronization with the ERP.
ERPNext / Frappe
Leads, appointments, custom encounters, patient history, and printable records.
Speech & language services
Transcribe recordings and extract structured information for the draft.
PostgreSQL
Store consultation sessions and processing information.
LiveKit
Support orientation sessions and synchronize participation results.
Review is part of the architecture
Generated clinical information returns to the doctor as an editable draft. Consent and the encounter approval lifecycle control progression into the reviewed ERP record. Synchronization retries and processing logs support the integration.
What the platform makes possible
A connected patient journey
Capture enquiries, qualify leads, track follow-ups, and move eligible patients through orientation and appointment scheduling.
Online orientation with attendance
Schedule sessions, generate access links, track participation and watch time, and synchronize completion and assessment results.
Three stages of doctor dictation
Capture history, examination, and the treatment plan in focused recordings. Transcription and extraction produce editable clinical sections.
Doctor review before approval
Inspect source text, edit fields and sections, add section-specific dictation, and review the case sheet before it becomes an approved record.
Structured clinical records
Support practice-specific findings, medicines, procedures, diet schedules, clinical attachments, and previous-encounter history.
Consent and record controls
Require consent beyond the draft stage, follow a defined approval lifecycle, and protect approved encounters from normal editing.
How the workflow comes together
Enquiry and lead capture
A WhatsApp assistant answers service questions, collects enquiry details, and creates a structured lead linked to follow-up work.
Orientation and eligibility
An online session and assessment feed attendance and completion information into the appointment workflow.
Patient and appointment creation
Reuse or create the patient record, link the original lead, assign a practitioner, and track appointment status.
Focused dictation and draft preparation
The doctor records history, examination, and plan in three stages. Speech and language services organize the information into a draft.
Review, approval, and continuity
The doctor corrects and approves the record. The ERP retains encounter history and produces a printable case sheet and prescription.
What I built
I customized the ERP around the organization’s patient and clinical workflows, creating the required DocTypes and encounter structures.
I built the external backend and its integration with the ERP, connected the real-time orientation service, and developed the Flutter doctor workflow for recording, reviewing, and finalizing documentation.
The integration includes session storage, synchronization retries, processing logs, health endpoints, and evaluation capture for transcription and extraction testing.
Where the project stands
An end-to-end foundation is implemented: lead capture, orientation, eligibility, appointments, focused dictation, structured drafts, doctor review, ERP encounter creation, and printable records.
The AI documentation component is functional and has been tested with realistic recordings. Current work focuses on transcription, consistent field extraction, preservation of negation and context, clinical mappings, latency, provider failures, and doctor-approved evaluation data. Security, monitoring, and scalability are also ongoing development priorities.
Reducing administrative work and saving doctors’ time are product goals. No measured time-saving or clinical-accuracy percentage is claimed in this case study.
Engineering details
The technologies and integration areas behind this work.
Next project