Skip to content

Commit 1e7690f

Browse files
authored
Adding configurable behaviour for hapifhir/hapi-fhir#5300 (#650)
1 parent 4ad7c3c commit 1e7690f

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public class AppProperties {
3737
private Boolean allow_override_default_search_params = true;
3838
private Boolean auto_create_placeholder_reference_targets = false;
3939
private final Set<String> auto_version_reference_at_paths = new HashSet<>();
40+
private Boolean language_search_parameter_enabled = false;
4041
private Boolean dao_scheduling_enabled = true;
4142
private Boolean delete_expunge_enabled = false;
4243
private Boolean enable_index_missing_fields = false;
@@ -609,6 +610,14 @@ public void setApp_content_path(String app_content_path) {
609610
this.app_content_path = app_content_path;
610611
}
611612

613+
public Boolean getLanguage_search_parameter_enabled() {
614+
return language_search_parameter_enabled;
615+
}
616+
617+
public void setLanguage_search_parameter_enabled(Boolean language_search_parameter_enabled) {
618+
this.language_search_parameter_enabled = language_search_parameter_enabled;
619+
}
620+
612621
public static class Cors {
613622
private Boolean allow_Credentials = true;
614623
private List<String> allowed_origin = List.of("*");

src/main/java/ca/uhn/fhir/jpa/starter/common/FhirServerConfigCommon.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ public JpaStorageSettings jpaStorageSettings(AppProperties appProperties) {
111111
jpaStorageSettings.setSchedulingDisabled(!appProperties.getDao_scheduling_enabled());
112112
jpaStorageSettings.setDeleteExpungeEnabled(appProperties.getDelete_expunge_enabled());
113113
jpaStorageSettings.setExpungeEnabled(appProperties.getExpunge_enabled());
114+
jpaStorageSettings.setLanguageSearchParameterEnabled(appProperties.getLanguage_search_parameter_enabled());
114115
if (appProperties.getSubscription() != null
115116
&& appProperties.getSubscription().getEmail() != null)
116117
jpaStorageSettings.setEmailFromAddress(

src/main/resources/application.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#Uncomment the following lines to enable the fhir endpoint to be available at /example/path/fhir instead of /fhir
2+
#server:
3+
# servlet:
4+
# context-path: /example/path
15
#Adds the option to go to eg. http://localhost:8080/actuator/health for seeing the running configuration
26
#see https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.endpoints
37
management:
@@ -11,8 +15,8 @@ spring:
1115
#allow-bean-definition-overriding: true
1216
flyway:
1317
enabled: false
14-
check-location: false
1518
baselineOnMigrate: true
19+
fail-on-missing-locations: false
1620
datasource:
1721
#url: 'jdbc:h2:file:./target/database/h2'
1822
url: jdbc:h2:mem:test_mem
@@ -127,6 +131,7 @@ hapi:
127131
advanced_lucene_indexing: false
128132
bulk_export_enabled: false
129133
bulk_import_enabled: false
134+
# language_search_parameter_enabled: true
130135
# enforce_referential_integrity_on_delete: false
131136
# This is an experimental feature, and does not fully support _total and other FHIR features.
132137
# enforce_referential_integrity_on_delete: false

0 commit comments

Comments
 (0)