Merge pull request #640 from jembi/feat/logical_urls

feat: add support for logical urls
This commit is contained in:
James Agnew
2024-02-06 10:45:16 -05:00
committed by GitHub
3 changed files with 15 additions and 0 deletions

View File

@@ -93,6 +93,7 @@ public class AppProperties {
private Integer bundle_batch_pool_size = 20; private Integer bundle_batch_pool_size = 20;
private Integer bundle_batch_pool_max_size = 100; private Integer bundle_batch_pool_max_size = 100;
private final Set<String> local_base_urls = new HashSet<>(); private final Set<String> local_base_urls = new HashSet<>();
private final Set<String> logical_urls = new HashSet<>();
private final List<String> custom_interceptor_classes = new ArrayList<>(); private final List<String> custom_interceptor_classes = new ArrayList<>();
@@ -595,6 +596,10 @@ public Cors getCors() {
return local_base_urls; return local_base_urls;
} }
public Set<String> getLogical_urls() {
return logical_urls;
}
public Boolean getIg_runtime_upload_enabled() { public Boolean getIg_runtime_upload_enabled() {
return ig_runtime_upload_enabled; return ig_runtime_upload_enabled;
} }

View File

@@ -150,6 +150,7 @@ public class FhirServerConfigCommon {
jpaStorageSettings.setFilterParameterEnabled(appProperties.getFilter_search_enabled()); jpaStorageSettings.setFilterParameterEnabled(appProperties.getFilter_search_enabled());
jpaStorageSettings.setAdvancedHSearchIndexing(appProperties.getAdvanced_lucene_indexing()); jpaStorageSettings.setAdvancedHSearchIndexing(appProperties.getAdvanced_lucene_indexing());
jpaStorageSettings.setTreatBaseUrlsAsLocal(new HashSet<>(appProperties.getLocal_base_urls())); jpaStorageSettings.setTreatBaseUrlsAsLocal(new HashSet<>(appProperties.getLocal_base_urls()));
jpaStorageSettings.setTreatReferencesAsLogical(new HashSet<>(appProperties.getLogical_urls()));
if (appProperties.getLastn_enabled()) { if (appProperties.getLastn_enabled()) {
jpaStorageSettings.setLastNEnabled(true); jpaStorageSettings.setLastNEnabled(true);

View File

@@ -140,6 +140,15 @@ hapi:
mdm_rules_json_location: "mdm-rules.json" mdm_rules_json_location: "mdm-rules.json"
# local_base_urls: # local_base_urls:
# - https://hapi.fhir.org/baseR4 # - https://hapi.fhir.org/baseR4
logical_urls:
- http://terminology.hl7.org/*
- https://terminology.hl7.org/*
- http://snomed.info/*
- https://snomed.info/*
- http://unitsofmeasure.org/*
- https://unitsofmeasure.org/*
- http://loinc.org/*
- https://loinc.org/*
# partitioning: # partitioning:
# allow_references_across_partitions: false # allow_references_across_partitions: false
# partitioning_include_in_search_hashes: false # partitioning_include_in_search_hashes: false