public class FhirOperation extends Object
| Constructor and Description |
|---|
FhirOperation(ca.uhn.fhir.rest.client.api.IGenericClient client) |
| Modifier and Type | Method and Description |
|---|---|
<T extends org.hl7.fhir.instance.model.api.IBaseParameters> |
onInstance(org.hl7.fhir.instance.model.api.IIdType id,
String name,
T parameters,
Class<T> outputParameterType,
boolean useHttpGet,
Class<org.hl7.fhir.instance.model.api.IBaseResource> returnType,
Map<ExtraParameters,Object> extraParameters)
Perform the operation across all versions of a specific resource (by ID and type) on the server.
|
<T extends org.hl7.fhir.instance.model.api.IBaseParameters> |
onInstanceVersion(org.hl7.fhir.instance.model.api.IIdType id,
String name,
T parameters,
Class<T> outputParameterType,
boolean useHttpGet,
Class<org.hl7.fhir.instance.model.api.IBaseResource> returnType,
Map<ExtraParameters,Object> extraParameters)
This operation operates on a specific version of a resource
|
<T extends org.hl7.fhir.instance.model.api.IBaseParameters> |
onServer(String name,
T parameters,
Class<T> outputParameterType,
boolean useHttpGet,
Class<org.hl7.fhir.instance.model.api.IBaseResource> returnType,
Map<ExtraParameters,Object> extraParameters)
Perform the operation across all versions of all resources of all types on the server
|
<T extends org.hl7.fhir.instance.model.api.IBaseParameters> |
onType(Class<org.hl7.fhir.instance.model.api.IBaseResource> resourceType,
String name,
T parameters,
Class<T> outputParameterType,
boolean useHttpGet,
Class<org.hl7.fhir.instance.model.api.IBaseResource> returnType,
Map<ExtraParameters,Object> extraParameters)
Perform the operation across all versions of all resources of the given type on the server
|
<T extends org.hl7.fhir.instance.model.api.IBaseBundle> |
processMessage(String respondToUri,
org.hl7.fhir.instance.model.api.IBaseBundle msgBundle,
boolean asynchronous,
Class<T> responseClass,
Map<ExtraParameters,Object> extraParameters)
|
public FhirOperation(ca.uhn.fhir.rest.client.api.IGenericClient client)
public <T extends org.hl7.fhir.instance.model.api.IBaseParameters> org.hl7.fhir.instance.model.api.IBaseResource onType(Class<org.hl7.fhir.instance.model.api.IBaseResource> resourceType, String name, T parameters, Class<T> outputParameterType, boolean useHttpGet, Class<org.hl7.fhir.instance.model.api.IBaseResource> returnType, Map<ExtraParameters,Object> extraParameters)
T - extends IBaseParametersresourceType - The resource type to operate onname - Operation nameparameters - The parameters to use as input. May also be null if the operation
does not require any input parameters.outputParameterType - The type to use for the output parameters (this should be set to
Parameters.class drawn from the version of the FHIR structures you are using), may be NULLuseHttpGet - use HTTP GET verbreturnType - If this operation returns a single resource body as its return type instead of a Parameters
resource, use this method to specify that resource type. This is useful for certain
operations (e.g. Patient/NNN/$everything) which return a bundle instead of
a Parameters resource, may be NULLextraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULLIBaseResourcepublic <T extends org.hl7.fhir.instance.model.api.IBaseParameters> org.hl7.fhir.instance.model.api.IBaseResource onServer(String name, T parameters, Class<T> outputParameterType, boolean useHttpGet, Class<org.hl7.fhir.instance.model.api.IBaseResource> returnType, Map<ExtraParameters,Object> extraParameters)
T - extends IBaseParametersname - Operation nameparameters - The parameters to use as input. May also be null if the operation
does not require any input parameters.outputParameterType - The type to use for the output parameters (this should be set to
Parameters.class drawn from the version of the FHIR structures you are using), may be NULLuseHttpGet - use HTTP GET verbreturnType - If this operation returns a single resource body as its return type instead of a Parameters
resource, use this method to specify that resource type. This is useful for certain
operations (e.g. Patient/NNN/$everything) which return a bundle instead of
a Parameters resource, may be NULLextraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULLIBaseResourcepublic <T extends org.hl7.fhir.instance.model.api.IBaseParameters> org.hl7.fhir.instance.model.api.IBaseResource onInstance(org.hl7.fhir.instance.model.api.IIdType id,
String name,
T parameters,
Class<T> outputParameterType,
boolean useHttpGet,
Class<org.hl7.fhir.instance.model.api.IBaseResource> returnType,
Map<ExtraParameters,Object> extraParameters)
theId must be populated with both a resource type and a resource ID at
a minimum.T - extends IBaseParametersid - Resource (version will be stripped)name - Operation nameparameters - The parameters to use as input. May also be null if the operation
does not require any input parameters.outputParameterType - The type to use for the output parameters (this should be set to
Parameters.class drawn from the version of the FHIR structures you are using), may be NULLuseHttpGet - use HTTP GET verbreturnType - If this operation returns a single resource body as its return type instead of a Parameters
resource, use this method to specify that resource type. This is useful for certain
operations (e.g. Patient/NNN/$everything) which return a bundle instead of
a Parameters resource, may be NULLextraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULLIBaseResourceIllegalArgumentException - If theId does not contain at least a resource type and IDpublic <T extends org.hl7.fhir.instance.model.api.IBaseParameters> org.hl7.fhir.instance.model.api.IBaseResource onInstanceVersion(org.hl7.fhir.instance.model.api.IIdType id,
String name,
T parameters,
Class<T> outputParameterType,
boolean useHttpGet,
Class<org.hl7.fhir.instance.model.api.IBaseResource> returnType,
Map<ExtraParameters,Object> extraParameters)
T - extends IBaseParametersid - Resource versionname - Operation nameparameters - The parameters to use as input. May also be null if the operation
does not require any input parameters.outputParameterType - The type to use for the output parameters (this should be set to
Parameters.class drawn from the version of the FHIR structures you are using), may be NULLuseHttpGet - use HTTP GET verbreturnType - If this operation returns a single resource body as its return type instead of a Parameters
resource, use this method to specify that resource type. This is useful for certain
operations (e.g. Patient/NNN/$everything) which return a bundle instead of
a Parameters resource, may be NULLextraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULLIBaseResourcepublic <T extends org.hl7.fhir.instance.model.api.IBaseBundle> T processMessage(String respondToUri, org.hl7.fhir.instance.model.api.IBaseBundle msgBundle, boolean asynchronous, Class<T> responseClass, Map<ExtraParameters,Object> extraParameters)
T - extends IBaseBundlerespondToUri - An optional query parameter indicating that responses from the receiving server should be sent to this URI, may be NULLmsgBundle - Set the Message Bundle to POST to the messaging serverasynchronous - Whether to process the message asynchronously or synchronously, defaults to synchronous.responseClass - the response classextraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULLIBaseBundleApache Camel