Phase 2: clinical adapters, multi-practitioner, claim awareness, appointment followup rewrite - #11
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…intment followup rewrite
crewcricle
force-pushed
the
vorflux/phase2-clinical-adapters
branch
from
July 22, 2026 19:28
1fcc41f to
89575f3
Compare
crewcricle
force-pushed
the
vorflux/phase2-clinical-adapters
branch
from
July 22, 2026 19:53
89575f3 to
372b656
Compare
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 clinical booking-system adapters, multi-practitioner support, and claim awareness to the appointment followup pipeline. Five adapters (2 real, 3 stub), a canonical appointment shape, and practitioner-scoped followup with opt-out controls.
Changes
services/appointment_shape.pywith adapter capability metadata (SUPPORTS_REBOOK,ID_COLUMN,CREDENTIAL_KEYS)services/booking_credentials.py(decrypts Fernet tokens from012_booking_credentialsmigration — Phase 0)practitionerstable, withGET /practitioners+ opt-outPATCH+ follow-up stats APIadapter.ID_COLUMN, respects practitioner-level do-not-contact, threadspractitioner_name/claim_typeinto messagingpractitioner_nameandclaim_typeparams; dollar amounts excluded from SMS copypractitioners(with RLS),patient_external_ids,appointment_claim(claim columns +followup_error/followup_message/followup_sid)Testing
164 passed, 0 failed, 2 warnings (pre-existing deprecation warning + async mock warning in menu_sync test unrelated to this PR).
New test files:
test_nookal_adapter.py— Nookal API adaptertest_halaxy_adapter.py— Halaxy FHIR adaptertest_stub_adapters.py— HotDoc/Jane/PracticePal stubstest_booking_credentials.py— credential decryption helpertest_claude.py— Claude prompt with practitioner/claim paramstest_practitioners_api.py— practitioner CRUD + opt-out APItest_rebook.py— multi-system rebook testsSession Details
(aside)to your comment to have me ignore it.