extract_risk_stratification_info function

Internal function to extract risk stratification info from data.