PSJXR54 ; COMPILED XREF FOR FILE #55.06 ; 10/28/97
;
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),5,DA)) I DA'>0 S DA=0 G END
1 ;
S DIKZ(0)=$G(^PS(55,DA(1),5,DA,0))
S X=$P(DIKZ(0),U,1)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(1)=X,PSGAL("C")=6000,PSGALFF=.01 D ^PSGAL5
S X=$P(DIKZ(0),U,1)
I X'="" K ^PS(55,DA(1),5,"B",$E(X,1,30),DA)
S X=$P(DIKZ(0),U,1)
I X'="" I '$D(DIU(0)) K ^PS(55,"AUE",DA(1),DA)
S X=$P(DIKZ(0),U,18)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(55)=X,PSGAL("C")=6000,PSGALFF=.25 D ^PSGAL5
S X=$P(DIKZ(0),U,15)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(2)=X,PSGAL("C")=6000,PSGALFF=.5 D ^PSGAL5
S X=$P(DIKZ(0),U,2)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(3)=X,PSGAL("C")=6000,PSGALFF=1 D ^PSGAL5
S X=$P(DIKZ(0),U,3)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(4)=X,PSGAL("C")=6000,PSGALFF=3 D ^PSGAL5
S X=$P(DIKZ(0),U,4)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(5)=X,PSGAL("C")=6000,PSGALFF=4 D ^PSGAL5
S X=$P(DIKZ(0),U,5)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(6)=X,PSGAL("C")=6000,PSGALFF=5 D ^PSGAL5
S X=$P(DIKZ(0),U,5)
I X'="" D
.N DIK,DIV,DIU,DIN
.S DIU=$S($D(^PS(55,DA(1),5,DA,0)):$P(^(0),"^",6),1:"") I DIU S $P(^(0),"^",6)="" I $O(^DD(55.06,6,1,0)) K DIV S (DIV(0),D0)=DA(1),(DIV(1),D1)=DA,DIV="",DIH=55.06,DIG=6 D ^DICR
S X=$P(DIKZ(0),U,6)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(7)=X,PSGAL("C")=6000,PSGALFF=6 D ^PSGAL5
S X=$P(DIKZ(0),U,7)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(8)=X,PSGAL("C")=6000,PSGALFF=7 D ^PSGAL5
S X=$P(DIKZ(0),U,7)
I X'="" I $D(^PS(55,DA(1),5,DA,2)),$P(^(2),"^",4) K ^PS(55,DA(1),5,"AU",X,+$P(^(2),"^",4),DA)
S DIKZ(6)=$G(^PS(55,DA(1),5,DA,6))
S X=$P(DIKZ(6),U,1)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(9)=X,PSGAL("C")=6000,PSGALFF=8 D ^PSGAL5
S DIKZ(2)=$G(^PS(55,DA(1),5,DA,2))
S X=$P(DIKZ(2),U,2)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(41)=X,PSGAL("C")=6000,PSGALFF=10 D ^PSGAL5
S X=$P(DIKZ(0),U,10)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(11)=X,PSGAL("C")=6000,PSGALFF=11 D ^PSGAL5
S X=$P(DIKZ(0),U,11)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(12)=X,PSGAL("C")=6000,PSGALFF=12 D ^PSGAL5
S X=$P(DIKZ(0),U,12)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(13)=X,PSGAL("C")=6000,PSGALFF=13 D ^PSGAL5
S DIKZ(5)=$G(^PS(55,DA(1),5,DA,5))
S X=$P(DIKZ(5),U,6)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(14)=X,PSGAL("C")=6000,PSGALFF=14 D ^PSGAL5
S DIKZ(4)=$G(^PS(55,DA(1),5,DA,4))
S X=$P(DIKZ(4),U,1)
I X'="" I '$D(DIU(0)),X,'$D(PSGPO) S PSGAL(15)=X,PSGAL("C")=6000,PSGALFF=16 D ^PSGAL5
S X=$P(DIKZ(4),U,2)
I X'="" I '$D(DIU(0)),X,'$D(PSGPO) S PSGAL(16)=X,PSGAL("C")=6000,PSGALFF=17 D ^PSGAL5
S X=$P(DIKZ(4),U,3)
I X'="" I X,'$D(DIU(0)),'$D(PSGPO) S PSGAL(17)=X,PSGAL("C")=6000,PSGALFF=18 D ^PSGAL5
S X=$P(DIKZ(4),U,4)
I X'="" I X,'$D(DIU(0)),'$D(PSGPO) S PSGAL(18)=X,PSGAL("C")=6000,PSGALFF=19 D ^PSGAL5
S X=$P(DIKZ(4),U,5)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(19)=X,PSGAL("C")=6000,PSGALFF=20 D ^PSGAL5
S X=$P(DIKZ(4),U,6)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(20)=X,PSGAL("C")=6000,PSGALFF=21 D ^PSGAL5
S X=$P(DIKZ(4),U,7)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(21)=X,PSGAL("C")=6000,PSGALFF=22 D ^PSGAL5
S X=$P(DIKZ(4),U,8)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(22)=X,PSGAL("C")=6000,PSGALFF=23 D ^PSGAL5
S X=$P(DIKZ(0),U,17)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(23)=X,PSGAL("C")=6000,PSGALFF=24 D ^PSGAL5
S X=$P(DIKZ(2),U,3)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(24)=X,PSGAL("C")=6000,PSGALFF=25 D ^PSGAL5
S X=$P(DIKZ(2),U,1)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(43)=X,PSGAL("C")=6000,PSGALFF=26 D ^PSGAL5
S X=$P(DIKZ(2),U,1)
I X'="" D
.N DIK,DIV,DIU,DIN
.I '$D(DIU(0)),$D(PSGS0Y) S DIU=$S($D(^PS(55,DA(1),5,DA,2)):$P(^(2),"^",5),1:"") I DIU]"" S $P(^(2),"^",5)="" I $O(^DD(55.06,41,1,0)) K DIV S (DIV(0),D0)=DA(1),(DIV(1),D1)=DA,DIV="",DIH=55.06,DIG=41 D ^DICR
S X=$P(DIKZ(2),U,1)
I X'="" D
.N DIK,DIV,DIU,DIN
.I $D(PSGS0XT) S DIU=$S($D(^PS(55,DA(1),5,DA,2)):$P(^(2),"^",6),1:"") I DIU]"" S $P(^(2),"^",6)="" I $O(^DD(55.06,42,1,0)) K DIV S (DIV(0),D0)=DA(1),(DIV(1),D1)=DA,DIV="",DIH=55.06,DIG=42 D ^DICR
S X=$P(DIKZ(0),U,14)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(26)=X,PSGAL("C")=6000,PSGALFF=27 D ^PSGAL5
S X=$P(DIKZ(0),U,16)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(27)=X,PSGAL("C")=6000,PSGALFF=27.1 D ^PSGAL5
S X=$P(DIKZ(0),U,9)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(28)=X,PSGAL("C")=6000,PSGALFF=28 D ^PSGAL5
S X=$P(DIKZ(5),U,2)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(51)=X,PSGAL("C")=6000,PSGALFF=32 D ^PSGAL5
S X=$P(DIKZ(2),U,4)
I X'="" K ^PS(55,DA(1),5,"AUS",+X,DA) I $P($G(^PS(55,DA(1),5,DA,0)),"^",7)]"" K ^PS(55,DA(1),5,"AU",$P(^(0),"^",7),+X,DA)
S X=$P(DIKZ(2),U,4)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(53)=X,PSGAL("C")=6000,PSGALFF=34 D ^PSGAL5
S X=$P(DIKZ(2),U,4)
G ^PSJXR55
END G END^PSJXR55
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HPSJXR54 4961 printed Oct 16, 2024@18:10:17 Page 2
PSJXR54 ; COMPILED XREF FOR FILE #55.06 ; 10/28/97
+1 ;
+2 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),5,DA))
IF DA'>0
SET DA=0
GOTO END
1 ;
+1 SET DIKZ(0)=$GET(^PS(55,DA(1),5,DA,0))
+2 SET X=$PIECE(DIKZ(0),U,1)
+3 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(1)=X
SET PSGAL("C")=6000
SET PSGALFF=.01
DO ^PSGAL5
+4 SET X=$PIECE(DIKZ(0),U,1)
+5 IF X'=""
KILL ^PS(55,DA(1),5,"B",$EXTRACT(X,1,30),DA)
+6 SET X=$PIECE(DIKZ(0),U,1)
+7 IF X'=""
IF '$DATA(DIU(0))
KILL ^PS(55,"AUE",DA(1),DA)
+8 SET X=$PIECE(DIKZ(0),U,18)
+9 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(55)=X
SET PSGAL("C")=6000
SET PSGALFF=.25
DO ^PSGAL5
+10 SET X=$PIECE(DIKZ(0),U,15)
+11 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(2)=X
SET PSGAL("C")=6000
SET PSGALFF=.5
DO ^PSGAL5
+12 SET X=$PIECE(DIKZ(0),U,2)
+13 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(3)=X
SET PSGAL("C")=6000
SET PSGALFF=1
DO ^PSGAL5
+14 SET X=$PIECE(DIKZ(0),U,3)
+15 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(4)=X
SET PSGAL("C")=6000
SET PSGALFF=3
DO ^PSGAL5
+16 SET X=$PIECE(DIKZ(0),U,4)
+17 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(5)=X
SET PSGAL("C")=6000
SET PSGALFF=4
DO ^PSGAL5
+18 SET X=$PIECE(DIKZ(0),U,5)
+19 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(6)=X
SET PSGAL("C")=6000
SET PSGALFF=5
DO ^PSGAL5
+20 SET X=$PIECE(DIKZ(0),U,5)
+21 IF X'=""
Begin DoDot:1
+22 NEW DIK,DIV,DIU,DIN
+23 SET DIU=$SELECT($DATA(^PS(55,DA(1),5,DA,0)):$PIECE(^(0),"^",6),1:"")
IF DIU
SET $PIECE(^(0),"^",6)=""
IF $ORDER(^DD(55.06,6,1,0))
KILL DIV
SET (DIV(0),D0)=DA(1)
SET (DIV(1),D1)=DA
SET DIV=""
SET DIH=55.06
SET DIG=6
DO ^DICR
End DoDot:1
+24 SET X=$PIECE(DIKZ(0),U,6)
+25 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(7)=X
SET PSGAL("C")=6000
SET PSGALFF=6
DO ^PSGAL5
+26 SET X=$PIECE(DIKZ(0),U,7)
+27 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(8)=X
SET PSGAL("C")=6000
SET PSGALFF=7
DO ^PSGAL5
+28 SET X=$PIECE(DIKZ(0),U,7)
+29 IF X'=""
IF $DATA(^PS(55,DA(1),5,DA,2))
IF $PIECE(^(2),"^",4)
KILL ^PS(55,DA(1),5,"AU",X,+$PIECE(^(2),"^",4),DA)
+30 SET DIKZ(6)=$GET(^PS(55,DA(1),5,DA,6))
+31 SET X=$PIECE(DIKZ(6),U,1)
+32 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(9)=X
SET PSGAL("C")=6000
SET PSGALFF=8
DO ^PSGAL5
+33 SET DIKZ(2)=$GET(^PS(55,DA(1),5,DA,2))
+34 SET X=$PIECE(DIKZ(2),U,2)
+35 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(41)=X
SET PSGAL("C")=6000
SET PSGALFF=10
DO ^PSGAL5
+36 SET X=$PIECE(DIKZ(0),U,10)
+37 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(11)=X
SET PSGAL("C")=6000
SET PSGALFF=11
DO ^PSGAL5
+38 SET X=$PIECE(DIKZ(0),U,11)
+39 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(12)=X
SET PSGAL("C")=6000
SET PSGALFF=12
DO ^PSGAL5
+40 SET X=$PIECE(DIKZ(0),U,12)
+41 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(13)=X
SET PSGAL("C")=6000
SET PSGALFF=13
DO ^PSGAL5
+42 SET DIKZ(5)=$GET(^PS(55,DA(1),5,DA,5))
+43 SET X=$PIECE(DIKZ(5),U,6)
+44 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(14)=X
SET PSGAL("C")=6000
SET PSGALFF=14
DO ^PSGAL5
+45 SET DIKZ(4)=$GET(^PS(55,DA(1),5,DA,4))
+46 SET X=$PIECE(DIKZ(4),U,1)
+47 IF X'=""
IF '$DATA(DIU(0))
IF X
IF '$DATA(PSGPO)
SET PSGAL(15)=X
SET PSGAL("C")=6000
SET PSGALFF=16
DO ^PSGAL5
+48 SET X=$PIECE(DIKZ(4),U,2)
+49 IF X'=""
IF '$DATA(DIU(0))
IF X
IF '$DATA(PSGPO)
SET PSGAL(16)=X
SET PSGAL("C")=6000
SET PSGALFF=17
DO ^PSGAL5
+50 SET X=$PIECE(DIKZ(4),U,3)
+51 IF X'=""
IF X
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(17)=X
SET PSGAL("C")=6000
SET PSGALFF=18
DO ^PSGAL5
+52 SET X=$PIECE(DIKZ(4),U,4)
+53 IF X'=""
IF X
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(18)=X
SET PSGAL("C")=6000
SET PSGALFF=19
DO ^PSGAL5
+54 SET X=$PIECE(DIKZ(4),U,5)
+55 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(19)=X
SET PSGAL("C")=6000
SET PSGALFF=20
DO ^PSGAL5
+56 SET X=$PIECE(DIKZ(4),U,6)
+57 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(20)=X
SET PSGAL("C")=6000
SET PSGALFF=21
DO ^PSGAL5
+58 SET X=$PIECE(DIKZ(4),U,7)
+59 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(21)=X
SET PSGAL("C")=6000
SET PSGALFF=22
DO ^PSGAL5
+60 SET X=$PIECE(DIKZ(4),U,8)
+61 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(22)=X
SET PSGAL("C")=6000
SET PSGALFF=23
DO ^PSGAL5
+62 SET X=$PIECE(DIKZ(0),U,17)
+63 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(23)=X
SET PSGAL("C")=6000
SET PSGALFF=24
DO ^PSGAL5
+64 SET X=$PIECE(DIKZ(2),U,3)
+65 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(24)=X
SET PSGAL("C")=6000
SET PSGALFF=25
DO ^PSGAL5
+66 SET X=$PIECE(DIKZ(2),U,1)
+67 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(43)=X
SET PSGAL("C")=6000
SET PSGALFF=26
DO ^PSGAL5
+68 SET X=$PIECE(DIKZ(2),U,1)
+69 IF X'=""
Begin DoDot:1
+70 NEW DIK,DIV,DIU,DIN
+71 IF '$DATA(DIU(0))
IF $DATA(PSGS0Y)
SET DIU=$SELECT($DATA(^PS(55,DA(1),5,DA,2)):$PIECE(^(2),"^",5),1:"")
IF DIU]""
SET $PIECE(^(2),"^",5)=""
IF $ORDER(^DD(55.06,41,1,0))
KILL DIV
SET (DIV(0),D0)=DA(1)
SET (DIV(1),D1)=DA
SET DIV=""
SET DIH=55.06
SET DIG=41
DO ^DICR
End DoDot:1
+72 SET X=$PIECE(DIKZ(2),U,1)
+73 IF X'=""
Begin DoDot:1
+74 NEW DIK,DIV,DIU,DIN
+75 IF $DATA(PSGS0XT)
SET DIU=$SELECT($DATA(^PS(55,DA(1),5,DA,2)):$PIECE(^(2),"^",6),1:"")
IF DIU]""
SET $PIECE(^(2),"^",6)=""
IF $ORDER(^DD(55.06,42,1,0))
KILL DIV
SET (DIV(0),D0)=DA(1)
SET (DIV(1),D1)=DA
SET DIV=""
SET DIH=55.06
SET DIG=42
DO ^DICR
End DoDot:1
+76 SET X=$PIECE(DIKZ(0),U,14)
+77 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(26)=X
SET PSGAL("C")=6000
SET PSGALFF=27
DO ^PSGAL5
+78 SET X=$PIECE(DIKZ(0),U,16)
+79 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(27)=X
SET PSGAL("C")=6000
SET PSGALFF=27.1
DO ^PSGAL5
+80 SET X=$PIECE(DIKZ(0),U,9)
+81 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(28)=X
SET PSGAL("C")=6000
SET PSGALFF=28
DO ^PSGAL5
+82 SET X=$PIECE(DIKZ(5),U,2)
+83 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(51)=X
SET PSGAL("C")=6000
SET PSGALFF=32
DO ^PSGAL5
+84 SET X=$PIECE(DIKZ(2),U,4)
+85 IF X'=""
KILL ^PS(55,DA(1),5,"AUS",+X,DA)
IF $PIECE($GET(^PS(55,DA(1),5,DA,0)),"^",7)]""
KILL ^PS(55,DA(1),5,"AU",$PIECE(^(0),"^",7),+X,DA)
+86 SET X=$PIECE(DIKZ(2),U,4)
+87 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(53)=X
SET PSGAL("C")=6000
SET PSGALFF=34
DO ^PSGAL5
+88 SET X=$PIECE(DIKZ(2),U,4)
+89 GOTO ^PSJXR55
END GOTO END^PSJXR55