Module: Extensions::HL7::Segments::ERR::ClassMethods
- Defined in:
- lib/core_ext/segments/err.rb
Instance Method Summary collapse
Instance Method Details
#index_for(field_name) ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/core_ext/segments/err.rb', line 18 def index_for(field_name) return 12 if field_name == :help_desk_contact_point index = self.fields.collect {|field| field[0]}.index(field_name) rescue -1 if index < 0 return -1 else return index end end |