How ap24110011714/infotact-internship works
CareFlow turns chronological EHR events into operational pathway analytics: events are normalized, staged, mined for flow, waits, variants, and protocol conformance, then presented in dashboards. A separate patient-level sepsis workflow cleans a dataset and produces clinical and ward summaries for the dashboard. The README documents the major capabilities; sampled source confirms key transformations, mining outputs, and dashboard inputs. Some unsampled modules and dashboard wiring are represented only where the README documents them.
Main entry points: run_pipeline.py Pipeline runner · processed Mining artifacts · ehr_events_clean.csv Clean event log · clean_event_log.py Event normalization
Components 21
Event preparation
- Pipeline runner
run_pipeline.py - EHR event simulation
generate_event_log.py - Raw EHR events
data/raw/ehr_events.csv - Event normalization
dbt_transform/clean_event_log.py - Warehouse staging
mining/bigquery_loader.py - Staging database
data/processed - Clean event log
data/processed/ehr_events_clean.csv
Pathway analytics
- DFG discovery
mining/discover.py - Petri net discovery
mining/petri_net.py - Wait analysis
mining/bottlenecks.py - Variant mining
mining/variants.py - Protocol conformance
mining/conformance.py - Power BI export
mining/export_powerbi.py - Mining artifacts
data/processed
Clinical analytics
- Patient dataset
Sepsis_Dataset_5000.csv - Patient data cleaning
data_cleaning.py - Sepsis and ward summaries
clinical_analysis.py
Operations views
- Interactive dashboard
dashboard/app.py - Process dashboard builder
build_process_dashboard.py - Standalone SVG prototype
careflow_prototype.html
Other components
- Analyst
Connections 29
- Analyst → Pipeline runner: runs pipeline
README.md - Pipeline runner → EHR event simulation: runs generator
run_pipeline.py - EHR event simulation → Raw EHR events: generates events
README.md - Pipeline runner → Event normalization: runs normalization
run_pipeline.py - Event normalization → Raw EHR events: reads events
dbt_transform/clean_event_log.py - Event normalization → Clean event log: writes clean log
dbt_transform/clean_event_log.py - Pipeline runner → Warehouse staging: runs staging
run_pipeline.py - Warehouse staging → Clean event log: loads clean log
mining/bigquery_loader.py - Warehouse staging → Staging database: stages records
mining/bigquery_loader.py - Pipeline runner → DFG discovery: runs discovery
run_pipeline.py - Pipeline runner → Petri net discovery: runs discovery
run_pipeline.py - Pipeline runner → Wait analysis: runs analysis
run_pipeline.py - Pipeline runner → Variant mining: runs mining
run_pipeline.py - Pipeline runner → Protocol conformance: runs checking
run_pipeline.py - DFG discovery → Clean event log: reads log
mining/discover.py - DFG discovery → Mining artifacts: exports DFG
mining/discover.py - Wait analysis → Mining artifacts: exports waits
README.md - Variant mining → Mining artifacts: exports variants
README.md - Protocol conformance → Clean event log: reads log
mining/conformance.py - Protocol conformance → Mining artifacts: exports scores
mining/conformance.py - Analyst → Interactive dashboard: opens dashboard
README.md - Interactive dashboard → Mining artifacts: reads analytics
dashboard/app.py - Analyst → Process dashboard builder: opens dashboard
README.md - Process dashboard builder → Mining artifacts: uses mining results
README.md - Analyst → Standalone SVG prototype: opens prototype
README.md - Analyst → Patient data cleaning: runs analysis
README.md - Patient dataset → Patient data cleaning: supplies records
- Patient data cleaning → Sepsis and ward summaries: cleans then analyzes
main.py - Sepsis and ward summaries → Interactive dashboard: supplies summaries
README.md