Class FhirUpdate
java.lang.Object
org.apache.camel.component.fhir.api.FhirUpdate
API for the "update" operation, which performs a logical delete on a server resource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionca.uhn.fhir.rest.api.MethodOutcomeresource(String resourceAsString, String stringId, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters, Object> extraParameters) Updates aIBaseResourceon the server by idca.uhn.fhir.rest.api.MethodOutcomeresource(String resourceAsString, org.hl7.fhir.instance.model.api.IIdType id, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters, Object> extraParameters) Updates aIBaseResourceon the server by idca.uhn.fhir.rest.api.MethodOutcomeresource(org.hl7.fhir.instance.model.api.IBaseResource resource, String stringId, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters, Object> extraParameters) Updates aIBaseResourceon the server by idca.uhn.fhir.rest.api.MethodOutcomeresource(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 aIBaseResourceon the server by idca.uhn.fhir.rest.api.MethodOutcomeresourceBySearchUrl(String resourceAsString, String url, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters, Object> extraParameters) Updates aIBaseResourceon the server by search urlca.uhn.fhir.rest.api.MethodOutcomeresourceBySearchUrl(org.hl7.fhir.instance.model.api.IBaseResource resource, String url, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters, Object> extraParameters) Updates aIBaseResourceon the server by search url
-
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 aIBaseResourceon the server by id- Parameters:
resource- The resource to update (e.g. Patient)id- theIIdTypereferencing the resourcepreferReturn- whether the server include or suppress the resource body as a part of the resultextraParameters- seeExtraParametersfor 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 aIBaseResourceon the server by id- Parameters:
resourceAsString- The resource body to updateid- theIIdTypereferencing the resourcepreferReturn- whether the server include or suppress the resource body as a part of the resultextraParameters- seeExtraParametersfor 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 aIBaseResourceon the server by id- Parameters:
resource- The resource to update (e.g. Patient)stringId- the ID referencing the resourcepreferReturn- whether the server include or suppress the resource body as a part of the resultextraParameters- seeExtraParametersfor 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 aIBaseResourceon the server by id- Parameters:
resourceAsString- The resource body to updatestringId- the ID referencing the resourcepreferReturn- whether the server include or suppress the resource body as a part of the resultextraParameters- seeExtraParametersfor 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 aIBaseResourceon 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 resultextraParameters- seeExtraParametersfor 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 aIBaseResourceon the server by search url- Parameters:
resourceAsString- The resource body to updateurl- 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 resultextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL
-