
Interface IResourceLinkResolver
public interface IResourceLinkResolver
-
Method Summary
Modifier and TypeMethodDescriptionfindTargetResource
(ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId, ca.uhn.fhir.context.RuntimeSearchParam theSearchParam, String theSourcePath, org.hl7.fhir.instance.model.api.IIdType theSourceResourceId, String theTypeString, Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theType, org.hl7.fhir.instance.model.api.IBaseReference theReference, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) This method resolves the target of a reference found within a resource that is being created/updated.void
validateTypeOrThrowException
(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theType)
-
Method Details
-
findTargetResource
IResourceLookup findTargetResource(ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId, ca.uhn.fhir.context.RuntimeSearchParam theSearchParam, String theSourcePath, org.hl7.fhir.instance.model.api.IIdType theSourceResourceId, String theTypeString, Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theType, org.hl7.fhir.instance.model.api.IBaseReference theReference, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, ca.uhn.fhir.rest.api.server.storage.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 exists in cases where we need to check that.This method returns an
IResourceLookup
so as to avoid needing to resolve the entire resource.- Parameters:
theRequestPartitionId
- The partition ID of the target resourcetheSearchParam
- The param that is being indexedtheSourcePath
- The path within the resource where this reference was foundtheSourceResourceId
- The ID of the resource containing the reference to the target being resolvedtheTypeString
- The type of the resource being resolvedtheType
- The resource type of the targettheReference
- The reference being resolvedtheRequest
- The incoming request, if anytheTransactionDetails
-
-
validateTypeOrThrowException
void validateTypeOrThrowException(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theType)
-