Class: LIS::Message::Result

Inherits:
Base
  • Object
show all
Defined in:
lib/lis/messages/result.rb

Overview

Result Message

Contains test results and additional information, such as Test Code and the units in which the results are delivered. This message is sent to the LIS.

Message Examples

4R|1|^^^LH|8.2|mIU/mL|.7\.7^400\400|N|N|F||test|19931011091233|19931011091233|DPCCIRRUS

Message Structure

  1. Record Type (R)

  2. Sequence #

  3. Universal Test ID

  4. Data (result)

  5. Units

  6. ReferenceRanges

  7. Result abnormal flags

  8. Nature of Abnormality Testing

  9. Result Status

  10. Date of change in instruments normal values or units

  11. Operator ID

  12. Date/Time Test Started

  13. Date/Time Test Completed

  14. Instrument ID

Constant Summary

Constants included from ClassMethods

ClassMethods::CONVERSION_WRITER

Instance Method Summary collapse

Methods inherited from Base

from_string, #to_message, #type_id

Methods included from ClassMethods

#default_fields, #field_count, #get_field_attributes, #get_index_for, #has_field, #set_field_attributes, #set_index_for, #type_id

Instance Method Details

#raw_dataObject



41
42
43
# File 'lib/lis/messages/result.rb', line 41

def raw_data
  Base64.encode64(to_message)
end

#universal_test_idObject



45
46
47
# File 'lib/lis/messages/result.rb', line 45

def universal_test_id
  universal_test_id_internal.gsub(/\^/,"")
end

#universal_test_id=(val) ⇒ Object



48
49
50
# File 'lib/lis/messages/result.rb', line 48

def universal_test_id=(val)
  universal_test_id_internal = "^^^#{val}"
end