Package ca.uhn.fhir.jpa.bulk.export.job
Class GroupBulkItemReader
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.GroupBulkItemReader
- All Implemented Interfaces:
org.springframework.batch.item.ItemReader<List<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId>>
public class GroupBulkItemReader
extends BaseJpaBulkItemReader
implements org.springframework.batch.item.ItemReader<List<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId>>
Bulk Item reader for the Group Bulk Export job.
Instead of performing a normal query on the resource type using type filters, we instead
1. Get the group ID defined for this job
2. Expand its membership so we get references to all patients in the group
3. Optionally further expand that into all MDM-matched Patients (including golden resources)
4. Then perform normal bulk export, filtered so that only results that refer to members are returned.
-
Field Summary
FieldsFields 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
-
Field Details
-
QUERY_CHUNK_SIZE
- See Also:
-
-
Constructor Details
-
GroupBulkItemReader
public GroupBulkItemReader()
-
-
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
-