Package com.ibm.fhir.search.context
Interface FHIRSearchContext
-
- All Superinterfaces:
FHIRPagingContext
- All Known Implementing Classes:
FHIRSearchContextImpl
public interface FHIRSearchContext extends FHIRPagingContext
Interface for FHIR Search Context.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addElementsParameter(java.lang.String elementToInclude)
void
addOutcomeIssue(OperationOutcome.Issue outcomeIssue)
Adds an issue the list of issues to be returned in the search outcome.java.util.List<java.lang.String>
getElementsParameters()
Get the list of element names requested to be included in the returned resources.java.util.List<InclusionParameter>
getIncludeParameters()
java.util.List<OperationOutcome.Issue>
getOutcomeIssues()
Get the list of issues to be returned in the search outcome.java.util.List<InclusionParameter>
getRevIncludeParameters()
java.util.List<QueryParameter>
getSearchParameters()
java.util.List<java.lang.String>
getSearchResourceTypes()
java.util.List<SortParameter>
getSortParameters()
SummaryValueSet
getSummaryParameter()
Get the summary parameter.TotalValueSet
getTotalParameter()
Get the total parameter.boolean
hasElementsParameters()
boolean
hasIncludeParameters()
boolean
hasRevIncludeParameters()
boolean
hasSortParameters()
boolean
hasSummaryParameter()
boolean
hasTotalParameter()
boolean
isIncludeResourceData()
Should the search result include the actual resource in the responsevoid
setElementsParameters(java.util.List<java.lang.String> elementsToInclude)
Set the list of element names requested to be included in the returned resources.void
setIncludeResourceData(boolean flag)
Set the includeResourceData flagvoid
setSearchParameters(java.util.List<QueryParameter> searchParameters)
void
setSearchResourceTypes(java.util.List<java.lang.String> searchResourceTypes)
void
setSortParameters(java.util.List<SortParameter> sortParameters)
void
setSummaryParameter(SummaryValueSet summary)
Set the value of the summary parameter.void
setTotalParameter(TotalValueSet total)
Set the value of the total parameter.-
Methods inherited from interface com.ibm.fhir.core.context.FHIRPagingContext
getLastPageNumber, getMatchCount, getMaxPageIncludeCount, getMaxPageSize, getPageNumber, getPageSize, getTotalCount, isLenient, setLastPageNumber, setLenient, setMatchCount, setMaxPageIncludeCount, setMaxPageSize, setPageNumber, setPageSize, setTotalCount
-
-
-
-
Method Detail
-
isIncludeResourceData
boolean isIncludeResourceData()
Should the search result include the actual resource in the response- Returns:
-
setIncludeResourceData
void setIncludeResourceData(boolean flag)
Set the includeResourceData flag- Parameters:
flag
-
-
getSearchResourceTypes
java.util.List<java.lang.String> getSearchResourceTypes()
-
setSearchResourceTypes
void setSearchResourceTypes(java.util.List<java.lang.String> searchResourceTypes)
-
getSearchParameters
java.util.List<QueryParameter> getSearchParameters()
-
setSearchParameters
void setSearchParameters(java.util.List<QueryParameter> searchParameters)
-
getSortParameters
java.util.List<SortParameter> getSortParameters()
-
setSortParameters
void setSortParameters(java.util.List<SortParameter> sortParameters)
-
hasSortParameters
boolean hasSortParameters()
-
getIncludeParameters
java.util.List<InclusionParameter> getIncludeParameters()
-
hasIncludeParameters
boolean hasIncludeParameters()
-
getRevIncludeParameters
java.util.List<InclusionParameter> getRevIncludeParameters()
-
hasRevIncludeParameters
boolean hasRevIncludeParameters()
-
getElementsParameters
java.util.List<java.lang.String> getElementsParameters()
Get the list of element names requested to be included in the returned resources.- Returns:
- a list of strings or null to indicate that there is currently no elements filter associated with the search
-
setElementsParameters
void setElementsParameters(java.util.List<java.lang.String> elementsToInclude)
Set the list of element names requested to be included in the returned resources. An empty list of strings will indicate that only mandatory elements should be included in the search result. Null is used to represent "no filter".
-
hasElementsParameters
boolean hasElementsParameters()
- Returns:
- true when the elements parameter is not null
-
addElementsParameter
void addElementsParameter(java.lang.String elementToInclude)
- Parameters:
elementToInclude
-
-
hasSummaryParameter
boolean hasSummaryParameter()
- Returns:
- true when the summary parameter is not null
-
getSummaryParameter
SummaryValueSet getSummaryParameter()
Get the summary parameter.- Returns:
- the value of the summary parameter
-
setSummaryParameter
void setSummaryParameter(SummaryValueSet summary)
Set the value of the summary parameter.- Parameters:
summary
- the value
-
hasTotalParameter
boolean hasTotalParameter()
- Returns:
- true when the total parameter is not null
-
getTotalParameter
TotalValueSet getTotalParameter()
Get the total parameter.- Returns:
- the value of the total parameter
-
setTotalParameter
void setTotalParameter(TotalValueSet total)
Set the value of the total parameter.- Parameters:
total
- the value
-
getOutcomeIssues
java.util.List<OperationOutcome.Issue> getOutcomeIssues()
Get the list of issues to be returned in the search outcome.- Returns:
- a list of issues to be returned in the search outcome
-
addOutcomeIssue
void addOutcomeIssue(OperationOutcome.Issue outcomeIssue)
Adds an issue the list of issues to be returned in the search outcome.- Parameters:
outcomeIssue
- the issue
-
-