Skip to content

Rework visit scribe into a SOAP-note generator via PhenoML fhir2summary - #19

Open
goelalex wants to merge 2 commits into
phase-2-visit-scribefrom
fhir2summary-soap-note
Open

Rework visit scribe into a SOAP-note generator via PhenoML fhir2summary#19
goelalex wants to merge 2 commits into
phase-2-visit-scribefrom
fhir2summary-soap-note

Conversation

@goelalex

@goelalex goelalex commented Jul 9, 2026

Copy link
Copy Markdown

Reworks the visit-scribe demo to showcase PhenoML's fhir2summary: the GAD-7/PHQ-9 "Screening scribe" is removed and a SOAP note is generated from the "Fill chart note" transcript on the encounter Note & Tasks tab. A new scribe-soap-note bot runs transcribe → lang2fhir (createMulti) → persist the extracted FHIR resources to the patient chart → fhir2summary (narrative template soap-note-behavioral-health, find-or-create then reused via template_id), returning a SOAP note; base URL is a required PHENOML_BASE_URL secret matching referral-intake. The new SoapNotePanel replaces ScribePanel with a "Generate note" button, an editable draft, and "Save to chart" that persists the note as a DocumentReference (LOINC 11506-3) linked to the patient/encounter, which then appears in the Documents tab and Timeline. This deletes the screening pieces (scribe-fill and buildProfile bots, screening util, the GAD-7/PHQ-9 seed bundle, the Get Started card), registers the new bot in deploy-bots.ts, regenerates example-bots.json, and refreshes sample-visit-transcript.txt for the SOAP flow. The diff also carries two small pre-existing fixes on the branch: a localStorage polyfill in test.setup.ts and a possibly-undefined Bot guard in UploadDataPage.tsx.

🤖 Generated with Claude Code

goelalex and others added 2 commits July 9, 2026 14:54
Replace the GAD-7/PHQ-9 "Screening scribe" with a SOAP-note flow driven from
the "Fill chart note" transcript. New scribe-soap-note bot runs the pipeline
transcribe -> lang2fhir (createMulti) -> persist FHIR resources to the chart ->
fhir2summary (narrative template, find-or-create + reused), returning a SOAP
note the clinician reviews and saves as a DocumentReference (Documents tab +
Timeline). New SoapNotePanel replaces ScribePanel; the screening bot, profile
builder, screening util, and seed bundle are removed. Base URL is a required
PHENOML_BASE_URL secret on the new bot (matching referral-intake).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Changing FHIR to Summary template to get clearer results that read better.
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