PSJXR52 ; COMPILED XREF FOR FILE #55.01 ; 10/28/97
;
S DA(1)=DA S DA=0
A1 ;
I $D(DIKILL) K DIKLM S:$D(DA(1)) DIKLM=1 G:$D(DA(1)) 1 S DA(1)=DA,DA=0 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,1)
I X'="" K ^PS(55,DA(1),"IV","B",$E(X,1,30),DA)
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)
G:'$D(DIKLM) A Q:$D(DIKILL)
END G ^PSJXR53
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HPSJXR52 1540 printed Dec 13, 2024@02:09:28 Page 2
PSJXR52 ; COMPILED XREF FOR FILE #55.01 ; 10/28/97
+1 ;
+2 SET DA(1)=DA
SET DA=0
A1 ;
+1 IF $DATA(DIKILL)
KILL DIKLM
if $DATA(DA(1))
SET DIKLM=1
if $DATA(DA(1))
GOTO 1
SET DA(1)=DA
SET DA=0
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,1)
+3 IF X'=""
KILL ^PS(55,DA(1),"IV","B",$EXTRACT(X,1,30),DA)
+4 SET X=$PIECE(DIKZ(0),U,2)
+5 IF X'=""
XECUTE ^DD(55.01,.02,1,1,2)
+6 SET X=$PIECE(DIKZ(0),U,2)
+7 IF X'=""
KILL ^PS(55,"AIVS",$EXTRACT(X,1,30),DA(1),DA)
+8 SET X=$PIECE(DIKZ(0),U,3)
+9 IF X'=""
KILL ^PS(55,"AIV",+$EXTRACT(X,1,30),DA(1),DA)
+10 SET X=$PIECE(DIKZ(0),U,3)
+11 IF X'=""
XECUTE ^DD(55.01,.03,1,2,2)
+12 SET X=$PIECE(DIKZ(0),U,3)
+13 IF X'=""
KILL ^PS(55,DA(1),"IV","AIS",$EXTRACT(X,1,30),DA)
+14 SET X=$PIECE(DIKZ(0),U,3)
+15 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)
+16 SET X=$PIECE(DIKZ(0),U,4)
+17 IF X'=""
XECUTE ^DD(55.01,.04,1,1,2)
+18 SET X=$PIECE(DIKZ(0),U,6)
+19 IF X'=""
XECUTE ^DD(55.01,.06,1,1,2)
+20 SET X=$PIECE(DIKZ(0),U,8)
+21 IF X'=""
XECUTE ^DD(55.01,.08,1,1,2)
+22 SET X=$PIECE(DIKZ(0),U,9)
+23 IF X'=""
XECUTE ^DD(55.01,.09,1,1,2)
+24 SET DIKZ(1)=$GET(^PS(55,DA(1),"IV",DA,1))
+25 SET X=$PIECE(DIKZ(1),U,1)
+26 IF X'=""
XECUTE ^DD(55.01,.1,1,1,2)
+27 SET X=$PIECE(DIKZ(0),U,11)
+28 IF X'=""
XECUTE ^DD(55.01,.12,1,1,2)
+29 SET DIKZ(3)=$GET(^PS(55,DA(1),"IV",DA,3))
+30 SET X=$PIECE(DIKZ(3),U,1)
+31 IF X'=""
XECUTE ^DD(55.01,31,1,1,2)
+32 SET X=$PIECE(DIKZ(0),U,17)
+33 IF X'=""
XECUTE ^DD(55.01,100,1,1,2)
+34 SET X=$PIECE(DIKZ(0),U,17)
+35 IF X'=""
if X'="N"
KILL ^PS(55,"ANVO",DA(1),DA)
+36 SET X=$PIECE(DIKZ(0),U,17)
+37 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)
+38 if '$DATA(DIKLM)
GOTO A
if $DATA(DIKILL)
QUIT
END GOTO ^PSJXR53