Module: Extensions::HL7::Segments::NK1::ClassMethods

Defined in:
lib/core_ext/segments/nk1.rb

Instance Method Summary collapse

Instance Method Details

#index_for(field_name) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/core_ext/segments/nk1.rb', line 18

def index_for(field_name)
  return 1 if field_name == :set_id
  return 2 if field_name == :name           
  return 3 if field_name == :relationship
  return 4 if field_name == :address
  return 5 if field_name == :phone_number
  return 13 if field_name == :organization_name
  return 20 if field_name == :primary_language
  return 30 if field_name == :contact_persons_name
  return 31 if field_name == :contact_persons_telephone_number            
  return 32 if field_name == :contact_persons_address                                   
  return -1
end