From 15db7bdd853a31fa2766a90c534fdda671002388 Mon Sep 17 00:00:00 2001 From: bstewartlg <114590619+bstewartlg@users.noreply.github.com> Date: Thu, 27 Jun 2024 10:07:23 -0400 Subject: [PATCH] Temporarily disable validation check. --- .../fhir/jpa/starter/common/StarterJpaConfig.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/ca/uhn/fhir/jpa/starter/common/StarterJpaConfig.java b/src/main/java/ca/uhn/fhir/jpa/starter/common/StarterJpaConfig.java index 28f3f0b..cd99ed8 100644 --- a/src/main/java/ca/uhn/fhir/jpa/starter/common/StarterJpaConfig.java +++ b/src/main/java/ca/uhn/fhir/jpa/starter/common/StarterJpaConfig.java @@ -213,16 +213,16 @@ public RepositoryValidatingInterceptor repositoryValidatingInterceptor(IValidati String profileUrl = resourceTypeProfiles.get(key); ruleBuilder .forResourcesOfType(key) - .requireAtLeastProfile(profileUrl) - .and() - .requireValidationToDeclaredProfiles(); + .requireAtLeastProfile(profileUrl); + // .and() + // .requireValidationToDeclaredProfiles(); } ruleBuilder .forResourcesOfType("Organization") - .requireAtLeastOneProfileOf("http://hl7.org/fhir/us/ndh/StructureDefinition/ndh-Organization", "http://hl7.org/fhir/us/ndh/StructureDefinition/ndh-Network") - .and() - .requireValidationToDeclaredProfiles(); + .requireAtLeastOneProfileOf("http://hl7.org/fhir/us/ndh/StructureDefinition/ndh-Organization", "http://hl7.org/fhir/us/ndh/StructureDefinition/ndh-Network"); + // .and() + // .requireValidationToDeclaredProfiles(); List rules = ruleBuilder.build(); return new RepositoryValidatingInterceptor(theFhirContext, rules);