public override void PersistFullList(HraModelChangedEventArgs e) { RiskFactors.PersistFullObject(e, OwningPatient.unitnum, OwningPatient.apptid); int proband_age; if (int.TryParse(OwningPatient.age, out proband_age)) { int lifetime_age = proband_age; foreach (GailRiskByAge o in this) { if (o.age > lifetime_age) { lifetime_age = o.age; } } foreach (GailRiskByAge o in this) { if (o.age - proband_age == 5) { o.description = "Five Year"; } if (lifetime_age == o.age) { o.description = "Lifetime"; } o.PersistFullObject(e, OwningPatient.unitnum, OwningPatient.apptid); } } }