Your Patient Journey Data Template

Universal process mining template
Your Patient Journey Data Template

Your Patient Journey Data Template

Universal process mining template

This is our generic process mining data template for Patient Journey. Use our system-specific templates for more specific guidance.

Select a specific system
  • Comprehensive list of essential clinical and administrative data points
  • Flexible structure designed to work with any electronic health record system
  • Clear mapping of key patient milestones from admission to discharge
New to event logs? Learn how to create a process mining event log.

Patient Journey Attributes

This section details the recommended data fields to include in your event log, which are essential for conducting a comprehensive analysis of patient flow.
5 Required 6 Recommended 4 Optional
Name Description
Activity Name
ActivityName
The specific clinical or administrative task performed during the episode.
Description

This attribute defines the steps taken during the patient journey, ranging from administrative tasks like registration to clinical interventions like medication administration or surgery. It provides the necessary granularity to visualize the process map.

Analysts use this field to identify bottlenecks, loops, and deviations from the ideal clinical pathway. Standardizing these names across different departments is often necessary to ensure a clean and readable process discovery view.

Why it matters

It defines the nodes in the process map and is required to understand what happened.

Where to get

Derived from transaction logs, audit trails, or order status history tables.

Examples
Triage AssessmentOrder Lab TestAdminister AntibioticsDischarge Patient
Event Timestamp
EventTimestamp
The specific date and time when the activity started or occurred.
Description

This timestamp marks the chronological point of the activity, enabling the sequencing of events within the patient episode. High precision (down to the second or minute) is preferred to accurately capture rapid workflows in emergency or critical care settings.

It forms the basis for all time-based calculations, including throughput times between stages, total cycle time, and waiting times. Accurate timestamping is critical for identifying delays in medication administration or diagnostic results.

Why it matters

Required to order events chronologically and calculate duration metrics.

Where to get

Found in transaction logs, often labeled as creation date, execution time, or event time.

Examples
2023-10-15T08:30:00Z2023-10-15T09:15:45Z2023-10-16T14:20:00Z
Last Data Update
LastDataUpdate
The timestamp indicating when the record was last extracted or refreshed.
Description

This metadata field tracks the freshness of the data used in the analysis. It helps ensure that dashboards reflect the most current state of patient care and aids in troubleshooting data pipeline latency.

While not used directly in the process flow visualization, it is critical for data governance and for validating that the process mining model is running on up-to-date information.

Why it matters

Ensures data freshness and assists in incremental data loading strategies.

Where to get

Generated by the ETL process or available in the source system's record modification timestamp.

Examples
2023-11-01T00:00:00Z2023-11-01T12:00:00Z
Patient Episode ID
PatientEpisodeId
The unique identifier representing a single patient visit or encounter.
Description

This attribute serves as the central case key for the process mining analysis, linking all distinct activities within a single care journey together. It distinguishes one hospital admission, emergency visit, or outpatient consultation from another, even for the same patient.

In analysis, this identifier allows for the reconstruction of the end-to-end flow from registration to discharge. It is essential for calculating case-level metrics such as Total Length of Stay and for identifying unique process variants.

Why it matters

It is the fundamental Case ID required to group events into a process instance.

Where to get

Typically found in the encounter, visit, or admission header tables of the EHR.

Examples
ENC-2023-88492V99283410029384EP-2023-XJ9
Source System
SourceSystem
The name of the information system where the record originated.
Description

In complex healthcare environments, data often flows from multiple systems such as the core EHR, Laboratory Information Systems (LIS), and Radiology Information Systems (RIS). This attribute identifies the origin of each data point.

It is useful for technical validation and for filtering the process map to specific system interactions. It also helps in identifying data quality issues that may be isolated to a specific integration or software module.

Why it matters

Provides lineage and context, especially in multi-system hospital environments.

Where to get

Hardcoded during extraction or mapped from system metadata fields.

Examples
EpicCernerLabSys V2Radiology_DB
Department Name
DepartmentName
The hospital unit or functional area where the activity took place.
Description

This attribute localizes the activity within the hospital structure, such as the Emergency Room, ICU, or Surgery Department. It is fundamental for analyzing inter-departmental flows and handovers.

Using this field, analysts can visualize the physical movement of patients and identify bottlenecks at specific transfer points. It also supports resource planning by showing load distribution across different units.

Why it matters

Essential for analyzing patient flow between units and transfer efficiency.

Where to get

Activity log location fields or unit master tables.

Examples
Emergency DepartmentCardiologyIntensive Care UnitPharmacy
Encounter Type
EncounterType
Classification of the patient visit (e.g., Inpatient, Outpatient, Emergency).
Description

This attribute categorizes the nature of the visit, which heavily influences the expected process flow. For example, an emergency visit has a radically different ideal pathway than a scheduled outpatient consultation.

Segmenting analysis by this field allows for fair comparisons and more accurate benchmarking. It ensures that KPIs like Length of Stay are evaluated within the correct context.

Why it matters

Critical for segmenting the data, as different types follow different process logic.

Where to get

Encounter or admission header tables.

Examples
InpatientEmergencyOutpatientTelehealth
Event End Time
EventEndTime
The timestamp when the specific activity was completed.
Description

While the start timestamp captures when an action began, the end timestamp allows for the calculation of the active processing time (service time) for a specific step. This is distinct from the waiting time between steps.

This attribute is particularly useful for analyzing the efficiency of procedures, surgeries, or consultations. It helps differentiate between the time a patient waits for a doctor and the time the doctor actually spends with the patient.

Why it matters

Enables calculation of active service time versus waiting time.

Where to get

Transaction logs for activities that have duration (e.g., surgery, scans).

Examples
2023-10-15T10:00:00Z2023-10-15T11:45:00Z
Patient ID
PatientIdentifier
A unique identifier for the patient that persists across multiple episodes.
Description

Unlike the Episode ID, this attribute remains constant for the same individual across different visits. It enables cross-case analysis, such as identifying frequent flyers or tracking readmission rates within 30 days.

By grouping episodes by this identifier, analysts can view the long-term patient history and analyze care patterns that extend beyond a single hospitalization. It is essential for population health metrics and longitudinal care analysis.

Why it matters

Crucial for identifying readmissions and linking multiple visits to one individual.

Where to get

Patient master index or demographic tables (e.g., MRN).

Examples
MRN-55920PAT-009221H99283
Primary Diagnosis Code
PrimaryDiagnosisCode
The code representing the main medical condition (e.g., ICD-10).
Description

This attribute captures the clinical reason for the encounter using standard coding systems like ICD-10 or SNOMED. It enables the analysis of clinical pathways specific to certain conditions, such as Sepsis, Stroke, or Heart Failure.

By filtering on this attribute, analysts can check for conformance to condition-specific protocols and identifying variations in care for patients with the same diagnosis.

Why it matters

Enables clinical pathway analysis and conformance checking against medical protocols.

Where to get

Diagnosis tables linked to the encounter, often termed 'Admitting Diagnosis' or 'Final Diagnosis'.

Examples
I10J18.9E11.9M54.5
Provider ID
ProviderIdentifier
Identifier or name of the healthcare professional performing the activity.
Description

This attribute tracks the specific resource—such as a doctor, nurse, or technician—responsible for the activity. It allows for the analysis of resource utilization, workload balancing, and variation in practice patterns among staff.

It is often used to identify training opportunities or to highlight best practices by comparing outcomes across different providers. Privacy considerations usually require this to be anonymized or hashed in general reporting.

Why it matters

Allows for resource utilization analysis and variation by staff member.

Where to get

Transaction logs, user ID fields, or staff master tables.

Examples
Dr. SmithRN JonesUSER_8829Tech_A
Discharge Disposition
DischargeDisposition
The status or destination of the patient upon leaving the facility.
Description

This attribute records the outcome of the episode, such as 'Discharged to Home', 'Transferred to SNF', or 'Left Against Medical Advice'. It is a key outcome metric for the patient journey.

It is used to analyze the efficiency of discharge planning and to correlate process variations with specific outcomes. For example, it helps identify if certain pathways lead to higher rates of transfer to other facilities.

Why it matters

Defines the outcome of the process and is critical for length of stay analysis.

Where to get

Discharge summary records or admission/discharge/transfer (ADT) messages.

Examples
HomeSkilled Nursing FacilityHome Health CareExpired
Medication Name
MedicationName
The specific name of the pharmaceutical administered or ordered.
Description

This attribute provides the specific detail for medication activities. While 'Administer Medication' is the generic activity, this attribute identifies what was given, such as 'Acetaminophen' or 'Vancomycin'.

It is crucial for analyzing specific treatment protocols, such as antibiotic timing for sepsis patients or pain management effectiveness. It allows for detailed drill-downs into medication administration delays.

Why it matters

Required for analyzing specific treatment protocols and medication timeliness KPIs.

Where to get

Medication Administration Record (MAR) or pharmacy order tables.

Examples
AmoxicillinInsulinNormal SalineMorphine
Order Category
OrderCategory
Classification of clinical orders (e.g., Lab, Radiology, Medication).
Description

This attribute groups the thousands of possible specific orders into manageable buckets. It allows for high-level analysis of diagnostic versus therapeutic activities within the patient journey.

Analysts use this to visualize the density of testing versus treatment and to identify heavy diagnostic phases that may contribute to length of stay extensions.

Why it matters

Helps group granular activities into meaningful phases (e.g., Diagnostic vs. Treatment).

Where to get

Order entry tables, often a lookup or type field associated with the order ID.

Examples
LaboratoryRadiologyConsultPharmacy
Triage Acuity Level
TriageAcuityLevel
The severity score assigned to the patient during initial assessment.
Description

This numerical or categorical value indicates how urgent the patient's condition was upon arrival, often using scales like ESI (Emergency Severity Index). It is a vital context for analyzing waiting times and prioritization.

Analyzing process flows based on acuity helps determining if high-risk patients are being fast-tracked correctly and if lower-acuity patients are experiencing disproportionate delays.

Why it matters

Contextualizes waiting times; high acuity should correlate with faster initial throughput.

Where to get

Triage assessment records or ED tracking boards.

Examples
1 - Resuscitation2 - Emergent3 - Urgent4 - Less Urgent
Required Recommended Optional

Patient Journey Activities

Use these key process steps and milestones to capture the essential movements of patients through your facility for accurate process discovery and bottleneck identification.
6 Recommended 8 Optional
Activity Description
Authorize Discharge
The timestamp when a physician signs the official order allowing the patient to leave. This marks the transition from clinical treatment to administrative departure processes.
Why it matters

Starts the clock on the final discharge processing efficiency analysis.

Where to get

Found in the order entry system as a specific discharge order type.

Capture

Extract the signing timestamp of the discharge order

Event type explicit
Complete Triage Assessment
Represents the completion of the initial nursing evaluation or acuity scoring. This step records the patient's vital signs and primary complaint to prioritize care urgency.
Why it matters

Critical for analyzing wait times between arrival and initial clinical attention.

Where to get

Derived from the finalization or signing timestamp of a triage form or initial nursing note.

Capture

Track the status change of a triage assessment document to completed

Event type explicit
Discharge Patient
The final administrative event closing the patient's encounter. This indicates the patient has physically left the facility and the bed is available.
Why it matters

The definitive end point for calculating total length of stay.

Where to get

Typically the final status update in the admission/discharge/transfer system.

Capture

Identify the final discharge event or status change to discharged

Event type explicit
Order Diagnostic Test
Occurs when a clinician formally requests a laboratory test or imaging study. This action triggers the diagnostic workflow and signals the need for resource allocation.
Why it matters

Marks the start of the diagnostic turnaround time interval.

