
Package ca.uhn.fhir.mdm.svc
Class BulkExportMdmEidMatchOnlyResourceExpander
java.lang.Object
ca.uhn.fhir.mdm.svc.BulkExportMdmEidMatchOnlyResourceExpander
- All Implemented Interfaces:
IBulkExportMdmResourceExpander
public class BulkExportMdmEidMatchOnlyResourceExpander
extends Object
implements IBulkExportMdmResourceExpander
Implementation of
IBulkExportMdmResourceExpander
that handles bulk export resource expansion
when MDM mode is Match-Only and Eid Systems defined in mdm rules.
This expander is used during bulk export operations to expand Group resources by resolving MDM matching resources for the members in the group. Resources are matched based on just eids rather than the full MDM golden resource relationships.
-
Constructor Summary
ConstructorsConstructorDescriptionBulkExportMdmEidMatchOnlyResourceExpander
(DaoRegistry theDaoRegistry, MdmEidMatchOnlyExpandSvc theMdmEidMatchOnlyLinkExpandSvc, ca.uhn.fhir.context.FhirContext theFhirContext, IIdHelperService<ca.uhn.fhir.jpa.model.dao.JpaPid> theIdHelperService) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
annotateResource
(org.hl7.fhir.instance.model.api.IBaseResource resource) annotates the given resource to be exported with the implementation specific extra information if applicableSet
<ca.uhn.fhir.jpa.model.dao.JpaPid> expandGroup
(String groupResourceId, ca.uhn.fhir.interceptor.model.RequestPartitionId requestPartitionId) Expands a Group resource and returns the Group members' resource persistent ids.
-
Constructor Details
-
BulkExportMdmEidMatchOnlyResourceExpander
public BulkExportMdmEidMatchOnlyResourceExpander(DaoRegistry theDaoRegistry, MdmEidMatchOnlyExpandSvc theMdmEidMatchOnlyLinkExpandSvc, ca.uhn.fhir.context.FhirContext theFhirContext, IIdHelperService<ca.uhn.fhir.jpa.model.dao.JpaPid> theIdHelperService) Constructor
-
-
Method Details
-
expandGroup
public Set<ca.uhn.fhir.jpa.model.dao.JpaPid> expandGroup(String groupResourceId, ca.uhn.fhir.interceptor.model.RequestPartitionId requestPartitionId) Expands a Group resource and returns the Group members' resource persistent ids. The returned ids consists of group members + all MDM matched resources based on EID only.This method:
- Reads the specified Group resource
- Extracts all member entity references from the Group
- For each member, uses EID matching to find all resources that have the same EID as the member, using eid system specified in mdm rules
- Converts the expanded resource IDs to persistent IDs (PIDs)
- Specified by:
expandGroup
in interfaceIBulkExportMdmResourceExpander
- Parameters:
groupResourceId
- The ID of the Group resource to expandrequestPartitionId
- The request partition ID- Returns:
- A set of
JpaPid
objects representing all expanded resources
-
annotateResource
Description copied from interface:IBulkExportMdmResourceExpander
annotates the given resource to be exported with the implementation specific extra information if applicable- Specified by:
annotateResource
in interfaceIBulkExportMdmResourceExpander
-