Skip to content

Add declarative plugins and template-first openEHR vitals - #12

Merged
BirgerMoell merged 7 commits into
mainfrom
codex/template-first-openehr
Oct 9, 2026
Merged

BirgerMoell merged 7 commits into
mainfrom
codex/template-first-openehr

Conversation

@BirgerMoell

@BirgerMoell BirgerMoell commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add layered declarative plugin profiles, replaceable content/model/query providers, and openEHR/FHIR adapters
  • make vital-sign capture template-driven in the opt-in openEHR profile, with EHRbase as canonical authority and recoverable SQL operation links
  • group systolic and diastolic blood pressure in one composition; reject unsupported fields instead of flattening them
  • resolve canonical observations for charts, history, deterioration monitoring, AI evidence, clinical queries, and FHIR export
  • add English/Swedish explainer films and clarify public-demo, local SQL, and template-first deployment modes
  • harden bounded PostgreSQL serializable retries after a parallel audited-read CI race exposed the previous limit

Verification

  • npm run check: 289 tests, 219 passed, 70 environment-gated, 0 failed
  • npm run format:check
  • npm run test:e2e: 18 workflows, 17 passed, 1 PostgreSQL environment-gated, 0 failed
  • npm run test:openehr: 12/12 passed against EHRbase
  • npm run test:postgres: 32/32 passed against real PostgreSQL, including encrypted backup/restore
  • two independent GitHub verification runs passed on final commit 1ba1fdb
  • production-mode local public smoke passed
  • Cloud Run image app:1ba1fdb (sha256:50ccaf83b5021a6644ff302b013f11a92e2f5695d983c48a87bfbc14c193974d) deployed as zero-traffic revision eir-ehr-demo-rc-1ba1fdb; live HTTPS smoke passed

Deployment boundary

The public site remains a disposable, synthetic, in-memory runtime and does not load EIR_CONFIG or connect to EHRbase. eir.openehr.profile.yaml is opt-in and requires separately operated EHRbase plus governed templates. The bundled OPTs are test inputs, not approved Swedish production models.

BirgerMoell and others added 7 commits October 8, 2026 01:00
Plugin runtime with provides/requires/contributes, YAML manifests and layered
profiles; a ContentStore seam with a shared conformance suite (JSON, openEHR,
FHIR, memory); SQL-ledger projection into openEHR and FHIR; verified clinical
queries; AI evidence from verified history; an evaluation gate; and FHIR R4
plus IPS 2.0.0 export validated with the HL7 validator.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
HTML/SVG scenes driven by a pure function of time, local speech (Kokoro,
Supertonic) with word alignment, generated ambient music mixed gently under the
narration, Eir design-system look in light and dark, and a publish step that
makes small web versions, WebVTT captions and posters.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adds a language-switchable player with the three films to the top of
guide.html and a link from the Swedish login card. Videos are served from the
site's own origin so the strict content security policy stays unchanged, and
are cached for a day.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Swedish stays one click away, remembered once chosen, and the Swedish login
card links straight to it with ?film=sv. The cache rule for /video/** now
comes after the catch-all so it can take effect.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@BirgerMoell
BirgerMoell merged commit 79bc083 into main Oct 9, 2026
2 checks passed
@BirgerMoell
BirgerMoell deleted the codex/template-first-openehr branch October 9, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant