Class: FhirPreparationsEntry

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

Overview

Compatibility layer - makes FHIR parser compatible with existing XML parser usage

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#PreparationsObject

Returns the value of attribute Preparations.



723
724
725
# File 'lib/oddb2xml/fhir_support.rb', line 723

def Preparations
  @Preparations
end

Class Method Details

.parse(ndjson_file) ⇒ Object



725
726
727
728
729
730
731
# File 'lib/oddb2xml/fhir_support.rb', line 725

def self.parse(ndjson_file)
  parser = Oddb2xml::FHIR::PreparationsParser.new(ndjson_file)
  entry = new
  entry.Preparations = OpenStruct.new
  entry.Preparations.Preparation = parser.preparations
  entry
end