Class: LIS::Message::Header

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

Overview

Header Message

First message sent in any transaction, contains system information such as sender ID, receiver ID, address, etc.

Message Examples

1H|\^&||PASSWORD|DPC CIRRUS||Flanders^New^Jersey^07836||973-927-2828|N81|Your System||P|1|19940407120613

Message Structure

  1. Record Type (H)

  2. Delimiter Def.

  3. Message Control ID

  4. Password

  5. Sending systems company name

  6. Sending Systems address

  7. Reserved

  8. Senders Phone#

  9. Communication parameters

  10. Receiver ID

  11. Comments/special instructions

  12. Processing ID

  13. Version#

  14. Message Date + Time

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

Constructor Details

#initialize(sender_name = "SenderID", receiver_name = "ReceiverID", password = "") ⇒ Header



45
46
47
48
49
# File 'lib/lis/messages/header.rb', line 45

def initialize(sender_name = "SenderID", receiver_name = "ReceiverID", password = "")
  self.sender_name = sender_name
  self.receiver_name = receiver_name
  self.access_password = password
end