Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Aziz Essid authored and Aziz Essid committed Aug 22, 2022
2 parents 760615e + 4978f32 commit 1def7b1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM maven:3.8-openjdk-17-slim as build-hapi
WORKDIR /tmp/hapi-fhir-jpaserver-starter

ARG OPENTELEMETRY_JAVA_AGENT_VERSION=1.15.0
ARG OPENTELEMETRY_JAVA_AGENT_VERSION=1.16.0
RUN curl -LSsO https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v${OPENTELEMETRY_JAVA_AGENT_VERSION}/opentelemetry-javaagent.jar

COPY pom.xml .
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public class AppProperties {
private Boolean graphql_enabled = false;
private Boolean binary_storage_enabled = false;
private Boolean bulk_export_enabled = false;
private Boolean bulk_import_enabled = false;
private Boolean default_pretty_print = true;
private Integer default_page_size = 20;
private Integer max_binary_size = null;
Expand Down Expand Up @@ -402,6 +403,14 @@ public void setBulk_export_enabled(Boolean bulk_export_enabled) {
this.bulk_export_enabled = bulk_export_enabled;
}

public Boolean getBulk_import_enabled() {
return bulk_import_enabled;
}

public void setBulk_import_enabled(Boolean bulk_import_enabled) {
this.bulk_import_enabled = bulk_import_enabled;
}

public EncodingEnum getDefault_encoding() {
return default_encoding;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package ca.uhn.fhir.jpa.starter;

import ca.uhn.fhir.batch2.jobs.imprt.BulkDataImportProvider;
import ca.uhn.fhir.batch2.jobs.reindex.ReindexProvider;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.context.FhirVersionEnum;
Expand Down Expand Up @@ -78,6 +79,8 @@ public class BaseJpaRestfulServer extends RestfulServer {
@Autowired
BulkDataExportProvider bulkDataExportProvider;
@Autowired
BulkDataImportProvider bulkDataImportProvider;
@Autowired
PartitionManagementProvider partitionManagementProvider;

@Autowired
Expand Down Expand Up @@ -364,6 +367,11 @@ protected void initialize() throws ServletException {
registerProvider(bulkDataExportProvider);
}

//Bulk Import
if (appProperties.getBulk_import_enabled()) {
registerProvider(bulkDataImportProvider);
}

// valueSet Operations i.e $expand
registerProvider(myValueSetOperationProvider);

Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ hapi:
### !!Extended Lucene/Elasticsearch Indexing is still a experimental feature, expect some features (e.g. _total=accurate) to not work as expected!!
### more information here: https://hapifhir.io/hapi-fhir/docs/server_jpa/elastic.html
advanced_lucene_indexing: false
bulk_export_enabled: false
bulk_import_enabled: false
# enforce_referential_integrity_on_delete: false
# This is an experimental feature, and does not fully support _total and other FHIR features.
# enforce_referential_integrity_on_delete: false
Expand Down

0 comments on commit 1def7b1

Please sign in to comment.