public class WorkerContext.NullClient extends Object implements IFHIRClient
IFHIRClient.VersionInfo| Constructor and Description |
|---|
NullClient() |
| Modifier and Type | Method and Description |
|---|---|
<T extends Resource> |
create(Class<T> resourceClass,
T resource)
Create a new resource with a server assigned id.
|
<T extends Resource> |
delete(Class<T> resourceClass,
String id)
Delete the resource with the given ID.
|
ValueSet |
expandValueset(ValueSet source)
invoke the expand operation and pass the value set for expansion
|
Bundle |
fetchFeed(String url)
Use this to follow a link found in a feed (e.g.
|
String |
getAddress()
for debugging- the server address that the client is using
|
Conformance |
getConformanceStatement()
Method returns a conformance statement for the system queried.
|
Conformance |
getConformanceStatement(boolean useOptionsVerb)
Method returns a conformance statement for the system queried.
|
Conformance |
getConformanceStatementQuick()
Method returns a conformance statement for the system queried.
|
Conformance |
getConformanceStatementQuick(boolean useOptionsVerb)
Method returns a conformance statement for the system queried.
|
int |
getMaximumRecordCount()
Returns the maximum record count specified for list operations
such as search and history.
|
String |
getPreferredFeedFormat()
Returns the feed format in effect.
|
String |
getPreferredResourceFormat()
Returns the resource format in effect.
|
IFHIRClient.VersionInfo |
getVersions()
Get the Java verion of client and reference implementation, the
client FHIR version, the server FHIR version, and the server
software version.
|
<T extends Resource> |
history()
Retrieve the update history for all resource types since the start of server records.
|
<T extends Resource> |
history(Calendar lastUpdate)
Retrieve the update history for all resource types since the specified calendar date.
|
<T extends Resource> |
history(Calendar lastUpdate,
Class<T> resourceClass)
Retrieve the update history for a resource type since the specified calendar date.
|
<T extends Resource> |
history(Calendar lastUpdate,
Class<T> resourceClass,
String id)
Retrieve the update history for a resource with given id since last update time.
|
<T extends Resource> |
history(Class<T> resourceClass) |
<T extends Resource> |
history(Class<T> resource,
String id)
Retrieve the entire update history for a resource with the given id.
|
<T extends Resource> |
history(Date lastUpdate) |
<T extends Resource> |
history(Date lastUpdate,
Class<T> resourceClass) |
<T extends Resource> |
history(Date lastUpdate,
Class<T> resourceClass,
String id) |
IFHIRClient |
initialize(String baseServiceUrl)
Call method to initialize FHIR client.
|
void |
initialize(String baseServiceUrl,
int recordCount)
Call method to initialize FHIR client.
|
<T extends Resource> |
operateType(Class<T> resourceClass,
String name,
Parameters params)
Invoke an operation at the type level
|
<T extends Resource> |
read(Class<T> resource,
String id)
Read the current state of a resource.
|
<T extends Resource> |
search(Class<T> resourceClass,
Map<String,String> params)
Return all results matching search query parameters for the given resource class.
|
<T extends Resource> |
searchPost(Class<T> resourceClass,
T resource,
Map<String,String> params)
Return all results matching search query parameters for the given resource class.
|
void |
setMaximumRecordCount(int recordCount)
Sets the maximum record count for list operations such as history
and search.
|
void |
setPreferredFeedFormat(FeedFormat feedFormat)
Override the default feed format of 'application/atom+xml'.
|
void |
setPreferredResourceFormat(ResourceFormat resourceFormat)
Override the default resource format of 'application/fhir+xml'.
|
Bundle |
transaction(Bundle batch)
Update or create a set of resources
|
<T extends Resource> |
update(Class<T> resourceClass,
T resource,
String id)
Update an existing resource by its id or create it if it is a new resource, not present on the server
|
<T extends Resource> |
validate(Class<T> resourceClass,
T resource,
String id)
Validate resource payload.
|
<T extends Resource> |
vread(Class<T> resource,
String id,
String versionid)
Read the state of a specific version of the resource
|
public NullClient()
public IFHIRClient.VersionInfo getVersions()
IFHIRClientgetVersions in interface IFHIRClientpublic IFHIRClient initialize(String baseServiceUrl) throws URISyntaxException
IFHIRClientinitialize in interface IFHIRClientbaseServiceUrl - Base service URL for FHIR Service.URISyntaxExceptionpublic void initialize(String baseServiceUrl, int recordCount) throws URISyntaxException
IFHIRClientinitialize in interface IFHIRClientbaseServiceUrl - The base service URLURISyntaxExceptionpublic void setPreferredResourceFormat(ResourceFormat resourceFormat)
IFHIRClientsetPreferredResourceFormat in interface IFHIRClientpublic String getPreferredResourceFormat()
IFHIRClientgetPreferredResourceFormat in interface IFHIRClientpublic void setPreferredFeedFormat(FeedFormat feedFormat)
IFHIRClientsetPreferredFeedFormat in interface IFHIRClientpublic String getPreferredFeedFormat()
IFHIRClientgetPreferredFeedFormat in interface IFHIRClientpublic int getMaximumRecordCount()
IFHIRClientgetMaximumRecordCount in interface IFHIRClientpublic void setMaximumRecordCount(int recordCount)
IFHIRClientsetMaximumRecordCount in interface IFHIRClientpublic Conformance getConformanceStatement()
IFHIRClientgetConformanceStatement in interface IFHIRClientpublic Conformance getConformanceStatement(boolean useOptionsVerb)
IFHIRClientgetConformanceStatement in interface IFHIRClientuseOptionsVerb - If 'true', use OPTION rather than GET.public <T extends Resource> T read(Class<T> resource, String id)
IFHIRClientread in interface IFHIRClientpublic <T extends Resource> T vread(Class<T> resource, String id, String versionid)
IFHIRClientvread in interface IFHIRClientpublic <T extends Resource> T update(Class<T> resourceClass, T resource, String id)
IFHIRClientupdate in interface IFHIRClientpublic <T extends Resource> boolean delete(Class<T> resourceClass, String id)
IFHIRClientdelete in interface IFHIRClientpublic <T extends Resource> OperationOutcome create(Class<T> resourceClass, T resource)
IFHIRClientcreate in interface IFHIRClientpublic <T extends Resource> Bundle history(Calendar lastUpdate, Class<T> resourceClass, String id)
IFHIRClienthistory in interface IFHIRClientpublic <T extends Resource> Bundle history(Date lastUpdate, Class<T> resourceClass, String id)
history in interface IFHIRClientpublic <T extends Resource> Bundle history(Class<T> resource, String id)
IFHIRClienthistory in interface IFHIRClientpublic <T extends Resource> Bundle history(Calendar lastUpdate, Class<T> resourceClass)
IFHIRClienthistory in interface IFHIRClientpublic <T extends Resource> Bundle history(Date lastUpdate, Class<T> resourceClass)
history in interface IFHIRClientpublic <T extends Resource> Bundle history(Class<T> resourceClass)
history in interface IFHIRClientpublic <T extends Resource> Bundle history(Calendar lastUpdate)
IFHIRClienthistory in interface IFHIRClientpublic <T extends Resource> Bundle history(Date lastUpdate)
history in interface IFHIRClientpublic <T extends Resource> Bundle history()
IFHIRClienthistory in interface IFHIRClientpublic <T extends Resource> OperationOutcome validate(Class<T> resourceClass, T resource, String id)
IFHIRClientvalidate in interface IFHIRClientpublic <T extends Resource> Bundle search(Class<T> resourceClass, Map<String,String> params)
IFHIRClientsearch in interface IFHIRClientpublic <T extends Resource> Bundle searchPost(Class<T> resourceClass, T resource, Map<String,String> params)
IFHIRClientsearchPost in interface IFHIRClientpublic Bundle transaction(Bundle batch)
IFHIRClienttransaction in interface IFHIRClientpublic Bundle fetchFeed(String url)
IFHIRClientfetchFeed in interface IFHIRClientpublic ValueSet expandValueset(ValueSet source) throws Exception
IFHIRClientexpandValueset in interface IFHIRClientExceptionpublic <T extends Resource> Parameters operateType(Class<T> resourceClass, String name, Parameters params)
IFHIRClientoperateType in interface IFHIRClientresourceClass - - the type on which to perform the operationname - - the name of the operation to invokeparams - - parameters to pass to the operation. If the parameters are all simple, a GET will be performedpublic Conformance getConformanceStatementQuick()
IFHIRClientgetConformanceStatementQuick in interface IFHIRClientpublic Conformance getConformanceStatementQuick(boolean useOptionsVerb)
IFHIRClientgetConformanceStatementQuick in interface IFHIRClientuseOptionsVerb - If 'true', use OPTION rather than GET.public String getAddress()
IFHIRClientgetAddress in interface IFHIRClientCopyright © 2014–2018 University Health Network. All rights reserved.