You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/.gem/ruby/2.7.1/gems/simple_hl7-1.0.2/lib/simple_hl7/message.rb:33:in `to_hl7': undefined method `separator_chars' for #<SimpleHL7::Segment:0x00007fe530845a90> (NoMethodError)
This is because #to_hl7 assumes that the MSH segment is the Segment subclass MSHSegment, which responds to #separator_chars.
I could solve this by explicitly instantiating an MSHSegment and using #append_segment, but it might be nicer if the Message class either defined an explicit #msh method or added an "MSH" clause to #method_missing that instantiated the subclass.
The text was updated successfully, but these errors were encountered:
Results in:
This is because
#to_hl7
assumes that the MSH segment is theSegment
subclassMSHSegment
, which responds to#separator_chars
.I could solve this by explicitly instantiating an
MSHSegment
and using#append_segment
, but it might be nicer if theMessage
class either defined an explicit#msh
method or added an "MSH" clause to#method_missing
that instantiated the subclass.The text was updated successfully, but these errors were encountered: