Class BulkDataClient
- java.lang.Object
-
- com.ibm.fhir.operation.bulkdata.client.BulkDataClient
-
public class BulkDataClient extends Object
-
-
Constructor Summary
Constructors Constructor Description BulkDataClient(String bulkdataSource, String outcomeSource, String incomingUrl, String baseUri, ConfigurationAdapter adapter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response.Status
delete(String job)
deletes the given job.void
handleStandardResponseStatus(int httpStatus)
PollingLocationResponse
status(String job)
String
submitExport(Instant since, List<String> types, OperationConstants.ExportType exportType, String outputFormat, String typeFilters, String groupId)
String
submitImport(String inputFormat, String inputSource, List<Input> inputs, StorageDetail storageDetail)
submit import job with bulkdata.void
verifyTenant(JobParameter jobParameters)
verifies the tenant based on the job parameters.
-
-
-
Constructor Detail
-
BulkDataClient
public BulkDataClient(String bulkdataSource, String outcomeSource, String incomingUrl, String baseUri, ConfigurationAdapter adapter)
- Parameters:
bulkdataSource
- the sourceoutcomeSource
-incomingUrl
-baseUri
-adapter
-
-
-
Method Detail
-
submitExport
public String submitExport(Instant since, List<String> types, OperationConstants.ExportType exportType, String outputFormat, String typeFilters, String groupId) throws Exception
- Parameters:
since
-types
-exportType
-outputFormat
-typeFilters
-groupId
-- Returns:
- Throws:
Exception
-
status
public PollingLocationResponse status(String job) throws Exception
- Parameters:
job
-- Returns:
- a PollingLocationResponse or null if the job is still running
- Throws:
Exception
-
handleStandardResponseStatus
public void handleStandardResponseStatus(int httpStatus) throws FHIROperationException
- Throws:
FHIROperationException
-
delete
public javax.ws.rs.core.Response.Status delete(String job) throws FHIROperationException
deletes the given job.- Parameters:
job
-- Returns:
- status code
- Throws:
FHIROperationException
-
verifyTenant
public void verifyTenant(JobParameter jobParameters) throws FHIROperationException
verifies the tenant based on the job parameters.- Parameters:
jobParameters
-- Throws:
FHIROperationException
-
-