Skip to content

[docs] Configurable Actions for 3.1 - #116

Draft
billjohnc wants to merge 6 commits into
mainfrom
docs/configurable-actions-a3ab
Draft

billjohnc wants to merge 6 commits into
mainfrom
docs/configurable-actions-a3ab

Conversation

@billjohnc

@billjohnc billjohnc commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

What this adds

Documentation for Configurable Actions, added to Care in 3.1 by ohcnetwork/care#3817. Nothing on main documented it before; the Definitions draft (docs#112) mentions it in one line, which these pages agree with.

New pages, version 3.1 only:

  • Concept: Action (versioned_docs/version-3.1/concepts/platform/action.mdx), under Platform beside Tagging. It covers what an action is (conditions under When, instructions under Then), the two places actions live (a questionnaire's Actions, and action configurations under Admin > Actions, which run for appointments), the instructions each form type offers, what the person who submits sees, and who can set actions up.
  • Flows, in a new Action category under Platform in versioned_sidebars/version-3.1-sidebars.json:
    • How to add actions to a questionnaire
    • How to submit a form that has actions
    • How to create an action configuration
    • How to edit or delete an action configuration

Media: narrated, subtitled videos for all four flows, and 27 annotated screenshots placed after the steps they show. About 16 MB under static/media/platform/action/.

Verified against

  • care ddfd840 (develop, 23 Nov 2026) and care_fe abf394594 (develop, 30 Nov 2026). The pages were written against care_fe 5e02f9a (26 Nov 2026) and re-checked on 30 Nov against the later changes that touch them: #17322 makes the Admin pages superuser-only, which the pages already say, so nothing changed. The recordings are from 5e02f9a; the screens they show did not change. The feature is not on the 3.0 branches, so 3.0 is untouched.
  • Code: each sentence rests on a recorded fact with file, lines and quote: the action and questionnaire viewsets, care/action_evaluator/, the authorization handlers and permission files, src/pages/Admin/actions/, the questionnaire editor's action builder and src/Utils/actions/.
  • Runtime: probes on a local stack at those commits checked:
    • Show a message on patient questionnaires and on appointment bookings;
    • answers inserted into a message;
    • a false condition;
    • a tag the person submitting cannot apply;
    • a tag from another facility.
  • Recordings: each flow was recorded as the role its page names: Facility Admin (questionnaire), Doctor (submit), superuser (Admin > Actions). The API logs showed no 403s. The calls not listed in the Permissions tables are page-wide loads of the encounter and admin screens.
  • Not proven: the paths were not proven by removing permissions one at a time.
  • Reviews: a reviewer who did not write the pages checked every sentence against its fact.

Intentional differences from the house style

  • Language: Simplified Technical English rules apply to instructions (steps, prerequisites, tables). Explanations use plain, consistent English.
  • Versions: written for 3.1 only, the only version whose code has the feature.
  • Permissions: each table covers the whole path to the action (reaching the screen, loading the lists and pickers, saving), not only the final permission.
  • Concept: keeps a permissions section ("who can set up actions"), as the concept guide asks and the Definitions concepts do, although concept-template.md has none.
  • Superuser pages: the two Admin > Actions flows describe screens only a superuser can use. The product team asked for them on purpose. Each says so plainly, and its Permissions table has a single superuser row rather than an invented permission.
  • Media markup: each video carries a <track> with subtitles, and screenshots follow the step they show.
  • Narration:
    • The voice reads each step plus a sentence or two of context from that page, and the subtitles show what it says.
    • The voices are AI-generated with ElevenLabs (model eleven_v4), cloned from two team members, Gauri and Bill. They take turns flow by flow in sidebar order: Gauri reads the first and third flows, Bill the second and fourth.
    • Where a 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 points

  • Not described: the expression syntax behind Edit as expression. The page names the option only.
  • Not documented: actions on department and personal questionnaires (no screen opens them in the question editor), and facility-level action configurations (nothing in 3.1 can create one).
  • Can be run on demand: listed with a note that no screen in 3.1 runs a configuration by hand (product team's decision).
  • Log a message (test): left out on purpose (product team's decision). It is a debug instruction that the editor offers on every form.

Product bugs found on the way

None filed yet. Searched GitHub issues and PRs in care and care_fe; Jira and Slack were not searched.

Confirmed:

  • Tag from another facility: Tag the encounter reports "Tagged with …" when the tag belongs to another facility, and nothing is tagged (runtime).
  • Conditions not checked at save: a questionnaire saves with a condition that names an unknown field. Every submission then fails with a server error and nothing is saved. The same happens when a referenced question is left blank (runtime).
  • Test field in production: a test field registered in production makes unknown names in appointment conditions evaluate to "test1234" instead of failing (code).
  • Run on demand is open: running a configuration on demand is not limited to the appointment's facility, and skips the instruction checks; a TODO in the code says so. No screen calls it, and it is security-sensitive (code).
  • Remove-action hint: in the question editor it says "Click Save to apply the changes"; that button is Save Changes.
  • Tag picker hint: when no tags exist it points to a "Tags" menu; the menus are "Tag Config".
  • Untranslated priority options: Set encounter priority shows "Preop" instead of "Pre-op", and field labels do not come from the locale files.

Notes, not defects on their own:

  • Fixed since these pages were checked: the Admin > Actions screens showed to any staff user who opened the URL. care_fe #17322 (c5f291af9, 29 Nov 2026) now shows them only to a superuser, as the backend already required.
  • "Can be run on demand" has no effect in the UI.
  • Every questionnaire save re-checks the existing actions, so a co-editor who cannot apply a tag used by an action cannot save any change.
  • Saving only actions shows a "v2" badge on Save Changes, but the version stays the same.
  • Reschedules and bookings that patients make themselves do not run action configurations.

Skill update

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 28, 2026 06:42
A concept page (Action) and four flows: add actions to a questionnaire,
submit a form that has actions, and create, or edit or delete, an action
configuration. Verified against care ddfd840 and care_fe 5e02f9a, with
screenshots and videos recorded on a local stack at those commits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Roles are stored by name, so a role list can name a role that cannot be
given where the gate is held. And the facility's root organization is not
above its departments, so a root role does not reach department checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each step is read with a sentence or two of context from its page, with
subtitles of the spoken words. AI voices (ElevenLabs eleven_v4) cloned from
Gauri and Bill, alternating flow by flow in sidebar order.

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: 0fa99ff
Status: ✅  Deploy successful!
Preview URL: https://e7421478.coredocs.pages.dev
Branch Preview URL: https://docs-configurable-actions-a3.coredocs.pages.dev

View logs

billjohnc and others added 2 commits November 29, 2026 00:29
The four flow titles began with "How to", unlike every other 3.1 flow
title on main and in the open PRs, which use the plain task form
("Create an action configuration"). The titles and the link texts that
repeated them now use that form. File names, URLs and the sidebar
(which takes its labels from the titles) are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Workspace concept in #108 also takes position 3 under Platform
concepts, and the concepts sidebar is autogenerated, so the order of
the two pages was undefined. Workspace keeps 3; Action moves to 4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
billjohnc added a commit that referenced this pull request Nov 30, 2026
… PRs.

The cleanup check found four lessons the open PRs named that this update had
not kept: record anyway when the tool refuses the terminology-server check
(#121), a database-renamed user's profile returns 404 (#111), a role held only
in the facility's root organization does not reach department checks (#116),
and REACT_CARE_URL_MAP must be valid JSON (#108). The code facts go in the
dated list of seeding traps.

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.

1 participant