public interface IBundleProvider
| Modifier and Type | Method and Description |
|---|---|
default String |
getCurrentPageId()
If this method is implemented, provides an ID for the current
page of results.
|
default String |
getNextPageId()
If this method is implemented, provides an ID for the next
page of results.
|
default String |
getPreviousPageId()
If this method is implemented, provides an ID for the previous
page of results.
|
org.hl7.fhir.instance.model.api.IPrimitiveType<Date> |
getPublished()
Returns the instant as of which this result was created.
|
List<org.hl7.fhir.instance.model.api.IBaseResource> |
getResources(int theFromIndex,
int theToIndex)
Load the given collection of resources by index, plus any additional resources per the
server's processing rules (e.g.
|
String |
getUuid()
Returns the UUID associated with this search.
|
Integer |
preferredPageSize()
Optionally may be used to signal a preferred page size to the server, e.g.
|
Integer |
size()
Returns the total number of results which match the given query (exclusive of any
_include's or OperationOutcome).
|
default String getCurrentPageId()
getUuid())
so that it can be used to look up a specific page of results.
This can be used in order to allow the server paging mechanism to work using completely opaque links (links that do not encode any index/offset information), which can be useful on some servers.
default String getNextPageId()
getUuid())
so that it can be used to look up a specific page of results.
This can be used in order to allow the server paging mechanism to work using completely opaque links (links that do not encode any index/offset information), which can be useful on some servers.
default String getPreviousPageId()
getUuid())
so that it can be used to look up a specific page of results.
This can be used in order to allow the server paging mechanism to work using completely opaque links (links that do not encode any index/offset information), which can be useful on some servers.
org.hl7.fhir.instance.model.api.IPrimitiveType<Date> getPublished()
lastUpdated
value on search result/history result bundles.List<org.hl7.fhir.instance.model.api.IBaseResource> getResources(int theFromIndex, int theToIndex)
Note that if this bundle provider was loaded using a
page ID (i.e. via IPagingProvider.retrieveResultList(String, String)
because getNextPageId() provided a value on the
previous page, then the indexes should be ignored and the
whole page returned.
theFromIndex - The low index (inclusive) to returntheToIndex - The high index (exclusive) to returntheToIndex - theFromIndex.String getUuid()
In other words, if you are using the default FifoMemoryPagingProvider in
your server, it is fine for this method to simply return null since FifoMemoryPagingProvider
does not use the value anyhow. On the other hand, if you are creating a custom
IPagingProvider implementation you might use this method to communicate
the search ID back to the provider.
Note that the UUID returned by this method corresponds to the search, and not to the individual page.
Integer preferredPageSize()
nullCopyright © 2014–2019 University Health Network. All rights reserved.