Consent is the legal anchor of clinical care. The patient agrees to the treatment, to the photo, to the marketing message. If the signed PDF is missing or wrong, the clinic is exposed. This article walks the two halves of the consent system. Designing the templates once, capturing signatures the right way every time, and keeping an audit trail that survives regulator inspection.
Where it lives#
- Settings → Consent templates: design the templates the clinic uses.
- Patient detail → Consents: see captured consents for one patient.
- Tablet: the primary capture surface at the desk and in the room.
- Patient portal: pre-visit capture from home.
- Settings → Patients → Required consents per service: which consent gates which booking.
The standard consent categories#
- Treatment: general consent to receive clinical service. Captured at first visit.
- Photography and video: separate from treatment. Required before any clinical photo or before and after capture.
- Marketing: receive promotional WhatsApp, SMS, or email. GDPR or UAE PDPL anchor.
- Data processing and sharing: share record with external providers (referral letters, second opinions), or with the regulator's hub.
- Anaesthesia and sedation: per-procedure, fresh each time.
- Aesthetic procedure: per-procedure, includes risks and expected outcome.
- Telehealth: special consent for remote consultation.
- Custom: tenant-specific consents (e.g. a research opt-in for a derma clinic).
Designing a template#
What a template carries today#
- Title — what the patient sees at the top.
- Code — a stable identifier the system uses to look up the template (locked templates like
system.general_policyship with the tenant). - Type — one of service, policy, nda. Policy is the master patient agreement signed once at first visit; service is per-procedure; NDA is staff-facing.
- Direction — LTR or RTL, drives layout.
- Body content — English content and an optional Arabic translation. Only EN and AR are wired today; other languages will need template-side i18n before they appear.
- Signature requirements — doctor signature required (yes/no), witness required (yes/no).
- Locked — regulator-driven seed templates are locked; tenant-authored ones are editable.
What the model does not carry today: per-template variables (patient name, doctor name, date, branch — these are substituted at render time but not declared as a field), validity / expires-after, linked services M2M, language variants beyond EN+AR. Templates that need those guarantees should be redesigned once the schema catches up.
The fuller template (roadmap)#
- Code: stable identifier, never changes (e.g.
treatment_consent). - Title: what the patient sees at the top.
- Body: the consent text with variable placeholders.
- Variables: patient name, doctor name, date, procedure name, branch name, language. Filled at capture time.
- Signature requirement: patient required, witness optional, doctor counter-sign optional.
- Validity: lifetime, per-visit, expires after N months.
- Language variants: same template in English, Arabic, Russian, Persian per tenant audience.
- Locked: regulator-driven templates are locked, custom ones tunable.
- Linked services: services that require this consent before booking or check-in.
Design rules#
- Plain language at a reading level the patient can absorb.
- Explicit risks where regulators require (aesthetic, anaesthesia).
- One topic per template. Do not bundle treatment + marketing into one signature.
- Variables for personalisation, not for hiding key information.
- Legal review before activation.
Versioning and what gets snapshotted#
- Templates carry
simple_historyversioning — editing the content writes a new historical row. The captured consent does not embed a verbatim copy of the body it signed against; the audit walks back through history to reconstruct the version the patient saw. - The marketing-consent clause is the one exception — the verbatim text shown at sign-time is snapshotted directly on the consent record (
marketing_consent_text_snapshot) so the marketing answer is provably the answer to a known piece of text. - If a tenant edits a template without thinking, the historical row still exists. If a tenant runs a manage.py command that wipes history, the audit chain breaks. Treat template edits with the same care as a price-list edit.
Capturing a signature#
On tablet (the standard path)#
- Reception or provider opens the patient detail, clicks Consents, picks the template.
- The system caches the assignment (tablet, patient, template, session) for 45 minutes.
- The tablet at
/tablet/receptionpicks up the request and shows the document. - Patient reads the consent in full. The page scrolls; there is no enforced scroll-to-bottom gate today, so train staff to confirm the patient actually read before they sign.
- Patient signs on the signature pad with finger or stylus.
- Optional witness signature.
- Tablet renders the signed PDF and uploads.
- The consent is attached to the patient with a server-side timestamp, the staff member or patient user who signed, the template code and version, and the linked session if one was provided.
From the patient portal (pre-arrival)#
- Patient receives a link in WhatsApp or email before the visit.
- They open on their phone, read, sign with finger.
- Lands on the patient record same as tablet capture.
- Speeds up the visit, useful for procedure-specific consents that benefit from time to read.
Paper#
- Patient signs a printed copy at the desk.
- Reception scans the signed page and uploads under the Consent template code.
- Same audit attributes captured (uploader, timestamp).
- Useful when tablet is down or for elderly patients more comfortable with paper.
Verbal (limited)#
- Only for low-risk consents that tenant policy explicitly allows.
- Captured as a witnessed note with timestamp and witness identity.
- Not acceptable for procedure or photo consents.
Enforcement at check-in and booking#
Booking gates#
- If a service requires a consent and the patient does not have a valid signed version, booking warns at save.
- Reception can save and capture the consent before the visit, or reject the booking.
Check-in gates#
- One of the four check-in gates is missing consent.
- The system blocks Arrived until the missing consent is captured.
- Tablet capture in the waiting room is the fastest resolution.
Photo capture gates#
- Photo and video consent missing or declined: camera button on the tablet is greyed out.
- Provider sees a tooltip explaining why.
- Capture consent then take the photo.
Declines and withdrawals#
- A patient can decline a non-mandatory consent. The decline is logged with reason.
- A patient can withdraw a previously given consent at any time.
- Withdrawal flips the consent record status to revoked immediately. Marketing-consent withdrawal is enforced at every send-time check, so future campaigns respect the new state.
- Withdrawal of treatment consent stops the clinical relationship until renewed.
Telehealth consent, patient self-sign#
Telehealth flows ship a dedicated sign endpoint because the patient signs from their own device, not a clinic tablet. The endpoint refuses any submission where the signed-in user does not match the patient on the payload, and where the linked session does not belong to that patient. There is no separate template; the same consent template ships with a service-vs-policy flag. The capture path is segregated so those ownership checks are enforced at the edge, before any consent row is written.
Doctor counter-signature#
A clinician can maintain a signature and stamp through the supported profile workflow. An administrator can add one from the employee signature view, but the clinician must approve it before use. Changes create a new signature record so signed documents keep their original image; the current default is selected from approved signatures. Verify approval rather than assuming an uploaded image is ready to sign with.
Expiry and renewal, today#
Consent records today have three statuses: not_signed, signed, revoked. There is no expired status, no expires-after field, no patient-header expiry banner. If your tenant policy says "aesthetic photo consent must be renewed every 12 months", that policy is enforced by your front-desk discipline, not by the system. Roadmap: an expiry field on the template plus a beat task that flips signed-but-expired records to a new "expired" status and surfaces it on the header.
- Treatment and data processing consents typically lifetime.
- Procedure consents per-procedure, captured fresh each time.
- Aesthetic before-and-after photo consent commonly annual.
- System surfaces expired consents on the patient header.
- Automation can schedule renewal reminders before expiry.
Policy templates vs service templates#
Two patient-facing template kinds ship:
- Policy — the master patient agreement signed once at first visit. This is also where the marketing-consent question lives; service templates do not re-ask it.
- Service — per-procedure (laser, injectable, anaesthesia). Captured fresh each time the service is rendered.
If you mix them, you break two things: marketing consent gets asked twice with two answers, and the per-procedure consent loses its single-event auditability. Keep the split.
Audit and inspection#
- Every consent captured: who signed (staff member or patient user), server-side timestamp, template code and version, session, language.
- Every decline and withdrawal: who, when, reason.
- Every template edit: who, when, before and after (via the template history chain).
- Full register exportable for regulator inspection.
- Audit log itself is locked, not editable.
Coming soon#
- Per-clinic-type default bundle: a starter set of templates per clinic type (aesthetic, dental, derma, GP) seeded at tenant onboarding.
- Witness signature flow: structured witness identity capture for procedure consents.
- Conditional form logic: questions that show or hide based on prior answers (e.g. "Are you pregnant?" → if yes, additional safety consent required).
- Multi-language auto-detect: tablet shows the consent in the patient's preferred language, no manual switch.
- Marketing-consent revoke cascade: cascade unsubscribe through every in-flight campaign queue within minutes of the revoke.
Common mistakes#
- Bundling consents into one signature: legal risk. Each consent its own signed event.
- Skipping consent because patient is in a rush: capture before service, not after. Backdating is not an option.
- Using an outdated template: version control matters. The system enforces, do not work around.
- Not configuring required consents per service: service is delivered, consent missing, audit gap.
- Letting verbal consent become the norm: it is the exception. Tablet is the default.
- Editing a template without legal review: invalidates previously captured signatures if the text materially changed.
- No language variant for non-English speakers: signature unenforceable if the patient could not read what they signed.
How consents connect#
- Patients: every signed consent attaches to the patient.
- Booking: required consents gate booking.
- Check-in: one of the four check-in gates.
- EMR and photos: photo capture gated by photo consent.
- Marketing: marketing consent gates campaigns and messages.
- Patient portal: pre-arrival capture.
- Tablet kiosk: the primary capture surface.
- Audit log: regulator inspection.
- NABIDH (UAE): data-sharing consent enables regulator transmission.
