Hello Guys I have the following structure on my HL7 Files.
Single OBR with Multiple OBX and each OBX has some NTE segment.
example:
msg[:OBR].children.each do |t|
so I test it my t.e0 is a OBX and if it is I need to get all the NTEs that are children.
t.children.select { |x| x.puts x.e3 if x.is_a? HL7::Message::Segment::NTE }
and I get NameError: undefined local variable or method 't'
end
So I tried to get t.children knowing that I do have a NTE that is child of the OBX and I got []
Suggestions?
Thank You