lib/fhir_client/sections/crud.rb
#
# Read the state of a specific version of the resource
#
Read the state of a specific version of the resource
Read the state of a specific version of the resource
def vread(klass, id, version_id, format = @default_format)
        options = { resource: klass, id: id, format: format, history: { id: version_id } }
        reply = get resource_url(options), fhir_headers(options)
        reply.resource = parse_reply(klass, format, reply)
        reply.resource_class = klass
        reply
      end
def vread ( klass , id , version_id , format = @default_format ) options = { resource : klass , id : id , format : format , history : { id : version_id } } reply = get resource_url ( options ) , fhir_headers ( options ) reply . resource = parse_reply ( klass , format , reply ) reply . resource_class = klass reply end
Read the state of a specific version of the resource
Read the state of a specific version of the resource
klass
id
version_id
format