Exemple #1
0
        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))));
        }
Exemple #2
0
        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))));
        }
Exemple #3
0
        private static string TranslateRadiation(DiagnosedRadiation state)
        {
            var endocrineTreatmentState = "";

            if (state == DiagnosedRadiation.R1)
            {
                endocrineTreatmentState += "R1 Whole breast radiation may be added to lumpectomy.";
            }
            else if (state == DiagnosedRadiation.R2)
            {
                endocrineTreatmentState += "R2 Radiation to whole breast and lymph nodes if involved; follows chemotherapy if provided.";
            }
            else if (state == DiagnosedRadiation.R3)
            {
                endocrineTreatmentState += "R3 Radiation to chest wall and lymph nodes.";
            }
            else if (state == DiagnosedRadiation.R4)
            {
                endocrineTreatmentState += "R4 Selective radiation to bone or brain metastases.";
            }

            return(endocrineTreatmentState);
        }