K IBXDATA N Z S Z="" F S Z=$O(IBXSAVE("OUTPT",Z)) Q:'Z I $D(IBXSAVE("OUTPT",Z,"RX")) S IBXDATA(Z)=$P(IBXSAVE("OUTPT",Z,"RX"),U,2)
FORMAT CODE DESCRIPTION
This is a group data element so more than 1 occurrence of a value is
possible for the data element in the previously extract IBXSAVE array. If
any service line data is found, the data is output.