Skip to content

User Guide

Welcome to the CLIFpy User Guide. CLIFpy makes working with CLIF (Common Longitudinal ICU data Format) data straightforward and efficient for researchers, data scientists, and clinicians analyzing ICU outcomes and building predictive models.

Getting Started

Guide Description
Installation Install CLIFpy and set up your environment
Quickstart Learn core workflows: loading data with ClifOrchestrator, configuration, validation, and key features

Core Features

Guide Description
Data Validation Understand how CLIFpy validates data against CLIF schemas
Outlier Handling Detect and remove physiologically implausible values with configurable ranges
Encounter Stitching Link related hospital encounters to create continuous patient care timelines
Wide Dataset Creation Create comprehensive time-series datasets by joining multiple CLIF tables with automatic pivoting
Working with Timezones Best practices for handling timezone-aware datetime data

Advanced Features

Guide Description
Medication Unit Conversion Convert continuous medication doses to standardized units
SOFA Score Computation Compute Sequential Organ Failure Assessment scores for sepsis identification
Respiratory Support Waterfall Visualize patient trajectories and treatment timelines with customizable plots
Comorbidity Index Computation Calculate Charlson and Elixhauser comorbidity indices from diagnosis data

API Reference

Complete API reference: API Documentation

CLIF Tables Reference

This section provides a reference for all CLIF tables available in CLIFpy. For detailed field definitions, see the CLIF Data Dictionary.

Table Data Dictionary API Reference Orchestrator Methods Table Methods
patient 📖 ⚙️ - -
hospitalization 📖 ⚙️ - -
adt 📖 ⚙️ - -
labs 📖 ⚙️ - -
vitals 📖 ⚙️ - -
medication_admin_continuous 📖 ⚙️ convert_dose_units_for_continuous_meds() -
medication_admin_intermittent 📖 ⚙️ convert_dose_units_for_intermittent_meds() -
patient_assessments 📖 ⚙️ - -
respiratory_support 📖 ⚙️ - -
position 📖 ⚙️ - -
hospital_diagnosis 📖 ⚙️ - -
microbiology_culture 📖 ⚙️ - -
crrt_therapy 📖 ⚙️ - -
patient_procedures 📖 ⚙️ - -
microbiology_susceptibility 📖 ⚙️ - -
ecmo_mcs 📖 ⚙️ - -
microbiology_nonculture 📖 ⚙️ - -
code_status 📖 ⚙️ - -

Legend:

  • 📖 Links to CLIF Data Dictionary for field specifications

  • ⚙️ Links to CLIFpy API Reference for class documentation

  • Orchestrator Methods: Table-specific methods callable from ClifOrchestrator instance

  • Table Methods: Table-specific class methods