Rework visit scribe into a SOAP-note generator via PhenoML fhir2summary - #19
Open
goelalex wants to merge 2 commits into
Open
Rework visit scribe into a SOAP-note generator via PhenoML fhir2summary#19goelalex wants to merge 2 commits into
goelalex wants to merge 2 commits into
Conversation
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.
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.
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-notebot runs transcribe → lang2fhir (createMulti) → persist the extracted FHIR resources to the patient chart → fhir2summary (narrative templatesoap-note-behavioral-health, find-or-create then reused viatemplate_id), returning a SOAP note; base URL is a requiredPHENOML_BASE_URLsecret matching referral-intake. The newSoapNotePanelreplacesScribePanelwith a "Generate note" button, an editable draft, and "Save to chart" that persists the note as aDocumentReference(LOINC 11506-3) linked to the patient/encounter, which then appears in the Documents tab and Timeline. This deletes the screening pieces (scribe-fillandbuildProfilebots,screeningutil, the GAD-7/PHQ-9 seed bundle, the Get Started card), registers the new bot indeploy-bots.ts, regeneratesexample-bots.json, and refreshessample-visit-transcript.txtfor the SOAP flow. The diff also carries two small pre-existing fixes on the branch: alocalStoragepolyfill intest.setup.tsand a possibly-undefined Bot guard inUploadDataPage.tsx.🤖 Generated with Claude Code