SaaS product

Vizo2026in production

Alliomed

A clinic management platform for doctors and psychologists, with AI applied to medical records and paying clinics.

Alliomed page showing the consultation screen and AI transcription
The product page, with the consultation screen and AI transcription.

17

documented architecture decisions (ADRs)

RLS
per-clinic isolation enforced in PostgreSQL
ICP-Brasil
digital signatures on prescriptions and receipts

The problem

Health professionals often use one system for scheduling, another for billing, WhatsApp to talk to patients and paper for prescriptions, while still having to comply with LGPD (Brazil's data protection law) and professional council rules.

The solution

A multi-tenant SaaS built on Next.js with Drizzle and PostgreSQL. Each clinic has its own subdomain, and data isolation is enforced in the database itself with Row-Level Security. With patient consent, a consultation can be recorded, transcribed and turned into a draft record in the format of the profession, which the professional reviews and signs.

Technical notes

  1. Prescriptions and receipts signed with the professional's own ICP-Brasil certificate, publicly verifiable through a QR code.

  2. Payments through Mercado Pago, health insurance with TUSS and SIGTAP tables, authorization forms and reimbursement receipts.

  3. AI usage with a per-cycle allowance, predictive balance reservation and additional usage capped by a limit set by the clinic.

  4. Telehealth, a patient portal, a waiting list, pre-visit forms and LGPD consent whose revocation blocks data reads in the APIs.

  5. Continuous integration that builds images in the pull request and deploys only the services that changed, with staging validation.

Outcome

The platform is in production and serves paying clinics.