lib/fhir_client/sections/crud.rb
def conditional_update(resource, id, search_params, format = @default_format)
        options = {
          search: {
            flag: false,
            compartment: nil,
            parameters: {}
          }
        }
        search_params.each do |key, value|
          options[:search][:parameters][key] = value
        end
        base_update(resource, id, options, format)
      end
#
# Update an existing resource by its id or create it if it is a new resource, not present on the server
#
Update an existing resource by its id or create it if it is a new resource, not present on the server
Update an existing resource by its id or create it if it is a new resource not present on the server
def conditional_update(resource, id, search_params, format = @default_format)
        options = {
          search: {
            flag: false,
            compartment: nil,
            parameters: {}
          }
        }
        search_params.each do |key, value|
          options[:search][:parameters][key] = value
        end
        base_update(resource, id, options, format)
      end
def conditional_update ( resource , id , search_params , format = @default_format ) options = { search : { flag : false , compartment : nil , parameters : { } } } search_params . each do | key , value | options [ :search ] [ :parameters ] [ key ] = value end base_update ( resource , id , options , format ) end
Update an existing resource by its id or create it if it is a new resource, not present on the server
Update an existing resource by its id or create it if it is a new resource not present on the server
resource
id
search_params
format