Class: DZero::Segments::Compound

Inherits:
Base
  • Object
show all
Defined in:
lib/dzero/segments/10_compound.rb

Instance Attribute Summary

Attributes inherited from Base

#hash

Class Method Summary collapse

Methods inherited from Base

#[], #[]=, build, get_field_by_symbol, get_klass_by_identifier, get_klass_by_symbol, get_symbol_by_field, inherited, #initialize, #merge, register_segment

Methods included from DZero::Segments::Concerns::Serializer

#to_json, #to_s

Methods included from DZero::Segments::Concerns::Parser

included

Constructor Details

This class inherits a constructor from DZero::Segments::Base

Class Method Details

.field_id_to_symbolObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/dzero/segments/10_compound.rb', line 5

def self.field_id_to_symbol
  super.merge({
    'EF' => :compound_dosage_form_description_code,
    'EG' => :compound_dispensing_unit_form_indicator,
    'EC' => :compound_ingredient_component_count,
    'RE' => :compound_product_id_qualifier,
    'TE' => :compound_product_id,
    'ED' => :compound_ingredient_quantity,
    'EE' => :compound_ingredient_drug_cost,
    'UE' => :compound_ingredient_basis_of_cost_determination,
    '2G' => :compound_ingredient_modifier_code_count,
    '2H' => :compound_ingredient_modifier_code,
  })
end