public interface IQuery<Y> extends IBaseQuery<IQuery<Y>>, IClientExecutable<IQuery<Y>,Y>
| Modifier and Type | Method and Description |
|---|---|
IQuery<Y> |
and(ICriterion<?> theCriterion)
Add a search parameter to the query.
|
IQuery<Y> |
count(int theCount)
Specifies the
_count parameter, which indicates to the server how many resources should be returned
on a single page. |
IQuery<Y> |
include(Include theInclude)
Add an "_include" specification or an "_include:recurse" specification.
|
IQuery<Y> |
lastUpdated(DateRangeParam theLastUpdated)
Add a "_lastUpdated" specification
|
IQuery<Y> |
limitTo(int theLimitTo)
Deprecated.
This parameter is badly named, since FHIR calls this parameter "_count" and not "_limit". Use
count(int) instead (it also sets the _count parameter) |
<B extends IBaseBundle> |
returnBundle(Class<B> theClass)
Request that the client return the specified bundle type, e.g.
|
IQuery<Y> |
revInclude(Include theIncludeTarget)
Add a "_revinclude" specification
|
ISort<Y> |
sort()
Adds a sort criteria
|
IQuery<Y> |
sort(SortSpec theSortSpec)
Adds a sort using a
SortSpec object |
IQuery<Y> |
totalMode(SearchTotalModeEnum theTotalMode)
Request that the server modify the response using the
_total param
THIS IS AN EXPERIMENTAL FEATURE - Use with caution, as it may be
removed or modified in a future version. |
IQuery<Y> |
usingStyle(SearchStyleEnum theStyle)
Forces the query to perform the search using the given method (allowable methods are described in the
FHIR Search Specification)
|
IQuery<Y> |
where(ICriterion<?> theCriterion)
Add a search parameter to the query.
|
IQuery<Y> |
withAnyProfile(Collection<String> theProfileUris)
Matches any of the profiles given as argument.
|
IQuery<Y> |
withIdAndCompartment(String theResourceId,
String theCompartmentName) |
IQuery<Y> |
withProfile(String theProfileUri)
Match only resources where the resource has the given profile declaration.
|
IQuery<Y> |
withSecurity(String theSystem,
String theCode)
Match only resources where the resource has the given security tag.
|
IQuery<Y> |
withTag(String theSystem,
String theCode)
Match only resources where the resource has the given tag.
|
where, whereMapaccept, andLogRequestAndResponse, cacheControl, elementsSubset, encoded, encodedJson, encodedXml, execute, preferResponseType, preferResponseTypes, prettyPrint, summaryMode, withAdditionalHeaderIQuery<Y> and(ICriterion<?> theCriterion)
Note that this method is a synonym for IBaseQuery.where(ICriterion), and is only
here to make fluent queries read more naturally.
and in interface IBaseQuery<IQuery<Y>>IQuery<Y> count(int theCount)
_count parameter, which indicates to the server how many resources should be returned
on a single page.IQuery<Y> include(Include theInclude)
.include(Patient.INCLUDE_ORGANIZATION.asRecursive())
.include(Patient.INCLUDE_ORGANIZATION.asNonRecursive())
IQuery<Y> lastUpdated(DateRangeParam theLastUpdated)
@Deprecated IQuery<Y> limitTo(int theLimitTo)
count(int) instead (it also sets the _count parameter)_count parameter, which indicates to the server how many resources should be returned
on a single page.<B extends IBaseBundle> IQuery<B> returnBundle(Class<B> theClass)
org.hl7.fhir.dstu2.model.Bundle.class
or ca.uhn.fhir.model.dstu2.resource.Bundle.classIQuery<Y> totalMode(SearchTotalModeEnum theTotalMode)
_total param
THIS IS AN EXPERIMENTAL FEATURE - Use with caution, as it may be
removed or modified in a future version.IQuery<Y> revInclude(Include theIncludeTarget)
ISort<Y> sort()
for an alternate way of speciyfing sortsIQuery<Y> sort(SortSpec theSortSpec)
SortSpec objectfor an alternate way of speciyfing sortsIQuery<Y> usingStyle(SearchStyleEnum theStyle)
This can be used to force the use of an HTTP POST instead of an HTTP GET
SearchStyleEnumIQuery<Y> where(ICriterion<?> theCriterion)
where in interface IBaseQuery<IQuery<Y>>IQuery<Y> withAnyProfile(Collection<String> theProfileUris)
withProfile(String).theProfileUris - The URIs of a given profile to search for resources which match.IQuery<Y> withIdAndCompartment(String theResourceId, String theCompartmentName)
IQuery<Y> withProfile(String theProfileUri)
_profile URL parameter.theProfileUri - The URI of a given profile to search for resources which matchIQuery<Y> withSecurity(String theSystem, String theCode)
_security URL parameter.theSystem - The tag code system, or null to match any code system (this may not be supported on all servers)theCode - The tag code. Must not be null or empty.IQuery<Y> withTag(String theSystem, String theCode)
_tag URL parameter.theSystem - The tag code system, or null to match any code system (this may not be supported on all servers)theCode - The tag code. Must not be null or empty.Copyright © 2014–2019 University Health Network. All rights reserved.