Start 5.0.0 release branch

This commit is contained in:
jamesagnew
2020-03-18 09:13:43 -04:00
parent 7b5e0ae903
commit c221e892f6
2 changed files with 2 additions and 22 deletions

View File

@@ -285,27 +285,7 @@ public class JpaRestfulServer extends RestfulServer {
}
// Validation
IValidatorModule validatorModule;
switch (fhirVersion) {
case DSTU2:
validatorModule = appCtx.getBean("myInstanceValidatorDstu2", IValidatorModule.class);
break;
case DSTU3:
validatorModule = appCtx.getBean("myInstanceValidatorDstu3", IValidatorModule.class);
break;
case R4:
validatorModule = appCtx.getBean("myInstanceValidatorR4", IValidatorModule.class);
break;
case R5:
validatorModule = appCtx.getBean("myInstanceValidatorR5", IValidatorModule.class);
break;
// These versions are not supported by HAPI FHIR JPA
case DSTU2_HL7ORG:
case DSTU2_1:
default:
validatorModule = null;
break;
}
IValidatorModule validatorModule = appCtx.getBean(IValidatorModule.class);
if (validatorModule != null) {
if (HapiProperties.getValidateRequestsEnabled()) {
RequestValidatingInterceptor interceptor = new RequestValidatingInterceptor();