Where to get

Found in the order entry system logs when a provider signs a new order.

Capture

Extract timestamp from order creation events

Event type explicit
Receive Diagnostic Results
The moment when test results are verified and made available in the patient record. This signals the availability of information necessary for decision-making.
Why it matters

Ends the diagnostic turnaround time calculation and triggers subsequent treatment decisions.

Where to get

Derived from status updates on the order object or the creation of a result record.

Capture

Detect status changes to completed or verified on diagnostic orders

Event type inferred
Register Patient
Marks the official entry of the patient into the facility or healthcare system. This activity creates the primary encounter record and assigns a unique visit identifier used to track the entire episode of care.
Why it matters

Establishes the anchor point for the episode start time and is essential for calculating the total length of stay.

Where to get

Typically found in the registration or admission module logs with a creation timestamp.

Capture

Identify the creation of a new patient encounter record

Event type explicit
Administer Medication
The specific event where medication is delivered to the patient. This is a repetitive activity that occurs throughout the patient's stay.
Why it matters

Crucial for analyzing medication timeliness and adherence to treatment protocols.

Where to get

Recorded in the medication administration record, often via barcode scanning.

Capture

Log entries from the electronic medication administration record

Event type explicit
Collect Specimen
Indicates the physical collection of biological samples required for laboratory analysis. This step bridges the gap between the electronic order and the laboratory processing.
Why it matters

Helps identify bottlenecks between the order placement and the actual start of lab processing.

Where to get

Usually recorded in laboratory or phlebotomy modules when a sample barcode is scanned.

Capture

Identify specimen collection timestamps linked to specific orders

Event type explicit
Complete Consultation
Indicates that a specialist has evaluated the patient and provided their recommendations. This often involves reviewing the patient's history and current status.
Why it matters

Important for tracking delays caused by inter-disciplinary coordination.

Where to get

Captured when a consult note is signed or a consult order is marked as completed.

Capture

Track the completion status of consultation orders or note types

Event type inferred
Document Diagnosis
Represents the clinician formally recording a confirmed medical condition in the patient's chart. This is distinct from a test result and involves clinical judgment.
Why it matters

Essential for accurate clinical pathway analysis and identifying case complexity.

Where to get

Captured when an entry is added to the problem list or diagnosis field of the encounter.

Capture

Track additions or updates to the diagnosis table associated with the visit

Event type explicit
Initiate Care Plan
Marks the assignment of a standardized treatment protocol or nursing care plan. This indicates that a course of action has been determined based on the diagnosis.
Why it matters

Allows for the analysis of pathway conformance and variation in treatment approaches.

Where to get

Found in care planning modules when a plan is activated or signed.

Capture

Identify the activation timestamp of a care plan or order set

Event type explicit
Perform Procedure
Records the execution of a surgical or major clinical intervention. This activity represents the core treatment delivery for surgical pathways.
Why it matters

A major milestone that consumes significant resources and impacts length of stay.

Where to get

Typically found in perioperative logs or procedure documentation with start/end times.

Capture

Extract the procedure start timestamp from clinical documentation

Event type explicit
Schedule Follow-up
The booking of a future appointment for post-discharge care. This ensures continuity of care and helps prevent readmissions.
Why it matters

A key indicator for measuring discharge planning effectiveness and care continuity.

Where to get

Found in the scheduling system, linked to the patient identifier.

Capture

Detect appointment creation events linked to the patient after discharge

Event type explicit
Transfer Patient
Indicates the physical movement of the patient between different units or departments. This reflects the flow of the patient through various levels of care.
Why it matters

Highlights internal logistics efficiency and identifies bottlenecks in bed turnover.

Where to get

Captured in the bed management or location history tables.

Capture

Identify changes in the patient's assigned location or unit

Event type explicit
Recommended Optional

Extraction Guides

How to get your data for process mining.

Extraction methods vary by system. For detailed instructions,

read our ETL guide

or select a specific process and system.