Merge branch 'master' into rel_5_4_0

This commit is contained in:
jamesagnew
2021-05-19 08:47:50 -04:00
3 changed files with 307 additions and 307 deletions

View File

@@ -189,6 +189,13 @@ spring:
password: admin password: admin
driverClassName: com.mysql.jdbc.Driver driverClassName: com.mysql.jdbc.Driver
``` ```
On some systems, it might be necessary to override hibernate's default naming strategy. The naming strategy must be set using spring.jpa.hibernate.physical_naming_strategy.
```yaml
spring:
jpa:
hibernate.physical_naming_strategy: NAME_OF_PREFERRED_STRATEGY
```
### PostgreSQL configuration ### PostgreSQL configuration

View File

@@ -106,6 +106,8 @@ public class BaseJpaRestfulServer extends RestfulServer {
public BaseJpaRestfulServer() { public BaseJpaRestfulServer() {
} }
private static final long serialVersionUID = 1L;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@Override @Override
protected void initialize() throws ServletException { protected void initialize() throws ServletException {
@@ -275,7 +277,7 @@ public class BaseJpaRestfulServer extends RestfulServer {
config.addAllowedHeader("X-Requested-With"); config.addAllowedHeader("X-Requested-With");
config.addAllowedHeader("Prefer"); config.addAllowedHeader("Prefer");
List<String> allAllowedCORSOrigins = appProperties.getCors().getAllowed_origin(); List<String> allAllowedCORSOrigins = appProperties.getCors().getAllowed_origin();
allAllowedCORSOrigins.forEach(config::addAllowedOrigin); allAllowedCORSOrigins.forEach(config::addAllowedOriginPattern);
config.addExposedHeader("Location"); config.addExposedHeader("Location");

View File

@@ -21,21 +21,20 @@ spring:
# hibernate.cache.use_second_level_cache: false # hibernate.cache.use_second_level_cache: false
# hibernate.cache.use_structured_entries: false # hibernate.cache.use_structured_entries: false
# hibernate.cache.use_minimal_puts: false # hibernate.cache.use_minimal_puts: false
### These settings will enable fulltext search with lucene
# These settings will enable fulltext search with lucene
# hibernate.search.enabled: true # hibernate.search.enabled: true
# hibernate.search.backend.type: lucene # hibernate.search.backend.type: lucene
# hibernate.search.backend.analysis.configurer: ca.uhn.fhir.jpa.search.HapiLuceneAnalysisConfigurer # hibernate.search.backend.analysis.configurer: ca.uhn.fhir.jpa.search.HapiLuceneAnalysisConfigurer
# hibernate.search.backend.directory.type: local-filesystem # hibernate.search.backend.directory.type: local-filesystem
# hibernate.search.backend.directory.root: target/lucenefiles # hibernate.search.backend.directory.root: target/lucenefiles
# hibernate.search.backend.lucene_version: lucene_current # hibernate.search.backend.lucene_version: lucene_current
batch: batch:
job: job:
enabled: false enabled: false
hapi: hapi:
fhir: fhir:
### This is the FHIR version. Choose between, DSTU2, DSTU3, R4 or R5
fhir_version: R4
### enable to use the ApacheProxyAddressStrategy which uses X-Forwarded-* headers ### enable to use the ApacheProxyAddressStrategy which uses X-Forwarded-* headers
### to determine the FHIR server address ### to determine the FHIR server address
# use_apache_address_strategy: false # use_apache_address_strategy: false
@@ -44,11 +43,9 @@ hapi:
# use_apache_address_strategy_https: false # use_apache_address_strategy_https: false
### enable to set the Server URL ### enable to set the Server URL
# server_address: http://hapi.fhir.org/baseR4 # server_address: http://hapi.fhir.org/baseR4
### This is the FHIR version. Choose between, DSTU2, DSTU3, R4 or R5
fhir_version: R4
# defer_indexing_for_codesystems_of_size: 101 # defer_indexing_for_codesystems_of_size: 101
# implementationguides: # implementationguides:
#example from registry (packages.fhir.org) ### example from registry (packages.fhir.org)
# swiss: # swiss:
# name: swiss.mednet.fhir # name: swiss.mednet.fhir
# version: 0.8.0 # version: 0.8.0
@@ -57,7 +54,6 @@ hapi:
# url: https://build.fhir.org/ig/HL7/fhir-ips/package.tgz # url: https://build.fhir.org/ig/HL7/fhir-ips/package.tgz
# name: hl7.fhir.uv.ips # name: hl7.fhir.uv.ips
# version: 1.0.0 # version: 1.0.0
# supported_resource_types: # supported_resource_types:
# - Patient # - Patient
# - Observation # - Observation
@@ -80,6 +76,7 @@ hapi:
# etag_support_enabled: true # etag_support_enabled: true
# expunge_enabled: true # expunge_enabled: true
# daoconfig_client_id_strategy: null # daoconfig_client_id_strategy: null
# client_id_strategy: ALPHANUMERIC
# fhirpath_interceptor_enabled: false # fhirpath_interceptor_enabled: false
# filter_search_enabled: true # filter_search_enabled: true
# graphql_enabled: true # graphql_enabled: true
@@ -87,12 +84,11 @@ hapi:
# partitioning: # partitioning:
# allow_references_across_partitions: false # allow_references_across_partitions: false
# partitioning_include_in_search_hashes: false # partitioning_include_in_search_hashes: false
#cors: cors:
# allow_Credentials: true allow_Credentials: true
# Supports multiple, comma separated allowed origin entries # These are allowed_origin patterns, see: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/cors/CorsConfiguration.html#setAllowedOriginPatterns-java.util.List-
# cors.allowed_origin=http://localhost:8080,https://localhost:8080,https://fhirtest.uhn.ca allowed_origin:
# allowed_origin: - '*'
# - '*'
# Search coordinator thread pool sizes # Search coordinator thread pool sizes
search-coord-core-pool-size: 20 search-coord-core-pool-size: 20
@@ -113,13 +109,11 @@ hapi:
# retain_cached_searches_mins: 60 # retain_cached_searches_mins: 60
# reuse_cached_search_results_millis: 60000 # reuse_cached_search_results_millis: 60000
tester: tester:
home: home:
name: Local Tester name: Local Tester
server_address: 'http://localhost:8080/fhir' server_address: 'http://localhost:8080/fhir'
refuse_to_fetch_third_party_urls: false refuse_to_fetch_third_party_urls: false
fhir_version: R4 fhir_version: R4
global: global:
name: Global Tester name: Global Tester
server_address: "http://hapi.fhir.org/baseR4" server_address: "http://hapi.fhir.org/baseR4"
@@ -149,9 +143,6 @@ hapi:
### 1: NORMALIZED_QUANTITY_STORAGE_SUPPORTED ### 1: NORMALIZED_QUANTITY_STORAGE_SUPPORTED
### 2: NORMALIZED_QUANTITY_SEARCH_SUPPORTED ### 2: NORMALIZED_QUANTITY_SEARCH_SUPPORTED
# normalized_quantity_search_level: 2 # normalized_quantity_search_level: 2
#
#elasticsearch: #elasticsearch:
# debug: # debug:
# pretty_print_json_log: false # pretty_print_json_log: false