private string GetFormattedTreatmentRegimen()
        {
            if (TreatmentRegimen == null)
            {
                return("");
            }

            switch (TreatmentRegimen)
            {
            case Enums.TreatmentRegimen.Other:
                return(TreatmentRegimenOtherDescription == null
                        ? TreatmentRegimen.GetDisplayName()
                        : $"{TreatmentRegimen.GetDisplayName()} - {TreatmentRegimenOtherDescription}");

            default:
                return(TreatmentRegimen.GetDisplayName());
            }
        }
예제 #2
0
        private string GetFormattedTreatmentRegimen()
        {
            if (TreatmentRegimen == null)
            {
                return("");
            }

            switch (TreatmentRegimen)
            {
            case Enums.TreatmentRegimen.MdrTreatment:
                return(MDRTreatmentStartDate == null
                        ? TreatmentRegimen.GetDisplayName()
                        : $"{TreatmentRegimen.GetDisplayName()} - {MDRTreatmentStartDate.ConvertToString()}");

            case Enums.TreatmentRegimen.Other:
                return(TreatmentRegimenOtherDescription == null
                        ? TreatmentRegimen.GetDisplayName()
                        : $"{TreatmentRegimen.GetDisplayName()} - {TreatmentRegimenOtherDescription}");

            default:
                return(TreatmentRegimen.GetDisplayName());
            }
        }