Remove duplicate fhirContext that interferes with settings such as the following
getFhirContext().getParserOptions().setStripVersionsFromReferences(false);
This commit is contained in:
@@ -47,8 +47,6 @@ public class JpaRestfulServer extends RestfulServer {
|
|||||||
* specified in the properties file.
|
* specified in the properties file.
|
||||||
*/
|
*/
|
||||||
FhirVersionEnum fhirVersion = HapiProperties.getFhirVersion();
|
FhirVersionEnum fhirVersion = HapiProperties.getFhirVersion();
|
||||||
setFhirContext(new FhirContext(fhirVersion));
|
|
||||||
|
|
||||||
appCtx = new AnnotationConfigApplicationContext();
|
appCtx = new AnnotationConfigApplicationContext();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -74,6 +72,9 @@ public class JpaRestfulServer extends RestfulServer {
|
|||||||
} else {
|
} else {
|
||||||
throw new IllegalStateException();
|
throw new IllegalStateException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setFhirContext(appCtx.getBean(FhirContext.class));
|
||||||
|
|
||||||
registerProviders(resourceProviders);
|
registerProviders(resourceProviders);
|
||||||
registerProvider(systemProvider);
|
registerProvider(systemProvider);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user