Package dev.dsf.fhir.service
Interface ReferenceResolver
- All Known Implementing Classes:
ReferenceResolverImpl
public interface ReferenceResolver
-
Method Summary
Modifier and TypeMethodDescriptionOptional<org.hl7.fhir.r4.model.OperationOutcome>checkConditionalReference(Identity identity, org.hl7.fhir.r4.model.Resource resource, ResourceReference resourceReference, Connection connection, Integer bundleIndex) Optional<org.hl7.fhir.r4.model.OperationOutcome>checkLiteralExternalReference(org.hl7.fhir.r4.model.Resource resource, ResourceReference resourceReference) Optional<org.hl7.fhir.r4.model.OperationOutcome>checkLiteralExternalReference(org.hl7.fhir.r4.model.Resource resource, ResourceReference resourceReference, Integer bundleIndex) Optional<org.hl7.fhir.r4.model.OperationOutcome>checkLiteralInternalReference(org.hl7.fhir.r4.model.Resource resource, ResourceReference resourceReference, Connection connection) Optional<org.hl7.fhir.r4.model.OperationOutcome>checkLiteralInternalReference(org.hl7.fhir.r4.model.Resource resource, ResourceReference resourceReference, Connection connection, Integer bundleIndex) Optional<org.hl7.fhir.r4.model.OperationOutcome>checkLogicalReference(Identity identity, org.hl7.fhir.r4.model.Resource resource, ResourceReference resourceReference, Connection connection) Optional<org.hl7.fhir.r4.model.OperationOutcome>checkLogicalReference(Identity identity, org.hl7.fhir.r4.model.Resource resource, ResourceReference resourceReference, Connection connection, Integer bundleIndex) booleanreferenceCanBeChecked(ResourceReference reference, Connection connection) booleanreferenceCanBeResolved(ResourceReference reference, Connection connection) Optional<org.hl7.fhir.r4.model.Resource>resolveReference(Identity identity, ResourceReference reference, Connection connection)
-
Method Details
-
referenceCanBeResolved
- Parameters:
reference- notnullconnection- notnull- Returns:
trueif theResourceReferencecan be resolved
-
resolveReference
Optional<org.hl7.fhir.r4.model.Resource> resolveReference(Identity identity, ResourceReference reference, Connection connection) - Parameters:
identity- notnullreference- notnullconnection- notnull- Returns:
Optional.empty()if the reference could not be resolved- Throws:
IllegalArgumentException- if the reference is not of typeResourceReference.ReferenceType.LITERAL_INTERNAL,ResourceReference.ReferenceType.LITERAL_EXTERNAL,ResourceReference.ReferenceType.CONDITIONALorResourceReference.ReferenceType.LOGICAL
-
referenceCanBeChecked
- Parameters:
reference- notnullconnection- notnull- Returns:
trueif theResourceReferencecan be checked
-
checkLiteralInternalReference
Optional<org.hl7.fhir.r4.model.OperationOutcome> checkLiteralInternalReference(org.hl7.fhir.r4.model.Resource resource, ResourceReference resourceReference, Connection connection) throws IllegalArgumentException - Parameters:
resource- notnullresourceReference- notnullconnection- notnull- Returns:
Optional.empty()if the reference could be resolved- Throws:
IllegalArgumentException- if the reference is not of typeResourceReference.ReferenceType.LITERAL_INTERNAL- See Also:
-
checkLiteralInternalReference
Optional<org.hl7.fhir.r4.model.OperationOutcome> checkLiteralInternalReference(org.hl7.fhir.r4.model.Resource resource, ResourceReference resourceReference, Connection connection, Integer bundleIndex) throws IllegalArgumentException - Parameters:
resource- notnullresourceReference- notnullconnection- notnullbundleIndex- may benull- Returns:
Optional.empty()if the reference could be resolved- Throws:
IllegalArgumentException- if the reference is not of typeResourceReference.ReferenceType.LITERAL_INTERNAL- See Also:
-
checkLiteralExternalReference
Optional<org.hl7.fhir.r4.model.OperationOutcome> checkLiteralExternalReference(org.hl7.fhir.r4.model.Resource resource, ResourceReference resourceReference) throws IllegalArgumentException - Parameters:
resource- notnullresourceReference- notnull- Returns:
Optional.empty()if the reference check was @Override successful- Throws:
IllegalArgumentException- if the reference is not of typeResourceReference.ReferenceType.LITERAL_EXTERNAL- See Also:
-
checkLiteralExternalReference
Optional<org.hl7.fhir.r4.model.OperationOutcome> checkLiteralExternalReference(org.hl7.fhir.r4.model.Resource resource, ResourceReference resourceReference, Integer bundleIndex) throws IllegalArgumentException - Parameters:
resource- notnullresourceReference- notnullbundleIndex- may benull- Returns:
Optional.empty()if the reference check was successful- Throws:
IllegalArgumentException- if the reference is not of typeResourceReference.ReferenceType.LITERAL_EXTERNAL- See Also:
-
checkConditionalReference
Optional<org.hl7.fhir.r4.model.OperationOutcome> checkConditionalReference(Identity identity, org.hl7.fhir.r4.model.Resource resource, ResourceReference resourceReference, Connection connection, Integer bundleIndex) throws IllegalArgumentException - Parameters:
identity- notnullresource- notnullresourceReference- notnullconnection- notnullbundleIndex- may benull- Returns:
Optional.empty()if the reference check was successful- Throws:
IllegalArgumentException- if the reference is not of typeResourceReference.ReferenceType.CONDITIONAL- See Also:
-
checkLogicalReference
Optional<org.hl7.fhir.r4.model.OperationOutcome> checkLogicalReference(Identity identity, org.hl7.fhir.r4.model.Resource resource, ResourceReference resourceReference, Connection connection) throws IllegalArgumentException - Parameters:
identity- notnullresource- notnullresourceReference- notnullconnection- notnull- Returns:
Optional.empty()if the reference check was successful- Throws:
IllegalArgumentException- if the reference is not of typeResourceReference.ReferenceType.LOGICAL- See Also:
-
checkLogicalReference
Optional<org.hl7.fhir.r4.model.OperationOutcome> checkLogicalReference(Identity identity, org.hl7.fhir.r4.model.Resource resource, ResourceReference resourceReference, Connection connection, Integer bundleIndex) throws IllegalArgumentException - Parameters:
identity- notnullresource- notnullresourceReference- notnullconnection- notnullbundleIndex- may benull- Returns:
Optional.empty()if the reference check was successful- Throws:
IllegalArgumentException- if the reference is not of typeResourceReference.ReferenceType.LOGICAL- See Also:
-