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:
Grahame Grieve 2023-08-24 09:17:37 +02:00 committed by GitHub
commit debbff6319
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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);
break;
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);
}
break;
case "supplement":
CodeSystem css = context.fetchCodeSystem(supp);