fix test cases
This commit is contained in:
parent
765b4da292
commit
3265d10280
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue