fix default value for validator setting + hack work around for R5 broken process

This commit is contained in:
Grahame Grieve 2020-08-20 21:00:11 +10:00
parent 5afbb01e45
commit 8ee4eff74c
3 changed files with 8 additions and 1 deletions

View File

@ -77,6 +77,10 @@ public class TestingUtilities extends BaseTestingUtilities {
}
public static IWorkerContext context(String version) {
if ("4.5.0".equals(version)) {
version = "4.4.0"; // temporary work around
}
String v = VersionUtilities.getMajMin(version);
if (fcontexts == null) {
fcontexts = new HashMap<>();

View File

@ -77,6 +77,9 @@ public class VersionUtilities {
if (v != null && v.startsWith(CURRENT_VERSION)) {
return "hl7.fhir.r5.core";
}
if ("4.4.0".equals(v)) {
return "hl7.fhir.r5.core";
}
return null;
}

View File

@ -365,7 +365,7 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat
private ProfileUtilities profileUtilities;
private boolean crumbTrails;
private List<BundleValidationRule> bundleValidationRules = new ArrayList<>();
private boolean validateValueSetCodesOnTxServer;
private boolean validateValueSetCodesOnTxServer = true;
public InstanceValidator(IWorkerContext theContext, IEvaluationContext hostServices) {
super(theContext);