diff --git a/src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java b/src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java index 16e8964..67a4656 100644 --- a/src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java +++ b/src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java @@ -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 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 allowed_origin = List.of("*"); diff --git a/src/main/java/ca/uhn/fhir/jpa/starter/common/FhirServerConfigCommon.java b/src/main/java/ca/uhn/fhir/jpa/starter/common/FhirServerConfigCommon.java index 403a0a5..3d9206e 100644 --- a/src/main/java/ca/uhn/fhir/jpa/starter/common/FhirServerConfigCommon.java +++ b/src/main/java/ca/uhn/fhir/jpa/starter/common/FhirServerConfigCommon.java @@ -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( diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index df14c31..fa7c762 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -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