Compliance direction

Compliance is a product requirement, not a claim.

MediFlow is being built around organization isolation, server-side access control, PHI-safe audit foundations, data minimization, and controlled AI handling. Certification and legal readiness stay tied to evidence, provider agreements, and review.

Pillars

Compliance pillars

  1. 01
    Organization isolation
    every subscription maps to an organization workspace; data is scoped to that organization.
  2. 02
    Server-side access control
    sensitive access and PHI mutations are authorized through Functions and use cases, not client checks.
  3. 03
    Audit foundations
    patient, document, appointment, billing, membership, AI, and admin changes are modeled as audit events.
  4. 04
    Data minimization
    logs, URLs, and audit metadata avoid PHI by construction.
  5. 05
    AI governance
    AI requests run server-side, feature-flagged, quota-aware, PHI-minimized, human-reviewed.
Regulatory direction

Regulatory direction

HIPAA / BAA

Direction

Unique user identities, MFA as a launch gate, least-privilege roles, audit controls, PHI-safe metadata, transmission security, subprocessor review, and BAAs wherever ePHI is created, received, maintained, or transmitted.

  • Unique user identity and MFA at launch.
  • Least-privilege organization roles.
  • PHI-safe audit metadata.
  • Transmission and storage security.
  • BAAs where ePHI flows.
GDPR

Direction

Transparency at onboarding, lawful-basis documentation, data minimization, correction and export workflows, deletion workflows, audit retention policy, secure processing, and an EU-first data residency strategy.

  • Onboarding transparency and lawful basis.
  • Data export and rectification flows.
  • Right-to-deletion workflow.
  • Audit retention policy.
  • EU-first residency strategy.
Launch gate

Evidence-based launch gate

Before a production release, each critical control maps to evidence: test outputs, audit export samples, agreement status, runbooks, retention policy, owner assignments. A control is not done because it is named. It is done because it is shown.

  1. Implemented
    Server-side RBAC enforcement
    Function-boundary checks for PHI and membership mutations.
  2. Implemented
    Organization workspace isolation
    Appwrite Teams modeled per organization.
  3. Implemented
    PHI-safe audit metadata schema
    Reject-list on obvious PHI-bearing keys.
  4. In progress
    MFA as a launch gate
    Onboarding flow integration in review.
  5. Blocked
    BAA with hosting tier
    Awaiting Appwrite HIPAA tier confirmation.
  6. In progress
    Right-to-deletion workflow
    Workflow drafted; legal review pending.
  7. Planned
    Subprocessor inventory and DPA
    Owner assigned; due before pilot expansion.
  8. Planned
    Penetration test
    Scheduled after BAA tier confirmation.
Sample audit row
Illustrative only · synthetic values · not from any real workspace
actor_typeactor_idorg_idactiontargettimestampipuser_agentmutation_class
organization_userusr_•••cf1dorg_•••87a2patient.vitals.updatepatient · pt_•••3a902026-05-26T14:32:11Z•••.•••.41.7Chrome / macOSphi
organization_userusr_•••a812org_•••87a2org.invite.sendinvitation · inv_•••0c42026-05-26T14:48:02Z•••.•••.41.7Firefox / Windowsmembership
systemsvc_ai_runnerorg_•••87a2ai.summary.completepatient · pt_•••3a902026-05-26T14:51:33Zinternalai-runner/0.4phi (read)
No PHI in any field. Names, addresses, document bodies, and AI prompts are rejected at the metadata layer.