Class: LIS::Message::Query

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

Overview

Query Message

A request to the LIS for patient information and test orders. Contains the primary tube accession number.

Message Examples

2Q|1|^1234ABC||ALL|||||||O

Message Structure

  1. Record Type ID (Q)

  2. Sequence #

  3. Starting Range

  4. Ending Range

  5. Test ID

  6. Request Time Limits

  7. Beginning request results date and time

  8. Ending request results date and time

  9. Physician name

  10. Physician Phone Number

  11. User Field 1

  12. User Field 2

  13. Status Codes

    C - Correction of previous results
    P - Preliminary Results
    F - Final Results
    X - Results cannot be done, cancel
    I - Request Results Pending
    S - Request partial results
    M - Result is a MIC level
    R - Result previously transmitted
    A - Abort/cancel last request
    N - Requesting new results only
    O - Requesting orders and demographics
    D - Requesting demographics only

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

#starting_range_idObject



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

def starting_range_id
  starting_range_id_internal.gsub(/\^/,"")
end

#starting_range_id=(val) ⇒ Object



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

def starting_range_id=(val)
  starting_range_id_internal = "^#{val}"
end