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
$LENGTH(pRequest.GetValueAt("PID:3") please note this does not give me list length rather it take the PID as a string and give me the length of the string I need to able to extract the individual values in the segment that's the length I need