Package dev.dsf.fhir.search.parameters
Class ResearchStudyPrincipalInvestigator
java.lang.Object
dev.dsf.fhir.search.parameters.basic.AbstractSearchParameter<R>
dev.dsf.fhir.search.parameters.basic.AbstractReferenceParameter<org.hl7.fhir.r4.model.ResearchStudy>
dev.dsf.fhir.search.parameters.ResearchStudyPrincipalInvestigator
- All Implemented Interfaces:
MatcherParameter,SearchQuerySortParameter,SearchQueryIncludeParameter<org.hl7.fhir.r4.model.ResearchStudy>,SearchQueryParameter<org.hl7.fhir.r4.model.ResearchStudy>
@IncludeParameterDefinition(resourceType=org.hl7.fhir.r4.model.ResearchStudy.class,
parameterName="principalinvestigator",
targetResourceTypes={org.hl7.fhir.r4.model.Practitioner.class,org.hl7.fhir.r4.model.PractitionerRole.class})
@SearchParameterDefinition(name="principalinvestigator",
definition="http://hl7.org/fhir/SearchParameter/ResearchStudy-principalinvestigator",
type=REFERENCE,
documentation="Researcher who oversees multiple aspects of the study")
public class ResearchStudyPrincipalInvestigator
extends AbstractReferenceParameter<org.hl7.fhir.r4.model.ResearchStudy>
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.dsf.fhir.search.parameters.basic.AbstractReferenceParameter
AbstractReferenceParameter.ReferenceSearchType, AbstractReferenceParameter.ReferenceValueAndSearchTypeNested classes/interfaces inherited from interface dev.dsf.fhir.search.SearchQueryParameter
SearchQueryParameter.SearchParameterDefinition -
Field Summary
FieldsFields inherited from class dev.dsf.fhir.search.parameters.basic.AbstractReferenceParameter
valueAndTypeFields inherited from class dev.dsf.fhir.search.parameters.basic.AbstractSearchParameter
parameterName, resourceType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoResolveReferencesForMatching(org.hl7.fhir.r4.model.ResearchStudy resource, DaoProvider daoProvider) protected StringgetIncludeSql(IncludeParts includeParts) protected StringgetSortSql(String sortDirectionWithSpacePrefix) intprotected voidmodifyIncludeResource(IncludeParts includeParts, org.hl7.fhir.r4.model.Resource resource, Connection connection) Use this method to modify the include resources.voidmodifyStatement(int parameterIndex, int subqueryParameterIndex, PreparedStatement statement, BiFunctionWithSqlException<String, Object[], Array> arrayCreator) protected booleanresourceMatches(org.hl7.fhir.r4.model.ResearchStudy resource) Methods inherited from class dev.dsf.fhir.search.parameters.basic.AbstractReferenceParameter
configureInclude, doConfigure, getBundleUriQueryParameterName, getBundleUriQueryParameterValue, getNameModifiers, isDefined, resolveReferencesForMatchingMethods inherited from class dev.dsf.fhir.search.parameters.basic.AbstractSearchParameter
configure, configureSort, getParameterName, matches, notDefined
-
Field Details
-
PARAMETER_NAME
- See Also:
-
-
Constructor Details
-
ResearchStudyPrincipalInvestigator
public ResearchStudyPrincipalInvestigator()
-
-
Method Details
-
getIncludeParameterValues
-
getFilterQuery
-
getSqlParameterCount
public int getSqlParameterCount() -
modifyStatement
public void modifyStatement(int parameterIndex, int subqueryParameterIndex, PreparedStatement statement, BiFunctionWithSqlException<String, Object[], throws SQLExceptionArray> arrayCreator) - Throws:
SQLException
-
doResolveReferencesForMatching
protected void doResolveReferencesForMatching(org.hl7.fhir.r4.model.ResearchStudy resource, DaoProvider daoProvider) throws SQLException - Specified by:
doResolveReferencesForMatchingin classAbstractReferenceParameter<org.hl7.fhir.r4.model.ResearchStudy>- Throws:
SQLException
-
resourceMatches
protected boolean resourceMatches(org.hl7.fhir.r4.model.ResearchStudy resource) - Specified by:
resourceMatchesin classAbstractSearchParameter<org.hl7.fhir.r4.model.ResearchStudy>
-
getSortSql
- Specified by:
getSortSqlin classAbstractSearchParameter<org.hl7.fhir.r4.model.ResearchStudy>
-
getIncludeSql
- Specified by:
getIncludeSqlin classAbstractReferenceParameter<org.hl7.fhir.r4.model.ResearchStudy>
-
modifyIncludeResource
protected void modifyIncludeResource(IncludeParts includeParts, org.hl7.fhir.r4.model.Resource resource, Connection connection) Description copied from class:AbstractReferenceParameterUse 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.- Specified by:
modifyIncludeResourcein classAbstractReferenceParameter<org.hl7.fhir.r4.model.ResearchStudy>- Parameters:
includeParts- notnullresource- notnullconnection- notnull
-