Skip to content

Commit

Permalink
Merge pull request #541 from hapifhir/501_fix_cr_enabled
Browse files Browse the repository at this point in the history
Add fix to enable the CR module.
  • Loading branch information
jmarchionatto committed May 31, 2023
2 parents 53a958a + 2899060 commit a06c0b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
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.JpaStorageSettings;
Expand Down Expand Up @@ -114,6 +115,9 @@ public CachingValidationSupport validationSupportChain(JpaValidationSupportChain
@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.
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ 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
# use_apache_address_strategy: false
Expand Down

0 comments on commit a06c0b9

Please sign in to comment.