From 5dacdd17954b3abda50b876073899140d8b31037 Mon Sep 17 00:00:00 2001 From: Adam Stevenson Date: Sat, 15 Mar 2025 09:25:38 -0600 Subject: [PATCH] Fixed expansion configuration options bugs (#793) * Fix for logging of pre-expansion and expansion configuration reporting the wrong value * Fixed a typo in the enable_task_pre_expand_value_sets property setter * Fixed code formatting issues identified by spotless --- src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java | 2 +- .../uhn/fhir/jpa/starter/common/FhirServerConfigCommon.java | 4 ++-- src/main/resources/cds.application.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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 cfbf8b6..25ad070 100644 --- a/src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java +++ b/src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java @@ -695,7 +695,7 @@ public class AppProperties { return this.enable_task_pre_expand_value_sets; } - public void setEnable_task_pre_expand_value_setss(Boolean enable_task_pre_expand_value_sets) { + public void setEnable_task_pre_expand_value_sets(Boolean enable_task_pre_expand_value_sets) { this.enable_task_pre_expand_value_sets = enable_task_pre_expand_value_sets; } 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 3abbed5..53bb3a0 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 @@ -97,9 +97,9 @@ public class FhirServerConfigCommon { ourLog.info("Server configured for pre-expand value set default count of " + (appProperties.getPre_expand_value_sets_default_count().toString())); ourLog.info("Server configured for pre-expand value set max count of " - + (appProperties.getPre_expand_value_sets_default_count().toString())); + + (appProperties.getPre_expand_value_sets_max_count().toString())); ourLog.info("Server configured for maximum expansion size of " - + (appProperties.getPre_expand_value_sets_default_count().toString())); + + (appProperties.getMaximum_expansion_size().toString())); } @Bean diff --git a/src/main/resources/cds.application.yaml b/src/main/resources/cds.application.yaml index 90d4da7..caa1e4b 100644 --- a/src/main/resources/cds.application.yaml +++ b/src/main/resources/cds.application.yaml @@ -217,7 +217,7 @@ hapi: # - https://hapi.fhir.org/baseR4 # pre_expand_value_sets: true - # enable_task_pre_expand_value_sets: true + # enable_task_pre_expand_value_sets: true # pre_expand_value_sets_default_count: 1000 # pre_expand_value_sets_max_count: 1000 # maximum_expansion_size: 1000