Class: Oddb2xml::FHIR::Bundle
- Inherits:
-
Object
- Object
- Oddb2xml::FHIR::Bundle
- Defined in:
- lib/oddb2xml/fhir_support.rb
Overview
Bundle represents one line in the NDJSON file
Instance Attribute Summary collapse
-
#authorizations ⇒ Object
readonly
Returns the value of attribute authorizations.
-
#ingredients ⇒ Object
readonly
Returns the value of attribute ingredients.
-
#medicinal_product ⇒ Object
readonly
Returns the value of attribute medicinal_product.
-
#packages ⇒ Object
readonly
Returns the value of attribute packages.
Instance Method Summary collapse
-
#initialize(json_line) ⇒ Bundle
constructor
A new instance of Bundle.
Constructor Details
#initialize(json_line) ⇒ Bundle
Returns a new instance of Bundle.
164 165 166 167 168 |
# File 'lib/oddb2xml/fhir_support.rb', line 164 def initialize(json_line) data = JSON.parse(json_line) @entries = data["entry"] || [] parse_entries end |
Instance Attribute Details
#authorizations ⇒ Object (readonly)
Returns the value of attribute authorizations.
162 163 164 |
# File 'lib/oddb2xml/fhir_support.rb', line 162 def @authorizations end |
#ingredients ⇒ Object (readonly)
Returns the value of attribute ingredients.
162 163 164 |
# File 'lib/oddb2xml/fhir_support.rb', line 162 def ingredients @ingredients end |
#medicinal_product ⇒ Object (readonly)
Returns the value of attribute medicinal_product.
162 163 164 |
# File 'lib/oddb2xml/fhir_support.rb', line 162 def medicinal_product @medicinal_product end |
#packages ⇒ Object (readonly)
Returns the value of attribute packages.
162 163 164 |
# File 'lib/oddb2xml/fhir_support.rb', line 162 def packages @packages end |