Skip to content

Commit 5dacdd1

Browse files
authored
Fixed expansion configuration options bugs (hapifhir#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
1 parent 8e7cb0e commit 5dacdd1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ public Boolean getEnable_task_pre_expand_value_sets() {
695695
return this.enable_task_pre_expand_value_sets;
696696
}
697697

698-
public void setEnable_task_pre_expand_value_setss(Boolean enable_task_pre_expand_value_sets) {
698+
public void setEnable_task_pre_expand_value_sets(Boolean enable_task_pre_expand_value_sets) {
699699
this.enable_task_pre_expand_value_sets = enable_task_pre_expand_value_sets;
700700
}
701701

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ public FhirServerConfigCommon(AppProperties appProperties) {
9797
ourLog.info("Server configured for pre-expand value set default count of "
9898
+ (appProperties.getPre_expand_value_sets_default_count().toString()));
9999
ourLog.info("Server configured for pre-expand value set max count of "
100-
+ (appProperties.getPre_expand_value_sets_default_count().toString()));
100+
+ (appProperties.getPre_expand_value_sets_max_count().toString()));
101101
ourLog.info("Server configured for maximum expansion size of "
102-
+ (appProperties.getPre_expand_value_sets_default_count().toString()));
102+
+ (appProperties.getMaximum_expansion_size().toString()));
103103
}
104104

105105
@Bean

src/main/resources/cds.application.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ hapi:
217217
# - https://hapi.fhir.org/baseR4
218218

219219
# pre_expand_value_sets: true
220-
# enable_task_pre_expand_value_sets: true
220+
# enable_task_pre_expand_value_sets: true
221221
# pre_expand_value_sets_default_count: 1000
222222
# pre_expand_value_sets_max_count: 1000
223223
# maximum_expansion_size: 1000

0 commit comments

Comments
 (0)