public HealthProfilesKeyMessageDataBuilder(IArea area, CoreDataSetProvider coreDataSetProvider, CoreDataSetProvider benchmarkDataProvider, IndicatorMetadataCollection indicatorMetadataCollection, HealthProfilesGroupRootSelector groupRootSelector) { _area = area; keyMessageData.Area = area; this.coreDataSetProvider = coreDataSetProvider; this.benchmarkDataProvider = benchmarkDataProvider; this.groupRootSelector = groupRootSelector; this.indicatorMetadataCollection = indicatorMetadataCollection; _indicatorComparerFactory = new IndicatorComparerFactory {PholioReader = pholioReader}; }
private static HealthProfilesGroupRootSelector SelectorForSlopeIndexOfInequalityForLifeExpectancy() { var indicatorId = IndicatorIds.SlopeIndexOfInequalityForLifeExpectancy; var roots = new List<GroupRoot> { new GroupRoot {IndicatorId = IndicatorIds.ChildrenInLowIncomeFamilies, SexId = SexIds.Male}, new GroupRoot {IndicatorId = IndicatorIds.ChildrenInLowIncomeFamilies, SexId = SexIds.Female}, new GroupRoot {IndicatorId = indicatorId, SexId = SexIds.Male}, new GroupRoot {IndicatorId = indicatorId, SexId = SexIds.Female} }; var selector = new HealthProfilesGroupRootSelector(); selector.SupportingGroupRoots = roots; return selector; }