Charts across clinical services
AMCDR can display measurement trends and activity counts for oncology, diabetes, renal care, neonatal care, and other services. Each graph needs a defined observation or count, the correct unit, and a clear patient or reporting scope.
The charts have labelled axes, measurement-time spacing, selectable readings, and observation tables. The first connected workspace is Birth Registration → Clinical intelligence, which supplies neonatal observations and activity counts. To add another specialty, connect its clinical data source, access rules, and workspace. The dashboard catalogue currently lets you view existing definitions; dashboard creation needs a separate integration.
Choose a graph for the question
| Graph | What it receives | Possible uses across services |
|---|---|---|
| Clinical time series | A title, display unit, and numeric observations with clinical measurement timestamps. | Blood glucose over time; a laboratory analyte during an oncology pathway; serial weight or vital signs. |
| Horizontal count bars | A title and labelled nonnegative counts on a common scale. | Outstanding reviews by team; appointments or pathway tasks by stage; completed activity by reporting period. |
Each time series represents one measure in one display unit. Measures with different units need separate graphs. The current bar component is a count display; percentages, rates, distributions, and survival curves need additional display and metric definitions. A workflow stage supplies operational context; it does not by itself select a clinical measurement for a graph.
Bind clinical data to the correct event
Clinical observations originate in governed openEHR compositions stored in the database. A clinical trend must bind the value, supported source unit, and measurement time from the same event and repeated occurrence in a current active composition version. Operational alerts, tasks, encounters, and registration counts come from the corresponding AMCDR services. Document the source of each graph so a workload count cannot be mistaken for a clinical observation.
The connected neonatal extraction service implements these rules: observed_at is the clinical measurement time, including a full date, clock time, and timezone; recorded_at separately describes composition-version recording time. Database insertion time, composition context time, and history origin do not fill a missing measurement timestamp. A measurement entered late remains positioned at the time it was taken.
The service retains composition and version identifiers, alias, value path, occurrence context, original unit, and measurement-time path. Repeated readings retain separate times. Clinical measurement time determines ordering and the latest fact; recording time breaks ties. The existing service supplies the latest 100 eligible readings per supported trend. New domain bindings must define and verify their own limits and selection policies.
The data service must validate source units and convert them to the chosen display unit before plotting. It also checks access and retains links to the source records. For a glucose chart, for example, configure the observation source and unit as well as the chart title.
Apply the pattern to another clinical service
Use these examples when connecting another specialty to its clinical data source.
| Service | Clinical trend binding | Operational count binding | Required domain context |
|---|---|---|---|
| Oncology | An agreed laboratory analyte or measured weight with explicit units and the corresponding clinical event time. | Outstanding multidisciplinary reviews, unresolved pathway tasks, or visits by stage. | Patient, treatment episode, approved template aliases, laboratory timing semantics, and selected pathway or cycle. |
| Diabetes | Blood glucose measurements in a consistent unit; HbA1c in a separate series with its own unit and definition. | Due reviews or completed follow-up tasks within a defined period. | Measurement method, encounter context, patient scope, observation source, and follow-up definition. |
| Renal care | A selected laboratory analyte or serial weight, each in a separate series. | Pending reviews or recorded session activity by reporting period. | Session or encounter context, analyte-specific units, clinical event time, and cohort definition. |
| Neonatal care — connected example | Pulse / heart rate and oxygen saturation from governed compositions. | Ward alerts and tasks; quarterly birth-registration activity. | The existing neonatal data contract and facility scope, described in the neonatal example guide. |
- Define the clinical question, patient or cohort scope, observation meaning, display unit, and measurement-time source.
- Bind governed templates and observation occurrences to a domain data contract; retain source identifiers and exclusion reasons.
- Apply tenant and patient-access checks in the service. Define period boundaries, denominators where relevant, and small-cohort suppression for aggregates.
- Connect the returned series and counts to a workspace. Link the relevant encounter or workflow context explicitly.
- Verify current versions, corrections, repeated and late-entered readings, units, missing times, empty states, permissions, and representative domain records before use.
Read the graphs
A single observation appears as a point; two or more form a line. The horizontal axis uses actual elapsed time, so a longer gap occupies more space. Connecting segments do not assert that a measurement exists between the points. Numeric axes fit the observed range with padding; they are display bounds, not clinical reference ranges or treatment thresholds.
Check the title, unit, reading count, and latest measurement summary. Select a point using pointer, touch, or keyboard to inspect its value and time. Open View observations for the table. The application displays times in the viewer’s local timezone; always check the date as well as the clock time.
Count bars print their values and compare lengths on the same scale. A zero count has no filled bar. An absent record set displays an empty state. The supplying service must distinguish an unavailable aggregate from an actual zero and withhold suppressed values before they reach the chart.
Missing data and exclusions
The connected clinical service excludes missing, ambiguous, malformed, or timezone-less measurement times from trends. It also excludes invalid numeric values and missing or unsupported units, with per-fact exclusion counts shown below the chart. A valid untimed fact can remain visible in the clinical-state summary with Measurement time unavailable. Missing clinical facts show Not recorded; they are never interpreted as normal. New domain services should preserve these same explicit distinctions.
The renderer also omits invalid numbers or unparseable timestamps that reach it. That display check does not replace clinical validation by the supplying service. No eligible observations produces No timestamped observations.
Examples across specialties
See the neonatal example guide for the connected workspace, or the adult oncology workflow example to explore workflow creation in another specialty.
Continue with Templates and Form Designer, Workflow Foundation Bindings, Workflow Orchestration and Enforcement, Clinical Metrics Registry, or the connected neonatal example.