Class FhirDelete

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

public class FhirDelete extends Object
API for the "delete" operation, which performs a logical delete on a server resource.
  • Constructor Details

    • FhirDelete

      public FhirDelete(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, Map<ExtraParameters,Object> extraParameters)
      Deletes the given resource
      Parameters:
      resource - the IBaseResource to delete
      extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULL
      Returns:
      the MethodOutcome
    • resourceById

      public ca.uhn.fhir.rest.api.MethodOutcome resourceById(org.hl7.fhir.instance.model.api.IIdType id, Map<ExtraParameters,Object> extraParameters)
      * Deletes the given resource by IIdType
      Parameters:
      id - the IIdType referencing the resource
      extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULL
      Returns:
      the MethodOutcome
    • resourceById

      public ca.uhn.fhir.rest.api.MethodOutcome resourceById(String type, String stringId, Map<ExtraParameters,Object> extraParameters)
      Deletes the resource by resource type e.g "Patient" and it's id
      Parameters:
      type - the resource type e.g "Patient"
      stringId - it's id
      extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULL
      Returns:
      the MethodOutcome
    • resourceConditionalByUrl

      public ca.uhn.fhir.rest.api.MethodOutcome resourceConditionalByUrl(String url, Map<ExtraParameters,Object> extraParameters)
      Specifies deleting should be performed as a conditional delete against a given search URL.
      Parameters:
      url - The search URL to use. The format of this URL should be of the form [ResourceType]?[Parameters], for example: Patient?name=Smith&identifier=13.2.4.11.4%7C847366
      extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULL
      Returns:
      the MethodOutcome