Security & Ownership
Engineered so staff see zero health data—and patients own their record.
Privacy in maiDoc is enforced in database policies, authorization seams, and automated leak sweeps—not just policy PDFs.
- Zero-PHI staff console (hard removal, not redaction)
- Platform operators cannot observe customer accounts, read health chats, inspect uploaded vault documents, or query clinical tables. Account observation and full-turn AI rating exports are removed outright from the codebase and verified by automated tests.
- Forced database row-level security & single auth seam
- Every health-profile read and write passes through one authorization seam backed by forced PostgreSQL Row-Level Security under a non-superuser runtime role. Missing profiles, ended grants, and ungranted domains all fail closed with 404—never confirming whether a record exists.
- Zero-PHI transactional emails, push alerts & logs
- Sign-in codes, staff invitations, care-team alerts, and remote push reminders never contain diagnoses, medication names, dosages, lab markers, or specialty clinic names. Production error logs reduce database query failures to SQLSTATE codes so patient values never enter server logs.
- Append-only patient-visible access log
- Every non-owner read or write—whether by a clinician, practice staff member, share link, or external agent key—records an entry in an append-only audit log protected by database triggers against update, delete, or truncate (cascading cleanly only if the patient erases their profile).
- Explicit opt-in AI & human-in-the-loop extraction
- AI processing requires live, versioned consent from both the acting user and the profile controller. Uploaded lab PDFs and scans stage proposals into a Review & Confirm queue—no model writes directly into clinical tables without human review. Images are re-encoded with EXIF and GPS metadata stripped.
- Passkey-first auth & step-up verification
- No passwords to reuse or phish. Clinicians and patients sign in with WebAuthn passkeys or single-use 6-digit email codes, and sensitive actions—inviting or removing practice staff, enabling external MCP, replacing billing cards, or detaching a care relationship—require fresh step-up verification.
Clean detachment & clinical continuity
Patients never lose their history. Practices never lose signed documentation.
Either the patient (from maiBody) or a practice owner/admin (discharge) can end a care relationship in one atomic, row-locked transaction.
- 01 · Immediate live cutoff
The live grant flips to ended, open regimen proposals are automatically declined, future appointments are cancelled, and profile-scoped AI chat access stops immediately.
- 02 · Frozen read-only practice archive
Your practice retains an immutable read-only archive of signed encounter notes (with their embedded chart snapshots up to cutoff), prescriptions you issued, and appointment history—with zero visibility into anything recorded after detachment.
- 03 · Multi-practice isolation preserved
Ending care with Practice A has zero effect on Practice B. Practices never see each other’s encounter notes unless the patient explicitly shares them.
Compliance & regulatory transparency
maiDoc is engineered with technical safeguards designed for sensitive health data isolation, auditability, and patient consent. We do not currently offer HIPAA Business Associate Agreements (BAAs) or claim HIPAA certification or FDA medical-device clearance. Covered entities requiring a BAA should contact us before onboarding regulated clinical records.
Transparent plans for solo practitioners and multi-clinician clinics.
Existing patient charts and signed archives are never hidden on downgrade.