Class: DZero::Segments::Prescriber

Inherits:
Base
  • Object
show all
Defined in:
lib/dzero/segments/03_prescriber.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 Concerns::Serializer

#to_json, #to_s

Methods included from 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
19
20
# File 'lib/dzero/segments/03_prescriber.rb', line 5

def self.field_id_to_symbol
  super.merge({
    'EZ' => :prescriber_id_qualifier,
    'DB' => :prescriber_id,
    'DR' => :prescriber_last_name,
    'PM' => :prescriber_phone_number,
    '2E' => :primary_care_provider_id_qualifier,
    'DL' => :primary_care_provider_id,
    '4E' => :primary_care_provider_last_name,
    '2J' => :prescriber_first_name,
    '2K' => :prescriber_street_address,
    '2M' => :prescriber_city_address,
    '2N' => :prescriber_state_province_address,
    '2P' => :prescriber_zip_postal_zone,
  })
end