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

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

Instance Method Summary collapse

Instance Method Details

#descriptionObject



83
84
85
# File 'lib/core_ext/segments/msh.rb', line 83

def description
  "Message Header"
end

#field_description(field_index) ⇒ Object



87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# File 'lib/core_ext/segments/msh.rb', line 87

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:

  • (Boolean)


79
80
81
# File 'lib/core_ext/segments/msh.rb', line 79

def is_required?
  true
end