Skip to content

[docs] Workspaces for 3.1 - #108

Draft
rithviknishad wants to merge 9 commits into
mainfrom
claude/ezhuthachan-workspace-966da0
Draft

rithviknishad wants to merge 9 commits into
mainfrom
claude/ezhuthachan-workspace-966da0

Conversation

@rithviknishad

@rithviknishad rithviknishad commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

What this adds

New documentation for Workspaces in Care 3.1 (no existing page mentioned workspaces):

  • Concept: concepts/platform/workspace.mdx (Workspace), next to Report Template.
  • Nine flows in flows/platform/workspace/, added to the 3.1 flow sidebar under Platform → Workspace:
    1. Create a workspace
    2. Set up the encounter screen with a workspace
    3. Design a workspace's clinical history screen
    4. Share a facility workspace with departments
    5. Publish, hold back or archive a workspace
    6. Choose the workspace you use on encounters
    7. Go back to the standard encounter screens
    8. Rename a workspace or change its description
    9. Delete a workspace
  • Media in static/media/platform/workspace/. Each flow has one narrated, subtitled video (30–139 s) and screenshots of its steps, with the relevant control outlined.

Only 3.1: Workspaces does not exist on the 3.0 branch of care or care_fe, so no 3.0 pages were written (this departs from the "keep versions identical" convention on purpose).

What it was verified against

  • care @ ddfd840dbe314b4e53d2a719d2138324d970634b (develop, 2026-11-23)
  • care_fe @ e1e1f17f8a5c1bfd49020d02da2cc2ed4c4e650d (develop, 2026-11-24)

Every statement in the pages was written from a recorded fact: a cited, quote-checked line of the pinned code (505 facts, machine-checked), a runtime probe, or a product decision. Two fresh-context reviews checked each sentence against its fact.

