Skip to content

[docs] Definitions & Terminology for 3.1 - #112

Draft
billjohnc wants to merge 11 commits into
mainfrom
docs/definitions-terminology-421b
Draft

billjohnc wants to merge 11 commits into
mainfrom
docs/definitions-terminology-421b

Conversation

@billjohnc

@billjohnc billjohnc commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Updates the Definitions & Terminology module of the 3.1 docs to match the 3.1 code: all concept, flow and reference pages for questionnaires, questionnaire response templates, valuesets, observation definitions, specimen definitions, activity definitions, charge item definitions and Product Knowledge. Every flow now has annotated screenshots and a narrated, subtitled video.

Pages (version 3.1 only)

Replaced (40): the 8 concepts and 8 references in concepts/definitions/ and references/definitions/; 22 flows in flows/definitions/; the 2 Product Knowledge flows in flows/supply/product/.

New (7):

  • Questionnaire: Import a questionnaire, View earlier versions of a questionnaire, Update or retire a questionnaire
  • Valueset: Customize a shared valueset, Share a valueset with departments
  • Charge item definition: Set taxes and discounts for a charge item category
  • New sidebar group "Definition Categories": Add or edit a definition category (shared by activity definitions, charge item definitions and Product Knowledge)

Renamed, slug kept (no broken links): "Manage questionnaire organizations" → "Share a questionnaire with departments"; "Set up qualified ranges" → "Set up observation interpretation"; the Product Knowledge flows → "Create product knowledge" and "Update or retire product knowledge" (the screen says "Product Knowledge", never "catalog entry"). concepts/supply/product.mdx only gets the two new link texts.

The sidebar lists the 7 new flows; flows/definitions/resource-category/_category_.json is new. Version 3.0 is untouched: its code differs and was not verified.

What changed most in 3.1

  • Questionnaires have scopes and versions, a new editor (Question, Logic and Coding tabs), import and clone dialogs, and are managed per facility under Settings → Forms. Facility questionnaires are created without departments and shared afterwards.
  • Valuesets can now be facility valuesets, customizations of a shared valueset, or separate valuesets, visible only through the departments they are shared with.
  • Observation interpretation uses the first matching rule (no fall-through to later rules); range ends are inclusive.
  • Specimen collection is now a four-part template (Collection, Expected Quantity, Collection Method, Body Site).
  • Charge item definitions: global vs local discounts, category taxes and discounts, taxes from the deployment configuration.
  • Every facility definition write is checked in the facility's root organization (Administration); a role in a department is not enough.
  • Favorites: the questionnaire concept explains favorite forms in encounters, and the Product Knowledge concept the Recent and Favorites tabs of its pickers.

