MUMPS CODE: X ^DD(9000010.2425,.019,9.3) S X=$P(Y(9000010.2425,.019,101),U,2) S D0=Y(9000010.2425,.019,80) S D1=Y(9000010.2425,.019,81)
9.2 = S Y(9000010.2425,.019,81)=$S($D(D1):D1,1:""),Y(9000010.2425,.019,80)=$S($D(D0):D0,1:""),Y(9000010.2425,.019,1)=$S($D(^AUPNVPTH(D0,25,D1,0)):^(0),1:"")
9.3 = X ^DD(9000010.2425,.019,9.2) S D0=$P(Y(9000010.2425,.019,1),U,1) S:'$D(^LAB(61.5,+D0,0)) D0=-1 S Y(9000010.2425,.019,101)=$S($D(^LAB(61.5,D0,0)):^(0),1:"")