Hi Nano,
$seq is the first sequence with (0x0054, 0x0016) tag, but there's no sample to get the next sequence with the same tag. I've attached an anonymized dicom to show you my situation.
In this file you can see something like this:
....
(003a,0200) SQ (Sequence with undefined length #=12) # u/l, 1 ChannelDefinitionSequence
(fffe,e000) na (Item with undefined length #=10) # u/l, 1 Item
(003a,0208) SQ (Sequence with undefined length #=1) # u/l, 1 ChannelSourceSequence
(fffe,e000) na (Item with undefined length #=4) # u/l, 1 Item
(0008,0100) SH [5.6.3-9-1] # 10, 1 CodeValue
....
(003a,0208) SQ (Sequence with undefined length #=1) # u/l, 1 ChannelSourceSequence
(fffe,e000) na (Item with undefined length #=4) # u/l, 1 Item
(0008,0100) SH [5.6.3-9-2] # 10, 1 CodeValue
...
so I just want to get all (0008,0100) values, something like: "5.6.3-9-1", "5.6.3-9-2", "5.6.3-9-61", and so on.