protected string ReplaceRepresentativeSectionsAgeRestricted(string text, YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder, YellowstonePathology.Business.Test.AccessionOrder accessionOrder) { string result = null; if (accessionOrder.PBirthdate.HasValue == true && YellowstonePathology.Business.Helper.PatientHelper.GetAge(accessionOrder.PBirthdate.Value) >= 13) { result = specimenOrder.GetRepresentativeSectionsSubmittedIn(); } else { result = "No sections are submitted for microscopic examination"; } result = text.Replace("[representativesectionsagerestricted]", result); return result; }
protected string ReplaceRepresentativeSections(string text, YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder) { return text.Replace("[representativesections]", specimenOrder.GetRepresentativeSectionsSubmittedIn()); }