Remove duplicate fhirContext that interferes with settings such as the following

getFhirContext().getParserOptions().setStripVersionsFromReferences(false);
This commit is contained in:
Ken Stevens
2019-03-05 14:53:47 -05:00
parent 9b73f8d8c5
commit 4c419ec5d6

View File

@@ -47,8 +47,6 @@ public class JpaRestfulServer extends RestfulServer {
* specified in the properties file.
*/
FhirVersionEnum fhirVersion = HapiProperties.getFhirVersion();
setFhirContext(new FhirContext(fhirVersion));
appCtx = new AnnotationConfigApplicationContext();
/*
@@ -74,6 +72,9 @@ public class JpaRestfulServer extends RestfulServer {
} else {
throw new IllegalStateException();
}
setFhirContext(appCtx.getBean(FhirContext.class));
registerProviders(resourceProviders);
registerProvider(systemProvider);