Trying to get NTEs for each OBX

53 views
Skip to first unread message

Eduardo Souza

unread,
Dec 19, 2013, 12:07:34 PM12/19/13
to ruby...@googlegroups.com
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

Reply all
Reply to author
Forward
0 new messages