Skip to content

[docs] Consent for 3.1 - #125

Draft
rithviknishad wants to merge 5 commits into
mainfrom
claude/consent-module-3-1-update-25c023
Draft

rithviknishad wants to merge 5 commits into
mainfrom
claude/consent-module-3-1-update-25c023

Conversation

@rithviknishad

@rithviknishad rithviknishad commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Consent docs for Care 3.1

Updates the Consent pages on docs.ohc.network (version 3.1 only) to match the Care 3.1 code, with screenshots and narrated, subtitled videos.

Pages (3.1)

Page Change
concepts/clinical/consent.mdx Replaced
references/clinical/consent.mdx Replaced
flows/clinical/consent/record-a-consent.mdx Replaced, with video and screenshots
flows/clinical/consent/view-consents.mdx Replaced, with video and screenshots
flows/clinical/consent/add-files-to-a-consent.mdx New, with video and screenshots
flows/clinical/consent/update-a-consent.mdx Replaced, with two videos (update, and the "Mark a consent as entered in error" section)
flows/clinical/consent/verify-a-consent.mdx Removed: 3.1 has no screen that records, shows or removes a verification. The reference page documents the verification API. Removal agreed with the product team. The site has no redirect plugin, so this URL stops resolving.
versioned_sidebars/version-3.1-sidebars.json Consent flows: record, view, add files, update
static/media/clinical/consent/ Videos, subtitles, posters, screenshots

3.0 pages are unchanged.

Verified against

  • care develop at ddfd840dbe314b4e53d2a719d2138324d970634b (2026-11-23)
  • care_fe develop at 5e02f9aa4f690e08375da310511e14606985f788 (2026-11-26)

The Consent backend (model, specs, viewset, permission path) is identical on 3.0 and develop; only the screens changed around it.

How it was verified

  • Code. Every statement rests on a fact read at the pinned commits (615 facts, each with file, lines and quote; quotes re-checked mechanically). Permission tables were traced through the viewset, the authorization handlers and the default roles.
  • Runtime. A disposable local stack built from the pinned commits (new empty database, no real patient data): every flow recorded end to end as a Doctor; each recording's API log checked against the page's permission table (no 403 or 5xx).
  • Probes on that stack. Staff is refused on create and edit ("You do not have permission to update encounter"); writes are refused on a Completed encounter and accepted on a Discharged one; a user with only encounter-level clinical read sees the list but gets "Consent not found" on the details page; creating without period returns HTTP 500 (documented in the reference).

Where these pages differ from the house style on purpose

  • Language. Simplified Technical English rules for steps, prerequisites and "what to do" tables; plain, consistent English for explanations.
  • Versions. Written to 3.1 only, the version verified; the "all versions identical" rule in the conventions does not hold here.
  • Permissions. Tables cover the whole path to the action (reaching the facility, the encounter, the Consents tab, then the action), with where each permission is held and the roles that hold it by default.
  • Concept page structure. Keeps a ## Permissions section (as 39 of the 52 concept pages do), although the concept template has none.
  • Flow H1s follow the site's existing form ("Record a consent"), not the template's "How to …".
  • Media markup. Each video has a captions <track>, and screenshots follow their steps.

Narration

Each video has a voice that reads a short script per step: the step, then a sentence or two of context taken from the page. The subtitles show what the voice says. The voice is AI-generated with ElevenLabs (eleven_v4), using voices cloned from two members of the team, Bill and Gauri (Bill-eng and Gauri-eng), taking turns flow by flow in sidebar order. Where a line is longer than its step, a settled frame is held and the subtitles are timed to match.

Left out (could not be verified)

  • What each consent status means; the product gives no definitions.
  • What Cancel and Discard do, the camera dialog's steps, and where the upload dialog shows its error messages.
  • Whether a refused facility or Encounter History request blocks the flow (not tested).

Suspected product bugs found on the way

Recorded with evidence in the session; none filed.

  • care_fe: a user with only encounter-level clinical read sees the consent cards but gets "Consent not found" on See Details (the details page omits ?encounter=).
  • care: creating a consent without period returns HTTP 500 (the create check reads period.start on the dict default).
  • care_fe: "Consent created successfully" shows even when an attached file was refused or failed (related to care_fe#11473).
  • care_fe: the Edit Consent description promises attaching documents; the form has no file control.
  • care_fe: in the Consents search box only the first typed character lands; the box loses focus.
  • care_fe: Add Consent, Edit and Add Files show to users without "Update Encounter related clinical data"; the backend refuses.
  • care_fe: selecting the already-selected Consent Decision clears it and Save shows an untranslated message (known: care_fe#13323, closed as not planned).

What the Ezhuthachan skill learned (separate commit)

Moved to the consolidated Ezhuthachan skill update, #141. This PR no longer changes .claude/skills/.

🤖 Generated with Claude Code

Open Healthcare Network and others added 2 commits November 28, 2026 17:37
Concept, reference and flow pages for Consent, verified against care
ddfd840 and care_fe 5e02f9a (develop), with screenshots and narrated,
subtitled videos. Adds "Add files to a consent"; removes "Verify a
consent", which has no screen in 3.1. 3.0 pages are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
media.md: a native stack without Docker needs an S3-style bucket for
uploads (a session-only MinIO worked); clone .venv and node_modules
with cp -Rc from a session at the same commit with identical lock
files; put the cast's names in a recording helper's brief.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Deploying coredocs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5f00e11
Status: ✅  Deploy successful!
Preview URL: https://8a680029.coredocs.pages.dev
Branch Preview URL: https://claude-consent-module-3-1-up.coredocs.pages.dev

View logs

billjohnc and others added 3 commits November 29, 2026 00:34
The facility role pickers never offer a role named Admin. Care defines two
roles with that name; the role sync looks roles up by name, so the database
keeps one Admin role, for role organizations (care
sync_permissions_roles.py:37-45, roles/role.py:57-67,81-93), and the facility
screens list roles with context FACILITY (care_fe RoleSelect.tsx:140,
LinkFacilityUserSheet.tsx:207, LinkUserToDepartmentSheet.tsx:131; care
security/api/viewsets/roles.py:10-15). The concept, flows and reference said
Admin is the facility and government organization role, which is the
opposite of the code; they now say why Admin is left out. Every other role
in the lists matches care security/permissions/patient.py and encounter.py.

Pinned care ddfd840, care_fe 5e02f9a.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each narrated video now plays from the Open Healthcare Network YouTube
channel (playlist "Care 3.1 documentation"), with its subtitles on
YouTube. The .mp4, .vtt and poster files are removed from this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants