From 7e15f133b58907c986b3f6721a7e904bc10750a6 Mon Sep 17 00:00:00 2001 From: Patrick Werner Date: Fri, 18 Oct 2024 10:22:08 +0200 Subject: [PATCH] feat: added config option for upliftedRefchains support --- src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java | 9 +++++++++ .../fhir/jpa/starter/common/FhirServerConfigCommon.java | 1 + src/main/resources/application.yaml | 1 + 3 files changed, 11 insertions(+) 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 0f63df4..82ace12 100644 --- a/src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java +++ b/src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java @@ -103,6 +103,7 @@ public class AppProperties { private final List custom_interceptor_classes = new ArrayList<>(); private final List custom_provider_classes = new ArrayList<>(); + private Boolean upliftedRefchains_enabled = false; public List getCustomInterceptorClasses() { @@ -643,6 +644,14 @@ public Cors getCors() { this.language_search_parameter_enabled = language_search_parameter_enabled; } + public boolean getUpliftedRefchains_enabled() { + return upliftedRefchains_enabled; + } + + public void setUpliftedRefchains_enabled(boolean upliftedRefchains_enabled) { + this.upliftedRefchains_enabled = upliftedRefchains_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 a312360..d12a2f2 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 @@ -149,6 +149,7 @@ public class FhirServerConfigCommon { jpaStorageSettings.setDeleteExpungeEnabled(appProperties.getDelete_expunge_enabled()); jpaStorageSettings.setExpungeEnabled(appProperties.getExpunge_enabled()); jpaStorageSettings.setLanguageSearchParameterEnabled(appProperties.getLanguage_search_parameter_enabled()); + jpaStorageSettings.setIndexOnUpliftedRefchains(appProperties.getUpliftedRefchains_enabled()); Integer maxFetchSize = appProperties.getMax_page_size(); diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index ed0a18b..4fa3458 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -190,6 +190,7 @@ hapi: # enable_index_missing_fields: false # enable_index_of_type: true # enable_index_contained_resource: false + # upliftedRefchains_enabled: true # resource_dbhistory_enabled: false ### !!Extended Lucene/Elasticsearch Indexing is still a experimental feature, expect some features (e.g. _total=accurate) to not work as expected!! ### more information here: https://hapifhir.io/hapi-fhir/docs/server_jpa/elastic.html