Class FhirUpdate

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

public class FhirUpdate extends Object
API for the "update" operation, which performs a logical delete on a server resource
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    ca.uhn.fhir.rest.api.MethodOutcome
    resource(String resourceAsString, String stringId, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters,Object> extraParameters)
    Updates a IBaseResource on the server by id
    ca.uhn.fhir.rest.api.MethodOutcome
    resource(String resourceAsString, org.hl7.fhir.instance.model.api.IIdType id, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters,Object> extraParameters)
    Updates a IBaseResource on the server by id
    ca.uhn.fhir.rest.api.MethodOutcome
    resource(org.hl7.fhir.instance.model.api.IBaseResource resource, String stringId, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters,Object> extraParameters)
    Updates a IBaseResource on the server by id
    ca.uhn.fhir.rest.api.MethodOutcome
    resource(org.hl7.fhir.instance.model.api.IBaseResource resource, org.hl7.fhir.instance.model.api.IIdType id, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters,Object> extraParameters)
    Updates a IBaseResource on the server by id
    ca.uhn.fhir.rest.api.MethodOutcome
    resourceBySearchUrl(String resourceAsString, String url, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters,Object> extraParameters)
    Updates a IBaseResource on the server by search url
    ca.uhn.fhir.rest.api.MethodOutcome
    resourceBySearchUrl(org.hl7.fhir.instance.model.api.IBaseResource resource, String url, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters,Object> extraParameters)
    Updates a IBaseResource on the server by search url

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FhirUpdate

      public FhirUpdate(ca.uhn.fhir.rest.client.api.IGenericClient client)
  • Method Details

    • resource

      public ca.uhn.fhir.rest.api.MethodOutcome resource(org.hl7.fhir.instance.model.api.IBaseResource resource, org.hl7.fhir.instance.model.api.IIdType id, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters,Object> extraParameters)
      Updates a IBaseResource on the server by id
      Parameters:
      resource - The resource to update (e.g. Patient)
      id - the IIdType referencing the resource
      preferReturn - whether the server include or suppress the resource body as a part of the result
      extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULL
    • resource

      public ca.uhn.fhir.rest.api.MethodOutcome resource(String resourceAsString, org.hl7.fhir.instance.model.api.IIdType id, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters,Object> extraParameters)
      Updates a IBaseResource on the server by id
      Parameters:
      resourceAsString - The resource body to update
      id - the IIdType referencing the resource
      preferReturn - whether the server include or suppress the resource body as a part of the result
      extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULL
    • resource

      public ca.uhn.fhir.rest.api.MethodOutcome resource(org.hl7.fhir.instance.model.api.IBaseResource resource, String stringId, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters,Object> extraParameters)
      Updates a IBaseResource on the server by id
      Parameters:
      resource - The resource to update (e.g. Patient)
      stringId - the ID referencing the resource
      preferReturn - whether the server include or suppress the resource body as a part of the result
      extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULL
    • resource

      public ca.uhn.fhir.rest.api.MethodOutcome resource(String resourceAsString, String stringId, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters,Object> extraParameters)
      Updates a IBaseResource on the server by id
      Parameters:
      resourceAsString - The resource body to update
      stringId - the ID referencing the resource
      preferReturn - whether the server include or suppress the resource body as a part of the result
      extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULL
    • resourceBySearchUrl

      public ca.uhn.fhir.rest.api.MethodOutcome resourceBySearchUrl(org.hl7.fhir.instance.model.api.IBaseResource resource, String url, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters,Object> extraParameters)
      Updates a IBaseResource on the server by search url
      Parameters:
      resource - The resource to update (e.g. Patient)
      url - Specifies that the update should be performed as a conditional create against a given search URL.
      preferReturn - whether the server include or suppress the resource body as a part of the result
      extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULL
    • resourceBySearchUrl

      public ca.uhn.fhir.rest.api.MethodOutcome resourceBySearchUrl(String resourceAsString, String url, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters,Object> extraParameters)
      Updates a IBaseResource on the server by search url
      Parameters:
      resourceAsString - The resource body to update
      url - Specifies that the update should be performed as a conditional create against a given search URL.
      preferReturn - whether the server include or suppress the resource body as a part of the result
      extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULL