Class AbstractRevIncludeParameterFactory
java.lang.Object
dev.dsf.fhir.search.parameters.rev.include.AbstractRevIncludeParameterFactory
- All Implemented Interfaces:
SearchQueryRevIncludeParameterFactory
- Direct Known Subclasses:
EndpointOrganizationRevInclude,OrganizationAffiliationParticipatingOrganizationRevInclude,OrganizationAffiliationPrimaryOrganizationRevInclude,OrganizationEndpointRevInclude,ResearchStudyEnrollmentRevInclude
public abstract class AbstractRevIncludeParameterFactory
extends Object
implements SearchQueryRevIncludeParameterFactory
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractRevIncludeParameterFactory(String resourceTypeName, String parameterName, String... targetResourceTypeName) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidvoidprotected abstract StringgetRevIncludeSql(IncludeParts includeParts) protected abstract voidmodifyIncludeResource(org.hl7.fhir.r4.model.Resource resource, Connection connection) Use this method to modify the include resources.
-
Constructor Details
-
AbstractRevIncludeParameterFactory
public AbstractRevIncludeParameterFactory(String resourceTypeName, String parameterName, String... targetResourceTypeName) - Parameters:
resourceTypeName- The name of the source resource from which the join comesparameterName- The name of the search parameter which must be of type referencetargetResourceTypeName- target resource type
-
-
Method Details
-
configure
- Specified by:
configurein interfaceSearchQueryRevIncludeParameterFactory
-
addError
-
getErrors
- Specified by:
getErrorsin interfaceSearchQueryRevIncludeParameterFactory
-
getRevIncludeSql
-
modifyIncludeResource
protected abstract void modifyIncludeResource(org.hl7.fhir.r4.model.Resource resource, Connection connection) Use this method to modify the include resources. This method can be used if the resources returned by the include SQL are not complete and additional content needs to be retrieved from a not included column. For example the content of aBinaryresource might not be stored in the json column.- Parameters:
resource- notnullconnection- notnull
-
getRevIncludeParameters
- Specified by:
getRevIncludeParametersin interfaceSearchQueryRevIncludeParameterFactory
-