Adding configurable behaviour for https://github.com/hapifhir/hapi-fhir/pull/5300 (#650)
This commit is contained in:
committed by
GitHub
parent
4ad7c3cbb7
commit
1e7690fc03
@@ -37,6 +37,7 @@ public class AppProperties {
|
||||
private Boolean allow_override_default_search_params = true;
|
||||
private Boolean auto_create_placeholder_reference_targets = false;
|
||||
private final Set<String> auto_version_reference_at_paths = new HashSet<>();
|
||||
private Boolean language_search_parameter_enabled = false;
|
||||
private Boolean dao_scheduling_enabled = true;
|
||||
private Boolean delete_expunge_enabled = false;
|
||||
private Boolean enable_index_missing_fields = false;
|
||||
@@ -609,6 +610,14 @@ public Cors getCors() {
|
||||
this.app_content_path = app_content_path;
|
||||
}
|
||||
|
||||
public Boolean getLanguage_search_parameter_enabled() {
|
||||
return language_search_parameter_enabled;
|
||||
}
|
||||
|
||||
public void setLanguage_search_parameter_enabled(Boolean language_search_parameter_enabled) {
|
||||
this.language_search_parameter_enabled = language_search_parameter_enabled;
|
||||
}
|
||||
|
||||
public static class Cors {
|
||||
private Boolean allow_Credentials = true;
|
||||
private List<String> allowed_origin = List.of("*");
|
||||
|
||||
@@ -111,6 +111,7 @@ public class FhirServerConfigCommon {
|
||||
jpaStorageSettings.setSchedulingDisabled(!appProperties.getDao_scheduling_enabled());
|
||||
jpaStorageSettings.setDeleteExpungeEnabled(appProperties.getDelete_expunge_enabled());
|
||||
jpaStorageSettings.setExpungeEnabled(appProperties.getExpunge_enabled());
|
||||
jpaStorageSettings.setLanguageSearchParameterEnabled(appProperties.getLanguage_search_parameter_enabled());
|
||||
if (appProperties.getSubscription() != null
|
||||
&& appProperties.getSubscription().getEmail() != null)
|
||||
jpaStorageSettings.setEmailFromAddress(
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
#Uncomment the following lines to enable the fhir endpoint to be available at /example/path/fhir instead of /fhir
|
||||
#server:
|
||||
# servlet:
|
||||
# context-path: /example/path
|
||||
#Adds the option to go to eg. http://localhost:8080/actuator/health for seeing the running configuration
|
||||
#see https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.endpoints
|
||||
management:
|
||||
@@ -11,8 +15,8 @@ spring:
|
||||
#allow-bean-definition-overriding: true
|
||||
flyway:
|
||||
enabled: false
|
||||
check-location: false
|
||||
baselineOnMigrate: true
|
||||
fail-on-missing-locations: false
|
||||
datasource:
|
||||
#url: 'jdbc:h2:file:./target/database/h2'
|
||||
url: jdbc:h2:mem:test_mem
|
||||
@@ -127,6 +131,7 @@ hapi:
|
||||
advanced_lucene_indexing: false
|
||||
bulk_export_enabled: false
|
||||
bulk_import_enabled: false
|
||||
# language_search_parameter_enabled: true
|
||||
# enforce_referential_integrity_on_delete: false
|
||||
# This is an experimental feature, and does not fully support _total and other FHIR features.
|
||||
# enforce_referential_integrity_on_delete: false
|
||||
|
||||
Reference in New Issue
Block a user