Class FhirDelete
java.lang.Object
org.apache.camel.component.fhir.api.FhirDelete
API for the "delete" operation, which performs a logical delete on a server resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionca.uhn.fhir.rest.api.MethodOutcomeresource(org.hl7.fhir.instance.model.api.IBaseResource resource, Map<ExtraParameters, Object> extraParameters) Deletes the given resourceca.uhn.fhir.rest.api.MethodOutcomeresourceById(String type, String stringId, Map<ExtraParameters, Object> extraParameters) Deletes the resource by resource type e.g "Patient" and it's idca.uhn.fhir.rest.api.MethodOutcomeresourceById(org.hl7.fhir.instance.model.api.IIdType id, Map<ExtraParameters, Object> extraParameters) * Deletes the given resource byIIdTypeca.uhn.fhir.rest.api.MethodOutcomeresourceConditionalByUrl(String url, Map<ExtraParameters, Object> extraParameters) Specifies deleting should be performed as a conditional delete against a given search URL.
-
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- theIBaseResourceto deleteextraParameters- seeExtraParametersfor 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 byIIdType- Parameters:
id- theIIdTypereferencing the resourceextraParameters- seeExtraParametersfor 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 idextraParameters- seeExtraParametersfor 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%7C847366extraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL- Returns:
- the
MethodOutcome
-