Skip to content

[docs] Condition for 3.1 - #131

Open
billjohnc wants to merge 4 commits into
mainfrom
claude/condition-3-1-update-6c307e
Open

billjohnc wants to merge 4 commits into
mainfrom
claude/condition-3-1-update-6c307e

Conversation

@billjohnc

Copy link
Copy Markdown
Contributor

Updates the Condition (symptoms and diagnoses) documentation to match the Care 3.1 code. Version 3.1 only; 3.0 is unchanged.

Verified against: care ddfd840dbe314b4e53d2a719d2138324d970634b (develop, 23 Nov 2026) and care_fe 5e02f9aa4f690e08375da310511e14606985f788 (develop, 26 Nov 2026).

Pages replaced (8), all in versioned_docs/version-3.1/:

  • Concept: concepts/clinical/condition.mdx
  • Reference: references/clinical/condition.mdx
  • Flows in flows/clinical/condition/: record-symptom, record-diagnosis, add-condition-from-past-records, update-condition, condition-entered-in-error, view-clinical-history
  • "View the clinical history" is now titled "View a patient's symptoms and diagnoses". Its slug and sidebar entry are unchanged, so no link changes.
  • No page was added or removed. The flow sidebar is unchanged.

Media: every flow page has a narrated, subtitled video and annotated screenshots (56 images), under static/media/clinical/condition/ (26 MB).

The biggest corrections

  • Two value sets. In 3.1, symptoms and diagnoses search different value sets, "Symptom" and "Condition", and the backend refuses a disease term saved as a symptom. The old pages said both used one SNOMED CT clinical-finding list.
  • Where you start. The Symptoms and Diagnoses panels appear on the Overview only once they have something to list. The first record therefore comes from the Symptoms or Diagnosis quick action. The S and D shortcuts work only where those quick actions are on screen.
  • Save Changes, not Submit. There is no 3-character minimum and no message about one. Search runs as you type.
  • Entered in Error. Saved rows also offer Entered in Error in the Verification list. "Already marked as error" exists for symptoms only. Retracted records are hidden from the panels, Past Symptoms, Past Diagnoses and the history sheet.
  • Diagnoses. Severity cannot be left empty on a new diagnosis. The Diagnoses panel and Past Diagnoses list only Active, Recurrence and Relapse diagnoses; the Diagnosis form and its Diagnosis History sheet still show the others.
  • Clinical history. The Overview link is Clinical History (H). It opens the history page on its Responses tab, and you then select Past Symptoms or Past Diagnoses. Row menus read See Note and "Reported by".
  • Reference. The old page named the wrong value set and a criticality field that no longer exists. The new page adds the symptom-specific schemas, the two endpoints, the upsert, the questionnaire-response side effect and the authorization rules.

How it was verified

  • From code. Every statement rests on a fact recorded with its file, lines and quote at the pins above. A script checked that every quote sits at its cited lines. Every permission, role and label was opened by hand.
  • Review. Three reviewers who had not written the pages checked each sentence against its fact, the labels against en.json, and the template and checklist.
  • At runtime, on a local stack at the same pins (frontend :4010, backend :9010, invented data only):
    • Staff: a user with only the Staff role sees the Symptoms and Diagnosis quick actions and can fill in the form, but the save is refused. The pages say so.
    • Value sets: a Condition-set term saved as a symptom is refused.
    • Admin: only one role named "Admin" exists, usable only in role organizations, so no "Admin" role can be given in a facility department. The pages name Doctor, Nurse and Facility Admin as the default clinical-data roles.
    • Closed encounters: a completed encounter still opens when the patient cannot be loaded, because the page falls back to the patient carried by the encounter. This was confirmed by the Encounter documentation session.
  • Recordings: all six flows were recorded as a Doctor (Dr. Meera Iyer, an invented user), and each recording's API calls were compared with the page's Permissions section. There were no 403s.
  • Not done: proof runs that remove one permission at a time.

