Skip to content

[docs] Care 3.1: report template videos and screenshots that look like Care's printouts - #151

Open
billjohnc wants to merge 1 commit into
mainfrom
docs/report-template-restyle
Open

billjohnc wants to merge 1 commit into
mainfrom
docs/report-template-restyle

Conversation

@billjohnc

Copy link
Copy Markdown
Contributor

Follow-up to #140 and #148 for the Care 3.1 report template pages: the report in the videos and screenshots now looks like a Care printout, has data in every section, and fills the report viewer.

Why

The report-template flows were recorded with Care's starter template from the Template Builder: plain Arial (which prints as DejaVu Sans), blue section rules, no facility header, and empty Allergies, Symptoms and Diagnoses tables. The PDF also showed small in a corner of the report viewer.

What changed

  • Six videos re-recorded and re-uploaded, and their embeds swapped. Each is public in the "Care 3.1 documentation" playlist, with English subtitles. The narration reuses the earlier AI voices (ElevenLabs eleven_v4). One new line in Create a report template mentions pasting your own layout over the sample.
Page Old video New video
Create a report template SFDoUkiDfMo JQcRVjTuSiw
Preview a template JJPxQJP5XkU H8WQR4lkHF8
Edit a report template aTBFdwB-fIc 4aNLJMmElsQ
View report templates aDlJLcxrHq0 ji72KE2o2SU
Generate and view a report TJqQY-zOW5Q 3c6VarX4wgM
Print a report 2SFY4lL2c8E QlpCtbQ3bj4
  • 33 screenshots replaced. They are 1440 px WebP made with scripts/webp.py and keep the same file names.
  • Three alt texts updated to match the new screenshots:
    • Create, step 4 inserts the Encounter Class field.
    • Preview opens the template with Edit. The page's step 1 already allows that.
    • View, the search now matches several cards.
  • No page text changed. Archive a report has no report on screen and is unchanged.

The report template used in the recordings

It is laid out like Care's own printouts (care_fe/src/print/typst/care.typ):

  • Figtree font, black and greys only.
  • Facility name with the Care logo; "DISCHARGE SUMMARY" in small grey capitals.
  • A two-column label : value patient block.
  • Sections under hairline rules, and tables with a light grey header row.
  • A signature line, a "computer generated" footer, and "Page X of Y".

It prints no phone number, address, date of birth or identifier. The font and logo are embedded in the template, because the report container has only DejaVu fonts and no allowed remote origin.

The demo encounters (Maya Raman, Arjun Rao) got invented allergies, symptoms, diagnoses, a care team, investigations and discharge advice.

Product issue found while documenting (not filed)

Care's starter template (DEFAULT_TEMPLATE in src/pages/Encounters/TemplateBuilder/templateUtils.ts) does not look like Care's other printouts:

  • It names Arial, which is not installed in the report container.
  • It uses blue headings and has no facility header.
  • It prints raw ISO timestamps.

Its {% if encounter.allergy_intolerances %} checks are always true, because report context lists are always truthy. So an encounter with no allergies prints empty table headers instead of "No known allergies recorded."

Notes

  • Custom thumbnails for the six new videos are still to be set. YouTube's daily custom thumbnail limit was reached today.
  • The six old videos stay on the channel until this is merged. Deleting them earlier would break the pages on main.
  • The en and ml builds pass, and the media-guard rules pass locally.

🤖 Generated with Claude Code

…'s printouts

Re-recorded the six report-template flows (create, preview, edit, view,
generate, print) with a discharge summary template laid out like Care's own
printouts (Figtree, facility header with the Care logo, grey-headed tables),
invented data in every section, and the PDF filling the report viewer.
New YouTube embeds for the six pages, 33 screenshots as 1440 px WebP, and
three alt texts updated to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying coredocs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 556af4e
Status: ✅  Deploy successful!
Preview URL: https://5a39a017.coredocs.pages.dev
Branch Preview URL: https://docs-report-template-restyle.coredocs.pages.dev

View logs

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