Class BulkDataExportUtil
- java.lang.Object
-
- org.linuxforhealth.fhir.operation.bulkdata.util.BulkDataExportUtil
-
public class BulkDataExportUtil extends java.lang.Object
BulkData Util captures common methods
-
-
Constructor Summary
Constructors Constructor Description BulkDataExportUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FHIROperationException
buildOperationException(java.lang.String errMsg, IssueType issueType)
FHIROperationException
buildOperationException(java.lang.String errMsg, IssueType issueType, java.lang.Exception e)
javax.ws.rs.core.MediaType
checkAndConvertToMediaType(Parameters parameters)
Instant
checkAndExtractSince(Parameters parameters)
java.lang.String
checkAndValidateJob(Parameters parameters)
checks and validates the job.java.util.List<java.lang.String>
checkAndValidateTypeFilters(Parameters parameters)
java.util.Set<java.lang.String>
checkAndValidateTypes(OperationConstants.ExportType exportType, FHIRVersionParam fhirVersion, java.util.List<Parameters.Parameter> parameters)
processes both the Parameters object and the query parametersOperationConstants.ExportType
checkExportType(FHIROperationContext.Type type, java.lang.Class<? extends Resource> resourceType)
Check the Export Type is valid and converts to intermediate enumParameters
getOutputParametersWithJson(PollingLocationResponse resource)
-
-
-
Method Detail
-
checkExportType
public OperationConstants.ExportType checkExportType(FHIROperationContext.Type type, java.lang.Class<? extends Resource> resourceType)
Check the Export Type is valid and converts to intermediate enum- Parameters:
type
-resourceType
-- Returns:
-
checkAndConvertToMediaType
public javax.ws.rs.core.MediaType checkAndConvertToMediaType(Parameters parameters) throws FHIROperationException
- Throws:
FHIROperationException
-
buildOperationException
public FHIROperationException buildOperationException(java.lang.String errMsg, IssueType issueType)
-
buildOperationException
public FHIROperationException buildOperationException(java.lang.String errMsg, IssueType issueType, java.lang.Exception e)
-
checkAndExtractSince
public Instant checkAndExtractSince(Parameters parameters)
- Parameters:
parameters
-- Returns:
- Throws:
FHIROperationException
-
checkAndValidateTypes
public java.util.Set<java.lang.String> checkAndValidateTypes(OperationConstants.ExportType exportType, FHIRVersionParam fhirVersion, java.util.List<Parameters.Parameter> parameters) throws FHIROperationException
processes both the Parameters object and the query parameters- Parameters:
exportType
-fhirVersion
-parameters
-- Returns:
- Throws:
FHIROperationException
-
checkAndValidateTypeFilters
public java.util.List<java.lang.String> checkAndValidateTypeFilters(Parameters parameters) throws FHIROperationException
- Throws:
FHIROperationException
-
getOutputParametersWithJson
public Parameters getOutputParametersWithJson(PollingLocationResponse resource) throws java.lang.Exception
- Throws:
java.lang.Exception
-
checkAndValidateJob
public java.lang.String checkAndValidateJob(Parameters parameters) throws FHIROperationException
checks and validates the job.- Parameters:
parameters
-- Returns:
- Throws:
FHIROperationException
-
-