Skip to content

Commit

Permalink
Optimize resource link extraction with batch querying
Browse files Browse the repository at this point in the history
  • Loading branch information
Maja Razinger committed Feb 10, 2025
1 parent bbff855 commit 3482bc9
Show file tree
Hide file tree
Showing 3 changed files with 445 additions and 257 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
import jakarta.annotation.Nullable;
import org.hl7.fhir.instance.model.api.IBaseResource;

import java.util.Map;
import java.util.Set;

public interface IResourceLinkResolver {

/**
Expand All @@ -49,6 +52,13 @@ IResourceLookup findTargetResource(
RequestDetails theRequest,
TransactionDetails theTransactionDetails);

Map<PathAndRef, IResourceLookup> findTargetResource(
@Nonnull RequestPartitionId theRequestPartitionId,
String theSourceResourceName,
Set<PathAndRef> thePathAndRefs,
RequestDetails theRequest,
TransactionDetails theTransactionDetails);

/**
* This method resolves the target of a reference found within a resource that is being created/updated. We do this
* so that we can create indexed links between resources, and so that we can validate that the target actually
Expand Down
Loading

0 comments on commit 3482bc9

Please sign in to comment.