updated patient_outcomes script