Class: Oddb2xml::FHIR::Bundle

Inherits:
Object
  • Object
show all
Defined in:
lib/oddb2xml/fhir_support.rb

Overview

Bundle represents one line in the NDJSON file

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json_line) ⇒ Bundle

Returns a new instance of Bundle.



157
158
159
160
161
# File 'lib/oddb2xml/fhir_support.rb', line 157

def initialize(json_line)
  data = JSON.parse(json_line)
  @entries = data["entry"] || []
  parse_entries
end

Instance Attribute Details

#authorizationsObject (readonly)

Returns the value of attribute authorizations.



155
156
157
# File 'lib/oddb2xml/fhir_support.rb', line 155

def authorizations
  @authorizations
end

#ingredientsObject (readonly)

Returns the value of attribute ingredients.



155
156
157
# File 'lib/oddb2xml/fhir_support.rb', line 155

def ingredients
  @ingredients
end

#medicinal_productObject (readonly)

Returns the value of attribute medicinal_product.



155
156
157
# File 'lib/oddb2xml/fhir_support.rb', line 155

def medicinal_product
  @medicinal_product
end

#packagesObject (readonly)

Returns the value of attribute packages.



155
156
157
# File 'lib/oddb2xml/fhir_support.rb', line 155

def packages
  @packages
end