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()); } }
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()); } }