Runtime: a disposable local stack built from exactly those commits (empty database plus Care's own fixtures, invented but realistic names: City General Hospital, patient Ravi Kumar, staff Arun Mathew and Dr. Lakshmi Menon). Permission probes run as non-superusers confirmed:

  • who can create, edit and delete each kind of workspace;
  • who can see each kind;
  • that the facility role picker does not offer the "Admin" role.

Every flow was then recorded on that stack as a non-superuser: a Facility Admin in Administration for the admin flows, and a Doctor in a department for the encounter flows. Each recording's API log matched the traced permission path, with no 403. The recordings found one call the code tracing had missed: opening the editor also loads the department lists for "Departments with access". It was added to the paths; if it is refused, only that section is hidden.

Deliberate differences from the house style

  • Language: Simplified Technical English rules for steps, prerequisites and outcomes; plain consistent English for explanations.
  • Versions: written only for the version whose code contains the module (above).
  • Permissions: each Permissions table covers the whole path to the action, not only the final permission: what you need to reach the screen, load it, fill the form and save. It also says where each permission must be held (Administration, the owner department or one above it, or anywhere in the facility).
  • Concept sections: the concept keeps ## Permissions and ## Where to find it. They are not in the concept template, and the review checklist treats extra sections as findings. But the concept skill asks for Permissions, and 39 of 52 existing concepts have it.
  • One long flow: "Set up the encounter screen with a workspace" has 12 steps and a 2 min 19 s video. It covers designing the tabs and sections and then setting up each section (title, options, when it shows), which a user does in one sitting; it was first written as two pages and merged on request.
  • Flow H1s: the plain task title, not the template's "How to …". This matches all 192 existing flow pages and the checklist ("the H1 is the title").
  • Narration: each video has a voice reading a short script, one line per step: the step itself, then a sentence or two of context taken from that page. The captions track shows what the voice says. It is AI-generated with ElevenLabs (model eleven_v4) in two cloned voices: Bill-eng (Bill's voice) and Gauri-eng (Gauri's voice), one voice per video, taking turns flow by flow in sidebar order (two neighbouring flows share Gauri-eng since two flows were merged into one). Where a line is longer than its step, the video holds a settled frame and the subtitles are timed to match, so the videos run 30–139 s. Following the skill, the videos are plain: no zoom or speed-up.
  • Media markup: videos carry a WebVTT captions track, and steps have inline screenshots. Both are new to the site and pass the build for en and ml.
  • Concept subsection: ### Choosing a workspace is an explanatory subsection under Key Attributes, not an attribute.

Left out

  • Instance-wide (deployment-wide) workspaces and the /admin/workspaces area: only a superuser can create, edit or share them. The concept only notes that one can appear in your picker when it is shared with your organization.
  • Personal workspaces: whether clinicians are meant to create them is an open product question. The pages state today's behaviour: saving needs Can Create/Update Workspaces, which by default only Facility Admin has in a facility.

Product findings (not filed)

  • Department workspaces ignore Administration. A Facility Admin whose role is only in Administration is refused when creating a department workspace, and cannot see one. Confirmed at runtime. The product team considers this a bug; the pages document today's behaviour.
  • Wrong refusal wording. Edit, delete and sharing refusals say "You are not authorized to create a workspace". Confirmed at runtime.
  • Wrong hint on the Clinical history designer. It says tabs appear "in the encounter".
  • Over-long names fail badly. A name over 255 characters through the API returns a 500, not a validation error. The form stops at 255.
  • An old choice can return. It comes back after its workspace is made Active again.
  • Contradictory hint under "When to show". It says sections never appear to people without permission, but such a section shows a "no permission" notice.

What the skill learned

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 27, 2026 11:01
New concept page (concepts/platform/workspace.mdx) and ten flow pages
(flows/platform/workspace/), with captioned videos and step screenshots,
and a Workspace group in the 3.1 flow sidebar under Platform.

Written from facts verified against care@ddfd840 and care_fe@e1e1f17,
and confirmed by recording each flow as a non-superuser on a local
stack built from those commits. Only 3.1: Workspaces does not exist on
the 3.0 branches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Recording kit: the pointer no longer scrolls horizontally, which
  shifted right-anchored side sheets sideways in videos.
- New assets/verify_facts.py checks every code fact's quote against its
  cited lines; research.md asks for it and warns that a passing quote
  does not prove the claim.
- media.md: running Care natively (own database, Redis index and ports),
  replacing the fixture facility's real-looking contact details,
  recording against a production build, REACT_CARE_URL_MAP must be JSON,
  copy-on-write node_modules when lockfiles match.
- SKILL.md: a subagent can be refused when writing report.md.

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: 5b69d62
Status: ✅  Deploy successful!
Preview URL: https://b176254c.coredocs.pages.dev
Branch Preview URL: https://claude-ezhuthachan-workspace.coredocs.pages.dev

View logs

Open Healthcare Network and others added 5 commits November 27, 2026 11:58
Each of the ten flow videos now has a voice reading one line per step:
the step and a sentence or two of context from its page. The captions
track shows what the voice says. Where a line runs longer than its step,
the video holds a settled frame and the subtitles are timed to match.

AI-generated with ElevenLabs (eleven_v4) in the cloned voices Bill-eng
and Gauri-eng, alternating flow by flow in sidebar order. Pages are
unchanged: the narrated files replace the recordings under the same
names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Re-record all ten flows and their screenshots with realistic, globally
understandable names instead of demo markers: City General Hospital,
patient Ravi Kumar, and sign-ins arun.mathew and lakshmi.menon. The
narration is re-fitted to the new recordings (same voices and lines),
and the screenshot alt text names what is now on screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The product team asked for authentic, globally understandable names
everywhere on screen, including usernames and fixture addresses, and
had the Workspaces videos re-recorded for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Design what a workspace shows on encounters" and "Set what a section
shows and when" are one continuous task, so they are now one flow: "Set
up the encounter screen with a workspace" (12 steps). It is re-recorded
as one flow on one workspace and narrated in Gauri-eng. Links, the
sidebar and the page positions are updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Steps that only continue one goal stay in its flow, and a flow is never
split into two pages to shorten its video.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rithviknishad
rithviknishad marked this pull request as ready for review November 27, 2026 08:20
@rithviknishad
rithviknishad marked this pull request as draft November 27, 2026 08:20
The concept said each person's workspace choice is their own, but not
what that means for an administrator who expects to set a default for a
role or a department. Care keeps only per-user choices: the default
record is keyed by user, and the endpoints that save and read it use
only the signed-in user (care emr/models/workspace.py:93-107,
api/viewsets/workspace.py:194-234; care_fe workspacePreferences.ts:24-45).
The workspace itself has no default field. Pinned care ddfd840,
care_fe 5e02f9a.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
billjohnc added a commit that referenced this pull request Nov 28, 2026
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.

2 participants