Merge pull request #1407 from hapifhir/2023-08-gg-fix-1404
#1404 Fix problem validating code systems with content = not-present
This commit is contained in:
commit
debbff6319
|
@ -197,7 +197,9 @@ public class CodeSystemValidator extends BaseValidator {
|
||||||
warning(errors, "2023-08-15", IssueType.INVALID, nstack, count < statedCount, I18nConstants.CODESYSTEM_CS_COUNT_FRAGMENT_WRONG, count, statedCount);
|
warning(errors, "2023-08-15", IssueType.INVALID, nstack, count < statedCount, I18nConstants.CODESYSTEM_CS_COUNT_FRAGMENT_WRONG, count, statedCount);
|
||||||
break;
|
break;
|
||||||
case "not-present":
|
case "not-present":
|
||||||
|
if (cs.hasChildren("concept")) {
|
||||||
hint(errors, "2023-08-15", IssueType.INVALID, stack.push(cs.getNamedChild("concept"), -1, null, null), statedCount > 0, I18nConstants.CODESYSTEM_CS_COUNT_NOTPRESENT_ZERO, statedCount);
|
hint(errors, "2023-08-15", IssueType.INVALID, stack.push(cs.getNamedChild("concept"), -1, null, null), statedCount > 0, I18nConstants.CODESYSTEM_CS_COUNT_NOTPRESENT_ZERO, statedCount);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case "supplement":
|
case "supplement":
|
||||||
CodeSystem css = context.fetchCodeSystem(supp);
|
CodeSystem css = context.fetchCodeSystem(supp);
|
||||||
|
|
Loading…
Reference in New Issue