Package com.ibm.fhir.bulkdata.provider
Interface Provider
- 
- All Known Implementing Classes:
 AzureProvider,FileProvider,HttpsProvider,S3Provider
public interface ProviderWraps the Complexities of a Source for the Given Type 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidclose()default voidcreateSource()creates the base output location for the type.longgetNumberOfLoaded()longgetNumberOfParseFailures()List<Resource>getResources()gets the read resources.longgetSize(String workItem)gets the size of the given work item.default voidpushOperationOutcomes()Pushes the Operation OutcomesvoidreadResources(long numOfLinesToSkip, String workItem)reads from a given workitem (or file) in a source and skips a certain noumber of linesvoidregisterTransient(long executionId, ExportTransientUserData transientUserData, String cosBucketPathPrefix, String fhirResourceType)voidregisterTransient(ImportTransientUserData transientUserData)default voidwriteResources(String mediaType, List<ReadResultDTO> dtos)wraps the complexity of writing FHIR Resources out to a target 
 - 
 
- 
- 
Method Detail
- 
getSize
long getSize(String workItem) throws FHIRException
gets the size of the given work item.- Parameters:
 workItem-- Returns:
 - Throws:
 FHIRException
 
- 
readResources
void readResources(long numOfLinesToSkip, String workItem) throws FHIRExceptionreads from a given workitem (or file) in a source and skips a certain noumber of lines- Parameters:
 numOfLinesToSkip-workItem-- Throws:
 FHIRException
 
- 
getResources
List<Resource> getResources() throws FHIRException
gets the read resources.- Returns:
 - Throws:
 FHIRException
 
- 
writeResources
default void writeResources(String mediaType, List<ReadResultDTO> dtos) throws Exception
wraps the complexity of writing FHIR Resources out to a target- Parameters:
 mediaType-dtos-- Throws:
 Exception
 
- 
createSource
default void createSource() throws FHIRExceptioncreates the base output location for the type.- Throws:
 FHIRException
 
- 
getNumberOfParseFailures
long getNumberOfParseFailures() throws FHIRException- Throws:
 FHIRException
 
- 
getNumberOfLoaded
long getNumberOfLoaded() throws FHIRException- Throws:
 FHIRException
 
- 
registerTransient
void registerTransient(ImportTransientUserData transientUserData)
 
- 
registerTransient
void registerTransient(long executionId, ExportTransientUserData transientUserData, String cosBucketPathPrefix, String fhirResourceType) throws Exception- Throws:
 Exception
 
- 
pushOperationOutcomes
default void pushOperationOutcomes() throws FHIRExceptionPushes the Operation Outcomes- Throws:
 FHIRException
 
 - 
 
 -