Refactor reporting tab outputs to match clinical documentation format#11
Closed
Claude wants to merge 2 commits into
Closed
Refactor reporting tab outputs to match clinical documentation format#11Claude wants to merge 2 commits into
Claude wants to merge 2 commits into
Conversation
…Orders, and Census Co-authored-by: CSfromCS <42040696+CSfromCS@users.noreply.github.com>
Copilot stopped work on behalf of
CSfromCS due to an error
February 22, 2026 12:33
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.
Updated all report generators to match Philippine medical school documentation standards: standardized headers to
ROOM - LASTNAME, Firstnameformat, restructured Profile/Census/FRICHMOND/Vitals/Labs/Orders outputs per clinical workflow requirements.Changes by Report Type
Profile Summary
512A - DELA CRUZ, Juanwith uppercase last nameMain:, subsequent lines →Referrals:Notes:section (only if populated)FRICHMOND Summary
512A - DELA CRUZ, Juan — 02-21-2026(MM-DD-YYYY)VS trends 2/21 7PM–2/22 7AM 110–130/60–80, 68–88, 14–19, 36.5–36.8, 97–99%Vitals Summary
512A - DELA CRUZ, Juan6AM 126/78 86 20 37.6 95%(time + values + optional notes)Labs Summary
512A - DELA CRUZ, JuanCBC 02-21 7:38 PMextracted fromcreatedAtfieldOrders Summary
512A - DELA CRUZ, JuanInternal Medicine – 02-21 9:34 PMCensus Report
512A – DELA CRUZ, Juan(em dash)Example Output Transform
Before:
After:
Original prompt
This section details on the original issue you should resolve
<issue_title>Tweak the outputs - REPORTING tab</issue_title>
<issue_description>1. Profile Summary
512A - DELA CRUZ, Juan
57 / M
Main: Internal Medicine
Referrals: General Surgery
Dx: Community-acquired pneumonia, moderate-risk; CKD stage V
Pendings:
CXR
Sputum gram stain and culture
CBC
Notes:
Patient is very agitated, difficult to interview, try talking to them at 10 am AFTER they've eaten
Left arm precautions at all times: he has AVF on left arm
FRICHMOND Summary
a. Remove the vitals in the summary for FRICHMOND; if choosing to keep it then report it as a "VS trends" where only the ranges are displayed, eg: VS trends 2/21 7PM–2/22 7AM 110–130/60–80, 68–88, 14–19, 36.5–36.8, 97–99%
b. Remove the "Orders" segment
c. Change the header of the report from "DAILY UPDATE – Dela Cruz (512A) – 2026-02-21" --> "512A - DELA CRUZ, Juan — 02-21-2026"
a. Change the header of the report from "VITALS LOG — Dela Cruz (512A)" --> "512A - DELA CRUZ, Juan"
b. Display only the time, vitals, and additional notes if any: from "Vitals (2026-02-21): 6AM 126/78 86 20 37.6 95" --> "6AM 126/78 86 20 37.6 95"
c. New output format sample:
512A - DELA CRUZ, Juan
6AM 126/78 86 20 37.6 95
2PM 128/76 84 18 37.3 96
d. Add the option to allow generation of 1 Vitals Summary for multiple patients: allow the user to select a specific time and date range, as well as specify the specific patients to include in the report
e. Sample output format for multiple patients where DELA CRUZ and CRUZ were selected as the patients, and the time and date selected was 02/21/2026, 5AM to 2PM
512A - DELA CRUZ, Juan
6AM 126/78 86 20 37.6 95%
2PM 128/76 84 18 37.3 96%
306C - CRUZ, Jose
6AM 120/80 78 14 36.5 95%
12PM 140/80 89 15 37.3 99% on 3lpm NC
2PM 130/70 87 16 37 98% on 1lpm NC
a. Change the header of the report from "LABS — Dela Cruz (512A)" to "512A - DELA CRUZ, Juan"
b. Change the header of each lab from "2026-02-21 UST - Urinalysis: " to "Urinalysis 02-21 7:38 PM"; from "2026-02-21 UST - CBC: " to "CBC 02-21"
c. </issue_description>
Comments on the Issue (you are @claude[agent] in this section)
@HesperKarl # Report generator — consolidated rules & learnings (as of 2026-02-22)This document integrates Profile Summary, FRICHMOND Summary, Vitals Summary, and Labs Summary rules discussed so far.
1) Profile Summary
1.1 Included data fields
Include the following data in the Profile Summary output:
1.2 Labeling / naming rules
Main:Referrals:Dx:refers to DiagnosisNotes:refers to Clerk notes1.3 Output format (exact structure)
Sample (format-sensitive):
2) FRICHMOND Summary
2.1 Header format
Change header from:
DAILY UPDATE – Dela Cruz (512A) – 2026-02-21To:
512A - DELA CRUZ, Juan — 02-21-20262.2 Remove / change segments
2.3 VS trends format (if included)
If VS trends are shown, present only ranges and include the applicable time window.
Format example:
VS trends 2/21 7PM–2/22 7AM 110–130/60–80, 68–88, 14–19, 36.5–36.8, 97–99%Meaning / ordering requirements: