public static string GetTreatmentDisplayName( DiagnosedSurgery s, DiagnosedRadiation r, DiagnosedChemeotherapy c, DiagnosedEndocrineTreatment e) { var surgery = ""; var radiation = ""; var chemeotherapy = ""; var endocrine = ""; if (s != DiagnosedSurgery.S4) { surgery += "Surgery"; } if (r != DiagnosedRadiation.R0) { radiation += "Radiation"; } if (c != DiagnosedChemeotherapy.C1) { chemeotherapy += "Chemeotherapy"; } if (e != DiagnosedEndocrineTreatment.E0) { endocrine += "EndocrineTreatment"; } var arr = new string[] { surgery, radiation, chemeotherapy, endocrine }; return(string.Join("+", arr.Where(x => !string.IsNullOrEmpty(x)))); }
public static string GetTreatmentDescription( DiagnosedSurgery s, DiagnosedRadiation r, DiagnosedChemeotherapy c, DiagnosedEndocrineTreatment e) { var surgery = ""; var radiation = ""; var chemeotherapy = ""; var endocrine = ""; if (s != DiagnosedSurgery.S4) { surgery += TranslateSurgery(s); } if (r != DiagnosedRadiation.R0) { radiation += TranslateRadiation(r); } if (c != DiagnosedChemeotherapy.C1) { chemeotherapy += TranslateChemeotherapy(c); } if (e != DiagnosedEndocrineTreatment.E0) { endocrine += TranslateEndocrineTreatment(e); } var arr = new string[] { surgery, radiation, chemeotherapy, endocrine }; return(string.Join(Environment.NewLine, arr.Where(x => !string.IsNullOrEmpty(x)))); }
private static string TranslateSurgery(DiagnosedSurgery state) { var surgeryState = ""; if (state == DiagnosedSurgery.S1) { surgeryState += "S1 Total mastectomy ± sentinel node biopsy ± reconstruction; or lumpectomy without lymph node surgery."; } else if (state == DiagnosedSurgery.S2) { surgeryState += "S2 Total mastectomy or lumpectomy + axillary staging ± breast reconstruction."; } else if (state == DiagnosedSurgery.S3) { surgeryState += "S3 If response to pre-operative therapy, total mastectomy or lumpectomy + axillary dissection ± delayed breast reconstruction."; } else if (state == DiagnosedSurgery.S4) { surgeryState += "S4 None"; } return(surgeryState); }