PSJXR512 ; COMPILED XREF FOR FILE #55.01 ; 10/28/97
;
S DA(1)=DA S DA=0
A1 ;
I $D(DISET) 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'="" S ^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,1)
S X=$P(DIKZ(0),U,2)
I X'="" S ^PS(55,"AIVS",$E(X,1,30),DA(1),DA)=""
S X=$P(DIKZ(0),U,3)
I X'="" S ^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,1)
S X=$P(DIKZ(0),U,3)
I X'="" S ^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)]"" S ^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,1)
S X=$P(DIKZ(0),U,6)
I X'="" X ^DD(55.01,.06,1,1,1)
S X=$P(DIKZ(0),U,6)
I X'="" I '$D(DIU(0)),$S($D(^PS(55,DA(1),5.1)):$P(^(5.1),"^",2)'=X,1:1) S $P(^(5.1),"^",2)=X
S X=$P(DIKZ(0),U,8)
I X'="" X ^DD(55.01,.08,1,1,1)
S X=$P(DIKZ(0),U,9)
I X'="" X ^DD(55.01,.09,1,1,1)
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,1)
S X=$P(DIKZ(0),U,11)
I X'="" X ^DD(55.01,.12,1,1,1)
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,1)
S X=$P(DIKZ(0),U,17)
I X'="" X ^DD(55.01,100,1,1,1)
S X=$P(DIKZ(0),U,17)
I X'="" I $D(DIU(0)) S:X="N" ^PS(55,"ANVO",DA(1),DA)=""
S X=$P(DIKZ(0),U,17)
I X'="" S: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(DISET)
END G ^PSJXR513
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HPSJXR512 1689 printed Nov 22, 2024@17:19:25 Page 2
PSJXR512 ; COMPILED XREF FOR FILE #55.01 ; 10/28/97
+1 ;
+2 SET DA(1)=DA
SET DA=0
A1 ;
+1 IF $DATA(DISET)
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'=""
SET ^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,1)
+6 SET X=$PIECE(DIKZ(0),U,2)
+7 IF X'=""
SET ^PS(55,"AIVS",$EXTRACT(X,1,30),DA(1),DA)=""
+8 SET X=$PIECE(DIKZ(0),U,3)
+9 IF X'=""
SET ^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,1)
+12 SET X=$PIECE(DIKZ(0),U,3)
+13 IF X'=""
SET ^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)]""
SET ^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,1)
+18 SET X=$PIECE(DIKZ(0),U,6)
+19 IF X'=""
XECUTE ^DD(55.01,.06,1,1,1)
+20 SET X=$PIECE(DIKZ(0),U,6)
+21 IF X'=""
IF '$DATA(DIU(0))
IF $SELECT($DATA(^PS(55,DA(1),5.1)):$PIECE(^(5.1),"^",2)'=X,1:1)
SET $PIECE(^(5.1),"^",2)=X
+22 SET X=$PIECE(DIKZ(0),U,8)
+23 IF X'=""
XECUTE ^DD(55.01,.08,1,1,1)
+24 SET X=$PIECE(DIKZ(0),U,9)
+25 IF X'=""
XECUTE ^DD(55.01,.09,1,1,1)
+26 SET DIKZ(1)=$GET(^PS(55,DA(1),"IV",DA,1))
+27 SET X=$PIECE(DIKZ(1),U,1)
+28 IF X'=""
XECUTE ^DD(55.01,.1,1,1,1)
+29 SET X=$PIECE(DIKZ(0),U,11)
+30 IF X'=""
XECUTE ^DD(55.01,.12,1,1,1)
+31 SET DIKZ(3)=$GET(^PS(55,DA(1),"IV",DA,3))
+32 SET X=$PIECE(DIKZ(3),U,1)
+33 IF X'=""
XECUTE ^DD(55.01,31,1,1,1)
+34 SET X=$PIECE(DIKZ(0),U,17)
+35 IF X'=""
XECUTE ^DD(55.01,100,1,1,1)
+36 SET X=$PIECE(DIKZ(0),U,17)
+37 IF X'=""
IF $DATA(DIU(0))
if X="N"
SET ^PS(55,"ANVO",DA(1),DA)=""
+38 SET X=$PIECE(DIKZ(0),U,17)
+39 IF X'=""
if X="D"&($DATA(^PS(55,DA(1),"IV",DA,"ADC")))
SET ^PS(55,"ADC",^PS(55,DA(1),"IV",DA,"ADC"),DA(1),DA)=""
+40 if '$DATA(DIKLM)
GOTO A
if $DATA(DISET)
QUIT
END GOTO ^PSJXR513