Written by

Software Engineer at Holland Hospital
Question Joe Schra · Jan 4, 2018

Reference second or third iteration of a field IE: PID-13-4(3)

Hi Everyone,

I am trying to reference a field, however, in our production environment, it can be found in the first second or third iteration. My code was only qualifying on the first iteration. I have been attempting to include all iterations, but I have come up short...below is a snippet of what I am attempting to use.  My original code simply had GetValueAt("PID:13.4") but this only referenced the first iteration. Thanks for any thoughts!

Set PID13 = pInput.GetValueAt("PID:13")
For iIndex=1:1:4 {
  Set Eaddr = pInput.GetValueAt("PID:13.4[iIndex]")
  If (..Contains(Eaddr, "@")) {

Comments

Aman Rana · Jan 4, 2018

Try using this:

For i=1:1:pInput.GetValueAt("PID:13.4(*)"){

Set Eaddr = pInput.GetValueAt("PID:13.4("_i_")")

If (..Contains(Eaddr,"@")){

0