Class BulkDataExportUtil
- java.lang.Object
-
- org.linuxforhealth.fhir.operation.bulkdata.util.BulkDataExportUtil
-
public class BulkDataExportUtil extends java.lang.ObjectBulkData Util captures common methods
-
-
Constructor Summary
Constructors Constructor Description BulkDataExportUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FHIROperationExceptionbuildOperationException(java.lang.String errMsg, IssueType issueType)FHIROperationExceptionbuildOperationException(java.lang.String errMsg, IssueType issueType, java.lang.Exception e)javax.ws.rs.core.MediaTypecheckAndConvertToMediaType(Parameters parameters)InstantcheckAndExtractSince(Parameters parameters)java.lang.StringcheckAndValidateJob(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.ExportTypecheckExportType(FHIROperationContext.Type type, java.lang.Class<? extends Resource> resourceType)Check the Export Type is valid and converts to intermediate enumParametersgetOutputParametersWithJson(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
-
-