Build the inpatient cohort × months-since-index returns matrix — the foundation of every readmission analysis in modern health systems.