Repository navigation
[docs] Referral for 3.1 - #111
Draft
rithviknishad wants to merge 9 commits into
Draft
rithviknishad wants to merge 9 commits into
rithviknishad wants to merge 9 commits into
Conversation
Concept page and twelve flow pages for Care's Referral module, with step screenshots and video posters, verified against care ddfd840 and care_fe 5e02f9a. Adds the Referral flows to the 3.1 sidebar. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Twelve videos with spoken narration (ElevenLabs eleven_v4; voices Bill-eng and Gauri-eng, cloned from Bill and Gauri) and subtitles of the spoken words. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploying coredocs with
|
| Latest commit: |
52ca8e9
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://abbc88cd.coredocs.pages.dev |
| Branch Preview URL: | https://docs-referral-1da5.coredocs.pages.dev |
The facility role pickers never offer Admin: the role sync keeps one role named Admin, and it is the role-organization one (care sync_permissions_roles.py:37-45, role.py:57-67). The pickers ask only for facility roles (care_fe LinkFacilityUserSheet.tsx:207, EditFacilityUserRoleSheet.tsx:177, LinkUserToDepartmentSheet.tsx:131, PatientUsers.tsx:164; care roles.py:15). The referral permissions are also held by the role-organization Admin, Manager and Member roles (care/security/permissions/referral.py), so those rows now name them as roles of a role organization. Can Create encounter, Can update bookings on Object and Can view clinical data about patients drop Admin (encounter.py:24-29, schedule.py:47-58, patient.py:58-63). Pinned care ddfd840, care_fe 5e02f9a. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Start Consultation only opens the encounter form and then goes to the new encounter with the referral in the address; nothing is stored on the referral (care_fe ReferralAppointments.tsx:295-323; the comment in useReferralReceivingEncounter.ts:24-26 says direct encounter context does not establish a stored link; referralResource.ts:14-26 has no encounter type). Start Consultation and Book appointment hide only when an appointment that is not cancelled is attached, or when the page is opened from an appointment or encounter (ReferralAppointments.tsx:207-279), so both stay on the referral after a walk-in while it is Pending or In progress. The concept's Appointment and visit section and the flow's expected outcome now say so. Pinned care ddfd840, care_fe 5e02f9a. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The PR left open whether a member can be removed. Each member under
Default care team has an X button, "Remove {{name}} from the default care
team" (care_fe ReferralDefaultCareTeam.tsx:124-138, en.json
referral_remove_member). When the team changed, the form sends the whole
new list (ReferralAvailabilityForm.tsx:73-82, 112-114) and the backend
replaces it (care resources/referral/availability.py:203-205). A referral
gets a copy of the team when it is sent (viewsets/referral.py:563), and
nothing else writes referral assignees except Manage assignees
(set_assignees, :571-579), so referrals already sent keep their team.
Pinned care ddfd840, care_fe 5e02f9a.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sent The PR left this open. The backend checks the availability status only for the Referral unit list, for opening the availability and for new referrals (care security/authorization/referral.py:83, 94, 139). Reading and updating a referral ignore it (:122-136), and the referral lists do not filter on it (viewsets/referral.py:366-402, 481-510), so sent referrals keep their status and stay listed. The referral page, though, learns the receiving end from the availability (care_fe useReferralPermissions.ts:66-197). For an availability that is not Active, that request is refused unless the user can manage the availability (authorization/referral.py:78-91, viewsets/referral.py:263-267), so receiving-end write access drops to false and the page hides Start referral, Respond, Add record, Manage assignees, Start Consultation and Book appointment for everyone else there (ReferralDetailsPage.tsx:80-403, ReferralAppointments.tsx:202-212). The sending end is unaffected. The concept and the change flow now say this. 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 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>
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>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds user documentation for Care's Referral module to docs version 3.1: one concept page and twelve flow pages, each flow with a narrated, subtitled video and step screenshots.
All pages are new; no existing page is replaced. Referral exists only on
develop(Care 3.1). It is absent from the3.0branches ofcareandcare_fe, so nothing is written toversion-3.0.Pages
Concept:
versioned_docs/version-3.1/concepts/clinical/referral.mdxFlows, in
versioned_docs/version-3.1/flows/clinical/referral/, listed in the sidebar under Flows › Clinical › Referral (after Notes):Media for these pages is in
static/media/clinical/referral/: 12 videos with posters and captions, and step screenshots.Verified against
careatddfd840dbe314b4e53d2a719d2138324d970634b(develop, 23 Nov 2026)care_feat5e02f9aa4f690e08375da310511e14606985f788(develop, 26 Nov 2026)How the pages were verified
.github/references/review-checklist.md. The pages were reviewed again after the media went in.Where the pages differ from the house style on purpose
care-concept-docrequires and the template lacks.<track>, and screenshots sit after their steps. The build passes for every language with this markup.Narration
eleven_v4).Left out, and open questions
Suspected product issues (not filed)
Neighbouring pages that look stale
concepts/access-governance/facility-organization.mdx. It says departments hang beneath the facility's root and that a permission high in the tree reaches every unit below. At the pinned code, Care refuses to create anything under the root, and departments have no parent. For referrals, a role only in the Administration department does not reach a department.flows/definitions/questionnaire/create-questionnaire.mdx. It covers only the admin area and the Patient and Encounter subject types. Referral forms need subject type Referral, so the Referral pages link the questionnaire concept instead.What the skill learned (separate commit)
Moved to the consolidated Ezhuthachan skill update, #141. This PR no longer changes
.claude/skills/.🤖 Generated with Claude Code