bulk data instrumentation included
This commit is contained in:
@@ -46,6 +46,7 @@ public class AppProperties {
|
|||||||
private Boolean graphql_enabled = false;
|
private Boolean graphql_enabled = false;
|
||||||
private Boolean binary_storage_enabled = false;
|
private Boolean binary_storage_enabled = false;
|
||||||
private Boolean bulk_export_enabled = false;
|
private Boolean bulk_export_enabled = false;
|
||||||
|
private Boolean bulk_import_enabled = false;
|
||||||
private Boolean default_pretty_print = true;
|
private Boolean default_pretty_print = true;
|
||||||
private Integer default_page_size = 20;
|
private Integer default_page_size = 20;
|
||||||
private Integer max_binary_size = null;
|
private Integer max_binary_size = null;
|
||||||
@@ -402,6 +403,14 @@ public class AppProperties {
|
|||||||
this.bulk_export_enabled = 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() {
|
public EncodingEnum getDefault_encoding() {
|
||||||
return default_encoding;
|
return default_encoding;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package ca.uhn.fhir.jpa.starter;
|
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.batch2.jobs.reindex.ReindexProvider;
|
||||||
import ca.uhn.fhir.context.FhirContext;
|
import ca.uhn.fhir.context.FhirContext;
|
||||||
import ca.uhn.fhir.context.FhirVersionEnum;
|
import ca.uhn.fhir.context.FhirVersionEnum;
|
||||||
@@ -78,6 +79,8 @@ public class BaseJpaRestfulServer extends RestfulServer {
|
|||||||
@Autowired
|
@Autowired
|
||||||
BulkDataExportProvider bulkDataExportProvider;
|
BulkDataExportProvider bulkDataExportProvider;
|
||||||
@Autowired
|
@Autowired
|
||||||
|
BulkDataImportProvider bulkDataImportProvider;
|
||||||
|
@Autowired
|
||||||
PartitionManagementProvider partitionManagementProvider;
|
PartitionManagementProvider partitionManagementProvider;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@@ -364,6 +367,11 @@ public class BaseJpaRestfulServer extends RestfulServer {
|
|||||||
registerProvider(bulkDataExportProvider);
|
registerProvider(bulkDataExportProvider);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Bulk Import
|
||||||
|
if (appProperties.getBulk_import_enabled()) {
|
||||||
|
registerProvider(bulkDataImportProvider);
|
||||||
|
}
|
||||||
|
|
||||||
// valueSet Operations i.e $expand
|
// valueSet Operations i.e $expand
|
||||||
registerProvider(myValueSetOperationProvider);
|
registerProvider(myValueSetOperationProvider);
|
||||||
|
|
||||||
|
|||||||
@@ -96,6 +96,8 @@ hapi:
|
|||||||
### !!Extended Lucene/Elasticsearch Indexing is still a experimental feature, expect some features (e.g. _total=accurate) to not work as expected!!
|
### !!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
|
### more information here: https://hapifhir.io/hapi-fhir/docs/server_jpa/elastic.html
|
||||||
advanced_lucene_indexing: false
|
advanced_lucene_indexing: false
|
||||||
|
bulk_export_enabled: true
|
||||||
|
bulk_import_enabled: true
|
||||||
# enforce_referential_integrity_on_delete: false
|
# enforce_referential_integrity_on_delete: false
|
||||||
# This is an experimental feature, and does not fully support _total and other FHIR features.
|
# This is an experimental feature, and does not fully support _total and other FHIR features.
|
||||||
# enforce_referential_integrity_on_delete: false
|
# enforce_referential_integrity_on_delete: false
|
||||||
|
|||||||
Reference in New Issue
Block a user