Package com.ibm.fhir.search.context.impl
Class FHIRSearchContextImpl
- java.lang.Object
-
- com.ibm.fhir.core.context.impl.FHIRPagingContextImpl
-
- com.ibm.fhir.search.context.impl.FHIRSearchContextImpl
-
- All Implemented Interfaces:
FHIRPagingContext,FHIRSearchContext
public class FHIRSearchContextImpl extends FHIRPagingContextImpl implements FHIRSearchContext
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.core.context.impl.FHIRPagingContextImpl
DEFAULT_LAST_PAGE_NUMBER, lastPageNumber, lenient, matchCount, pageNumber, pageSize, totalCount
-
-
Constructor Summary
Constructors Constructor Description FHIRSearchContextImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElementsParameter(String elementToInclude)voidaddOutcomeIssue(OperationOutcome.Issue outcomeIssue)Adds an issue the list of issues to be returned in the search outcome.List<String>getElementsParameters()Get the list of element names requested to be included in the returned resources.List<InclusionParameter>getIncludeParameters()List<OperationOutcome.Issue>getOutcomeIssues()Get the list of issues to be returned in the search outcome.List<InclusionParameter>getRevIncludeParameters()List<QueryParameter>getSearchParameters()List<String>getSearchResourceTypes()List<SortParameter>getSortParameters()SummaryValueSetgetSummaryParameter()Get the summary parameter.TotalValueSetgetTotalParameter()Get the total parameter.booleanhasElementsParameters()booleanhasIncludeParameters()booleanhasRevIncludeParameters()booleanhasSortParameters()booleanhasSummaryParameter()booleanhasTotalParameter()voidsetElementsParameters(List<String> elementsParameters)Set the list of element names requested to be included in the returned resources.voidsetSearchParameters(List<QueryParameter> searchParameters)voidsetSearchResourceTypes(List<String> searchResourceTypes)voidsetSortParameters(List<SortParameter> sortParameters)voidsetSummaryParameter(SummaryValueSet summary)Set the value of the summary parameter.voidsetTotalParameter(TotalValueSet total)Set the value of the total parameter.StringtoString()-
Methods inherited from class com.ibm.fhir.core.context.impl.FHIRPagingContextImpl
getLastPageNumber, getMatchCount, getPageNumber, getPageSize, getTotalCount, isLenient, setLastPageNumber, setLenient, setMatchCount, setPageNumber, setPageSize, setTotalCount
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.ibm.fhir.core.context.FHIRPagingContext
getLastPageNumber, getMatchCount, getPageNumber, getPageSize, getTotalCount, isLenient, setLastPageNumber, setLenient, setMatchCount, setPageNumber, setPageSize, setTotalCount
-
-
-
-
Method Detail
-
getSearchParameters
public List<QueryParameter> getSearchParameters()
- Specified by:
getSearchParametersin interfaceFHIRSearchContext
-
setSearchParameters
public void setSearchParameters(List<QueryParameter> searchParameters)
- Specified by:
setSearchParametersin interfaceFHIRSearchContext
-
getSortParameters
public List<SortParameter> getSortParameters()
- Specified by:
getSortParametersin interfaceFHIRSearchContext
-
setSortParameters
public void setSortParameters(List<SortParameter> sortParameters)
- Specified by:
setSortParametersin interfaceFHIRSearchContext
-
hasSortParameters
public boolean hasSortParameters()
- Specified by:
hasSortParametersin interfaceFHIRSearchContext
-
getIncludeParameters
public List<InclusionParameter> getIncludeParameters()
- Specified by:
getIncludeParametersin interfaceFHIRSearchContext
-
hasIncludeParameters
public boolean hasIncludeParameters()
- Specified by:
hasIncludeParametersin interfaceFHIRSearchContext
-
getRevIncludeParameters
public List<InclusionParameter> getRevIncludeParameters()
- Specified by:
getRevIncludeParametersin interfaceFHIRSearchContext
-
hasRevIncludeParameters
public boolean hasRevIncludeParameters()
- Specified by:
hasRevIncludeParametersin interfaceFHIRSearchContext
-
getElementsParameters
public List<String> getElementsParameters()
Description copied from interface:FHIRSearchContextGet the list of element names requested to be included in the returned resources.- Specified by:
getElementsParametersin interfaceFHIRSearchContext- Returns:
- a list of strings or null to indicate that there is currently no elements filter associated with the search
-
setElementsParameters
public void setElementsParameters(List<String> elementsParameters)
Description copied from interface:FHIRSearchContextSet 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".- Specified by:
setElementsParametersin interfaceFHIRSearchContext
-
addElementsParameter
public void addElementsParameter(String elementToInclude)
- Specified by:
addElementsParameterin interfaceFHIRSearchContext
-
hasElementsParameters
public boolean hasElementsParameters()
- Specified by:
hasElementsParametersin interfaceFHIRSearchContext- Returns:
- true when the elements parameter is not null
-
hasSummaryParameter
public boolean hasSummaryParameter()
- Specified by:
hasSummaryParameterin interfaceFHIRSearchContext- Returns:
- true when the summary parameter is not null
-
getSummaryParameter
public SummaryValueSet getSummaryParameter()
Description copied from interface:FHIRSearchContextGet the summary parameter.- Specified by:
getSummaryParameterin interfaceFHIRSearchContext- Returns:
- the value of the summary parameter
-
setSummaryParameter
public void setSummaryParameter(SummaryValueSet summary)
Description copied from interface:FHIRSearchContextSet the value of the summary parameter.- Specified by:
setSummaryParameterin interfaceFHIRSearchContext- Parameters:
summary- the value
-
hasTotalParameter
public boolean hasTotalParameter()
- Specified by:
hasTotalParameterin interfaceFHIRSearchContext- Returns:
- true when the total parameter is not null
-
getTotalParameter
public TotalValueSet getTotalParameter()
Description copied from interface:FHIRSearchContextGet the total parameter.- Specified by:
getTotalParameterin interfaceFHIRSearchContext- Returns:
- the value of the total parameter
-
setTotalParameter
public void setTotalParameter(TotalValueSet total)
Description copied from interface:FHIRSearchContextSet the value of the total parameter.- Specified by:
setTotalParameterin interfaceFHIRSearchContext- Parameters:
total- the value
-
getSearchResourceTypes
public List<String> getSearchResourceTypes()
- Specified by:
getSearchResourceTypesin interfaceFHIRSearchContext
-
setSearchResourceTypes
public void setSearchResourceTypes(List<String> searchResourceTypes)
- Specified by:
setSearchResourceTypesin interfaceFHIRSearchContext
-
getOutcomeIssues
public List<OperationOutcome.Issue> getOutcomeIssues()
Description copied from interface:FHIRSearchContextGet the list of issues to be returned in the search outcome.- Specified by:
getOutcomeIssuesin interfaceFHIRSearchContext- Returns:
- a list of issues to be returned in the search outcome
-
addOutcomeIssue
public void addOutcomeIssue(OperationOutcome.Issue outcomeIssue)
Description copied from interface:FHIRSearchContextAdds an issue the list of issues to be returned in the search outcome.- Specified by:
addOutcomeIssuein interfaceFHIRSearchContext- Parameters:
outcomeIssue- the issue
-
-