lib/fhir_client/sections/crud.rb
def partial_update(klass, id, patchset, options = {}, format = @default_format)
        options = { resource: klass, id: id, format: format }.merge options

        if format == FHIR::Formats::ResourceFormat::RESOURCE_XML
          options[:format] = FHIR::Formats::PatchFormat::PATCH_XML
          options[:Accept] = format
        elsif format == FHIR::Formats::ResourceFormat::RESOURCE_JSON
          options[:format] = FHIR::Formats::PatchFormat::PATCH_JSON
          options[:Accept] = format
        end

        reply = patch resource_url(options), patchset, fhir_headers(options)
        reply.resource = parse_reply(klass, format, reply)
        reply.resource_class = klass
        reply
      end
#
# Partial update using a patchset (PATCH)
#
Partial update using a patchset (PATCH)
Partial update using a patchset ( PATCH )
def partial_update(klass, id, patchset, options = {}, format = @default_format)
        options = { resource: klass, id: id, format: format }.merge options
        if format == FHIR::Formats::ResourceFormat::RESOURCE_XML
          options[:format] = FHIR::Formats::PatchFormat::PATCH_XML
          options[:Accept] = format
        elsif format == FHIR::Formats::ResourceFormat::RESOURCE_JSON
          options[:format] = FHIR::Formats::PatchFormat::PATCH_JSON
          options[:Accept] = format
        end
        reply = patch resource_url(options), patchset, fhir_headers(options)
        reply.resource = parse_reply(klass, format, reply)
        reply.resource_class = klass
        reply
      end
def partial_update ( klass , id , patchset , options = { } , format = @default_format ) options = { resource : klass , id : id , format : format } . merge options if format == FHIR :: Formats :: ResourceFormat :: RESOURCE_XML options [ :format ] = FHIR :: Formats :: PatchFormat :: PATCH_XML options [ :Accept ] = format elsif format == FHIR :: Formats :: ResourceFormat :: RESOURCE_JSON options [ :format ] = FHIR :: Formats :: PatchFormat :: PATCH_JSON options [ :Accept ] = format end reply = patch resource_url ( options ) , patchset , fhir_headers ( options ) reply . resource = parse_reply ( klass , format , reply ) reply . resource_class = klass reply end
Partial update using a patchset (PATCH)
Partial update using a patchset ( PATCH )
klass
id
patchset
options
format