Appearance
Clinical Kernel v0.2: One Canonical Body of Clinical Truth
Conventional eClinical suites assemble separate products—EDC, CTMS, eTMF, RTSM, safety intake, and a standards validator—each maintaining its own definition of a study, a site, and a participant. Synchronizing those copies across message queues and batch exports introduces drift precisely where regulatory scrutiny is highest. With Clinical Kernel Specification v0.2, we inverted that topology so every application builds on one canonical model of clinical evidence.
The Founding Invariant (K-TRUTH-1)
At the center of v0.2 is K-TRUTH-1: no product owns clinical truth, and no representation is clinical truth. An eCRF screen, an SDTM dataset, an ADaM analysis table, a FHIR resource, and a rendered protocol PDF are projections over canonical facts keyed by versioned clinical concepts.
Two immediate architectural rules follow from that invariant:
- Scope discipline (
K-SCOPE-1): A concept belongs in the kernel only when it explains the provenance, authority, meaning, or lifecycle of clinical evidence across multiple applications. Product-specific workflow chrome stays in modules. - Forbidden redefinitions (
K-XS-1): Application modules never declare competingStudy,Site,Participant,Observation,Role, orDelegationentities, enforced continuously by ArchUnitNET tests.
Six Engines Over One Transaction Boundary
Rather than splitting clinical concepts into chatty network microservices, ADR-2244 organizes the domain into six engines—Knowledge, Execution, Evidence, Trust, Quality, and Intelligence—sharing one PostgreSQL schema and one ACID command pipeline:
- Bitemporal and append-only corrections: Contestable facts track both valid time and recorded time through
IClock(K-TIME-3), while observation corrections append immutable revisions with an audited reason for change (K-FACT-1). - Evidence-backed authority: Command capabilities are evaluated from active delegations, training qualifications, and study-site effectivity rather than static role strings.
- Deterministic lineage: Every derived projection records the exact inputs and mapping specification version that produced it.
Retiring Neo4j for PostgreSQL ProtocolVersion Snapshots
Earlier iterations stored CDISC USDM protocol graphs in Neo4j while recording trial execution in PostgreSQL. Maintaining distributed consistency across two database engines created unnecessary operational and 21 CFR Part 11 risk because an approved clinical protocol version is immutable once published.
Under ADR-2245, attested ProtocolVersion trees live directly in PostgreSQL alongside enrollment, expected visit schedules, and observations. Retiring Neo4j eliminated dual-write failure modes, simplified local onboarding and CI containers to PostgreSQL 18, and bound every captured observation transactionally to the protocol version in force.