Update DSTU 3 Validation resources (#5320)

* Update resources with FHIR 3.0.1

* Minimize profiles

* Minimize valuesets

* Restore minimizer

* Changelog

* Remove FIXME, improve specificity of comments
This commit is contained in:
dotasek 2023-09-19 11:56:01 -04:00 committed by GitHub
parent 49a28efd53
commit 7eb3150644
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 2618 additions and 2517 deletions

View File

@ -0,0 +1,4 @@
---
type: fix
issue: 5322
title: "Update DSTU3 validation resources to FHIR 3.0.2 instead of 3.0.1"

View File

@ -667,8 +667,6 @@ public class FhirInstanceValidatorDstu3Test {
} else if (t.getMessage().contains("ValueSet as a URI SHALL start with http:// or https:// or urn:")) {
// Some DSTU3 structures have missing binding information
return false;
} else if (t.getMessage().contains("The valueSet reference http://www.rfc-editor.org/bcp/bcp13.txt on element")) {
return false;
} else if (t.getMessage().contains("The Unicode sequence has unterminated bi-di control characters")) {
// Some DSTU3 structures contain bi-di control characters, and a check for this was added recently.
return false;
@ -678,7 +676,14 @@ public class FhirInstanceValidatorDstu3Test {
} else if (t.getMessage().startsWith("value should not start or finish with whitespace") && t.getMessage().endsWith("\\u00a0'")) {
// Some DSTU3 messages end with a unicode Non-breaking space character
return false;
} else {
} else if (t.getMessage().contains("Found # expecting a token name")) {
// Some DSTU3 messages contain incomplete encoding for single quotes (#39 vs &#39)
return false;
} else if (t.getMessage().contains("sdf-15") && t.getMessage().contains("The name 'kind' is not valid for any of the possible types")) {
// Find constraint sdf-15 fails with stricter core validation.
return false;
}
else {
return true;
}
})

View File

@ -198,6 +198,7 @@ public class ResourceMinimizerMojo extends AbstractMojo {
// byteCount += m.getByteCount();
// fileCount += m.getFileCount();
//
// m = new ResourceMinimizerMojo();
// m.myCtx = ctxDstu3;
// m.targetDirectory = new