Repository navigation
Health records from MyChart and any SMART on FHIR portal; hqtui dashboard (v0.4.0) - #6
Merged
Merged
Conversation
…oard A patient connects their provider (every Epic/MyChart organization from open.epic.com, any SMART on FHIR server by address, or a demo sandbox) with the SMART standalone patient launch: PKCE, tokens sealed with AES-256-GCM. Sync copies everything the patient API returns: personal information and identifiers, visits, after-visit summaries, notes, labs, imaging, meds, conditions, allergies, immunizations, procedures, care plans, coverage, and every attached file (PDFs, images, Binary resources). Download it all as a zip (patient.txt, records.md, labs.csv, files/, raw FHIR) or one FHIR Bundle; share a connection with a practice and it appears on the chart. Every surface: /api/v1/records*, /portal/records, chart card, CLI (providers/connect/records/sync/share/export/file/disconnect), MCP (7 tools), and `tleehealth dashboard`: an hqtui screen with Today, Needs, Caseload and Records tabs. User-entered FHIR URLs must be public https (SSRF guard); tokens are only sent to the provider's own origin. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…esolves hqtui Co-Authored-By: Claude Opus 5.5 <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.
What
Connect a provider and import everything. A patient picks their provider at
/portal/records(ortleehealth connect "<name>"): every Epic/MyChart organization from open.epic.com's directory, any SMART on FHIR server by address, or a demo sandbox. They sign in on the provider's own site (SMART standalone patient launch with PKCE), and sync copies everything the patient API returns:Download all of it: one zip (
patient.txt,records.md,labs.csv,files/<category>/…, raw FHIR by category,fhir-bundle.json) or one FHIR Bundle with files inlined. Share a connection with a practice the patient belongs to; it then shows on the chart (audit-logged), and clinicians can download it.hqtui dashboard:
tleehealth dashboard(aliastui) has four tabs. Today shows appointments with AI call state; Needs shows flagged calls, refills, labs to release and summaries to sign; Caseload; and Records shows providers, personal info and categories, with Enter to drill in,sto sync andeto export.Every surface: API (
/api/v1/records*, listed in llms.txt), web portal + chart card, CLI (providers connect records sync share export file disconnect), MCP (7 new tools), TUI.Safety
HEALTH_TOKEN_KEY, now in vaulttleehealth--prod). Production refuses to run without it.Verified
bun test: 98 pass on a fresh Postgres. New: records.test.js runs a fake Epic-like server (PKCE check, paging, Observation refusing a search without a category, Binary PDF + FHIR-Binary image, inline files, a cross-origin file that must not be fetched, medication by reference) through connect → callback → sync → read → share → export → disconnect. tui.test.js renders every dashboard tab off-screen.unzip -t. Clicked through in Chromium (connect → provider → back → import → labs → share → the practice's chart).Not done / needs a human
https://tleehealth.com/connect/callback) and thenEPIC_CLIENT_IDin the vault. Until then, Epic orgs show "coming soon" and the demo sandbox works. Oracle Health would takeCERNER_CLIENT_ID.test/calls.test.jsfails when re-run against a reused test database (old queued calls take the dial batch). CI uses a fresh database, so CI is unaffected.🤖 Generated with Claude Code