class YAHL7::V2::Message::ORU

ORU messages contain unsolicited observation results about a patient.

Constants

OBSERVATION_AND_NOTE_TYPES

Public Instance Methods

observations_and_notes() click to toggle source

This method is used to return all NTE and OBX segments in their original order. This can be useful for building a report of test results in applicable messages.

# File lib/yahl7/v2/message/oru.rb, line 13
def observations_and_notes
  segments.filter { |s| OBSERVATION_AND_NOTE_TYPES.include?(s.type) }
end