Class FhirRead

java.lang.Object
org.apache.camel.component.fhir.api.FhirRead

public class FhirRead extends Object
API method for "read" operations
  • Constructor Summary

    Constructors
    Constructor
    Description
    FhirRead(ca.uhn.fhir.rest.client.api.IGenericClient client)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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 a IBaseResource on the server by id
    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 a IBaseResource on the server by id
    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 a IBaseResource on the server by id
    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 a IBaseResource on the server by id
    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 a IBaseResource on the server by id
    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 a IBaseResource on the server by id
    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 a IBaseResource on the server by url
    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 a IBaseResource on the server by url
    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 a IBaseResource on the server by url
    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 a IBaseResource on the server by url

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 a IBaseResource on the server by id
      Parameters:
      resource - The resource to read (e.g. Patient)
      id - the IIdType referencing the resource
      ifVersionMatches - a version to match against the newest version on the server.
      returnNull - return null if version matches
      returnResource - return the resource if version matches
      throwError - throw error if the version matches
      extraParameters - see ExtraParameters for 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 a IBaseResource on the server by id
      Parameters:
      resourceClass - the resource to read (e.g. Patient.class)
      id - the IIdType referencing the resource
      ifVersionMatches - a version to match against the newest version on the server.
      returnNull - return null if version matches
      returnResource - return the resource if version matches
      throwError - throw error if the version matches
      extraParameters - see ExtraParameters for 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 a IBaseResource on the server by id
      Parameters:
      resource - The resource to read (e.g. Patient)
      stringId - The resource ID
      version - the resource version
      ifVersionMatches - a version to match against the newest version on the server.
      returnNull - return null if version matches
      returnResource - return the resource if version matches
      throwError - throw error if the version matches
      extraParameters - see ExtraParameters for 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 a IBaseResource on the server by id
      Parameters:
      resourceClass - the resource to read (e.g. Patient.class)
      stringId - The resource ID
      ifVersionMatches - a version to match against the newest version on the server.
      version - the resource version
      returnNull - return null if version matches
      returnResource - return the resource if version matches
      throwError - throw error if the version matches
      extraParameters - see ExtraParameters for 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 a IBaseResource on the server by id
      Parameters:
      resource - The resource to read (e.g. Patient)
      longId - The resource ID
      ifVersionMatches - a version to match against the newest version on the server.
      returnNull - return null if version matches
      returnResource - return the resource if version matches
      throwError - throw error if the version matches
      extraParameters - see ExtraParameters for 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 a IBaseResource on the server by id
      Parameters:
      resourceClass - the resource to read (e.g. Patient)
      longId - The resource ID
      ifVersionMatches - a version to match against the newest version on the server.
      returnNull - return null if version matches
      returnResource - return the resource if version matches
      throwError - throw error if the version matches
      extraParameters - see ExtraParameters for 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 a IBaseResource on the server by url
      Parameters:
      resource - The resource to read (e.g. Patient)
      iUrl - the IIdType referencing the resource by absolute url
      ifVersionMatches - a version to match against the newest version on the server.
      returnNull - return null if version matches
      returnResource - return the resource if version matches
      throwError - throw error if the version matches
      extraParameters - see ExtraParameters for 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 a IBaseResource on the server by url
      Parameters:
      resourceClass - the resource to read (e.g. Patient.class)
      iUrl - the IIdType referencing the resource by absolute url
      ifVersionMatches - a version to match against the newest version on the server.
      returnNull - return null if version matches
      returnResource - return the resource if version matches
      throwError - throw error if the version matches
      extraParameters - see ExtraParameters for 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 a IBaseResource on the server by url
      Parameters:
      resource - The resource to read (e.g. Patient)
      url - referencing the resource by absolute url
      ifVersionMatches - a version to match against the newest version on the server.
      returnNull - return null if version matches
      returnResource - return the resource if version matches
      throwError - throw error if the version matches
      extraParameters - see ExtraParameters for 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 a IBaseResource on the server by url
      Parameters:
      resourceClass - the resource to read (e.g. Patient.class)
      url - referencing the resource by absolute url
      ifVersionMatches - a version to match against the newest version on the server.
      returnNull - return null if version matches
      returnResource - return the resource if version matches
      throwError - throw error if the version matches
      extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULL