Overview

2 EHRs and clinical workflows

This chapter reframes the Electronic Health Record as an active workflow engine rather than a passive digital filing cabinet. It explains how modern care is executed through consistent, machine-readable clinical workflows that the EHR coordinates across clinicians, staff, and connected systems. Spurred by federal policy—especially HITECH, Meaningful Use, and the CEHRT program—EHRs have become the predominant system of record and orchestration, guiding and constraining tasks like ordering tests, documenting care, routing work, and capturing data. A routine lab order exemplifies this shift: beyond storing results, the EHR drives the end-to-end process, aligns responsibilities, and records the details needed for safe, reliable care.

The chapter introduces the Actors–State–Data model to show how EHRs turn clinical steps into machine-readable “clinical events.” By identifying who is responsible (actors), where the task is in its lifecycle (state), and what information is required or produced (data), the system enforces logic akin to finite state machines, complete with timestamps, audit trails, and guarded transitions (for example, from draft to active to completed). This orchestration spans people and “system actors” (algorithms, external services), extends to patient portals and document exchange, and ensures results and actions are linked back to the patient. It also surfaces a persistent challenge: the gap between clinical truth and transactional truth, where user-interface constraints and click fatigue can distort the recorded “why” behind actions, even when standardized codes such as ICD-10 are used—highlighting the ongoing difficulty of semantic interoperability.

Policy shaped the technical baseline and everyday use: Stage 1 prioritized adoption and structured electronic capture (e.g., CPOE and key clinical data), while Stage 2 raised thresholds and pushed data movement across organizations and to patients (e-prescribing, lab interfaces, summaries of care, view/download/transmit access), turning EHRs into networked platforms. Despite a shared certification baseline, implementations vary widely based on incentives and local strategy—from genuine modernization with redesigned workflows and governance to minimum viable compliance that met measures but sometimes introduced burdens like rushed documentation, clinician burnout, and vendor lock. Developer takeaways include modeling every workflow through actors, state, and data; expecting concurrent, interacting state machines; and designing for interoperability that preserves clinical meaning. Ultimately, the EHR’s value lies in reliably recording who did what, for whom, why, where, and when—transforming clinical work into a queryable, analysable, and exchangeable sequence of events.

Comparing the passive database model to the active workflow engine model.
Sequence diagram of an EHR-driven lab ordering workflow.
The integration of Actors, State, and Data forming a Clinical Event.
The policy progression from internal data capture to networked data movement.
The divergence between complex clinical reality and structured system data.
State transition diagram for a CBC lab order.
The spectrum of EHR implementation strategies based on organizational incentives.

Summary

  • Modern EHRs function as active workflow engines that orchestrate clinical care rather than serving as passive digital filing cabinets.
  • Clinical activities are transformed into machine-readable data events by coordinating three primary elements: actors, states, and data.
  • Federal policies like HITECH and Meaningful Use defined the technical baseline for EHRs, ensuring they can capture and exchange standardized data.
  • Effective health IT development requires bridging the gap between "clinical truth" (the patient's story) and "transactional truth" (the structured data required by the system).
  • Using state machines to manage clinical workflows ensures data integrity and prevents the skip-coding or missing steps that lead to clinical errors.

FAQ

What does it mean to treat an EHR as a workflow engine rather than a digital filing cabinet?The EHR actively orchestrates care by routing tasks to the right actors, tracking state changes, and capturing structured data at every step—rather than just storing documents. It coordinates real-time clinical workflows across people and systems.
How does the “Actors, State, and Data” model define a clinical event?A clinical event occurs where three dimensions intersect: the actor (person or system doing something), the state (where the order/encounter is in its lifecycle), and the data (what must be captured or displayed). This makes the event machine-readable and actionable.
Can you summarize a typical EHR-driven CBC lab order workflow?The clinician orders and signs a CBC in the EHR; the system transmits the order to the LIS, prints barcode labels, and places the task on a worklist. A specimen is collected and analyzed; results return to the EHR, linked to the original order, for clinician review and follow-up.
What role do Finite State Machines (FSMs) play in managing clinical orders?Orders follow defined states (for example: Draft → Active → Transmitted → In Process → Completed). FSMs enforce valid transitions, capture timestamps and actors, prevent skipping steps, and maintain a full audit trail. Multiple state machines can run concurrently across a patient’s care.
How did HITECH, Meaningful Use, and CEHRT shape modern EHR capabilities?These policies accelerated adoption and established a shared baseline for certified EHRs: CPOE, structured data capture, auditability, and interoperability. CEHRT defined the capabilities vendors must support, positioning EHRs as workflow engines within clinical settings.
What shifted from Meaningful Use Stage 1 to Stage 2?Stage 1 emphasized EHR adoption and electronic data capture. Stage 2 raised thresholds and pushed data movement: higher CPOE/eRx use, electronic summary-of-care exchange, lab results as structured data, and patient portal VDT access. Meaningful Use later rebranded to Promoting Interoperability, but its technical baseline remains.
What’s the difference between “clinical truth” and “transactional truth,” and why does it matter?Clinical truth is the patient’s real story; transactional truth is what gets recorded to satisfy system workflows. Click fatigue and UI constraints can cause mismatches, weakening semantic interoperability, decision support, and analytics.
How is the “why” of an order captured, and what are the challenges?The “why” is recorded as a reason or diagnosis (often via ICD-10 codes or free text) linked to the event. It’s hard to capture accurately due to UI burden and coding shortcuts, which can trade clinical precision for administrative convenience.
Why do EHR implementations vary so widely across organizations?Local incentives, resources, and strategy shape configuration. Some pursue strategic modernization; others aim for minimal viable compliance. The same certified EHR can function as a robust workflow engine in one site and as an electronic wrapper around paper processes in another.
What practical takeaways should developers apply when designing EHR-integrated workflows?Use the Actors–State–Data lens; design stateful, auditable workflows; plan for interoperability; and expect gaps between ideal and real-world workflows. Recognize that incentives and local strategy will determine how features are used in practice.

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Healthcare IT ebook for free
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Healthcare IT ebook for free