Skip to content
Lucas
All projects
CompletedSystem for a clinic

Gattini System

Clinical documentation pipeline with AI transcription and workflow automation.

Private code
Gattini System inbox with transcriptions awaiting review

Architecture and data flow

  • A Plaud device records and transcribes the appointment; Zapier orchestrates the flow and sends the structured content via Webhook.
  • The transcription is structured with AI (OpenAI API) and reviewed by the practitioner before it becomes a medical record.
  • An Ngrok tunnel securely routes cloud traffic to the clinic's on-premise server.
  • The Next.js backend validates the request, extracts the data, fixes time zones and stores it via Prisma.

Technical challenges

  • Secure, idempotent webhook authenticated by header (x-webhook-secret), with no duplicate records.
  • Regex-based date and time extraction to fix the time zone of the incoming ISO string.
  • Opening network documents directly in Microsoft Word from the browser via a URI scheme (ms-word:).
  • On-premise server with silent startup and power management to run 24/7.
Inbox showing the status of each transcription
Inbox: transcriptions under analysis, ready for review and approved.
Admin dashboard with metrics and audit log
Admin dashboard with an editing rule and audit log.
Medical records portal sign-in screen

Private repository: the code is not public.