Class BulkExportMdmEidMatchOnlyResourceExpander

java.lang.Object
ca.uhn.fhir.mdm.svc.BulkExportMdmEidMatchOnlyResourceExpander
All Implemented Interfaces:
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 Details

  • 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:

      1. Reads the specified Group resource
      2. Extracts all member entity references from the Group
      3. 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
      4. Converts the expanded resource IDs to persistent IDs (PIDs)
      Specified by:
      expandGroup in interface IBulkExportMdmResourceExpander
      Parameters:
      groupResourceId - The ID of the Group resource to expand
      requestPartitionId - The request partition ID
      Returns:
      A set of JpaPid objects representing all expanded resources
    • annotateResource

      public void annotateResource(org.hl7.fhir.instance.model.api.IBaseResource resource)
      Description copied from interface: IBulkExportMdmResourceExpander
      annotates the given resource to be exported with the implementation specific extra information if applicable
      Specified by:
      annotateResource in interface IBulkExportMdmResourceExpander