Module: Extensions::HL7::Segments::MSH::ClassMethods

Defined in:
lib/core_ext/segments/msh.rb

Instance Method Summary collapse

Instance Method Details

#descriptionObject



101
102
103
# File 'lib/core_ext/segments/msh.rb', line 101

def description
  "Message Header"
end

#field_description(field_index) ⇒ Object



105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# File 'lib/core_ext/segments/msh.rb', line 105

def field_description(field_index)
  ["Encoding Characters",
   "Sending Application",
   "Sending Facility",
   "Receiving Application",
   "Receiving Facility",
   "Date/Time Of Message",
   "Security",
   "Message Type",
   "Message Control Id",
   "Processing Id",
   "Version Id",
   "Sequence Number",
   "Continuation Pointer",
   "Accept Acknowledgment Type",
   "Application Acknowledgment Type",
   "Country Code",
   "Character Set",
   "Principal Language Of Message",
   "Alternate Character Set Handling Scheme",
   "Message Profile Identifier",
   "Sending Responsible Organization",
   "Receiving Responsible Organization",
   "Sending Network Address",
   "Receiving Network Address"][field_index-1]            
end

#is_required?Boolean

Returns:



97
98
99
# File 'lib/core_ext/segments/msh.rb', line 97

def is_required?
  true
end