Example #1
0
 public long GetPopulationWithAnyFeature(CohortFeatures features) => m_cohorts.Where(x => (x.Features & features) != CohortFeatures.None).Sum(x => x.Population);
Example #2
0
 public long GetPopulationWithAllFeatures(CohortFeatures features) => m_cohorts.Where(x => (x.Features & features) == features).Sum(x => x.Population);
Example #3
0
 public CohortTemplate(CohortFeatures features, TimeOffset startAge, TimeOffset pastEndAge)
 {
     Features   = features;
     StartAge   = startAge;
     PastEndAge = pastEndAge;
 }