lib/fhir_client/sections/crud.rb
def destroy(klass, id = nil, options = {})
        options = { resource: klass, id: id, format: @default_format }.merge options
        headers = fhir_headers(options)
        headers.delete('Content-Type')
        reply = delete resource_url(options), headers
        reply.resource_class = klass
        reply
      end
#
# Delete the resource with the given ID.
#
Delete the resource with the given ID.
Delete the resource with the given ID .
def destroy(klass, id = nil, options = {})
        options = { resource: klass, id: id, format: @default_format }.merge options
        headers = fhir_headers(options)
        headers.delete('Content-Type')
        reply = delete resource_url(options), headers
        reply.resource_class = klass
        reply
      end
def destroy ( klass , id = nil , options = { } ) options = { resource : klass , id : id , format : @default_format } . merge options headers = fhir_headers ( options ) headers . delete ( 'Content-Type' ) reply = delete resource_url ( options ) , headers reply . resource_class = klass reply end
Delete the resource with the given ID.
Delete the resource with the given ID .
klass
id
options