Class: HL7::Message::Segment::PID

Inherits:
HL7::Message::Segment show all
Defined in:
lib/segments/pid.rb

Constant Summary

Constants inherited from HL7::Message::Segment

METHOD_MISSING_FOR_INITIALIZER

Instance Attribute Summary

Attributes inherited from HL7::Message::Segment

#element_delim, #item_delim, #segment_parent, #segment_weight

Attributes included from HL7::Message::SegmentListStorage

#child_types

Instance Method Summary collapse

Methods inherited from HL7::Message::Segment

#<=>, #each, #elements_from_segment, #has_children?, #initialize, #is_child_segment=, #is_child_segment?, #length, #method_missing, #to_info, #to_s, #weight

Methods included from HL7::Message::SegmentListStorage

#add_child_type

Methods included from HL7::Message::SegmentFields

#[], #[]=, #field_info, included, #read_field, #write_field

Constructor Details

This class inherits a constructor from HL7::Message::Segment

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class HL7::Message::Segment

Instance Method Details

#country_codeObject



57
58
59
60
61
# File 'lib/segments/pid.rb', line 57

def country_code
  warn "DEPRECATION WARNING: PID-12 is defined as 'county_code'; "+
       "the 'country_code' alias is retained for backwards compatibility only."
  county_code
end

#country_code=(country_code) ⇒ Object



63
64
65
66
67
# File 'lib/segments/pid.rb', line 63

def country_code=(country_code)
  warn "DEPRECATION WARNING: PID-12 is defined as 'county_code'; "+
       "the 'country_code' alias is retained for backwards compatibility only."
  self.county_code = country_code
end