Class FHIRClientResourceProcessor
- java.lang.Object
-
- org.linuxforhealth.fhir.bucket.scanner.FHIRClientResourceProcessor
-
- All Implemented Interfaces:
IResourceEntryProcessor
public class FHIRClientResourceProcessor extends java.lang.Object implements IResourceEntryProcessor
Calls the FHIR REST API to create resources
-
-
Constructor Summary
Constructors Constructor Description FHIRClientResourceProcessor(FHIRBucketClient fc, DataAccess dataAccess)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(ResourceEntry re)
Process the resource entry (usually called from within a thread-poolprotected void
processBadRequest(ResourceEntry re, FhirServerResponse response)
Record the error in the database
-
-
-
Constructor Detail
-
FHIRClientResourceProcessor
public FHIRClientResourceProcessor(FHIRBucketClient fc, DataAccess dataAccess)
Public constructor- Parameters:
poolSize
-
-
-
Method Detail
-
process
public void process(ResourceEntry re)
Description copied from interface:IResourceEntryProcessor
Process the resource entry (usually called from within a thread-pool- Specified by:
process
in interfaceIResourceEntryProcessor
-
processBadRequest
protected void processBadRequest(ResourceEntry re, FhirServerResponse response)
Record the error in the database- Parameters:
re
-response
-
-
-