fix test cases

This commit is contained in:
Grahame Grieve 2024-06-06 20:35:31 +10:00
parent 765b4da292
commit 3265d10280
3 changed files with 8 additions and 1 deletions

View File

@ -887,7 +887,9 @@ public class ValidationEngine implements IValidatorResourceFetcher, IValidationP
}
validator.setJurisdiction(jurisdiction);
validator.setLogProgress(true);
validator.setPolicyAdvisor(policyAdvisor);
if (policyAdvisor != null) {
validator.setPolicyAdvisor(policyAdvisor);
}
return validator;
}

View File

@ -5,10 +5,13 @@ import java.util.Locale;
import org.hl7.fhir.r5.terminologies.utilities.TerminologyCache;
import org.hl7.fhir.r5.test.utils.TestingUtilities;
import org.hl7.fhir.r5.utils.validation.constants.ReferenceValidationPolicy;
import org.hl7.fhir.utilities.FhirPublication;
import org.hl7.fhir.utilities.tests.TestConfig;
import org.hl7.fhir.utilities.tests.TestConstants;
import org.hl7.fhir.validation.ValidationEngine;
import org.hl7.fhir.validation.cli.services.StandAloneValidatorFetcher;
import org.hl7.fhir.validation.instance.BasePolicyAdvisorForFullValidation;
public class TestUtilities {
@ -64,6 +67,7 @@ public class TestUtilities {
TerminologyCache.setCacheErrors(true);
}
validationEngine.setPolicyAdvisor(new BasePolicyAdvisorForFullValidation(ReferenceValidationPolicy.IGNORE));
return validationEngine;
}

View File

@ -1,5 +1,6 @@
{
"http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.0" : null,
"http://loinc.org/vs" : null,
"http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203" : null,
"http://hl7.org/fhir/ValueSet/name-use|4.0.1" : null,
"http://hl7.org/fhir/ValueSet/observation-status|4.0.0" : null,