Add list_care_team and list_implants read tools#1
Merged
Conversation
Two new read tools, both built from existing complete-body HAR captures
(no fresh capture needed).
list_care_team: the home-page "Care Team and Recent Providers" roster
(PCP, specialists, recent clinicians) with specialty, relationship, and
per-provider capability flags. Legacy /mychartcn/Clinical/CareTeam/Load
+ LoadExternal; one CSRF token covers both POSTs, external is best-effort.
can_message reflects only the panel's inline button, not reachability;
documented so callers route messaging through list_message_recipients.
list_implants: implanted/explanted devices (pacemakers, ICDs, leads,
IOLs, ortho hardware) with manufacturer, model, serial, UDI/SDI, area,
laterality, status, and implant/explant procedure. Single CSRF-gated
POST to /mychartcn/api/implants/GetImplants. Group list is a body-area
ordering index ("zzz" = sort-unknown-last sentinel); detail lives in
implantList. isoDate is a display-string misnomer, so date_iso is
derived. Devices can appear twice (curated + raw feed record, same
serial); returned faithfully, not deduped.
567 tests passing, ruff + mypy clean.
Co-Authored-By: Claude Opus 4.7 (1M context) <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.
Two new read tools, both built from existing complete-body HAR captures (no fresh capture needed).
list_care_teamThe home-page "Care Team and Recent Providers" roster — PCP, specialists, recently-seen clinicians — each with specialty, relationship label, and per-provider capability flags. A strict superset of
get_profile, which only surfaces the PCP./mychartcn/Clinical/CareTeam/Load+LoadExternalfamily. One CSRF token covers both POSTs; the external-providers call is best-effort (a failure there still returns the internal roster).can_messageis not reachability. It mirrors the care-team panel's inline quick-message button, which Kaiser can leave off for providers you can still message via the separatelist_message_recipients+send_messagesurface. Documented in the tool docstring, model comment, and endpoint doc so an LLM doesn't over-conclude "unreachable."list_implantsImplanted/explanted devices (pacemakers, ICDs, leads, intraocular lenses, ortho hardware) with manufacturer, model, serial, UDI/SDI, body area, laterality, status, and the implant/explant procedure.
/mychartcn/api/implants/GetImplants, no pagination.implantGroupListis a body-area ordering index ("zzz"= Epic's sort-unknown-last sentinel); device detail lives inimplantList.isoDateis a display-string misnomer, sodate_isois derived alongside it.(serial, date_iso).Verification
🤖 Generated with Claude Code