This Clinic Data Processing Agreement ("DPA") applies between the clinic or health facility subscribing to DHS Clinic System (DHS) ("Clinic", "Data Controller") and Defolt Labs Limited ("Defolt Labs", "Data Processor"), a company in Dar es Salaam, Tanzania registered as a Data Processor with the Personal Data Protection Commission (PDPC) under the Personal Data Protection Act, No. 11 of 2022 ("PDPA").
Clinic Data Processing Agreement
Parties and roles
Scope and purpose of processing
Defolt Labs processes patient demographics, emergency contacts, insurance member numbers, appointments, front desk queues, clinical notes and charting (SOAP notes, vital signs, 2D dental tooth charts), prescriptions, pharmacy dispensing, laboratory orders and results, uploaded visit attachments, patient-cosigned treatment bills, insurance claims, and staff/payroll records solely to deliver, maintain, secure, and support the DHS Clinic System for the Clinic. The Clinic remains the owner and Data Controller of all clinical and patient records entered into its workspace.
Controller instructions
Defolt Labs processes personal and health data only on the documented instructions of the Clinic (including configuration and actions taken by authorised Clinic staff inside DHS), unless required otherwise by Tanzanian law.
Health data and confidentiality
Patient health records are sensitive personal data under the PDPA. Defolt Labs ensures that personnel with operational access to underlying infrastructure are bound by written confidentiality obligations and never access patient records except when explicitly requested by the Clinic for technical support or required by law.
Technical and organisational security
- Encryption: data in transit is encrypted with TLS, and patient records and connected insurer credentials in DHS are encrypted at rest.
- Tenant isolation: every clinic's database records are isolated per tenant by PostgreSQL Row-Level Security (RLS) policies that fail closed, and visit attachments in MinIO object storage are isolated under tenant-scoped prefixes accessed only via short-lived presigned links (15-minute upload expiry, 60-minute download expiry).
- Role-based access: access inside the clinic workspace is scoped by staff role and permission slugs.
- Audit trail: clinical and administrative changes are recorded in an append-only tamper-evident audit log.
- Log and AI hygiene: patient clinical charts, diagnoses, vital signs, and tooth charts are excluded from system application logs, event buses, and Defolt AI assistant tools.
Named hosting and sub-processors
The Clinic authorises Defolt Labs to engage the following named sub-processors under contractual data protection obligations:
- Contabo GmbH (European Union / Germany): dedicated cloud servers, PostgreSQL databases, MinIO object storage, and encrypted backups.
- Cloudflare, Inc.: authoritative DNS, TLS edge routing, DDoS protection, and Turnstile signup verification.
- NextSMS (Tanzania): licensed telecommunications SMS gateway when the Clinic enables patient SMS reminders or notifications (receives recipient phone number and message text only).
- Selcom Paytech Limited (Selcom, Tanzania): licensed payment processor for the Clinic's platform subscription, SMS bundle, and AI credit payments.
- DeepSeek (LLM API): language model API powering optional Defolt AI administrative and catalog tools when invoked by authorised Clinic staff. Defolt AI has no access to clinical records, vitals, diagnoses, or tooth charts, and is instructed never to provide medical advice.
- Defolt Mail / SMTP Relay: transactional email delivery for staff invitations, password resets, and billing reminders.
- Clinic-connected Health Insurers (such as Jubilee Health Insurance and Strategis Insurance): transmitted directly only when the Clinic configures its insurer credentials and submits eligibility, pre-authorisation, or claim requests.
Assistance with patient rights
Because the Clinic is the Data Controller, patients exercise their PDPA rights of access, correction, or deletion directly with the Clinic. Defolt Labs provides export and editing tools inside DHS and reasonable technical assistance so the Clinic can respond within statutory timelines.
Personal data breach notification
If Defolt Labs becomes aware of a security breach leading to accidental or unlawful destruction, loss, alteration, or unauthorised disclosure of Clinic data, we will notify the Clinic without undue delay and provide information reasonably needed for the Clinic's own PDPC reporting obligations.
Return, deletion, and retention on termination
Upon termination or expiry of the Clinic's DHS subscription (or upon a verified workspace deletion request sent by the Clinic owner to info@defoltlabs.com), the Clinic has 30 days to export its records. After that 30-day window, Defolt Labs will securely delete or anonymise the Clinic's active clinical database records and uploaded object storage files, and encrypted backups will age out in the ordinary backup rotation. Platform subscription invoices, payment settlement records, and tax ledger entries are retained for 7 years as required by Tanzanian tax and accounting law, and minimal security audit logs are retained for up to 12 months.
Liability cap
To the extent permitted by Tanzanian law, Defolt Labs' aggregate liability under or in connection with this DPA is capped at the total subscription fees paid by the Clinic to Defolt Labs during the 12 months immediately preceding the event giving rise to the claim. Nothing in this DPA limits liability that cannot be limited under Tanzanian law.
Governing law and contact
This DPA is governed by the laws of the United Republic of Tanzania, including the PDPA.
Defolt Labs Limited
P.O. Box 23463, Dar es Salaam, Tanzania
PDPC Registered Data Processor
Email: info@defoltlabs.com
See also our Terms of Service, Privacy Policy, and Refund Policy.