Learnings log (FHIR / HL7 / EHR, SSM vs Innovare)¶
One dated bullet per learning. Source = live API, docs, or interview prep.
- 2026-11-12 (prep): Innovare migration path is Allscripts -> Ottehr (open-source EHR front end, MassLight) on Oystehr (headless FHIR R4B/R5 backend) -> Innovare's own EMR. Source: github.com/masslight/ottehr, docs.oystehr.com/ottehr.
- 2026-11-12 (prep): Job = bidirectional FHIR ETL into internal FHIR DB + app SQL tables + APIs for new clinical forms (immunizations, allergies). Source: Jeff Roberson JD 2026-11-10.
- 2026-11-12: SMART sandbox returned 10 verified Synthea patients; capture ranked 20 candidates by availability of A1c/BP/cholesterol. Captured every page for all seven requested resource types verbatim. SOURCE.md records URLs and SHA256 values. Its paging next URL may have no slash before
?_getpages; URI host comparison is safer than a stringhttps://host/*check. - 2026-11-12: Ottehr upstream test JSON captured verbatim from commit
b78016c8324362751d83c2710430788c67b2f739: two Patient resources, one QuestionnaireResponse, one Questionnaire. Separate provenance underdata/fixtures/ottehr/SOURCE.md; no accounts or Oystehr credentials used. - 2026-11-12: Oystehr authentication documentation confirms M2M POST
https://auth.zapehr.com/oauth/token, audiencehttps://api.zapehr.com, Bearer token andx-oystehr-project-id. Documented FHIR base ishttps://fhir-api.zapehr.com/r4. Adapter throws before any request unless all three environment variables exist. Only synthetic projects may be configured; adapter has not been exercised live. - 2026-11-12: FHIR version IDs are opaque strings. This demo compares numeric producer versions numerically; different opaque versions need strictly newer producer lastUpdated. Same version never mutates a row. No lexical ordering of UUIDs.
- 2026-11-12: ACC/AHA published vignette confirms the age-55, TC-213, HDL-50, untreated-SBP-120 nonsmoker/no-diabetes reference results 2.1%, 3.0%, 5.3%, 6.1% across four coefficient groups. Risk tests use ±0.5 percentage points. Absence of diabetes or treatment facts in an extract is not evidence of false; missing inputs remain unscored.
- 2026-11-12: Firely 6 rejects unknown JSON elements; a negative mapping test must place a quantity in a legal extension to verify it cannot masquerade as Observation.valueQuantity. DeserializationFailedException is caught by operational quarantine.
-
2026-11-12: Windows Application Control initially blocked some new managed assemblies (0x800711C7). Later ordinary executions succeeded without policy changes. Operational migration/idempotency/version/quarantine tests passed locally. Initial migration is provider-neutral; EF-generated snapshot omits provider-specific column types, letting each provider infer them. SQL Server model drift check reported no changes; SQLite migration tests passed.
-
2026-11-12: Captured SMART Synthea bundles contain 88 BP panels using LOINC 55284-4, not 85354-9. Both carry 8480-6 systolic and 8462-4 diastolic components in mm[Hg]. Mapping retained these components, but risk assembly originally filtered them out. Both panel codes now feed the same BP rule; a fixture regression test verifies cited BP evidence.
- 2026-11-12: Default offline sync and lakehouse read only top-level Synthea Bundles: 10 patients. Ottehr resources are separate upstream contract examples, not included in default app data. FixtureFhirSource can read the Ottehr directory explicitly and map its two standalone Patient resources, but the current CLI has no Ottehr-fixture switch. Questionnaire/QuestionnaireResponse resources are preserved as producer examples, outside the seven mapped types. Oystehr live credentials have not been supplied or used.
- 2026-11-12: Aspire 13.6.5 is pinned after NuGet reported the prior 13.6.4 hosting security advisory (https://github.com/advisories/GHSA-f7vh-h5g3-7jrh). Final rebuild removed the warning.
- 2026-11-12: Metabase must be able to write its plugins directory. Mounting the whole directory read-only made it fall back to /tmp and ignore the DuckDB driver. Mount only the pinned JAR read-only; retain the database directory read-only.
- 2026-11-12: CDK Terrain 0.25.0 reads cdktf.json despite its newer branding. Synth completed with 10 Azure resources and no credentials; missing Terraform produced a warning, so provider validation/apply is not claimed.
- 2026-11-12: DuckDB 1.5.6 requires explicit AS for aliases such as name/value/label in the tested SQL. Real fixture runs exposed the parser errors; lakehouse and all five report queries now have regression coverage.
- 2026-11-12: Oystehr now additionally requires OYSTEHR_SYNTHETIC_PROJECT=true before credentials or network access. This is an operator attestation, not automated proof that the project contains no PHI. No live Oystehr requests were made.
- 2026-11-12: Operational databases persist one source identity (fixtures, sandbox, or Oystehr project/base URL). Switching identity is rejected before reading; use a separate empty database for live sources. The isolation migration conservatively labels previously synced demo databases fixtures. The web Run sync again button intentionally remains fixture-only.
- 2026-11-12: Live adapters freeze a UTC upper cutoff when instantiated and send _lastUpdated=le cutoff on every patient/type request, plus a five-minute overlap before the stored watermark. Versions beyond cutoff abort the type transaction without advancing its cursor. SMART accepted a GET with both gt and le filters and returned one known synthetic Patient. This addresses sequential-patient races with synchronized clocks and modest indexing lag; arbitrary server clock skew or indexing delays over five minutes need a reconciliation strategy. Oystehr filter behavior remains unverified live.
- 2026-11-12: Windows Git autocrlf would rewrite producer JSON on checkout. Fixture paths now use -text in .gitattributes; staged blob hashes match unfiltered working-file hashes for every captured JSON file (zero mismatches).
Pass 6: open-source EHR (verified 2026-11-12)¶
- Verified against https://docs.oystehr.com/oystehr/services/fhir/basics/ and https://docs.oystehr.com/oystehr/services/fhir/search/: Oystehr's R4B API uses the base
https://fhir-api.zapehr.com/r4; resource search isGET /r4/{ResourceType}with_lastUpdatedbounds and Bundle next links. The/r4path does not imply this is an R4-only service. - Verified https://docs.oystehr.com/oystehr/core-documentation/authenticating-api-requests/: M2M uses
POST https://auth.zapehr.com/oauth/token, JSONgrant_type=client_credentials, client ID/secret, audiencehttps://api.zapehr.com. Send the bearer token and explicitx-oystehr-project-idon FHIR requests. - Verified https://docs.oystehr.com/oystehr/services/fhir/batch-transaction/ and https://docs.oystehr.com/oystehr/services/fhir/async-fhir-interactions/: synchronous transactions use
POSTto the FHIR base, Bundletype=transaction; entries can usePUT {ResourceType}/{id}. We use synchronous transactions, not async-job endpoints. - Ottehr's committed QuestionnaireResponse has no ID/meta and references an absent Encounter. The import layer supplies a deterministic ID/version without changing the verbatim files. The local demonstration server permits unresolved references; this is sample-data accommodation, not a production configuration.
- The upstream
booking-questionnaire.jsonis an item-only fragment. Its transport copy is wrapped as a draft Questionnaire; its committed bytes remain verbatim. HAPI imagehapiproject/hapi:v8.2.0-1exists (verified Docker manifest);v8.2.0does not. Configuration checked at https://raw.githubusercontent.com/hapifhir/hapi-fhir-jpaserver-starter/image/v8.2.0-1/src/main/resources/application.yaml .