MUMPS CODE: X ^DD(90241.0111,.019,9.3) S X=$P(Y(90241.0111,.019,101),U,1) S D0=Y(90241.0111,.019,80) S D1=Y(90241.0111,.019,81)
9.2 = S Y(90241.0111,.019,81)=$S($D(D1):D1,1:""),Y(90241.0111,.019,80)=$S($D(D0):D0,1:""),Y(90241.0111,.019,1)=$S($D(^BGPCTRL(D0,11,D1,0)):^(0),1:"")
9.3 = X ^DD(90241.0111,.019,9.2) S X=$P(Y(90241.0111,.019,1),U,1) K DIC S DIC="^DIC(40.7,",DIC(0)="NMF" D ^DIC S (D,D0)=+Y S Y(90241.0111,.019,101)=$S($D(^DIC(40.7,D0,0)):^(0),1:"")