Where these pages differ from the house style, on purpose

  • Language: Simplified Technical English is used for steps, prerequisites and tables. Explanations use plain, consistent English.
  • Versions: the pages are written for 3.1 only, the version they were verified against.
  • Permissions: each table covers the whole path to the action, says where each permission must be held, and names the default roles. That is longer than the single permission the templates show.
  • Concept sections: the concept follows the template (Definition, Key Attributes, Related) and keeps a Permissions section, as the concept skill asks. The old "Lifecycle" content moved into Key Attributes. The old "FHIR R5 alignment" section was removed; review checklist item 7 forbids narrating the FHIR mapping, and the FHIR link stays in the Definition.
  • Media: the captions track and the screenshots after each step use the same markup as the Medications ([docs] Medications for 3.1: verified against the 3.1 code, with screenshots and narrated videos #117) and Procedure ([docs] Procedure for 3.1 #120) pull requests.
  • Narration: every video is narrated. For each step, the voice reads the step plus a sentence of context taken from that page's own text, and the subtitles show what it says.
    • The voices are AI-generated with ElevenLabs (model eleven_v4). They are cloned voices of Gauri and Bill, alternating flow by flow in sidebar order.
    • Where a spoken line is longer than its step on screen, the video holds a settled frame and the subtitles are timed to match.

Left out, and open

  • Is Entered in Error final? The form does not let you change a row once it is entered in error (symptoms), but the API accepts a change. The pages describe only what the form does.
  • Clinical history outside a facility: "Go to Encounter" builds a broken URL there (F26), so the pages describe the history only when it is opened from a facility.
  • Chronic conditions: one line in the concept, on the product team's instruction. No screen creates one.
  • Filling in a questionnaire: the Questionnaire Response pull request adds a new page about it (flows/clinical/questionnaire-response/fill-a-form). It is not on main yet, so these pages do not link to it. A link can be added once both are merged.
  • Answered by the product team: the Diagnoses panel showing only active diagnoses is intended; hiding the others from Past Diagnoses is a bug (F24). Chronic conditions get one line in the concept.

Suspected product bugs (not filed)

  • F20: the Symptoms and Diagnosis quick actions, S and D, and the Edit pencil show for users who can only read clinical data. A Staff user fills in the form and the save is refused.
  • F21: a chronic condition can be updated with only "Can view clinical data about patients", even on a closed encounter.
  • F22: the Diagnosis form can gray out the wrong row as entered in error, because its rows and its lock list are in different orders.
  • F23: the Symptom form re-sends every symptom on each save, which adds a response entry for each and changes "updated by".
  • F24: Past Diagnoses hides Inactive, Remission and Resolved diagnoses (bug, per the product team).
  • F25: the diagnosis endpoint also returns symptoms, so referrals offer symptoms and retracted records as conditions.
  • F26: outside a facility, "Go to Encounter" puts the literal text "organizationId" in the URL.
  • F27: the diagnosis row menu has no "Already marked as error" state.
  • F28: print-template data includes records entered in error.
  • F29: the code check ignores a facility's value set variant (already known as VS-B3).
  • F30: the command dialog offers Add Symptom and Add Diagnosis without checking that the user can read clinical data.
  • F31: the form locks the onset date and the term of a saved record, but the API accepts changes to both.
  • F32: Past Diagnoses re-parses a formatted date string, which may break outside Chromium.
  • F33: saving a form moves the onset of each re-sent record to midnight of its date, so "3 days ago" can become "4 days ago". The Symptom form re-sends every symptom, including untouched ones.
  • F34: a save refused for a missing permission shows "Validation failed", and the backend answers 400, not 403.
  • Noticed, other module: POST /facility/{id}/account/default_account/ returns 400 on every encounter page load.
  • Noticed, cosmetic: the Diagnosis Verification list shows "Entered In Error" because of a CSS capitalize class; the Symptom form shows "Entered in Error".

🤖 Generated with Claude Code

billjohnc and others added 2 commits November 28, 2026 21:55
Replace the Condition concept, reference and six flows in version 3.1 with
pages verified against care ddfd840 and care_fe 5e02f9a, and add annotated
screenshots and video posters for every flow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Six videos recorded on a local stack at the pinned commits, narrated with
ElevenLabs eleven_v4 (cloned voices of Gauri and Bill, alternating by flow)
and subtitled with the spoken words.

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: 41762f3
Status: ✅  Deploy successful!
Preview URL: https://421fdbd8.coredocs.pages.dev
Branch Preview URL: https://claude-condition-3-1-update.coredocs.pages.dev

View logs

billjohnc and others added 2 commits November 29, 2026 00:40
Two lines listed Admin as a default holder, while the note right below
says no Admin role can be given in a facility department. The role sync
keeps one role per name and the role-organization Admin comes last (care
sync_permissions_roles.py:37-45, roles/role.py:57-67,83-95), and the
facility pickers ask only for facility roles (care api/viewsets/roles.py:10-15,
care_fe LinkUserToDepartmentSheet.tsx:131). The three permissions name
ADMIN_ROLE in care security/permissions/encounter.py:24-29,51-68 and
patient.py; the rest of each list is unchanged. 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>
@billjohnc
billjohnc marked this pull request as ready for review November 29, 2026 17:19

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.

1 participant