Ejemplo n.º 1
0
 public SocialRiskFactors()
 {
     RiskFactorHomelessness = new RiskFactorDetails(RiskFactorType.Homelessness);
     RiskFactorDrugs        = new RiskFactorDetails(RiskFactorType.Drugs);
     RiskFactorImprisonment = new RiskFactorDetails(RiskFactorType.Imprisonment);
     RiskFactorSmoking      = new RiskFactorDetails(RiskFactorType.Smoking);
 }
        private static string CreateTimePeriodsString(RiskFactorDetails riskFactor)
        {
            var timeStrings = new List <string>();

            if (riskFactor.IsCurrent == true)
            {
                timeStrings.Add("current");
            }
            if (riskFactor.InPastFiveYears == true)
            {
                timeStrings.Add("less than 5 years ago");
            }
            if (riskFactor.MoreThanFiveYearsAgo == true)
            {
                timeStrings.Add("more than 5 years ago");
            }
            return(string.Join(", ", timeStrings));
        }