Class InteropScenario
- java.lang.Object
-
- org.linuxforhealth.fhir.bucket.interop.InteropScenario
-
- All Implemented Interfaces:
IPatientScenario
public class InteropScenario extends java.lang.Object implements IPatientScenario
A workload simulating interop client access. Fetch a Patient and related ExplanationOfBenefit resources, then use these to drive a second request fetching the Claim and Provider resources referenced by each of the retrieved ExplanationOfBenefit resources.
-
-
Constructor Summary
Constructors Constructor Description InteropScenario(FHIRBucketClient client)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(java.lang.String patientId, java.util.concurrent.atomic.AtomicInteger fhirRequest, java.util.concurrent.atomic.AtomicLong fhirRequestTime, java.util.concurrent.atomic.AtomicInteger resourceCount)
Execute the scenario for the given patient, incrementing the atomic counters to report the statisticsprotected int
processResult(Bundle bundle)
Process the result bundle we retrieved.
-
-
-
Constructor Detail
-
InteropScenario
public InteropScenario(FHIRBucketClient client)
Public constructor- Parameters:
client
-
-
-
Method Detail
-
process
public void process(java.lang.String patientId, java.util.concurrent.atomic.AtomicInteger fhirRequest, java.util.concurrent.atomic.AtomicLong fhirRequestTime, java.util.concurrent.atomic.AtomicInteger resourceCount)
Description copied from interface:IPatientScenario
Execute the scenario for the given patient, incrementing the atomic counters to report the statistics- Specified by:
process
in interfaceIPatientScenario
-
processResult
protected int processResult(Bundle bundle)
Process the result bundle we retrieved. Create a new bundle to fetch the details from each of the bundles.- Parameters:
bundle
-
-
-