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

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
Prescriptions and receipts signed with the professional's own ICP-Brasil certificate, publicly verifiable through a QR code.
Payments through Mercado Pago, health insurance with TUSS and SIGTAP tables, authorization forms and reimbursement receipts.
AI usage with a per-cycle allowance, predictive balance reservation and additional usage capped by a limit set by the clinic.
Telehealth, a patient portal, a waiting list, pre-visit forms and LGPD consent whose revocation blocks data reads in the APIs.
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.