Verified against

  • care ddfd840 (develop, 2026-11-23) and care_fe abf394594 (develop, 2026-11-30). The pages were written against care_fe 5e02f9a (2026-11-26) and re-checked on 30 Nov against the later changes that touch them: String and Text questions now have Templates (#17352), which the questionnaire concept and "Add and edit questions" now describe, with a note telling them apart from response templates. #17334 only widens the product knowledge picker. The video and screenshot -3 of "Add and edit questions" were retaken on 30 Nov 2026 at care_fe abf394594 to show the Templates section. The stack of the first recordings no longer runs, so these two show City General Hospital, while the page's other screenshots show Riverside Medical Centre. Following billjohnc's rules of 30 Nov, the new video blurs personal details while recording, and its narration reads each step as a sentence, without step numbers.
  • From code: about 1,000 facts, each with file, lines and quote; every page statement traces to one. Permission tables give the whole path to the action (list, open, pickers, save), where each permission is held, and the default roles.
  • By running it: a local stack at the same backend commit, with a production build of the pinned frontend. Probes confirmed the write gates for all eight definition types (a Facility Admin in a department only and a Doctor in the root organization are refused; a Facility Admin in the root organization succeeds), first-match interpretation, valueset visibility, and that the role picker for facility departments does not offer "Admin" (so pages name only roles that can be given in a facility).
  • By recording: all 31 flows were recorded as a Facility Admin or a Doctor (never a superuser). Each recording's API log was compared with the page's permission path; there were no 403s. Where the screen differed from the draft, the page was corrected and the flow recorded again.

Differences from the house style, on purpose

  • Language: Simplified Technical English for steps, prerequisites and tables; plain, consistent English for explanations.
  • Versions: written for 3.1 only, the only version verified (the conventions file says versions are mirrored).
  • Permissions: the table covers the whole path to the action, not only the final permission. Concepts carry a ## Permissions section before Related, as the concept skill asks.
  • Flow titles use plain task names ("Create a questionnaire"), like every existing 3.1 flow, not the template's "How to …".
  • Media: each flow has a video with a captions track and screenshots after the steps they show. Screenshots are 256-colour PNGs at full (2x) resolution.
  • Narration: each video has a voice that reads a short script per step: the step and a sentence or two of context from the page. The subtitles show what it says. The voices are AI-generated with ElevenLabs (model eleven_v4), cloned from two team members, Bill and Gauri, taking turns flow by flow in sidebar order. Where a line takes longer than its step, the video holds a settled frame until the voice finishes, and the subtitles are timed to match.
  • Size: about 105 MB of media (videos about 75 MB, screenshots about 30 MB).

Left out

  • Admin-area screens for instance-wide questionnaires and valuesets: only superusers reach them. Concepts mention once that such items are shared across the whole instance and cannot be changed from facility settings.
  • Fields and scopes with no screen (department and personal valuesets, coded interpretation rules, specimen handling, product ingredients): references only.
  • Favorites for activity definitions and charge item definitions: the API supports them, but no screen turns them on. References only.
  • concepts/supply/product.mdx still uses "catalog entry" and some older labels; that page is outside this module and is a follow-up.

Suspected product issues found on the way

  • A Facility Admin who creates a facility valueset or a customization cannot open it afterwards. Care shows "ValueSet created successfully" then "Not Found", and an empty form. Only members of a department it is shared with can see it, and only a superuser can share the first department. The pages describe this as it behaves today.
  • Creating a questionnaire response template fails with a server error once the questionnaire has been edited after its first save.
  • "Add to template" on an existing response template removes its department sharing.
  • A retired charge item definition linked to an activity definition is still charged when the service is ordered.
  • In an empty activity definition category, Add Category is hidden until the Status filter is changed (the page gives the workaround).
  • The Product Knowledge create form opens with the product definition section added, so Dosage Form is required unless the section is removed (the page describes this).
  • Categories from the fixture data cannot be edited: their stored sub type does not match the form's options.
  • Two default roles are named "Admin"; the role sync merges them into one role-organization role.
  • A duplicate valueset slug in one facility returns a server error instead of a message.
  • Several screens show Edit or Delete to users the backend will refuse.

A few security-sensitive behaviours are left out of the pages and reported to the team separately.

Skill changes (own commit)

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

🤖 Generated with Claude Code

billjohnc and others added 3 commits November 27, 2026 17:48
Rewrite the concept, reference and flow pages for questionnaires,
questionnaire response templates, valuesets, observation definitions,
specimen definitions, activity definitions, charge item definitions and
Product Knowledge to match care ddfd840 and care_fe 5e02f9a.

Add seven flows: import a questionnaire, view earlier versions, update or
retire a questionnaire, customize a shared valueset, share a valueset with
departments, set category taxes and discounts, and manage definition
categories (new sidebar group).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 narrated videos with English captions and posters, and 241 annotated
screenshots (256-colour PNG at full resolution), for the flows in
flows/definitions/ and flows/supply/product/.

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

- Research: split a large module by sub-module with fact-number ranges;
  subagents return findings as text and the lead saves them.
- Media: record from a production build (the dev server draws a devtools
  badge), and watch machine load during recordings.
- stitch.py: leave 0.5 dB of headroom and frame-align picture and sound,
  so check.py passes.

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

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

Copy link
Copy Markdown

Deploying coredocs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 190d187
Status: ✅  Deploy successful!
Preview URL: https://e773e3dd.coredocs.pages.dev
Branch Preview URL: https://docs-definitions-terminology.coredocs.pages.dev

View logs

Favorite forms in encounters (Forms dialog star, Overview shortcuts,
limit, visibility, facility scoping) and the Recent and Favorites tabs
of Product Knowledge pickers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
billjohnc and others added 3 commits November 29, 2026 00:28
This PR only changed two link texts in concepts/supply/product.mdx. PR 114 rewrites that page and already uses the same link texts, so keeping the edit here would only make the two PRs conflict. The file is back to main's version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The page said the product form's Product Knowledge picker has Recent and Favorites tabs. In 3.1 the product form only edits a product and hides that picker in edit mode (care_fe ProductForm.tsx:345; the only route is product.$id.edit.tsx). The Add Item picker on the encounter dispense screen does show both tabs (DispenseDrawer.tsx:603, ProductKnowledgeSelect.tsx favorites on by default, ResourceDefinitionCategoryPicker.tsx:878-879,970-971). Pinned care_fe 5e02f9a.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Step 7 suggested that Also capture records body site and method with the answer. Care builds the observation for a coded answer without a body site or method, and always stamps it with the submission time (care questionnaire/utils.py:382-423, create_observation_spec). A body site, method or taken-at time sent with the answer is kept only in the response JSON (utils.py:732-769). The note at step 7 now says so. Toggle labels from care_fe BehaviourSettingsCard.tsx:43-49 and QuestionInspector.tsx:380-390. Pinned care ddfd840, care_fe 5e02f9a.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
billjohnc and others added 2 commits November 30, 2026 16:27
care_fe 8e40b8c54 (#17352)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
care_fe 8e40b8c54 (#17352)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
billjohnc and others added 2 commits November 30, 2026 21:09
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Templates section

care_fe abf394594 (#112)

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.

1 participant