public interface IFHIRClient
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IFHIRClient.VersionInfo |
| 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
|
IFHIRClient.VersionInfo getVersions()
IFHIRClient initialize(String baseServiceUrl) throws URISyntaxException
baseServiceUrl - Base service URL for FHIR Service.URISyntaxExceptionvoid initialize(String baseServiceUrl, int recordCount) throws URISyntaxException
baseServiceUrl - The base service URLresultCount - Maximum size of the result setURISyntaxExceptionvoid setPreferredResourceFormat(ResourceFormat resourceFormat)
resourceFormat - String getPreferredResourceFormat()
void setPreferredFeedFormat(FeedFormat feedFormat)
resourceFormat - String getPreferredFeedFormat()
int getMaximumRecordCount()
void setMaximumRecordCount(int recordCount)
recordCount - Conformance getConformanceStatement()
Conformance getConformanceStatement(boolean useOptionsVerb)
useOptionsVerb - If 'true', use OPTION rather than GET.Conformance getConformanceStatementQuick()
Conformance getConformanceStatementQuick(boolean useOptionsVerb)
useOptionsVerb - If 'true', use OPTION rather than GET.<T extends Resource> T read(Class<T> resource, String id)
resource - id - <T extends Resource> T vread(Class<T> resource, String id, String versionid)
resource - id - versionid - <T extends Resource> T update(Class<T> resourceClass, T resource, String id)
resourceClass - resource - id - <T extends Resource> boolean delete(Class<T> resourceClass, String id)
resourceClass - id - <T extends Resource> OperationOutcome create(Class<T> resourceClass, T resource)
resourceClass - resource - <T extends Resource> Bundle history(Calendar lastUpdate, Class<T> resourceClass, String id)
lastUpdate - resourceClass - id - <T extends Resource> Bundle history(Class<T> resource, String id)
lastUpdate - resourceClass - id - <T extends Resource> Bundle history(Calendar lastUpdate, Class<T> resourceClass)
lastUpdate - resourceClass - id - <T extends Resource> Bundle history(Calendar lastUpdate)
lastUpdate - resourceClass - id - <T extends Resource> Bundle history()
lastUpdate - resourceClass - id - <T extends Resource> OperationOutcome validate(Class<T> resourceClass, T resource, String id)
resourceClass - resource - id - <T extends Resource> Bundle search(Class<T> resourceClass, Map<String,String> params)
resourceClass - params - <T extends Resource> Bundle searchPost(Class<T> resourceClass, T resource, Map<String,String> params)
resourceClass - params - Bundle transaction(Bundle batch)
batch - Bundle fetchFeed(String url)
link - - the URL provided by the serverValueSet expandValueset(ValueSet source) throws Exception
source - Exception<T extends Resource> Parameters operateType(Class<T> resourceClass, String name, Parameters params)
resourceClass - - 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 performedString getAddress()
Copyright © 2014–2018 University Health Network. All rights reserved.