Phase 4: Add prior-auth drafting, Billing page, and PhenoML code search - #18
Draft
goelalex wants to merge 1 commit into
Draft
Phase 4: Add prior-auth drafting, Billing page, and PhenoML code search#18goelalex wants to merge 1 commit into
goelalex wants to merge 1 commit into
Conversation
Prior authorization: new prior-auth-draft bot drafts a payer-rule-aware narrative via PhenoML fhir2summary, surfaced through DraftPriorAuthModal in the encounter Details & Billing tab and saved as an inline-base64 DocumentReference. Adds a patient-level Billing page (route + nav tab) that lists those documents and renders their narratives, and a Maya Chen demo bundle with a Get Started import button. Code search: new phenoml-code-search bot backs CPT (charge items) and ICD-10 (conditions) autocompletes via PhenoML Construe, replacing the ValueSet pickers. lang2fhir-create and the new bots now require the PHENOML_BASE_URL secret instead of a hardcoded URL. Registers both bots in deploy-bots and example-bots.json. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Adds a payer-rule-aware prior authorization flow: a new
prior-auth-draftbot generates a narrative via PhenoML fhir2summary, surfaced throughDraftPriorAuthModalin the encounter Details & Billing tab and saved as an inline-base64DocumentReference. A new patient-level Billing page (route + nav tab) lists those documents and renders their narratives, and a Maya Chen demo bundle ships with a Get Started import button. Separately, a newphenoml-code-searchbot backs CPT and ICD-10 autocompletes (charge items and conditions) via PhenoML Construe, replacing the ValueSet pickers. Finally,lang2fhir-createand the new bots now require aPHENOML_BASE_URLsecret instead of a hardcoded URL, and both new bots are registered indeploy-botsandexample-bots.json.🤖 Generated with Claude Code
Prompt
Phase 4 — Prior-auth draft via fhir2summary
Goal: draft a prior-authorization from payer-rule-aware templates. (You preferred fhir2summary over the agent.)
POST /fhir2summary/templateseeded with payer/procedure prior-auth structure; capture thetemplate_id.DocumentReference/Communication.Verify: for a patient with a coded condition + planned procedure, generate a prior-auth narrative referencing payer rules; editable and savable.
Example prior auth python code demo: https://github.com/PhenoML/phenoml-demos/tree/main/tms-prior-auth
flowchart TD
A["Referral note / PDF"]