Class FhirRead
java.lang.Object
org.apache.camel.component.fhir.api.FhirRead
API method for "read" operations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.instance.model.api.IBaseResourceresourceById(Class<org.hl7.fhir.instance.model.api.IBaseResource> resource, Long longId, String ifVersionMatches, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource returnResource, Boolean throwError, Map<ExtraParameters, Object> extraParameters) Reads aIBaseResourceon the server by idorg.hl7.fhir.instance.model.api.IBaseResourceresourceById(Class<org.hl7.fhir.instance.model.api.IBaseResource> resource, String stringId, String version, String ifVersionMatches, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource returnResource, Boolean throwError, Map<ExtraParameters, Object> extraParameters) Reads aIBaseResourceon the server by idorg.hl7.fhir.instance.model.api.IBaseResourceresourceById(Class<org.hl7.fhir.instance.model.api.IBaseResource> resource, org.hl7.fhir.instance.model.api.IIdType id, String ifVersionMatches, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource returnResource, Boolean throwError, Map<ExtraParameters, Object> extraParameters) Reads aIBaseResourceon the server by idorg.hl7.fhir.instance.model.api.IBaseResourceresourceById(String resourceClass, Long longId, String ifVersionMatches, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource returnResource, Boolean throwError, Map<ExtraParameters, Object> extraParameters) Reads aIBaseResourceon the server by idorg.hl7.fhir.instance.model.api.IBaseResourceresourceById(String resourceClass, String stringId, String ifVersionMatches, String version, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource returnResource, Boolean throwError, Map<ExtraParameters, Object> extraParameters) Reads aIBaseResourceon the server by idorg.hl7.fhir.instance.model.api.IBaseResourceresourceById(String resourceClass, org.hl7.fhir.instance.model.api.IIdType id, String ifVersionMatches, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource returnResource, Boolean throwError, Map<ExtraParameters, Object> extraParameters) Reads aIBaseResourceon the server by idorg.hl7.fhir.instance.model.api.IBaseResourceresourceByUrl(Class<org.hl7.fhir.instance.model.api.IBaseResource> resource, String url, String ifVersionMatches, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource returnResource, Boolean throwError, Map<ExtraParameters, Object> extraParameters) Reads aIBaseResourceon the server by urlorg.hl7.fhir.instance.model.api.IBaseResourceresourceByUrl(Class<org.hl7.fhir.instance.model.api.IBaseResource> resource, org.hl7.fhir.instance.model.api.IIdType iUrl, String ifVersionMatches, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource returnResource, Boolean throwError, Map<ExtraParameters, Object> extraParameters) Reads aIBaseResourceon the server by urlorg.hl7.fhir.instance.model.api.IBaseResourceresourceByUrl(String resourceClass, String url, String ifVersionMatches, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource returnResource, Boolean throwError, Map<ExtraParameters, Object> extraParameters) Reads aIBaseResourceon the server by urlorg.hl7.fhir.instance.model.api.IBaseResourceresourceByUrl(String resourceClass, org.hl7.fhir.instance.model.api.IIdType iUrl, String ifVersionMatches, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource returnResource, Boolean throwError, Map<ExtraParameters, Object> extraParameters) Reads aIBaseResourceon the server by url
-
Constructor Details
-
FhirRead
public FhirRead(ca.uhn.fhir.rest.client.api.IGenericClient client)
-
-
Method Details
-
resourceById
public org.hl7.fhir.instance.model.api.IBaseResource resourceById(Class<org.hl7.fhir.instance.model.api.IBaseResource> resource, org.hl7.fhir.instance.model.api.IIdType id, String ifVersionMatches, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource returnResource, Boolean throwError, Map<ExtraParameters, Object> extraParameters) Reads aIBaseResourceon the server by id- Parameters:
resource- The resource to read (e.g. Patient)id- theIIdTypereferencing the resourceifVersionMatches- a version to match against the newest version on the server.returnNull- return null if version matchesreturnResource- return the resource if version matchesthrowError- throw error if the version matchesextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL
-
resourceById
public org.hl7.fhir.instance.model.api.IBaseResource resourceById(String resourceClass, org.hl7.fhir.instance.model.api.IIdType id, String ifVersionMatches, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource returnResource, Boolean throwError, Map<ExtraParameters, Object> extraParameters) Reads aIBaseResourceon the server by id- Parameters:
resourceClass- the resource to read (e.g. Patient.class)id- theIIdTypereferencing the resourceifVersionMatches- a version to match against the newest version on the server.returnNull- return null if version matchesreturnResource- return the resource if version matchesthrowError- throw error if the version matchesextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL
-
resourceById
public org.hl7.fhir.instance.model.api.IBaseResource resourceById(Class<org.hl7.fhir.instance.model.api.IBaseResource> resource, String stringId, String version, String ifVersionMatches, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource returnResource, Boolean throwError, Map<ExtraParameters, Object> extraParameters) Reads aIBaseResourceon the server by id- Parameters:
resource- The resource to read (e.g. Patient)stringId- The resource IDversion- the resource versionifVersionMatches- a version to match against the newest version on the server.returnNull- return null if version matchesreturnResource- return the resource if version matchesthrowError- throw error if the version matchesextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL
-
resourceById
public org.hl7.fhir.instance.model.api.IBaseResource resourceById(String resourceClass, String stringId, String ifVersionMatches, String version, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource returnResource, Boolean throwError, Map<ExtraParameters, Object> extraParameters) Reads aIBaseResourceon the server by id- Parameters:
resourceClass- the resource to read (e.g. Patient.class)stringId- The resource IDifVersionMatches- a version to match against the newest version on the server.version- the resource versionreturnNull- return null if version matchesreturnResource- return the resource if version matchesthrowError- throw error if the version matchesextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL
-
resourceById
public org.hl7.fhir.instance.model.api.IBaseResource resourceById(Class<org.hl7.fhir.instance.model.api.IBaseResource> resource, Long longId, String ifVersionMatches, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource returnResource, Boolean throwError, Map<ExtraParameters, Object> extraParameters) Reads aIBaseResourceon the server by id- Parameters:
resource- The resource to read (e.g. Patient)longId- The resource IDifVersionMatches- a version to match against the newest version on the server.returnNull- return null if version matchesreturnResource- return the resource if version matchesthrowError- throw error if the version matchesextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL
-
resourceById
public org.hl7.fhir.instance.model.api.IBaseResource resourceById(String resourceClass, Long longId, String ifVersionMatches, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource returnResource, Boolean throwError, Map<ExtraParameters, Object> extraParameters) Reads aIBaseResourceon the server by id- Parameters:
resourceClass- the resource to read (e.g. Patient)longId- The resource IDifVersionMatches- a version to match against the newest version on the server.returnNull- return null if version matchesreturnResource- return the resource if version matchesthrowError- throw error if the version matchesextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL
-
resourceByUrl
public org.hl7.fhir.instance.model.api.IBaseResource resourceByUrl(Class<org.hl7.fhir.instance.model.api.IBaseResource> resource, org.hl7.fhir.instance.model.api.IIdType iUrl, String ifVersionMatches, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource returnResource, Boolean throwError, Map<ExtraParameters, Object> extraParameters) Reads aIBaseResourceon the server by url- Parameters:
resource- The resource to read (e.g. Patient)iUrl- theIIdTypereferencing the resource by absolute urlifVersionMatches- a version to match against the newest version on the server.returnNull- return null if version matchesreturnResource- return the resource if version matchesthrowError- throw error if the version matchesextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL
-
resourceByUrl
public org.hl7.fhir.instance.model.api.IBaseResource resourceByUrl(String resourceClass, org.hl7.fhir.instance.model.api.IIdType iUrl, String ifVersionMatches, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource returnResource, Boolean throwError, Map<ExtraParameters, Object> extraParameters) Reads aIBaseResourceon the server by url- Parameters:
resourceClass- the resource to read (e.g. Patient.class)iUrl- theIIdTypereferencing the resource by absolute urlifVersionMatches- a version to match against the newest version on the server.returnNull- return null if version matchesreturnResource- return the resource if version matchesthrowError- throw error if the version matchesextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL
-
resourceByUrl
public org.hl7.fhir.instance.model.api.IBaseResource resourceByUrl(Class<org.hl7.fhir.instance.model.api.IBaseResource> resource, String url, String ifVersionMatches, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource returnResource, Boolean throwError, Map<ExtraParameters, Object> extraParameters) Reads aIBaseResourceon the server by url- Parameters:
resource- The resource to read (e.g. Patient)url- referencing the resource by absolute urlifVersionMatches- a version to match against the newest version on the server.returnNull- return null if version matchesreturnResource- return the resource if version matchesthrowError- throw error if the version matchesextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL
-
resourceByUrl
public org.hl7.fhir.instance.model.api.IBaseResource resourceByUrl(String resourceClass, String url, String ifVersionMatches, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource returnResource, Boolean throwError, Map<ExtraParameters, Object> extraParameters) Reads aIBaseResourceon the server by url- Parameters:
resourceClass- the resource to read (e.g. Patient.class)url- referencing the resource by absolute urlifVersionMatches- a version to match against the newest version on the server.returnNull- return null if version matchesreturnResource- return the resource if version matchesthrowError- throw error if the version matchesextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL
-