Class BulkDataExportUtil
- java.lang.Object
-
- com.ibm.fhir.operation.bulkdata.util.BulkDataExportUtil
-
public class BulkDataExportUtil extends Object
BulkData Util captures common methods
-
-
Constructor Summary
Constructors Constructor Description BulkDataExportUtil()
-
Method Summary
-
-
-
Method Detail
-
checkExportType
public OperationConstants.ExportType checkExportType(FHIROperationContext.Type type, Class<? extends Resource> resourceType)
Check the Export Type is valid and converts to intermediate enum- Parameters:
type
-resourceType
-- Returns:
-
checkExportPatientResourceTypes
public void checkExportPatientResourceTypes(List<String> resourceTypes) throws FHIROperationException
- Parameters:
resourceTypes
-- Throws:
FHIROperationException
-
checkAndConvertToMediaType
public javax.ws.rs.core.MediaType checkAndConvertToMediaType(Parameters parameters) throws FHIROperationException
- Throws:
FHIROperationException
-
buildOperationException
public FHIROperationException buildOperationException(String errMsg, IssueType issueType)
-
buildOperationException
public FHIROperationException buildOperationException(String errMsg, IssueType issueType, Exception e)
-
checkAndExtractSince
public Instant checkAndExtractSince(Parameters parameters)
- Parameters:
parameters
-- Returns:
- Throws:
FHIROperationException
-
checkAndValidateTypes
public List<String> checkAndValidateTypes(Parameters parameters) throws FHIROperationException
- Throws:
FHIROperationException
-
addDefaultsForPatientCompartment
public List<String> addDefaultsForPatientCompartment() throws FHIROperationException
gets the defaults for the patient compartment.- Returns:
- Throws:
FHIROperationException
-
checkAndValidateTypeFilters
public List<String> checkAndValidateTypeFilters(Parameters parameters) throws FHIROperationException
- Throws:
FHIROperationException
-
getOutputParametersWithJson
public Parameters getOutputParametersWithJson(PollingLocationResponse resource) throws Exception
- Throws:
Exception
-
checkAndValidateJob
public String checkAndValidateJob(Parameters parameters) throws FHIROperationException
checks and validates the job.- Parameters:
parameters
-- Returns:
- Throws:
FHIROperationException
-
-