From 9e9c08bafe5c3533e5e2b149fae141be402c32ba Mon Sep 17 00:00:00 2001 From: Chalma Maadaadi Date: Tue, 30 May 2023 15:28:55 -0400 Subject: [PATCH 1/2] Add fix to enable the CR module. --- .../java/ca/uhn/fhir/jpa/starter/common/StarterJpaConfig.java | 4 ++++ src/main/resources/application.yaml | 1 + 2 files changed, 5 insertions(+) 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 47dce92..3486375 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 @@ -9,6 +9,7 @@ import ca.uhn.fhir.context.ConfigurationException; import ca.uhn.fhir.context.FhirContext; import ca.uhn.fhir.context.FhirVersionEnum; import ca.uhn.fhir.context.support.IValidationSupport; +import ca.uhn.fhir.cr.config.CrProviderLoader; import ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster; import ca.uhn.fhir.jpa.api.IDaoRegistry; import ca.uhn.fhir.jpa.api.config.DaoConfig; @@ -114,6 +115,9 @@ public class StarterJpaConfig { @Autowired private ConfigurableEnvironment configurableEnvironment; + @Autowired(required=false) + private CrProviderLoader crProviderLoader; + /** * Customize the default/max page sizes for search results. You can set these however * you want, although very large page sizes will require a lot of RAM. diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 13d85fd..0a8bb47 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -58,6 +58,7 @@ hapi: openapi_enabled: true ### This is the FHIR version. Choose between, DSTU2, DSTU3, R4 or R5 fhir_version: R4 + cr_enabled: "${CR_ENABLED: false}" ### enable to use the ApacheProxyAddressStrategy which uses X-Forwarded-* headers ### to determine the FHIR server address # use_apache_address_strategy: false From 2899060de07868e07693143d40a5592893896ce3 Mon Sep 17 00:00:00 2001 From: Chalma Maadaadi Date: Tue, 30 May 2023 19:20:19 -0400 Subject: [PATCH 2/2] Addressed comment to for cr_enabled flag. --- src/main/resources/application.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 0a8bb47..9b1e118 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -58,6 +58,8 @@ hapi: openapi_enabled: true ### This is the FHIR version. Choose between, DSTU2, DSTU3, R4 or R5 fhir_version: R4 + ### This flag when enabled to true, will avail evaluate measure operations from CR Module. + ### Flag is false by default, can be passed as command line argument to override. cr_enabled: "${CR_ENABLED: false}" ### enable to use the ApacheProxyAddressStrategy which uses X-Forwarded-* headers ### to determine the FHIR server address