Skip to content

Commit 2689d69

Browse files
committed
Merge remote-tracking branch 'origin/cr-3-22-0' into rel_8_3_tracking
2 parents 7e37527 + 4f9a84d commit 2689d69

File tree

9 files changed

+38
-9
lines changed

9 files changed

+38
-9
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<properties>
77
<java.version>17</java.version>
88
<hapi.fhir.jpa.server.starter.revision>1</hapi.fhir.jpa.server.starter.revision>
9-
<clinical-reasoning.version>3.21.0</clinical-reasoning.version>
9+
<clinical-reasoning.version>3.22.0</clinical-reasoning.version>
1010
</properties>
1111

1212
<!-- one-liner to take you to the cloud with settings form the application.yaml file: -->

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package ca.uhn.fhir.jpa.starter;
22

33
import ca.uhn.fhir.context.FhirVersionEnum;
4+
import ca.uhn.fhir.jpa.api.config.JpaStorageSettings;
45
import ca.uhn.fhir.jpa.api.config.JpaStorageSettings.ClientIdStrategyEnum;
56
import ca.uhn.fhir.jpa.api.config.JpaStorageSettings.IdStrategyEnum;
67
import ca.uhn.fhir.jpa.model.entity.NormalizedQuantitySearchLevel;
@@ -34,6 +35,7 @@ public class AppProperties {
3435
private Boolean mdm_enabled = false;
3536
private String mdm_rules_json_location = "mdm-rules.json";
3637
private boolean advanced_lucene_indexing = false;
38+
private boolean search_index_full_text_enabled = false;
3739
private boolean enable_index_of_type = false;
3840
private Boolean allow_cascading_deletes = false;
3941
private Boolean allow_contains_searches = true;
@@ -105,6 +107,8 @@ public class AppProperties {
105107
private Integer pre_expand_value_sets_default_count = 1000;
106108
private Integer pre_expand_value_sets_max_count = 1000;
107109
private Integer maximum_expansion_size = 1000;
110+
private JpaStorageSettings.StoreMetaSourceInformationEnum store_meta_source_information =
111+
JpaStorageSettings.StoreMetaSourceInformationEnum.NONE;
108112

109113
private Map<String, RemoteSystem> remote_terminology_service = null;
110114

@@ -284,6 +288,14 @@ public void setAdvanced_lucene_indexing(boolean theAdvanced_lucene_indexing) {
284288
advanced_lucene_indexing = theAdvanced_lucene_indexing;
285289
}
286290

291+
public boolean getSearch_index_full_text_enabled() {
292+
return this.search_index_full_text_enabled;
293+
}
294+
295+
public void setSearch_index_full_text_enabled(boolean theSearch_index_full_text_enabled) {
296+
search_index_full_text_enabled = theSearch_index_full_text_enabled;
297+
}
298+
287299
public Boolean getAllow_cascading_deletes() {
288300
return allow_cascading_deletes;
289301
}
@@ -733,6 +745,15 @@ public void setRemote_terminology_service(Map<String, RemoteSystem> remote_termi
733745
this.remote_terminology_service = remote_terminology_service;
734746
}
735747

748+
public JpaStorageSettings.StoreMetaSourceInformationEnum getStore_meta_source_information() {
749+
return store_meta_source_information;
750+
}
751+
752+
public void setStore_meta_source_information(
753+
JpaStorageSettings.StoreMetaSourceInformationEnum store_meta_source_information) {
754+
this.store_meta_source_information = store_meta_source_information;
755+
}
756+
736757
public static class Cors {
737758
private Boolean allow_Credentials = true;
738759
private List<String> allowed_origin = List.of("*");

src/main/java/ca/uhn/fhir/jpa/starter/cdshooks/UpdatedCdsCrService.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
package ca.uhn.fhir.jpa.starter.cdshooks;
22

33
import ca.uhn.fhir.context.FhirVersionEnum;
4+
import ca.uhn.fhir.repository.IRepository;
45
import ca.uhn.fhir.rest.api.server.RequestDetails;
56
import ca.uhn.fhir.rest.api.server.cdshooks.CdsServiceRequestJson;
6-
import ca.uhn.hapi.fhir.cdshooks.api.ICdsConfigService;
77
import org.hl7.fhir.instance.model.api.IBaseParameters;
88
import org.hl7.fhir.instance.model.api.IPrimitiveType;
9-
import org.opencds.cqf.fhir.api.Repository;
109
import org.opencds.cqf.fhir.cr.hapi.cdshooks.CdsCrService;
1110
import org.opencds.cqf.fhir.utility.adapter.IAdapterFactory;
1211

@@ -15,9 +14,8 @@
1514
public class UpdatedCdsCrService extends CdsCrService {
1615
private final IAdapterFactory adapterFactory;
1716

18-
public UpdatedCdsCrService(
19-
RequestDetails theRequestDetails, Repository theRepository, ICdsConfigService theCdsConfigService) {
20-
super(theRequestDetails, theRepository, theCdsConfigService);
17+
public UpdatedCdsCrService(RequestDetails theRequestDetails, IRepository theRepository) {
18+
super(theRequestDetails, theRepository);
2119
adapterFactory = IAdapterFactory.forFhirContext(theRepository.fhirContext());
2220
}
2321

src/main/java/ca/uhn/fhir/jpa/starter/cdshooks/UpdatedCrDiscoveryService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package ca.uhn.fhir.jpa.starter.cdshooks;
22

3+
import ca.uhn.fhir.repository.IRepository;
34
import org.hl7.fhir.instance.model.api.IIdType;
4-
import org.opencds.cqf.fhir.api.Repository;
55
import org.opencds.cqf.fhir.cr.hapi.cdshooks.discovery.CrDiscoveryService;
66

77
public class UpdatedCrDiscoveryService extends CrDiscoveryService {
8-
public UpdatedCrDiscoveryService(IIdType thePlanDefinitionId, Repository theRepository) {
8+
public UpdatedCrDiscoveryService(IIdType thePlanDefinitionId, IRepository theRepository) {
99
super(thePlanDefinitionId, theRepository);
1010
maxUriLength = 6000;
1111
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ public JpaStorageSettings jpaStorageSettings(AppProperties appProperties) {
201201

202202
jpaStorageSettings.setFilterParameterEnabled(appProperties.getFilter_search_enabled());
203203
jpaStorageSettings.setHibernateSearchIndexSearchParams(appProperties.getAdvanced_lucene_indexing());
204+
jpaStorageSettings.setHibernateSearchIndexFullText(appProperties.getSearch_index_full_text_enabled());
204205
jpaStorageSettings.setTreatBaseUrlsAsLocal(new HashSet<>(appProperties.getLocal_base_urls()));
205206
jpaStorageSettings.setTreatReferencesAsLogical(new HashSet<>(appProperties.getLogical_urls()));
206207

@@ -253,6 +254,10 @@ public JpaStorageSettings jpaStorageSettings(AppProperties appProperties) {
253254
jpaStorageSettings.setBundleBatchPoolSize(appProperties.getBundle_batch_pool_size());
254255
jpaStorageSettings.setBundleBatchPoolSize(appProperties.getBundle_batch_pool_max_size());
255256

257+
// Set store meta source information
258+
ourLog.debug("Server configured to Store Meta Source: {}", appProperties.getStore_meta_source_information());
259+
jpaStorageSettings.setStoreMetaSourceInformation(appProperties.getStore_meta_source_information());
260+
256261
storageSettings(appProperties, jpaStorageSettings);
257262
return jpaStorageSettings;
258263
}

src/main/resources/application.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ hapi:
200200
### !!Extended Lucene/Elasticsearch Indexing is still a experimental feature, expect some features (e.g. _total=accurate) to not work as expected!!
201201
### more information here: https://hapifhir.io/hapi-fhir/docs/server_jpa/elastic.html
202202
advanced_lucene_indexing: false
203+
search_index_full_text_enabled: false
203204
bulk_export_enabled: false
204205
bulk_import_enabled: false
205206
# language_search_parameter_enabled: true
@@ -275,7 +276,8 @@ hapi:
275276
# classes listed here will be fetched from the Spring context when combined with 'custom-bean-packages',
276277
# or will be instantiated via reflection using an no-arg contructor; then registered with the server
277278
#custom-provider-classes:
278-
279+
# specify what should be stored in meta.source based on StoreMetaSourceInformationEnum defaults to NONE
280+
# store_meta_source_information: NONE
279281
# Threadpool size for BATCH'ed GETs in a bundle.
280282
# bundle_batch_pool_size: 10
281283
# bundle_batch_pool_max_size: 50

src/main/resources/cds.application.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ hapi:
196196
### !!Extended Lucene/Elasticsearch Indexing is still a experimental feature, expect some features (e.g. _total=accurate) to not work as expected!!
197197
### more information here: https://hapifhir.io/hapi-fhir/docs/server_jpa/elastic.html
198198
advanced_lucene_indexing: false
199+
search_index_full_text_enabled: false
199200
bulk_export_enabled: false
200201
bulk_import_enabled: false
201202
# language_search_parameter_enabled: true

src/test/java/ca/uhn/fhir/jpa/starter/ElasticsearchLastNR4IT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"hapi.fhir.lastn_enabled=true",
5353
"hapi.fhir.store_resource_in_lucene_index_enabled=true",
5454
"hapi.fhir.advanced_lucene_indexing=true",
55+
"hapi.fhir.search_index_full_text_enabled=true",
5556

5657
"elasticsearch.enabled=true",
5758
"hapi.fhir.cr_enabled=false",

src/test/resources/application.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ hapi:
129129
### !!Extended Lucene/Elasticsearch Indexing is still a experimental feature, expect some features (e.g. _total=accurate) to not work as expected!!
130130
### more information here: https://hapifhir.io/hapi-fhir/docs/server_jpa/elastic.html
131131
advanced_lucene_indexing: false
132+
search_index_full_text_enabled: false
132133
# enforce_referential_integrity_on_delete: false
133134
# This is an experimental feature, and does not fully support _total and other FHIR features.
134135
# enforce_referential_integrity_on_delete: false

0 commit comments

Comments
 (0)