Class: HL7::Message::Segment::ORC

Inherits:
HL7::Message::Segment show all
Defined in:
lib/segments/orc.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

Class 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 TimeFormatterHelper

#hl7_formatted_date, #hl7_formatted_timestamp

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

Class Method Details

.convert_to_ts(value) ⇒ Object

:nodoc:



42
43
44
45
46
# File 'lib/segments/orc.rb', line 42

def self.convert_to_ts(value) # :nodoc:
  return value.to_hl7 if value.is_a?(Time) || value.is_a?(Date)

  value
end