From e13bc28b422351cbd5c31e3794035c07da42cb50 Mon Sep 17 00:00:00 2001 From: Matti Uusitalo Date: Mon, 3 Dec 2018 13:48:40 +0200 Subject: [PATCH] temporarily set hard coded error when no profile found --- .../hl7/fhir/dstu3/hapi/validation/FhirInstanceValidator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hapi-fhir-validation/src/main/java/org/hl7/fhir/dstu3/hapi/validation/FhirInstanceValidator.java b/hapi-fhir-validation/src/main/java/org/hl7/fhir/dstu3/hapi/validation/FhirInstanceValidator.java index c09e9ea9115..967e8f55241 100644 --- a/hapi-fhir-validation/src/main/java/org/hl7/fhir/dstu3/hapi/validation/FhirInstanceValidator.java +++ b/hapi-fhir-validation/src/main/java/org/hl7/fhir/dstu3/hapi/validation/FhirInstanceValidator.java @@ -249,6 +249,7 @@ public class FhirInstanceValidator extends BaseValidatorBridge implements IValid v.setResourceIdRule(IdStatus.OPTIONAL); v.setNoTerminologyChecks(isNoTerminologyChecks()); v.setMyEnableWhenEvaluator(enableWhenEvaluatorSupplier.apply(wrappedWorkerContext)); + v.setErrorForUnknownProfiles(true); // TODO must be configurable instead of hardcoded to be always true List messages = new ArrayList<>();