lib/fhir_client/sections/crud.rb
def read(klass, id, format = @default_format, summary = nil, options = {})
        options = { resource: klass, id: id, format: format }.merge(options)
        options[:summary] = summary if summary
        reply = get resource_url(options), fhir_headers(options)
        reply.resource = parse_reply(klass, format, reply)
        reply.resource_class = klass
        reply
      end
#
# Read the current state of a resource.
#
Read the current state of a resource.
Read the current state of a resource .
def read(klass, id, format = @default_format, summary = nil, options = {})
        options = { resource: klass, id: id, format: format }.merge(options)
        options[:summary] = summary if summary
        reply = get resource_url(options), fhir_headers(options)
        reply.resource = parse_reply(klass, format, reply)
        reply.resource_class = klass
        reply
      end
def read ( klass , id , format = @default_format , summary = nil , options = { } ) options = { resource : klass , id : id , format : format } . merge ( options ) options [ :summary ] = summary if summary reply = get resource_url ( options ) , fhir_headers ( options ) reply . resource = parse_reply ( klass , format , reply ) reply . resource_class = klass reply end
Read the current state of a resource.
Read the current state of a resource .
klass
id
format
summary
options