Class FhirDelete


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

      • FhirDelete

        public FhirDelete​(ca.uhn.fhir.rest.client.api.IGenericClient client)
    • Method Detail

      • resource

        public org.hl7.fhir.instance.model.api.IBaseOperationOutcome 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 IBaseOperationOutcome
      • resourceById

        public org.hl7.fhir.instance.model.api.IBaseOperationOutcome 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 IBaseOperationOutcome
      • resourceById

        public org.hl7.fhir.instance.model.api.IBaseOperationOutcome 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 IBaseOperationOutcome
      • resourceConditionalByUrl

        public org.hl7.fhir.instance.model.api.IBaseOperationOutcome resourceConditionalByUrl​(String url,
                                                                                              Map<ExtraParameters,​Object> extraParameters)
        Specifies that the delete 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 IBaseOperationOutcome