feat: multi-master orchestration — desktop reports, clinician export, Databricks full sync#118
Merged
EduardPetraeus merged 9 commits intomainfrom Mar 8, 2026
Merged
Conversation
Add shared contracts for multi-master agent orchestration: - interfaces.yml: desktop, clinician export, databricks, mobile data shapes - data-models.yml: patient profile, daily summary, auth, chat history schemas - openapi.json: auto-generated from FastAPI app (9 endpoints) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add complete clinician export functionality: - FHIR R4 resource mapper with LOINC codes for vital signs - FHIR Bundle generator querying gold/silver layer data - Clinical PDF report generator using WeasyPrint + Jinja2 - HTML templates with professional medical-grade styling - FastAPI endpoints: GET /v1/export/fhir and GET /v1/export/pdf - 33 tests covering mapper, bundle, PDF generation, and API auth Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…le config - Task 1: ReportGenerator class with WeasyPrint PDF rendering from silver layer - Task 2: Jinja2 report templates (base, report, 7 section partials) with professional medical/health CSS styling for print - Task 3: Reports tab with date range picker, section checkboxes, PDF preview via iframe, and download button - Task 4: Explorer tab with metric dropdown, computation selector, date range, loading states, and toast error display - Task 5: UI polish — toast notifications, loading spinners on all buttons, responsive layout (3 breakpoints), consistent styling across all 4 tabs - Task 6: App bundle config (bundle/ dir) — PyInstaller and py2app build scripts, Info.plist template, bundle ID com.healthreporting.desktop - Added generate_report() and download_report() methods to DesktopAPI - 39 new tests (test_desktop_reports.py + test_desktop_api_reports.py), all pass - Existing 36 desktop API tests still pass Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…L, 17 gold SQL, Unity Catalog, jobs, config Complete Databricks deployment layer: - Bronze: autoloader_config.py (config generator) + bronze_dlt_pipeline.py (DLT with @dlt.table for all sources) - Silver: 17 new SQL files ported from local dbt models using staging+MERGE+drop pattern with sha2() hashing - Gold: 10 dimensions + 7 facts ported from DuckDB to Databricks SQL (generate_series->explode(sequence), quantile_cont->PERCENTILE, etc.) - Unity Catalog: catalog_setup.sql (DDL + grants) + table_definitions.sql (13 silver + 1 audit table) - Jobs: daily_pipeline.yml (bronze->silver->gold, 06:00 UTC) + weekly_pipeline.yml (dims rebuild + OPTIMIZE/VACUUM, Sunday 08:00 UTC) - Config: dev.yml + prd.yml (env separation) + cluster_config.yml - Tests: 219 passing tests covering file existence, MERGE pattern, YAML validity, env separation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
name_parts contains list[str] values (given), not just str — fix type hint from dict[str, str] to dict[str, Any]. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Allowlist FHIR resource types (Patient, Observation, DiagnosticReport) - Validate date format (YYYY-MM-DD) in desktop report API methods Co-Authored-By: Claude Opus 4.6 <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.
Summary
Multi-master agent orchestration delivering 3 parallel domain features in a single session:
/v1/export/fhir,/v1/export/pdf)Cross-cutting: Shared contracts (
interfaces.yml,data-models.yml,openapi.json), security hardening (FHIR allowlist, date validation).Stats
Test plan
Generated with Claude Code