Beyond Forms: The Architecture of a Contextual EMR, Clinical Trajectories and Cohort Intelligence
How a schema-light, knowledge-driven clinical architecture separates clinical meaning from physical data representation — and creates the foundation for contextual clinical analytics
Introduction: The problem is not creating another electronic medical record
Electronic Medical Records have become effective at storing clinical information, documenting encounters and presenting structured forms. Yet a fundamental architectural challenge remains: clinical medicine does not naturally fit into fixed forms, predefined database tables or isolated disease-specific workflows.
A patient does not experience diabetes, chronic kidney disease, hypertension and cardiovascular disease as separate forms. These conditions coexist, influence one another and evolve over time. Their clinical significance depends on relationships between observations, events, decisions, treatments, pathways and the patient's history.
Traditional form-centric thinking makes it difficult to represent this reality coherently.
Consider a clinician managing a patient with diabetes and chronic kidney disease. The clinician may need to document:
General patient and encounter information.
Diabetes-specific history, observations and assessments.
CKD-specific history, observations and assessments.
Shared observations relevant to both conditions.
Longitudinal changes in HbA1c, creatinine and eGFR.
Clinical events and decisions over time.
A combined care pathway reflecting the patient's multiple conditions.
A conventional implementation can easily turn this into multiple forms, separate workflows, duplicated fields and disconnected records.
But what if the underlying architecture did not need a new database schema every time a new specialty, disease or clinical pathway was introduced?
What if clinical meaning could be modelled independently of physical data storage, and the application could interpret that clinical knowledge dynamically?
This is the architectural direction behind Vibe Rounds EMR Enhancer and Vibe Rounds CCIS.
The central principle is:
A schema-light, knowledge-driven clinical information architecture that separates clinical meaning from physical data representation.
This is more than a dynamic form-building technique. It changes where clinical complexity is represented, how clinical workflows are assembled, how longitudinal information is connected and how data becomes available for contextual analytics.
1. Separating clinical meaning from physical data representation
The most important architectural decision is to avoid making every clinical concept a specialty-specific database design problem.
In many systems, the physical data model, clinical concepts, form definitions and workflow implementation are closely coupled to a framework's underlying representation.
This does not mean established standards lack sophisticated modelling capabilities. For example, openEHR deliberately separates clinical knowledge through archetypes and templates from its Reference Model. FHIR SDC represents form definitions and responses through FHIR resources, while OpenMRS uses concepts, observations and form infrastructure.
Vibe Rounds takes a different implementation direction.
Instead of requiring every clinical definition to become a new physical database structure, it uses a generic typed persistence foundation and stores clinical definitions as reusable, versioned knowledge.
The distinction is important:
The database stores clinical facts. The clinical knowledge model describes what those facts mean and how they should be interpreted. The application uses that knowledge to construct the clinical experience.
1.1 The conventional coupling problem
A simplified way to understand the challenge is:
New specialty or clinical requirement
|
v
Specialty-specific data modelling
|
v
Database and application changes
|
v
Form implementation and validation
|
v
Reporting and integration changesAs the number of specialties, conditions and combinations grows, the number of implementation dependencies can grow considerably.
The problem is not that every established system necessarily requires a new database table for every form. Many already have metadata-driven approaches. The architectural issue is how much the clinical model depends on the particular data framework and its conventions.
1.2 The Vibe Rounds approach
Vibe Rounds separates these concerns:
CLINICAL KNOWLEDGE
|
+----------+----------+
| | |
Elements Element Pathways
sets
| | |
+----------+----------+
|
Versioned definitions
|
v
DYNAMIC INTERPRETATION
|
+----------+----------+
| |
Clinical UI Validation
| |
+----------+----------+
|
v
GENERIC TYPED PERSISTENCE
|
+----------+----------+
| | |
Values Provenance TimelineClinical definitions are persisted in the backend as governed, versioned entities. The frontend provides the authoring, interpretation and presentation experience.
The database does not need a separate specialty-specific physical schema for every clinical definition.
This is the essential architectural separation.
1.3 What is actually stored?
The EMR architecture uses a generic set of clinical entities and relationships.
The important concepts include:
Patients and clinical cases.
Encounters linked to cases.
Element sets and immutable element-set versions.
Elements and their typed definitions.
Element bindings and terminology metadata.
Case-applied element sets.
Observations.
Clinical events.
Notes and amendments.
Pathways and immutable pathway versions.
Case-applied pathways.
Context exports and audit records.
An element definition can describe its field key, label, data type, unit, options, repeatability, derived status and relevant bindings.
An observation stores the captured clinical fact rather than requiring a specialty-specific database column.
The implementation supports typed observation values such as text, number, integer, boolean, select and datetime, with validation against the exact applied definition.
The physical storage model remains generic while the clinical definition provides the interpretation.
This is not an absence of a clinical data model. It is a deliberate separation between the clinical knowledge model and the physical persistence model.
2. Clinical knowledge becomes reusable and versioned
A dynamic clinical architecture needs more than flexible field definitions.
Clinical knowledge changes. A form evolves, a specialty adds fields, a pathway changes its composition, and a clinical definition may need review before publication.
If these changes silently alter existing patient records, historical information becomes difficult to interpret.
Vibe Rounds therefore separates stable identity from immutable versions.
2.1 Element sets
An element set is a reusable collection of clinical elements.
It can represent a general clinical template, a specialty-specific collection, a disease-specific context or another structured documentation requirement.
For example:
Element Set: Diabetes
|
+-- Diabetes history
+-- Duration
+-- HbA1c
+-- Glucose observations
+-- Relevant clinical findings
+-- Assessment fieldsAnother element set can represent CKD:
Element Set: CKD
|
+-- CKD history
+-- Creatinine
+-- eGFR
+-- Urine albumin
+-- Relevant clinical findings
+-- Assessment fieldsThese are reusable definitions, not separate physical database schemas.
2.2 Immutable versions
An element set has a stable identity and a series of versions.
Diabetes Element Set
|
+-- Version 1
+-- Version 2
+-- Version 3Once published, a version is immutable. A modification creates a new version rather than changing the historical definition.
This is essential because a clinical observation should be interpretable in relation to the definition under which it was captured.
2.3 Case-level version pinning
When an element set is applied to a clinical case, the case pins the exact version.
The case does not simply say that it uses the latest Diabetes element set. It records which published version was applied.
Consequently:
Existing cases do not silently change when a definition is updated.
A clinician or authorized user can explicitly apply a newer version.
Historical records retain their relationship to the definition used at capture time.
The application can distinguish current definitions from historical ones.
This creates a governed evolution mechanism for clinical knowledge.
It also makes dynamic modelling much safer than simply changing a form definition globally.
3. From forms to contextual clinical documentation
The next architectural step is to change the role of a form.
A form should not be the primary clinical object. It should be one way of presenting a particular clinical context.
The central object in the EMR architecture is the clinical case.
A case belongs to a patient and can span multiple encounters. It connects clinical observations, notes, events, applied element sets and pathways.
This is a much more useful foundation for longitudinal clinical information than treating each form submission as an independent record.
3.1 One case, multiple clinical contexts
Consider a patient with diabetes and CKD.
Instead of creating two disconnected patient records or forcing the clinician to work through unrelated forms, the case can have multiple applied clinical contexts.
PATIENT
|
v
CLINICAL CASE
|
+----------+----------+
| |
v v
Diabetes Context CKD Context
| |
+----------+----------+
|
v
Shared Clinical Case
|
+----------+----------+
| | |
Notes Observations Events
|
v
Clinical TimelineThe case can use:
A base clinical documentation structure.
A Diabetes element set.
A CKD element set.
A combined Diabetes + CKD pathway.
These contexts can coexist without becoming separate physical data models.
A new specialty or disease context can be introduced primarily through clinical knowledge definitions and their application, rather than by redesigning the underlying database for that specialty.
3.2 Why this matters
The same patient may need several clinical perspectives.
A diabetes-focused view emphasizes diabetes-related documentation and observations.
A CKD-focused view emphasizes renal function, relevant history and renal observations.
A combined view can present the relationships and shared information relevant to both contexts.
The important point is that these views should be projections over the same underlying clinical case and source records.
They should not create duplicate clinical facts merely because the same observation is relevant to multiple contexts.
3.3 A shared observation, multiple interpretations
For example, blood pressure may be relevant to diabetes, CKD and hypertension.
It should remain one clinical observation with one source identity and provenance.
Different contextual views can reference that same observation.
This is a fundamental distinction between:
Storing multiple copies of the same clinical fact.
Presenting one clinical fact through multiple contextual perspectives.
The second approach is more coherent and supports more reliable longitudinal review and analytics.
4. Pathways: moving from static forms to clinical trajectories
A clinical pathway is not merely a collection of form fields.
It describes a structured clinical workflow and connects relevant clinical definitions in an intentional sequence or composition.
Vibe Rounds introduces pathways as reusable, versioned entities.
A pathway can reference exact published element-set versions and can be applied to a case.
For example:
Diabetes + CKD Pathway
|
+-- Diabetes Element Set
|
+-- CKD Element Set
|
+-- Shared documentation context
|
+-- Defined pathway compositionThe pathway provides a reusable way to assemble the documentation contexts required for a clinical situation.
4.1 Pathways are versioned too
Pathways have stable identities and immutable versions.
Their members reference exact published element-set versions.
When a pathway is applied to a case, the application records its provenance. The case also records the resulting applied element-set pins.
This makes it possible to understand:
Which pathway version was applied.
Which element-set versions it referenced.
Which clinical contexts were introduced through that pathway.
When the pathway was applied.
Whether a context was applied independently or through a pathway.
The architecture also avoids silently changing existing case applications when a pathway is updated.
4.2 Pathways create the foundation for trajectories
A pathway provides the structured context in which clinical observations and events can be understood over time.
A patient's clinical trajectory is not simply a chart of values.
It is the evolution of a clinical situation:
Clinical history
|
v
Initial assessment
|
v
Clinical observations
|
v
Pathway application
|
v
Follow-up observations
|
v
Clinical events and decisions
|
v
Subsequent assessments
|
v
Longitudinal trajectoryThe pathway supplies an organizational and clinical context for the record.
The observations and events supply the evolving facts.
The timeline connects them temporally.
The result is a foundation for a contextual EMR rather than a collection of isolated forms.
4.3 Repeated observations become trajectories
A single HbA1c value is a clinical observation.
A series of HbA1c observations across several years forms a longitudinal trajectory.
The same applies to creatinine, eGFR, blood pressure and other repeatable clinical measurements.
Vibe Rounds' observation model distinguishes:
effective_at: when the observation was clinically true.recorded_at: when the observation was entered into the system.
It also preserves correction history and entered-in-error states.
This distinction is essential for interpreting historical clinical information.
A value entered today may describe something that happened months ago. The system should not confuse the clinical time with the recording time.
Observations are append-oriented, corrections are traceable and erroneous entries are not silently deleted.
This creates a much stronger foundation for longitudinal analysis than overwriting a field with its latest value.
5. The contextual longitudinal patient view
Once a case has multiple clinical contexts, versioned pathways, observations and events, a more powerful patient-facing experience becomes possible.
Instead of navigating separate forms, a clinician can review the patient's journey through different clinical contexts.
For example:
PATIENT JOURNEY
|
+----------------+----------------+
| | |
v v v
All History Diabetes CKD
| | |
+----------------+----------------+
|
v
Combined View
Diabetes + CKD
|
v
Shared Time Navigation
|
v
Clinical Event Detail
|
v
Source and ProvenanceThe same source observation may appear in several relevant views, but it remains one record.
A clinician should be able to:
View the overall patient timeline.
Filter by a single clinical context.
Switch to a combined-condition view.
Preserve the selected date while switching contexts.
Click an event and inspect its source observation or note.
See effective time, recorded time, status and provenance.
Review previous and subsequent observations for a field.
View supported repeated numeric observations as longitudinal trends.
The repository already has important foundations for this direction: case-level observations, repeated measurements, clinical events, notes, pathways and context export.
The advanced cross-case longitudinal patient explorer is a separate planned EMR roadmap capability. It should reuse those source records rather than creating a second system of record or duplicating observations.
This is an important architectural boundary:
The EMR owns the individual patient's clinical journey.
It is responsible for patient-level clinical documentation, contextual views, source records and longitudinal review.
6. AI-assisted clinical modelling: accelerating the creation of knowledge
A schema-light architecture becomes especially powerful when clinical definitions can be created quickly.
In a conventional development process, adding a new specialty form may require considerable developer involvement:
Understanding the clinical requirements.
Designing the form.
Creating the underlying data structures or mappings.
Implementing validation.
Building the user interface.
Testing the workflow.
Updating integration and reporting logic.
In a knowledge-driven architecture, much of the specialty-specific work can be represented as structured clinical definitions.
An LLM can assist in drafting those definitions.
For example, a user can describe a requirement:
Create a CKD documentation context with renal history, creatinine, eGFR, urine albumin, repeatable measurements, units and relevant assessment fields.
The LLM can help transform that description into structured element definitions.
The application can then present those definitions for review, editing and publication.
The important architectural distinction is:
Clinical requirement
|
v
LLM-assisted authoring
|
v
Structured clinical definition
|
v
Human review and governance
|
v
Published version
|
v
Dynamic application interpretation
|
v
Clinical documentationThe LLM does not need to redesign the database or write a new specialty-specific application.
It helps create the knowledge that the existing runtime knows how to interpret.
This changes the economics of clinical application development.
A new specialty, form or clinical context can increasingly become a knowledge-authoring activity rather than a software-development project.
However, AI-generated definitions must remain subject to clinical review and governance. Clinical thresholds, doses and protocol decisions must not be accepted merely because an LLM generated them.
The LLM accelerates clinical modelling; the application and governance system remain responsible for interpreting and controlling it.
7. The second architectural layer: CCIS
The EMR creates and maintains patient-level clinical context.
But the value of structured clinical information does not stop at the individual patient.
There is another important question:
What can we understand when clinical contexts, observations, events, pathways and trajectories are examined across an entire cohort?
This is where Vibe Rounds CCIS enters the architecture.
CCIS is a separate Contextual Clinical Intelligence application. It is not an analytics module that directly accesses the EMR database.
Its intended role is to receive controlled clinical context data and evaluate that data through governed, reusable clinical intelligence artefacts.
The distinction between the two applications is fundamental.
VIBE ROUNDS EMR ENHANCER
Patient-level clinical record
|
+-----------+-----------+
| | |
Contexts Pathways Observations
| | |
+-----------+-----------+
|
Context Envelope
|
v
VIBE ROUNDS CCIS
Clinical intelligence layer
|
+-----------+-----------+
| | |
Cohorts Analytics Pathways
| | |
+-----------+-----------+
|
v
Contextual Analytics
and Cohort IntelligenceThe EMR and CCIS have separate responsibilities.
| EMR Enhancer | CCIS |
|---|---|
| Patient and case-level records | Cohort and population-level intelligence |
| Clinical documentation | Clinical analytics |
| Applied element sets | Contextual analytical definitions |
| Patient-level pathways | Reusable analytical pathways |
| Observations and events | Aggregate findings and results |
| Patient-level trajectories | Cohort-level trajectories |
| Controlled context export | Import, validation and deterministic execution |
This separation avoids turning CCIS into another clinical record system.
CCIS should not directly modify the EMR's observations, notes or applied clinical definitions.
8. The context envelope: connecting the two applications
A critical architectural feature is the controlled exchange boundary between EMR Enhancer and CCIS.
Rather than allowing CCIS to access the EMR database directly, the EMR creates a context envelope for a case.
This is a deliberate architectural boundary.
8.1 What the EMR exports
The envelope carries structured contextual information, including:
Applied element-set identities and versions.
Applied pathway identities and versions.
Eligible observations.
Observation values and types.
Units and timestamps.
Status and provenance information.
A pseudonymous case reference.
The export is not a complete copy of the patient's record.
The current implementation deliberately excludes patient identity and narrative, and does not export entered-in-error observations.
Clinical events are counted in the current EMR context route but are not yet included as exported event records.
This is an important distinction when considering future analytics.
8.2 A controlled, auditable export
The EMR context route has several important safeguards:
It reads one case through a repeatable-read, read-only database snapshot.
It builds the envelope through a separate envelope-construction module.
It validates the output against the context-envelope contract.
It uses a protected secret to create a case reference.
It calculates a SHA-256 hash of the exact exported JSON bytes.
It records the export in an append-only context-export log.
It records an audit event.
It does not allow request parameters to expand the exported content.
The export also has an observation-count limit.
These controls make the exchange boundary explicit, reproducible and auditable.
8.3 Why this separation matters
A tightly coupled integration would allow the intelligence application to depend on internal EMR database tables.
That creates long-term problems:
Database changes can break analytics.
The intelligence platform becomes dependent on the EMR's internal implementation.
Data access becomes harder to govern.
Multiple clinical systems become difficult to integrate.
The analytics layer can become entangled with clinical record operations.
A defined envelope creates a stable contract instead.
The EMR owns the clinical record and its export rules.
CCIS owns its import contract, validation, interpretation and analytical execution.
This makes the architecture more extensible.
9. CCIS: from clinical data to contextual intelligence
CCIS is designed around a different idea from conventional dashboards.
A dashboard typically displays measures selected by developers.
A contextual clinical intelligence system should be able to interpret structured clinical contexts, evaluate declared analytical definitions and connect findings to their relevant clinical pathways.
CCIS uses declarative, versioned artefacts rather than allowing arbitrary executable code to define every analytical operation.
Its architecture includes:
A CCIS standard and import contract.
Contextual clinical elements.
Pathways and typed decision nodes.
Analytics packages.
A versioned local artefact market.
A constrained deterministic execution engine.
Validation and compatibility checks.
Run records and provenance.
Cohort definitions and aggregation as planned capabilities.
9.1 Declarative analytics
An analytical definition describes what should be evaluated.
It is not simply a block of arbitrary code.
The CCIS engine interprets approved, constrained definitions using a whitelist of supported operations.
This approach is designed to improve:
Reproducibility.
Traceability.
Version control.
Validation.
Controlled execution.
Separation between analytical definitions and the runtime.
The engine is deliberately constrained rather than being an unrestricted programming environment.
9.2 Pathways and decision nodes
CCIS can represent pathways and typed decision processes.
A pathway can connect decision nodes and analytical outputs.
For example, a clinical pathway may examine whether required information is available, whether a declared condition is satisfied, or whether the record is indeterminate.
The distinction between a clinical pathway and a single score matters.
A pathway can describe a sequence of evaluations and outcomes rather than collapsing everything into one number.
The engine also preserves unknown and missing states. Unknown does not automatically become false, normal or zero.
This is essential in clinical analytics because the absence of a recorded measurement is not the same as a normal measurement.
9.3 Versioned analytical artefacts
CCIS uses an artefact market with independently versioned definitions.
The market includes identifiers, versions, checksums, validation information and references.
Published releases are immutable.
A run can therefore record which versions of the pathway, analytics, engine and input snapshot were used.
The purpose is to make analytical results reproducible and explainable.
An analytical result should not be an unexplained number. It should have a traceable relationship to its input, definition and execution context.
9.4 Deterministic execution
CCIS is intentionally local-first in its current prototype architecture.
Its 0.1.0 implementation consists of a static browser application and a Node.js CLI, without a server or database.
The constrained engine and its declared artefacts are designed for deterministic execution.
The current prototype can import the EMR demo envelope and generate a run record.
The run record preserves the input snapshot and records relevant versions, parameters, validation messages, provenance and limitations.
This is a foundation for reproducible clinical analytics, not a claim of clinical validation.
10. The next major capability: a Cohort Context Graph
The individual patient timeline answers:
What happened to this patient, and how did the patient's clinical condition evolve?
The cohort Context Graph is intended to answer a different question:
How are clinical contexts, conditions, observations, events, pathways and aggregate trajectories related across a selected population?
This is a planned CCIS capability, not something that should be confused with the existing decision graph.
The distinction is important.
A decision graph represents a pathway or decision process.
A Cohort Context Graph represents relationships within aggregated cohort clinical data.
It should not simply reuse decision nodes as patient or cohort events.
10.1 What the Cohort Context Graph represents
The planned graph contains several types of nodes:
| Node type | Meaning |
|---|---|
| Cohort | The selected cohort definition and version |
| Condition context | A condition or clinical context |
| Observation concept | A measured concept such as HbA1c or eGFR |
| Event category | An available category of clinical event |
| Pathway | A referenced pathway and exact version |
| Analytic output | An aggregate result from an analytics package |
| Time window | The period used for aggregation |
Relationships between these nodes can express:
A cohort includes a clinical context.
A context is represented by an observation concept.
A context has a documented event category.
A context or cohort uses a pathway.
A cohort or context is summarized by an analytical output.
An observation concept has data in a particular time window.
Two concepts co-occur within a declared cohort slice or time window.
This is not simply a graph visualization.
It is a derived analytical projection of the cohort's clinical structure.
10.2 Example: diabetes and CKD cohort
Imagine a synthetic cohort containing:
Diabetes-only subjects.
CKD-only subjects.
Subjects with both diabetes and CKD.
Subjects with diabetes, CKD and hypertension.
The Context Graph can connect:
COHORT
|
+----------+----------+
| |
v v
Diabetes CKD
| |
v v
HbA1c eGFR
| |
+----------+----------+
|
v
Aggregate Trajectories
|
v
Analytic Outputs
|
v
Contextual ExplorationA user could select the combined diabetes + CKD context and explore how HbA1c and eGFR summaries change across time windows.
The user could inspect which observation concepts, pathway versions and analytical definitions contribute to a displayed relationship.
This creates a richer way to explore cohort information than viewing isolated dashboard measures.
10.3 Cohort trajectories
A cohort trajectory is different from an individual patient's trajectory.
An individual trajectory follows a patient's measurements and clinical events over time.
A cohort trajectory summarizes patterns across a population.
For example, a cohort explorer might show aggregate HbA1c or eGFR summaries by quarter or year, subject to the cohort definition, data coverage and the declared analytical method.
The graph and timeline can be connected.
Selecting a clinical context can filter the aggregate timeline. Changing the time window can update the displayed aggregate summaries and graph relationships.
The user can move from a high-level population view to a more focused contextual view without confusing aggregate results with individual patient records.
10.4 Relationships are not automatically causal
An important safety principle is that co-occurrence is not causation.
If two clinical concepts appear together in a cohort or time window, the system must not automatically claim that one caused the other.
Every relationship should have a defined type, provenance and time scope.
The graph should distinguish an explicitly declared relationship from a computed co-occurrence.
This is essential if contextual analytics are to remain explainable and scientifically responsible.
11. Why the Context Graph should be derived, not another system of record
The planned CCIS Context Graph is intentionally a derived projection.
It should be generated from:
Cohort definitions.
Imported cohort facts.
Existing CCIS artefacts.
Declared analytical outputs.
Provenance and time-window information.
It does not need a separate graph database or a second clinical data store.
Its role is to organize and expose relationships that already exist or can be derived deterministically.
This is an important extension of the same architectural philosophy used in the EMR.
The EMR does not need a separate database schema for every clinical specialty.
CCIS does not need to create a separate persistent graph database for every cohort.
Both applications can use structured, governed definitions and derived views to interpret the underlying data.
The planned Context Graph also needs to preserve aggregate-only safeguards:
No individual patient nodes.
No patient identifiers in graph payloads.
Small-cell suppression before aggregate counts are displayed.
Explicit missingness and unknown states.
Provenance for nodes, edges and analytical outputs.
Clear distinction between association and causation.
The initial implementation is intended for synthetic cohorts and can use a simpler context relationship map if a sophisticated graph renderer would add unnecessary complexity.
12. The full architecture: from clinical knowledge creation to cohort intelligence
The deeper value of Vibe Rounds emerges when the two applications are understood as complementary layers.
CLINICAL KNOWLEDGE
|
LLM-assisted authoring
|
Human review/governance
|
Versioned clinical definitions
|
v
VIBE ROUNDS EMR ENHANCER
|
Patient / Clinical Case
|
+-------------+-------------+
| | |
Element Pathways Observations
Sets and Events
| | |
+-------------+-------------+
|
Patient-level Context
|
Longitudinal Record
|
v
CONTEXT ENVELOPE
Controlled and Audited
|
v
VIBE ROUNDS CCIS
|
Import and Validation
|
+-----------+-----------+
| | |
Cohorts Pathways Analytics
| | |
+-----------+-----------+
|
Deterministic Engine
|
v
Cohort Context Graph
|
Aggregate Trajectories
|
v
Contextual Clinical AnalyticsThe architecture creates a chain of meaning.
Clinical knowledge is defined independently of specialty-specific physical database schemas.
The EMR interprets that knowledge and captures patient-level clinical facts.
Cases connect multiple clinical contexts and pathways.
Observations and events create longitudinal patient information.
A controlled context envelope exposes an approved subset of that information.
CCIS imports and validates the data.
Declarative analytical definitions interpret the available context.
Cohort-level projections connect conditions, observations, pathways, events and aggregate trajectories.
Results retain their relationship to the input snapshot, analytical definitions and versions.
This is the larger architecture behind the two projects.
13. What becomes easier because of this separation?
The value of this architecture is not limited to a single feature.
It changes the amount of repeated engineering needed to extend the system.
13.1 Adding specialties
A new specialty can be introduced by defining reusable clinical elements and organizing them into element sets and pathways.
The underlying persistence architecture does not need to become a new specialty-specific database.
13.2 Combining conditions
Multiple clinical contexts can be applied to one case.
The system can present a combined view while retaining one source record for each clinical fact.
13.3 Building longitudinal views
Repeated observations, timestamps, events and provenance provide the foundation for patient-level trajectories.
The same source data can be presented through different contextual views.
13.4 Creating new forms
An LLM can assist in generating structured definitions, reducing the amount of hand-built form implementation required.
The runtime interprets the definitions rather than requiring a completely new screen for every specialty.
13.5 Reusing clinical knowledge
Versioned element sets and pathways can be reused across cases.
Changes can be governed through explicit versions and case-level applications.
13.6 Expanding analytics
The CCIS analytical layer can reuse contextual definitions and pathway references to create new analytical artefacts.
New analytics can be added as versioned declarative packages rather than hard-coded dashboard features.
13.7 Building cohort intelligence
A cohort-level Context Graph can organize relationships between clinical contexts, concepts, events, pathways and analytical outputs.
It can reveal patterns and longitudinal population summaries that would be harder to express through isolated reports.
14. The architectural advantage is a relocation of complexity
It is important to be precise about what has been achieved.
The architecture does not eliminate complexity.
It relocates complexity from repeated specialty-specific database and application implementation into reusable infrastructure.
That infrastructure must correctly handle:
Clinical definitions.
Typed data validation.
Versioning and publication.
Case-level application and provenance.
Observation lifecycle and correction.
Pathway composition.
Context interpretation.
Controlled export and import.
Terminology and semantic mappings.
Analytical validation.
Missingness and uncertainty.
Cohort aggregation and privacy safeguards.
This is a more reusable place to concentrate engineering effort.
The challenge is to make the generic runtime sufficiently robust that new clinical contexts can be added without introducing new hidden assumptions or special-case code.
The real proof will come from demonstrating that unrelated specialties, multiple conditions and longitudinal records can all use the same underlying architecture.
15. What must still be proven
The architectural direction is promising, but a prototype is not a production clinical system.
The current repositories explicitly retain synthetic-data and non-clinical-use boundaries.
The EMR has implemented important foundations, including cases, versioned element sets, observations, pathways and controlled context export. Further work remains for the advanced longitudinal patient experience, broader clinical modelling and production readiness.
CCIS 0.1.0 demonstrates a constrained analytical runtime and an EMR-envelope import path using synthetic examples. It does not yet establish a clinically validated cohort analytics platform.
The planned Cohort Context Graph and full cohort-data import capability must be implemented and tested before their intended population-level use can be claimed.
The following are important proof points:
Specialty independence: Can entirely different specialties be represented without specialty-specific physical database changes?
Multi-context correctness: Can one case apply several element sets and pathways without field collisions or duplicated facts?
Version safety: Can historical observations always be interpreted against their original definitions?
Longitudinal integrity: Can the system preserve effective time, recorded time, corrections and source provenance?
Clinical usability: Can clinicians work naturally across base, disease-specific and combined contexts?
Semantic consistency: Can terminology bindings and mappings be validated and governed?
Integration integrity: Can the EMR and CCIS exchange contextual information through stable, auditable contracts?
Analytical reproducibility: Can an analytical result be recreated from the same input snapshot and artefact versions?
Cohort privacy: Can population-level exploration preserve aggregation and small-cell protections?
Clinical safety: Can the system undergo appropriate independent clinical, privacy, security and regulatory assessment before real clinical deployment?
These are not minor implementation details. They are the conditions under which the architectural promise can become a reliable product.
Conclusion: From recording clinical data to understanding clinical context
The most important idea behind Vibe Rounds is that clinical information should not be trapped inside static forms or tightly coupled to specialty-specific physical database structures.
A clinical form is only one presentation of clinical knowledge.
A clinical case is the patient-level object that connects observations, events, notes and applied contexts.
A pathway provides a reusable, versioned structure for organizing clinical workflows.
A trajectory represents how clinical information evolves over time.
A context envelope creates a controlled boundary through which patient-level information can be made available to a separate intelligence application.
CCIS then provides the foundation for interpreting that information through governed, deterministic analytical definitions and, ultimately, cohort-level contextual exploration.
The architecture therefore moves through several levels:
Dynamic forms → reusable clinical knowledge → contextual documentation → versioned pathways → longitudinal patient trajectories → controlled clinical data exchange → contextual cohort analytics.
This is the deeper opportunity.
Instead of building a separate application and database model for every specialty, the system aims to provide one reusable clinical information foundation that can interpret many different clinical contexts.
Instead of treating analytics as a collection of isolated dashboard calculations, CCIS aims to connect clinical contexts, pathways, observations and aggregate trajectories into a coherent analytical model.
And instead of allowing an AI model to become the clinical system itself, AI can help create and organize the structured knowledge that governed software interprets.
The ambition is not simply a more flexible EMR.
It is a different way of organizing clinical information: a knowledge-driven, context-aware clinical architecture in which patient records, clinical pathways, longitudinal trajectories and cohort intelligence are connected without forcing them into one tightly coupled system.
That is the architectural foundation of Vibe Rounds.
Project architecture and implementation references
The following repositories contain the implementation, contracts and roadmap behind the ideas described in this article.
Vibe Rounds EMR Enhancer
Vibe Rounds CCIS
Implementation status note: The repositories describe evolving prototypes. The Cohort Context Graph, advanced cohort ingestion and advanced longitudinal patient explorer are roadmap capabilities. Both projects currently carry synthetic-data and not-for-clinical-use restrictions. The architecture described here is the intended direction, not a claim that every capability is already implemented or clinically validated.