PSJXR52 ; COMPILED XREF FOR FILE #55.01 ; 11/17/04
;
S DA(1)=DA S DA=0
A1 ;
I $D(DIKILL) K DIKLM S:DIKM1=1 DIKLM=1 G @DIKM1
0 ;
A S DA=$O(^PS(55,DA(1),"IV",DA)) I DA'>0 S DA=0 G END
1 ;
S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0))
S X=$P(DIKZ(0),U,2)
I X'="" X ^DD(55.01,.02,1,1,2)
S X=$P(DIKZ(0),U,2)
I X'="" K ^PS(55,"AIVS",$E(X,1,30),DA(1),DA)
S X=$P(DIKZ(0),U,3)
I X'="" K ^PS(55,"AIV",+$E(X,1,30),DA(1),DA)
S X=$P(DIKZ(0),U,3)
I X'="" X ^DD(55.01,.03,1,2,2)
S X=$P(DIKZ(0),U,3)
I X'="" K ^PS(55,DA(1),"IV","AIS",$E(X,1,30),DA)
S X=$P(DIKZ(0),U,3)
I X'="" I $P($G(^PS(55,DA(1),"IV",DA,0)),U,4)]"" K ^PS(55,DA(1),"IV","AIT",$P(^(0),U,4),+X,DA)
S X=$P(DIKZ(0),U,4)
I X'="" X ^DD(55.01,.04,1,1,2)
S X=$P(DIKZ(0),U,6)
I X'="" X ^DD(55.01,.06,1,1,2)
S X=$P(DIKZ(0),U,8)
I X'="" X ^DD(55.01,.08,1,1,2)
S X=$P(DIKZ(0),U,9)
I X'="" X ^DD(55.01,.09,1,1,2)
S DIKZ(1)=$G(^PS(55,DA(1),"IV",DA,1))
S X=$P(DIKZ(1),U,1)
I X'="" X ^DD(55.01,.1,1,1,2)
S X=$P(DIKZ(0),U,11)
I X'="" X ^DD(55.01,.12,1,1,2)
S DIKZ(3)=$G(^PS(55,DA(1),"IV",DA,3))
S X=$P(DIKZ(3),U,1)
I X'="" X ^DD(55.01,31,1,1,2)
S X=$P(DIKZ(0),U,17)
I X'="" X ^DD(55.01,100,1,1,2)
S X=$P(DIKZ(0),U,17)
I X'="" K:X'="N" ^PS(55,"ANVO",DA(1),DA)
S X=$P(DIKZ(0),U,17)
I X'="" K:X'="D"&($D(^PS(55,DA(1),"IV",DA,"ADC"))) ^PS(55,"ADC",^PS(55,DA(1),"IV",DA,"ADC"),DA(1),DA)
S X=$P(DIKZ(0),U,1)
I X'="" K ^PS(55,DA(1),"IV","B",$E(X,1,30),DA)
G:'$D(DIKLM) A Q:$D(DIKILL)
END G ^PSJXR53
PSJXR52 ; COMPILED XREF FOR FILE #55.01 ; 11/17/04
+1 ;
+2 SET DA(1)=DA
SET DA=0
A1 ;
+1 IF $DATA(DIKILL)
KILL DIKLM
IF DIKM1=1
SET DIKLM=1
GOTO @DIKM1
0 ;
A SET DA=$ORDER(^PS(55,DA(1),"IV",DA))
IF DA'>0
SET DA=0
GOTO END
1 ;
+1 SET DIKZ(0)=$GET(^PS(55,DA(1),"IV",DA,0))
+2 SET X=$PIECE(DIKZ(0),U,2)
+3 IF X'=""
XECUTE ^DD(55.01,.02,1,1,2)
+4 SET X=$PIECE(DIKZ(0),U,2)
+5 IF X'=""
KILL ^PS(55,"AIVS",$EXTRACT(X,1,30),DA(1),DA)
+6 SET X=$PIECE(DIKZ(0),U,3)
+7 IF X'=""
KILL ^PS(55,"AIV",+$EXTRACT(X,1,30),DA(1),DA)
+8 SET X=$PIECE(DIKZ(0),U,3)
+9 IF X'=""
XECUTE ^DD(55.01,.03,1,2,2)
+10 SET X=$PIECE(DIKZ(0),U,3)
+11 IF X'=""
KILL ^PS(55,DA(1),"IV","AIS",$EXTRACT(X,1,30),DA)
+12 SET X=$PIECE(DIKZ(0),U,3)
+13 IF X'=""
IF $PIECE($GET(^PS(55,DA(1),"IV",DA,0)),U,4)]""
KILL ^PS(55,DA(1),"IV","AIT",$PIECE(^(0),U,4),+X,DA)
+14 SET X=$PIECE(DIKZ(0),U,4)
+15 IF X'=""
XECUTE ^DD(55.01,.04,1,1,2)
+16 SET X=$PIECE(DIKZ(0),U,6)
+17 IF X'=""
XECUTE ^DD(55.01,.06,1,1,2)
+18 SET X=$PIECE(DIKZ(0),U,8)
+19 IF X'=""
XECUTE ^DD(55.01,.08,1,1,2)
+20 SET X=$PIECE(DIKZ(0),U,9)
+21 IF X'=""
XECUTE ^DD(55.01,.09,1,1,2)
+22 SET DIKZ(1)=$GET(^PS(55,DA(1),"IV",DA,1))
+23 SET X=$PIECE(DIKZ(1),U,1)
+24 IF X'=""
XECUTE ^DD(55.01,.1,1,1,2)
+25 SET X=$PIECE(DIKZ(0),U,11)
+26 IF X'=""
XECUTE ^DD(55.01,.12,1,1,2)
+27 SET DIKZ(3)=$GET(^PS(55,DA(1),"IV",DA,3))
+28 SET X=$PIECE(DIKZ(3),U,1)
+29 IF X'=""
XECUTE ^DD(55.01,31,1,1,2)
+30 SET X=$PIECE(DIKZ(0),U,17)
+31 IF X'=""
XECUTE ^DD(55.01,100,1,1,2)
+32 SET X=$PIECE(DIKZ(0),U,17)
+33 IF X'=""
IF X'="N"
KILL ^PS(55,"ANVO",DA(1),DA)
+34 SET X=$PIECE(DIKZ(0),U,17)
+35 IF X'=""
IF X'="D"&($DATA(^PS(55,DA(1),"IV",DA,"ADC")))
KILL ^PS(55,"ADC",^PS(55,DA(1),"IV",DA,"ADC"),DA(1),DA)
+36 SET X=$PIECE(DIKZ(0),U,1)
+37 IF X'=""
KILL ^PS(55,DA(1),"IV","B",$EXTRACT(X,1,30),DA)
+38 IF '$DATA(DIKLM)
GOTO A
IF $DATA(DIKILL)
QUIT
END GOTO ^PSJXR53