I am trying to get the values of a PID:3 segment to an array but I will need to know the length of the segment to process .
set o = ##class(EnsLib.HL7.Message).%OpenId(458)
w o.GetValueAt("PID:3")
w o.GetValueAt("PID:3").SegCount This throws an error any help appreciated