//attname and attvalue generally passed in from a reader public virtual void SetHealthBenefit1Properties(string attName, string attValue) { if (Demographics == null) { Demographics = new Demog1(); } Demographics.SetDemog1Properties(attName, attValue); switch (attName) { case cOutputCost: this.OutputCost = CalculatorHelpers.ConvertStringToDouble(attValue); break; case cBenefitAdjustment: this.BenefitAdjustment = CalculatorHelpers.ConvertStringToDouble(attValue); break; case cAdjustedBenefit: this.AdjustedBenefit = CalculatorHelpers.ConvertStringToDouble(attValue); break; case cOutputEffect1Name: this.OutputEffect1Name = attValue; break; case cOutputEffect1Unit: this.OutputEffect1Unit = attValue; break; case cOutputEffect1Amount: this.OutputEffect1Amount = CalculatorHelpers.ConvertStringToDouble(attValue); break; case cOutputEffect1Price: this.OutputEffect1Price = CalculatorHelpers.ConvertStringToDouble(attValue); break; case cOutputEffect1Cost: this.OutputEffect1Cost = CalculatorHelpers.ConvertStringToDouble(attValue); break; case cAverageBenefitRating: this.AverageBenefitRating = CalculatorHelpers.ConvertStringToDouble(attValue); break; case cPhysicalHealthRating: this.PhysicalHealthRating = CalculatorHelpers.ConvertStringToInt(attValue); break; case cEmotionalHealthRating: this.EmotionalHealthRating = CalculatorHelpers.ConvertStringToInt(attValue); break; case cSocialHealthRating: this.SocialHealthRating = CalculatorHelpers.ConvertStringToInt(attValue); break; case cEconomicHealthRating: this.EconomicHealthRating = CalculatorHelpers.ConvertStringToInt(attValue); break; case cHealthCareDeliveryRating: this.HealthCareDeliveryRating = CalculatorHelpers.ConvertStringToInt(attValue); break; case cBeforeQOLRating: this.BeforeQOLRating = CalculatorHelpers.ConvertStringToInt(attValue); break; case cAfterQOLRating: this.AfterQOLRating = CalculatorHelpers.ConvertStringToInt(attValue); break; case cBeforeYears: this.BeforeYears = CalculatorHelpers.ConvertStringToDouble(attValue); break; case cAfterYears: this.AfterYears = CalculatorHelpers.ConvertStringToDouble(attValue); break; case cAfterYearsProb: this.AfterYearsProb = CalculatorHelpers.ConvertStringToDouble(attValue); break; case cTimeTradeoffYears: this.TimeTradeoffYears = CalculatorHelpers.ConvertStringToDouble(attValue); break; case cEquityMultiplier: this.EquityMultiplier = CalculatorHelpers.ConvertStringToDouble(attValue); break; case cBenefitAssessment: this.BenefitAssessment = attValue; break; case cQALY: this.QALY = CalculatorHelpers.ConvertStringToDouble(attValue); break; case cICERQALY: this.ICERQALY = CalculatorHelpers.ConvertStringToDouble(attValue); break; case cTTOQALY: this.TTOQALY = CalculatorHelpers.ConvertStringToDouble(attValue); break; case cWillDoSurvey: this.WillDoSurvey = CalculatorHelpers.ConvertStringToBool(attValue); break; default: break; } }