add case exception for populations

This commit is contained in:
Grahame Grieve 2020-04-07 14:50:40 +10:00
parent 35074ca0b2
commit be5089a80c
1 changed files with 1 additions and 1 deletions

View File

@ -399,7 +399,7 @@ public class MeasureValidator extends BaseValidator {
i++;
}
for (MeasureGroupPopulationComponent mgp : mg.getPopulation()) {
if (!pops.contains(mgp)) {
if (!pops.contains(mgp) && !mgp.getCode().hasCoding("http://terminology.hl7.org/CodeSystem/measure-population", "measure-observation")) {
rule(errors, IssueType.BUSINESSRULE, mrg.line(), mrg.col(), stack.getLiteralPath(), pops.contains(mg), I18nConstants.MEASURE_MR_GRP_MISSING_BY_CODE, gen.gen(mgp.getCode()));
}
}