Repository navigation
[docs] Diagnostic Report for 3.1 - #121
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, reference and flows checked against care ddfd840 and care_fe 5e02f9a (develop). Rewrites "Enter diagnostic report results", adds "Review and approve diagnostic report results", removes "Update a diagnostic report" (its edit screen does not exist in 3.1), and adds narrated, subtitled videos and step screenshots for the four flows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lessons from the Diagnostic Report session: setup helpers get the cast and the memory rules about names and addresses; check whether cast patients are already taken on a shared stack; never rewrite the shared personas.md; do not let npx fetch tools that are not installed; record anyway when the terminology-server check is refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploying coredocs with
|
| Latest commit: |
ff30350
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a1662b0d.coredocs.pages.dev |
| Branch Preview URL: | https://claude-diagnostic-report-upd.coredocs.pages.dev |
The patient header on the Service Request page wrapped "Thomas / Varghese" onto two lines. The patient now carries two facility patient tags, which keep the name on one line. Both flows are re-recorded, with the same narration, and their posters and step screenshots are replaced. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Without tags, Care 3.1's patient header wraps the patient's name onto two lines; one tag still wraps, two keep it on one line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Approve Results sends only the status, the stored category, code and note, and the conclusion of the review card, with no result values (care_fe useDiagnosticReportReview.ts:110-111,129-139). The entry card keeps its edits in page state only (useDiagnosticReportDraft.ts:24-31) and the page has no unsaved-changes guard. After approval the entry card is gone (diagnosticReportCreation.ts:51-53, DiagnosticReportItem.tsx:58) and the backend refuses result writes on a final report (care diagnostic_report.py:148-151). So unsaved values and an unsaved entry-card conclusion are lost without a warning. Pinned care ddfd840, care_fe 5e02f9a. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Save Results resends every result that has a value, also results saved earlier: the draft starts from the saved observations with their ids (care_fe useDiagnosticReportDraft.ts:30, diagnosticReportObservationUtils.ts:32-61) and each one that passes shouldSaveObservation (:145-157) gets effective_datetime = now (:175). The backend writes it on update (care diagnostic_report.py:170-179, observation/spec.py:131-133, resources/base.py:92-99). Empty results are not sent. This also corrects "changed only the conclusion": the Diagnostic report saved successfully message shows only when no result is sent (useDiagnosticReportSave.ts:72-79, 128-135), and the reference row said results are sent only when changed. 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
PR #121 rewrites enter-diagnostic-report-results.mdx and deletes update-a-diagnostic-report.mdx. Both PRs editing the same pages would conflict, and the coordinator chose #121's pages. This restores main's versions of the two pages, so this PR no longer touches them. The save-before-approve and re-stamp points that this PR made there are now in #121. The links from this PR's own pages go to enter-diagnostic-report-results.mdx and view-a-diagnostic-report.mdx, which exist on main and stay in #121. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
billjohnc
added a commit
that referenced
this pull request
Nov 28, 2026
PR #121 deletes update-a-diagnostic-report.mdx and moves the update steps into enter-diagnostic-report-results.mdx, which this list already links on the line above. Pointing the link there would list the same page twice, so the line goes. After #121 merges, its new page "Review and approve diagnostic report results" can be added here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The facility role pickers never offer Admin. The role sync keeps one role per name, and the role-organization Admin comes after the facility Admin, so the only role named Admin ends with the role-organization context (care sync_permissions_roles.py:37-45, roles/role.py:57-67,83-95, models/role.py:33-38). The facility pickers ask only for facility roles (care_fe LinkFacilityUserSheet.tsx:207, EditFacilityUserRoleSheet.tsx:177, LinkUserToDepartmentSheet.tsx:131, PatientUsers.tsx:164; care api/viewsets/roles.py:10-15). Every list touched names ADMIN_ROLE in care security/permissions/*.py, and the rest of each list is unchanged. The explanations that called Admin a facility or government organization role now say why the lists leave it out, and "these four roles" becomes three. 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
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
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.
What this changes
Brings the Diagnostic Report pages for Care 3.1 in line with the 3.1 code. Version 3.0 is left as it is.
upsert_observations, authorization per action, and filesThe 3.1 flow sidebar now lists the flows in this order: enter, review and approve, view, print.
Verified against
caredevelop @ddfd840dbe314b4e53d2a719d2138324d970634b(23 Nov 2026)care_fedevelop @5e02f9aa4f690e08375da310511e14606985f788(26 Nov 2026)Every statement was checked against that code. 762 facts with file, lines and quote back the pages, and a reviewer who had not seen the drafts read each page against them. The four flows were recorded on a disposable local Care stack running those same commits, with no real patient data. The API calls each recording made were compared with the traced permission path: no call failed, and every predicted gate fired. Permission paths were not proved by removing one permission at a time.
Media
static/media/clinical/diagnostic-report/(36 files).eleven_v4) in two cloned voices, taking turns flow by flow in sidebar order: Bill-eng, cloned from Bill (enter, view), and Gauri-eng, cloned from Gauri (review and approve, print). Each step's line is the step plus a sentence or two of context from the page, and the subtitles show what the voice says. Where a line is longer than its step, the video holds a frame and the subtitles are timed to match.Differences from the house style, on purpose
Left out because it could not be verified
All product-team questions for this module were answered in the session.
Product issues found (none filed)
Clear defects. The team chose not to file D1 and D2 now:
Notes, which may be intended:
The skill learned
Moved to the consolidated Ezhuthachan skill update, #141. This PR no longer changes
.claude/skills/.🤖 Generated with Claude Code