public interface IGenericClient extends IRestfulClient
| Modifier and Type | Method and Description |
|---|---|
BaseConformance |
conformance()
Deprecated.
Use
fetchConformance() instead |
ICreate |
create()
Fluent method for the "create" operation, which creates a new resource instance on the server
|
MethodOutcome |
create(IBaseResource theResource)
Deprecated.
Use
fluent method instead. This method will be removed. |
IDelete |
delete()
Fluent method for the "delete" operation, which performs a logical delete on a server resource
|
MethodOutcome |
delete(Class<? extends IBaseResource> theType,
IdDt theId)
Deprecated.
Use
delete() instead |
MethodOutcome |
delete(Class<? extends IBaseResource> theType,
String theId)
Deprecated.
Use
delete() instead |
IFetchConformanceUntyped |
fetchConformance()
Retrieves the server's conformance statement
|
void |
forceConformanceCheck()
Force the client to fetch the server's conformance statement and validate that it is appropriate for this client.
|
IGetTags |
getTags()
Fluent method for the "get tags" operation
|
IHistory |
history()
Implementation of the "history" method
|
<T extends IBaseResource> |
history(Class<T> theType,
IdDt theId,
DateTimeDt theSince,
Integer theLimit)
Deprecated.
As of 0.9, use the fluent
history() method instead |
<T extends IBaseResource> |
history(Class<T> theType,
String theId,
DateTimeDt theSince,
Integer theLimit)
Deprecated.
As of 0.9, use the fluent
history() method instead |
IGetPage |
loadPage()
Loads the previous/next bundle of resources from a paged set, using the link specified in the "link type=next" tag within the atom bundle.
|
IMeta |
meta()
Fluent method for the "meta" operations, which can be used to get, add and remove tags and other
Meta elements from a resource or across the server.
|
IOperation |
operation()
Implementation of the FHIR "extended operations" action
|
IRead |
read()
Fluent method for "read" and "vread" methods.
|
<T extends IBaseResource> |
read(Class<T> theType,
String theId)
Implementation of the "instance read" method.
|
<T extends IBaseResource> |
read(Class<T> theType,
UriDt theUrl)
Perform the "read" operation (retrieve the latest version of a resource instance by ID) using an absolute URL.
|
IBaseResource |
read(UriDt theUrl)
Perform the "read" operation (retrieve the latest version of a resource instance by ID) using an absolute URL.
|
void |
registerInterceptor(IClientInterceptor theInterceptor)
Register a new interceptor for this client.
|
IUntypedQuery |
search()
Search for resources matching a given set of criteria.
|
<T extends IBaseResource> |
search(Class<T> theType,
Map<String,List<IQueryParameterType>> theParams)
Implementation of the "instance search" method.
|
<T extends IBaseResource> |
search(Class<T> theType,
UriDt theUrl)
Perform the "search" operation using an absolute URL.
|
Bundle |
search(UriDt theUrl) |
void |
setLogRequestAndResponse(boolean theLogRequestAndResponse)
If set to
true, the client will log all requests and all responses. |
ITransaction |
transaction()
Send a transaction (collection of resources) to the server to be executed as a single unit
|
List<IBaseResource> |
transaction(List<IBaseResource> theResources)
Deprecated.
Use
transaction() |
void |
unregisterInterceptor(IClientInterceptor theInterceptor)
Remove an intercaptor that was previously registered using
IRestfulClient.registerInterceptor(IClientInterceptor) |
IUpdate |
update()
Fluent method for the "update" operation, which performs a logical delete on a server resource
|
MethodOutcome |
update(IdDt theId,
IBaseResource theResource)
Implementation of the "instance update" method.
|
MethodOutcome |
update(String theId,
IBaseResource theResource)
Implementation of the "instance update" method.
|
IValidate |
validate()
Validate a resource
|
MethodOutcome |
validate(IBaseResource theResource)
Implementation of the "type validate" method.
|
<T extends IBaseResource> |
vread(Class<T> theType,
IdDt theId)
Implementation of the "instance vread" method.
|
<T extends IBaseResource> |
vread(Class<T> theType,
IdDt theId,
IdDt theVersionId)
Deprecated.
Deprecated in 0.7 - IdDt can contain an ID and a version, so this class doesn't make a lot of sense
|
<T extends IBaseResource> |
vread(Class<T> theType,
String theId,
String theVersionId)
Implementation of the "instance vread" method.
|
fetchResourceFromUrl, getFhirContext, getHttpClient, getServerBase, setEncoding, setPrettyPrint, setSummary@Deprecated BaseConformance conformance()
fetchConformance() insteadICreate create()
@Deprecated MethodOutcome create(IBaseResource theResource)
fluent method instead. This method will be removed.theResource - The resource to createIDelete delete()
@Deprecated MethodOutcome delete(Class<? extends IBaseResource> theType, IdDt theId)
delete() insteadtheType - The type of resource to deletetheId - the ID of the resource to delete@Deprecated MethodOutcome delete(Class<? extends IBaseResource> theType, String theId)
delete() insteadtheType - The type of resource to deletetheId - the ID of the resource to deleteIFetchConformanceUntyped fetchConformance()
void forceConformanceCheck() throws FhirClientConnectionException
FhirClientConnectionException - if the conformance statement cannot be read, or if the clientFhirClientInappropriateForServerException - If the conformance statement indicates that the server is inappropriate for this client (e.g. it implements the wrong version of FHIR)@Deprecated <T extends IBaseResource> Bundle history(Class<T> theType, IdDt theId, DateTimeDt theSince, Integer theLimit)
history() method insteadtheType - The type of resource to return the history for, or null to search for history across all resourcestheId - The ID of the resource to return the history for, or null to search for all resource instances. Note that if this param is not null, theType must also not
be nulltheSince - If not null, request that the server only return resources updated since this timetheLimit - If not null, request that the server return no more than this number of resources. Note that the server may return less even if more are available, but should not return more
according to the FHIR specification.@Deprecated <T extends IBaseResource> Bundle history(Class<T> theType, String theId, DateTimeDt theSince, Integer theLimit)
history() method insteadtheType - The type of resource to return the history for, or null to search for history across all resourcestheId - The ID of the resource to return the history for, or null to search for all resource instances. Note that if this param is not null, theType must also not
be nulltheSince - If not null, request that the server only return resources updated since this timetheLimit - If not null, request that the server return no more than this number of resources. Note that the server may return less even if more are available, but should not return more
according to the FHIR specification.IGetPage loadPage()
Bundle.getLinkNext()IMeta meta()
IOperation operation()
<T extends IBaseResource> T read(Class<T> theType, String theId)
theType - The type of resource to loadtheId - The ID to load<T extends IBaseResource> T read(Class<T> theType, UriDt theUrl)
theType - The resource type that is being retrievedtheUrl - The absolute URL, e.g. "http://example.com/fhir/Patient/123"IBaseResource read(UriDt theUrl)
theUrl - The absolute URL, e.g. "http://example.com/fhir/Patient/123"void registerInterceptor(IClientInterceptor theInterceptor)
registerInterceptor in interface IRestfulClientIUntypedQuery search()
<T extends IBaseResource> Bundle search(Class<T> theType, Map<String,List<IQueryParameterType>> theParams)
theType - The type of resource to loadtheParams - <T extends IBaseResource> Bundle search(Class<T> theType, UriDt theUrl)
theType - The primary resource type that is being retrievedtheUrl - The absolute URL, e.g. "http://example.com/fhir/Patient/123"void setLogRequestAndResponse(boolean theLogRequestAndResponse)
true, the client will log all requests and all responses. This is probably not a good production setting since it will result in a lot of extra logging, but it can be
useful for troubleshooting.theLogRequestAndResponse - Should requests and responses be loggedITransaction transaction()
@Deprecated List<IBaseResource> transaction(List<IBaseResource> theResources)
transaction()theResources - The resources to create/update in a single transactionmetadatavoid unregisterInterceptor(IClientInterceptor theInterceptor)
IRestfulClient.registerInterceptor(IClientInterceptor)unregisterInterceptor in interface IRestfulClientIUpdate update()
MethodOutcome update(IdDt theId, IBaseResource theResource)
theId - The ID to updatetheResource - The new resource bodyMethodOutcome update(String theId, IBaseResource theResource)
theId - The ID to updatetheResource - The new resource bodyMethodOutcome validate(IBaseResource theResource)
theResource - The resource to validate<T extends IBaseResource> T vread(Class<T> theType, IdDt theId)
theId to contain a resource ID as well as a version ID, and will fail if it does not.
Note that if an absolute resource ID is passed in (i.e. a URL containing a protocol and host as well as the resource type and ID) the server base for the client will be ignored, and the URL passed in will be queried.
theType - The type of resource to loadtheId - The ID to load, including the resource ID and the resource version ID. Valid values include "Patient/123/_history/222", or "http://example.com/fhir/Patient/123/_history/222"@Deprecated <T extends IBaseResource> T vread(Class<T> theType, IdDt theId, IdDt theVersionId)
theType - The type of resource to loadtheId - The ID to loadtheVersionId - The version ID<T extends IBaseResource> T vread(Class<T> theType, String theId, String theVersionId)
theType - The type of resource to loadtheId - The ID to loadtheVersionId - The version IDCopyright © 2014–2016 University Health Network. All rights reserved.