public interface IGenericClient extends IRestfulClient
| Modifier and Type | Method and Description |
|---|---|
IFetchConformanceUntyped |
capabilities()
Fetch the capability statement for the server
|
ICreate |
create()
Fluent method for the "create" operation, which creates a new resource instance on the server
|
IDelete |
delete()
Fluent method for the "delete" operation, which performs a logical delete on a server resource
|
IFetchConformanceUntyped |
fetchConformance()
Deprecated.
As of HAPI 3.0.0 this method has been deprecated, as the operation is now called "capabilities". Use
capabilities() instead |
void |
forceConformanceCheck()
Force the client to fetch the server's conformance statement and validate that it is appropriate for this client.
|
IHistory |
history()
Implementation of the "history" method
|
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
|
IPatch |
patch()
Fluent method for the "patch" operation, which performs a logical patch on a server resource
|
IRead |
read()
Fluent method for "read" and "vread" methods.
|
<T extends IBaseResource> |
read(Class<T> theType,
String theId)
Deprecated.
Use
read() fluent method instead (deprecated in HAPI FHIR 3.0.0) |
<T extends IBaseResource> |
read(Class<T> theType,
UriDt theUrl)
Deprecated.
Use
read() fluent method instead (deprecated in HAPI FHIR 3.0.0) |
IBaseResource |
read(UriDt theUrl)
Deprecated.
Use
read() fluent method instead (deprecated in HAPI FHIR 3.0.0) |
void |
registerInterceptor(IClientInterceptor theInterceptor)
Register a new interceptor for this client.
|
<T extends IBaseBundle> |
search()
Search for resources matching a given set of criteria.
|
void |
setLogRequestAndResponse(boolean theLogRequestAndResponse)
Deprecated.
Use LoggingInterceptor as a client interceptor registered to your
client instead, as this provides much more fine-grained control over what is logged. This
method will be removed at some point (deprecated in HAPI 1.6 - 2016-06-16)
|
ITransaction |
transaction()
Send a transaction (collection of resources) to the server to be executed as a single unit
|
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)
Deprecated.
Use
update() fluent method instead (deprecated in HAPI FHIR 3.0.0) |
MethodOutcome |
update(String theId,
IBaseResource theResource)
Deprecated.
Use
update() fluent method instead (deprecated in HAPI FHIR 3.0.0) |
IValidate |
validate()
Validate a resource
|
MethodOutcome |
validate(IBaseResource theResource)
Deprecated.
Use
validate() fluent method instead (deprecated in HAPI FHIR 3.0.0) |
<T extends IBaseResource> |
vread(Class<T> theType,
IdDt theId)
Deprecated.
Use
read() fluent method instead (deprecated in HAPI FHIR 3.0.0) |
<T extends IBaseResource> |
vread(Class<T> theType,
String theId,
String theVersionId)
Deprecated.
Use
read() fluent method instead (deprecated in HAPI FHIR 3.0.0) |
fetchResourceFromUrl, getEncoding, getFhirContext, getHttpClient, getInterceptors, getServerBase, setEncoding, setPrettyPrint, setSummaryIFetchConformanceUntyped capabilities()
ICreate create()
IDelete delete()
IFetchConformanceUntyped fetchConformance()
capabilities() insteadvoid 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)IGetPage loadPage()
IMeta meta()
IOperation operation()
IPatch patch()
@Deprecated <T extends IBaseResource> T read(Class<T> theType, String theId)
read() fluent method instead (deprecated in HAPI FHIR 3.0.0)theType - The type of resource to loadtheId - The ID to load@Deprecated <T extends IBaseResource> T read(Class<T> theType, UriDt theUrl)
read() fluent method instead (deprecated in HAPI FHIR 3.0.0)theType - The resource type that is being retrievedtheUrl - The absolute URL, e.g. "http://example.com/fhir/Patient/123"@Deprecated IBaseResource read(UriDt theUrl)
read() fluent method instead (deprecated in HAPI FHIR 3.0.0)theUrl - The absolute URL, e.g. "http://example.com/fhir/Patient/123"void registerInterceptor(IClientInterceptor theInterceptor)
registerInterceptor in interface IRestfulClient<T extends IBaseBundle> IUntypedQuery<T> search()
@Deprecated 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()
void unregisterInterceptor(IClientInterceptor theInterceptor)
IRestfulClient.registerInterceptor(IClientInterceptor)unregisterInterceptor in interface IRestfulClientIUpdate update()
@Deprecated MethodOutcome update(IdDt theId, IBaseResource theResource)
update() fluent method instead (deprecated in HAPI FHIR 3.0.0)theId - The ID to updatetheResource - The new resource body@Deprecated MethodOutcome update(String theId, IBaseResource theResource)
update() fluent method instead (deprecated in HAPI FHIR 3.0.0)theId - The ID to updatetheResource - The new resource body@Deprecated MethodOutcome validate(IBaseResource theResource)
validate() fluent method instead (deprecated in HAPI FHIR 3.0.0)theResource - The resource to validate@Deprecated <T extends IBaseResource> T vread(Class<T> theType, IdDt theId)
read() fluent method instead (deprecated in HAPI FHIR 3.0.0)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, String theId, String theVersionId)
read() fluent method instead (deprecated in HAPI FHIR 3.0.0)theType - The type of resource to loadtheId - The ID to loadtheVersionId - The version IDCopyright © 2014–2017 University Health Network. All rights reserved.