Package ca.uhn.fhir.jpa.bulk.export.job
Class PatientBulkItemReader
java.lang.Object
ca.uhn.fhir.jpa.bulk.export.job.BaseBulkItemReader
ca.uhn.fhir.jpa.bulk.export.job.BaseJpaBulkItemReader
ca.uhn.fhir.jpa.bulk.export.job.PatientBulkItemReader
- All Implemented Interfaces:
org.springframework.batch.item.ItemReader<List<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId>>
public class PatientBulkItemReader
extends BaseJpaBulkItemReader
implements org.springframework.batch.item.ItemReader<List<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId>>
Bulk Item reader for the Patient Bulk Export job.
Instead of performing a normal query on the resource type using type filters, we instead
1. Determine the resourcetype
2. Search for anything that has `patient-compartment-search-param:missing=false`
-
Field Summary
Fields inherited from class ca.uhn.fhir.jpa.bulk.export.job.BaseJpaBulkItemReader
myDaoRegistry, myJobUUID, mySearchBuilderFactory
Fields inherited from class ca.uhn.fhir.jpa.bulk.export.job.BaseBulkItemReader
myContext, myReadChunkSize, myResourceType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Iterator<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId>
Methods inherited from class ca.uhn.fhir.jpa.bulk.export.job.BaseJpaBulkItemReader
getJobEntity, getLogInfoForRead, getPatientSearchParamForCurrentResourceType, getSearchBuilderForLocalResourceType, getSinceDate, getTypeFilterList
Methods inherited from class ca.uhn.fhir.jpa.bulk.export.job.BaseBulkItemReader
buildSearchParameterMapForTypeFilter, createSearchParameterMapsForResourceType, getResourceDefinition, loadResourcePIDs, read
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.batch.item.ItemReader
read
-
Constructor Details
-
PatientBulkItemReader
public PatientBulkItemReader()
-
-
Method Details
-
getResourcePidIterator
protected Iterator<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId> getResourcePidIterator()- Specified by:
getResourcePidIterator
in classca.uhn.fhir.jpa.bulk.export.job.BaseBulkItemReader
-