PSSJXR8 ; COMPILED XREF FOR FILE #55.06 ; 10/05/22
;
S DA=0
A1 ;
I $D(DIKILL) K DIKLM S:DIKM1=1 DIKLM=1 G @DIKM1
0 ;
K ^PS(55,DA(1),5,"AUN")
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($G(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($G(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($G(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($G(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($G(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($G(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($G(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 DIKZ(0)=$G(^PS(55,DA(1),5,DA,0))
S X=$P($G(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($G(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($G(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($G(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($G(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($G(DIKZ(2)),U,2)
I X'="" K ^PS(55,"AUDS",$E(X,1,30),DA(1),DA)
S X=$P($G(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($G(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($G(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($G(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($G(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($G(DIKZ(4)),U,1)
I X'="" S PSGNVF=1
S X=$P($G(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($G(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($G(DIKZ(4)),U,3)
I X'="" S PSGNVF=1
S X=$P($G(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($G(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($G(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($G(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($G(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($G(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($G(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($G(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($G(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($G(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 DIKZ(0)=$G(^PS(55,DA(1),5,DA,0))
S X=$P($G(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($G(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($G(DIKZ(0)),U,9)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(28)=X,PSGAL("C")=6000,PSGALFF=28 D ^PSGAL5
S DIKZ(5)=$G(^PS(55,DA(1),5,DA,5))
S X=$P($G(DIKZ(5)),U,2)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(51)=X,PSGAL("C")=6000,PSGALFF=32 D ^PSGAL5
S DIKZ(2)=$G(^PS(55,DA(1),5,DA,2))
S X=$P($G(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($G(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($G(DIKZ(2)),U,4)
I X'="" K ^PS(55,"AUD",+(X),DA(1),DA)
S X=$P($G(DIKZ(5)),U,4)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(61)=X,PSGAL("C")=6000,PSGALFF=35 D ^PSGAL5
S X=$P($G(DIKZ(5)),U,3)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(54)=X,PSGAL("C")=6000,PSGALFF=36 D ^PSGAL5
S X=$P($G(DIKZ(2)),U,5)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(56)=X,PSGAL("C")=6000,PSGALFF=41 D ^PSGAL5
S X=$P($G(DIKZ(2)),U,6)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(57)=X,PSGAL("C")=6000,PSGALFF=42 D ^PSGAL5
S DIKZ(4)=$G(^PS(55,DA(1),5,DA,4))
S X=$P($G(DIKZ(4)),U,15)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(58)=X,PSGAL("C")=6000,PSGALFF=43 D ^PSGAL5
S X=$P($G(DIKZ(4)),U,16)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(59)=X,PSGAL("C")=6000,PSGALFF=44 D ^PSGAL5
S X=$P($G(DIKZ(4)),U,17)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(60)=X,PSGAL("C")=6000,PSGALFF=45 D ^PSGAL5
S X=$P($G(DIKZ(4)),U,12)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(63)=X,PSGAL("C")=6000,PSGALFF=46 D ^PSGAL5
S X=$P($G(DIKZ(4)),U,13)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(64)=X,PSGAL("C")=6000,PSGALFF=47 D ^PSGAL5
S X=$P($G(DIKZ(4)),U,14)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(65)=X,PSGAL("C")=6000,PSGALFF=48 D ^PSGAL5
S X=$P($G(DIKZ(4)),U,11)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(62)=X,PSGAL("C")=6000,PSGALFF=49 D ^PSGAL5
S X=$P($G(DIKZ(4)),U,9)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(66)=X,PSGAL("C")=6000,PSGALFF=50 D ^PSGAL5
S X=$P($G(DIKZ(4)),U,9)
I X'="" K ^PS(55,"APV",DA(1),DA)
S X=$P($G(DIKZ(4)),U,10)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(67)=X,PSGAL("C")=6000,PSGALFF=51 D ^PSGAL5
S X=$P($G(DIKZ(4)),U,10)
I X'="" S:'X ^PS(55,"ANV",DA(1),DA)=""
S DIKZ(7)=$G(^PS(55,DA(1),5,DA,7))
S X=$P($G(DIKZ(7)),U,1)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(68)=X,PSGAL("C")=6000,PSGALFF=52 D ^PSGAL5
S X=$P($G(DIKZ(7)),U,2)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(69)=X,PSGAL("C")=6000,PSGALFF=53 D ^PSGAL5
S X=$P($G(DIKZ(5)),U,7)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(70)=X,PSGAL("C")=6000,PSGALFF=54 D ^PSGAL5
S X=$P($G(DIKZ(4)),U,18)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(71)=X,PSGAL("C")=6000,PSGALFF=56 D ^PSGAL5
S X=$P($G(DIKZ(4)),U,19)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(72)=X,PSGAL("C")=6000,PSGALFF=57 D ^PSGAL5
S X=$P($G(DIKZ(4)),U,20)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(73)=X,PSGAL("C")=6000,PSGALFF=58 D ^PSGAL5
S X=$P($G(DIKZ(4)),U,21)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(74)=X,PSGAL("C")=6000,PSGALFF=59 D ^PSGAL5
S X=$P($G(DIKZ(4)),U,22)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(75)=X,PSGAL("C")=6000,PSGALFF=60 D ^PSGAL5
S X=$P($G(DIKZ(4)),U,23)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(76)=X,PSGAL("C")=6000,PSGALFF=61 D ^PSGAL5
S X=$P($G(DIKZ(4)),U,24)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(77)=X,PSGAL("C")=6000,PSGALFF=62 D ^PSGAL5
S X=$P($G(DIKZ(0)),U,20)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(79)=X,PSGAL("C")=6000,PSGALFF=64 D ^PSGAL5
S X=$P($G(DIKZ(0)),U,20)
I X'="" K ^PS(55,"AUDDD",$E(X,1,30),DA(1),DA)
S DIKZ(6.5)=$G(^PS(55,DA(1),5,DA,6.5))
S X=$P($G(DIKZ(6.5)),U,1)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(78)=X,PSGAL("C")=6000,PSGALFF=65 D ^PSGAL5
S X=$P($G(DIKZ(0)),U,21)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(80)=X,PSGAL("C")=6000,PSGALFF=66 D ^PSGAL5
S DIKZ(.1)=$G(^PS(55,DA(1),5,DA,.1))
S X=$P($G(DIKZ(.1)),U,1)
I X'="" K ^PS(55,DA(1),5,"C",$E(X,1,30),DA)
S X=$P($G(DIKZ(.1)),U,1)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(101)=X,PSGAL("C")=6000,PSGALFF=101,PSGALFN=55.06 D ^PSGAL5
S X=$P($G(DIKZ(.1)),U,2)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(102)=X,PSGAL("C")=6000,PSGALFF=102,PSGALFN=55.06 D ^PSGAL5
S X=$P($G(DIKZ(0)),U,24)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(103)=X,PSGAL("C")=6000,PSGALFF=103,PSGALFN=55.06 D ^PSGAL5
S X=$P($G(DIKZ(0)),U,25)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(104)=X,PSGAL("C")=6000,PSGALFF=104,PSGALFN=55.06 D ^PSGAL5
S X=$P($G(DIKZ(0)),U,26)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(105)=X,PSGAL("C")=6000,PSGALFF=105,PSGALFN=55.06 D ^PSGAL5
S X=$P($G(DIKZ(.1)),U,3)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(106)=X,PSGAL("C")=6000,PSGALFF=106,PSGALFN=55.06 D ^PSGAL5
S X=$P($G(DIKZ(0)),U,27)
I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(107)=X,PSGAL("C")=6000,PSGALFF=107,PSGALFN=55.06 D ^PSGAL5
S X=$P($G(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($G(DIKZ(0)),U,1)
I X'="" K ^PS(55,DA(1),5,"B",$E(X,1,30),DA)
S X=$P($G(DIKZ(0)),U,1)
I X'="" I '$D(DIU(0)) K ^PS(55,"AUE",DA(1),DA)
S X=$P($G(DIKZ(0)),U,1)
I X'="" K ^PS(55,"APV",DA(1),DA)
S X=$P($G(DIKZ(0)),U,1)
I X'="" K ^PS(55,"ANV",DA(1),DA)
CR1 S DIXR=414
K X
S DIKZ(.2)=$G(^PS(55,DA(1),5,DA,.2))
S X(1)=$P(DIKZ(.2),U,8)
S X(2)=$P(DIKZ(0),U,21)
S X=$G(X(1))
I $G(X(1))]"",$G(X(2))]"" D
. K X1,X2 M X1=X,X2=X
. S:$D(DIKIL) (X2,X2(1),X2(2))=""
. N DIKXARR M DIKXARR=X S DIKCOND=1
. S X=1
. S DIKCOND=$G(X) K X M X=DIKXARR
. Q:'DIKCOND
. K ^PS(55,"ACX",$E(X(1),1,30),$E(X(2),1,30),DA_"U")
CR2 S DIXR=465
K X
S DIKZ(2)=$G(^PS(55,DA(1),5,DA,2))
S X(1)=$P(DIKZ(2),U,2)
S X(2)=$P(DIKZ(2),U,4)
S X=$G(X(1))
I $G(X(1))]"",$G(X(2))]"" D
. K X1,X2 M X1=X,X2=X
. S:$D(DIKIL) (X2,X2(1),X2(2))=""
. N DIKXARR M DIKXARR=X S DIKCOND=1
. S X=$$PATCH^XPDUTL("PXRM*1.5*12")
. S DIKCOND=$G(X) K X M X=DIKXARR
. Q:'DIKCOND
. D KPSPA^PSJXRFK(.X,.DA,"UD")
CR3 S DIXR=499
K X
S DIKZ(2)=$G(^PS(55,DA(1),5,DA,2))
S X(1)=$P(DIKZ(2),U,4)
S DIKZ(8)=$G(^PS(55,DA(1),5,DA,8))
S X(2)=$P(DIKZ(8),U,1)
S X=$G(X(1))
I $G(X(1))]"",$G(X(2))]"" D
. K X1,X2 M X1=X,X2=X
. S:$D(DIKIL) (X2,X2(1),X2(2))=""
. K ^PS(55,"AUDC",$E(X(1),1,20),$E(X(2),1,20),DA(1),DA)
CR4 S DIXR=501
K X
S DIKZ(2)=$G(^PS(55,DA(1),5,DA,2))
S X(1)=$P(DIKZ(2),U,4)
S DIKZ(8)=$G(^PS(55,DA(1),5,DA,8))
S X(2)=$P(DIKZ(8),U,1)
S X=$G(X(1))
I $G(X(1))]"",$G(X(2))]"" D
. K X1,X2 M X1=X,X2=X
. S:$D(DIKIL) (X2,X2(1),X2(2))=""
. K ^PS(55,DA(1),5,"AUN",X(1),X(2),DA)
CR5 S DIXR=1120
K X
S DIKZ(8)=$G(^PS(55,DA(1),5,DA,8))
S X(1)=$P(DIKZ(8),U,1)
S X=$G(X(1))
I $G(X(1))]"" D
. K X1,X2 M X1=X,X2=X
. S:$D(DIKIL) (X2,X2(1))=""
. K ^PS(55,"CIMOCLU",X,DA(1),DA)
CR6 S DIXR=1121
K X
S DIKZ(0)=$G(^PS(55,DA(1),5,DA,0))
S X(1)=$P(DIKZ(0),U,15)
S DIKZ(8)=$G(^PS(55,DA(1),5,DA,8))
S X(2)=$P(DIKZ(8),U,1)
S DIKZ(2)=$G(^PS(55,DA(1),5,DA,2))
S X(3)=$P(DIKZ(2),U,4)
S X=$G(X(1))
I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"" D
. K X1,X2 M X1=X,X2=X
. S:$D(DIKIL) (X2,X2(1),X2(2),X2(3))=""
. K ^PS(55,"CIMOU",X(1),X(2),X(3),DA(1),DA)
CR7 S DIXR=1216
K X
S DIKZ(2.1)=$G(^PS(55,DA(1),5,DA,2.1))
S X(1)=$P(DIKZ(2.1),U,1)
S X(2)=$P(DIKZ(2.1),U,3)
S X=$G(X(1))
I $G(X(1))]"",$G(X(2))]"" D
. K X1,X2 M X1=X,X2=X
. S:$D(DIKIL) (X2,X2(1),X2(2))=""
. N DIKXARR M DIKXARR=X S DIKCOND=1
.
. S DIKCOND=$G(X) K X M X=DIKXARR
. Q:'DIKCOND
. I '$D(DIU(0)),'$D(PSGPO) S PSGAL(56)=X,PSGAL("C")=6000,PSGALFF=137 D ^PSGAL5
CR8 K X
G:'$D(DIKLM) A Q:$D(DIKILL)
END G ^PSSJXR9
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HPSSJXR8 12208 printed Dec 13, 2024@02:32:51 Page 2
PSSJXR8 ; COMPILED XREF FOR FILE #55.06 ; 10/05/22
+1 ;
+2 SET DA=0
A1 ;
+1 IF $DATA(DIKILL)
KILL DIKLM
if DIKM1=1
SET DIKLM=1
GOTO @DIKM1
0 ;
+1 KILL ^PS(55,DA(1),5,"AUN")
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($GET(DIKZ(0)),U,18)
+3 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(55)=X
SET PSGAL("C")=6000
SET PSGALFF=.25
DO ^PSGAL5
+4 SET X=$PIECE($GET(DIKZ(0)),U,15)
+5 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(2)=X
SET PSGAL("C")=6000
SET PSGALFF=.5
DO ^PSGAL5
+6 SET X=$PIECE($GET(DIKZ(0)),U,2)
+7 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(3)=X
SET PSGAL("C")=6000
SET PSGALFF=1
DO ^PSGAL5
+8 SET X=$PIECE($GET(DIKZ(0)),U,3)
+9 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(4)=X
SET PSGAL("C")=6000
SET PSGALFF=3
DO ^PSGAL5
+10 SET X=$PIECE($GET(DIKZ(0)),U,4)
+11 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(5)=X
SET PSGAL("C")=6000
SET PSGALFF=4
DO ^PSGAL5
+12 SET X=$PIECE($GET(DIKZ(0)),U,5)
+13 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(6)=X
SET PSGAL("C")=6000
SET PSGALFF=5
DO ^PSGAL5
+14 SET X=$PIECE($GET(DIKZ(0)),U,5)
+15 IF X'=""
Begin DoDot:1
+16 NEW DIK,DIV,DIU,DIN
+17 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
+18 SET DIKZ(0)=$GET(^PS(55,DA(1),5,DA,0))
+19 SET X=$PIECE($GET(DIKZ(0)),U,6)
+20 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(7)=X
SET PSGAL("C")=6000
SET PSGALFF=6
DO ^PSGAL5
+21 SET X=$PIECE($GET(DIKZ(0)),U,7)
+22 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(8)=X
SET PSGAL("C")=6000
SET PSGALFF=7
DO ^PSGAL5
+23 SET X=$PIECE($GET(DIKZ(0)),U,7)
+24 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)
+25 SET DIKZ(6)=$GET(^PS(55,DA(1),5,DA,6))
+26 SET X=$PIECE($GET(DIKZ(6)),U,1)
+27 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(9)=X
SET PSGAL("C")=6000
SET PSGALFF=8
DO ^PSGAL5
+28 SET DIKZ(2)=$GET(^PS(55,DA(1),5,DA,2))
+29 SET X=$PIECE($GET(DIKZ(2)),U,2)
+30 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(41)=X
SET PSGAL("C")=6000
SET PSGALFF=10
DO ^PSGAL5
+31 SET X=$PIECE($GET(DIKZ(2)),U,2)
+32 IF X'=""
KILL ^PS(55,"AUDS",$EXTRACT(X,1,30),DA(1),DA)
+33 SET X=$PIECE($GET(DIKZ(0)),U,10)
+34 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(11)=X
SET PSGAL("C")=6000
SET PSGALFF=11
DO ^PSGAL5
+35 SET X=$PIECE($GET(DIKZ(0)),U,11)
+36 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(12)=X
SET PSGAL("C")=6000
SET PSGALFF=12
DO ^PSGAL5
+37 SET X=$PIECE($GET(DIKZ(0)),U,12)
+38 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(13)=X
SET PSGAL("C")=6000
SET PSGALFF=13
DO ^PSGAL5
+39 SET DIKZ(5)=$GET(^PS(55,DA(1),5,DA,5))
+40 SET X=$PIECE($GET(DIKZ(5)),U,6)
+41 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(14)=X
SET PSGAL("C")=6000
SET PSGALFF=14
DO ^PSGAL5
+42 SET DIKZ(4)=$GET(^PS(55,DA(1),5,DA,4))
+43 SET X=$PIECE($GET(DIKZ(4)),U,1)
+44 IF X'=""
IF '$DATA(DIU(0))
IF X
IF '$DATA(PSGPO)
SET PSGAL(15)=X
SET PSGAL("C")=6000
SET PSGALFF=16
DO ^PSGAL5
+45 SET X=$PIECE($GET(DIKZ(4)),U,1)
+46 IF X'=""
SET PSGNVF=1
+47 SET X=$PIECE($GET(DIKZ(4)),U,2)
+48 IF X'=""
IF '$DATA(DIU(0))
IF X
IF '$DATA(PSGPO)
SET PSGAL(16)=X
SET PSGAL("C")=6000
SET PSGALFF=17
DO ^PSGAL5
+49 SET X=$PIECE($GET(DIKZ(4)),U,3)
+50 IF X'=""
IF X
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(17)=X
SET PSGAL("C")=6000
SET PSGALFF=18
DO ^PSGAL5
+51 SET X=$PIECE($GET(DIKZ(4)),U,3)
+52 IF X'=""
SET PSGNVF=1
+53 SET X=$PIECE($GET(DIKZ(4)),U,4)
+54 IF X'=""
IF X
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(18)=X
SET PSGAL("C")=6000
SET PSGALFF=19
DO ^PSGAL5
+55 SET X=$PIECE($GET(DIKZ(4)),U,5)
+56 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(19)=X
SET PSGAL("C")=6000
SET PSGALFF=20
DO ^PSGAL5
+57 SET X=$PIECE($GET(DIKZ(4)),U,6)
+58 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(20)=X
SET PSGAL("C")=6000
SET PSGALFF=21
DO ^PSGAL5
+59 SET X=$PIECE($GET(DIKZ(4)),U,7)
+60 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(21)=X
SET PSGAL("C")=6000
SET PSGALFF=22
DO ^PSGAL5
+61 SET X=$PIECE($GET(DIKZ(4)),U,8)
+62 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(22)=X
SET PSGAL("C")=6000
SET PSGALFF=23
DO ^PSGAL5
+63 SET X=$PIECE($GET(DIKZ(0)),U,17)
+64 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(23)=X
SET PSGAL("C")=6000
SET PSGALFF=24
DO ^PSGAL5
+65 SET X=$PIECE($GET(DIKZ(2)),U,3)
+66 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(24)=X
SET PSGAL("C")=6000
SET PSGALFF=25
DO ^PSGAL5
+67 SET X=$PIECE($GET(DIKZ(2)),U,1)
+68 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(43)=X
SET PSGAL("C")=6000
SET PSGALFF=26
DO ^PSGAL5
+69 SET X=$PIECE($GET(DIKZ(2)),U,1)
+70 IF X'=""
Begin DoDot:1
+71 NEW DIK,DIV,DIU,DIN
+72 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
+73 SET X=$PIECE($GET(DIKZ(2)),U,1)
+74 IF X'=""
Begin DoDot:1
+75 NEW DIK,DIV,DIU,DIN
+76 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
+77 SET DIKZ(0)=$GET(^PS(55,DA(1),5,DA,0))
+78 SET X=$PIECE($GET(DIKZ(0)),U,14)
+79 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(26)=X
SET PSGAL("C")=6000
SET PSGALFF=27
DO ^PSGAL5
+80 SET X=$PIECE($GET(DIKZ(0)),U,16)
+81 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(27)=X
SET PSGAL("C")=6000
SET PSGALFF=27.1
DO ^PSGAL5
+82 SET X=$PIECE($GET(DIKZ(0)),U,9)
+83 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(28)=X
SET PSGAL("C")=6000
SET PSGALFF=28
DO ^PSGAL5
+84 SET DIKZ(5)=$GET(^PS(55,DA(1),5,DA,5))
+85 SET X=$PIECE($GET(DIKZ(5)),U,2)
+86 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(51)=X
SET PSGAL("C")=6000
SET PSGALFF=32
DO ^PSGAL5
+87 SET DIKZ(2)=$GET(^PS(55,DA(1),5,DA,2))
+88 SET X=$PIECE($GET(DIKZ(2)),U,4)
+89 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)
+90 SET X=$PIECE($GET(DIKZ(2)),U,4)
+91 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(53)=X
SET PSGAL("C")=6000
SET PSGALFF=34
DO ^PSGAL5
+92 SET X=$PIECE($GET(DIKZ(2)),U,4)
+93 IF X'=""
KILL ^PS(55,"AUD",+(X),DA(1),DA)
+94 SET X=$PIECE($GET(DIKZ(5)),U,4)
+95 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(61)=X
SET PSGAL("C")=6000
SET PSGALFF=35
DO ^PSGAL5
+96 SET X=$PIECE($GET(DIKZ(5)),U,3)
+97 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(54)=X
SET PSGAL("C")=6000
SET PSGALFF=36
DO ^PSGAL5
+98 SET X=$PIECE($GET(DIKZ(2)),U,5)
+99 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(56)=X
SET PSGAL("C")=6000
SET PSGALFF=41
DO ^PSGAL5
+100 SET X=$PIECE($GET(DIKZ(2)),U,6)
+101 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(57)=X
SET PSGAL("C")=6000
SET PSGALFF=42
DO ^PSGAL5
+102 SET DIKZ(4)=$GET(^PS(55,DA(1),5,DA,4))
+103 SET X=$PIECE($GET(DIKZ(4)),U,15)
+104 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(58)=X
SET PSGAL("C")=6000
SET PSGALFF=43
DO ^PSGAL5
+105 SET X=$PIECE($GET(DIKZ(4)),U,16)
+106 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(59)=X
SET PSGAL("C")=6000
SET PSGALFF=44
DO ^PSGAL5
+107 SET X=$PIECE($GET(DIKZ(4)),U,17)
+108 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(60)=X
SET PSGAL("C")=6000
SET PSGALFF=45
DO ^PSGAL5
+109 SET X=$PIECE($GET(DIKZ(4)),U,12)
+110 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(63)=X
SET PSGAL("C")=6000
SET PSGALFF=46
DO ^PSGAL5
+111 SET X=$PIECE($GET(DIKZ(4)),U,13)
+112 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(64)=X
SET PSGAL("C")=6000
SET PSGALFF=47
DO ^PSGAL5
+113 SET X=$PIECE($GET(DIKZ(4)),U,14)
+114 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(65)=X
SET PSGAL("C")=6000
SET PSGALFF=48
DO ^PSGAL5
+115 SET X=$PIECE($GET(DIKZ(4)),U,11)
+116 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(62)=X
SET PSGAL("C")=6000
SET PSGALFF=49
DO ^PSGAL5
+117 SET X=$PIECE($GET(DIKZ(4)),U,9)
+118 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(66)=X
SET PSGAL("C")=6000
SET PSGALFF=50
DO ^PSGAL5
+119 SET X=$PIECE($GET(DIKZ(4)),U,9)
+120 IF X'=""
KILL ^PS(55,"APV",DA(1),DA)
+121 SET X=$PIECE($GET(DIKZ(4)),U,10)
+122 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(67)=X
SET PSGAL("C")=6000
SET PSGALFF=51
DO ^PSGAL5
+123 SET X=$PIECE($GET(DIKZ(4)),U,10)
+124 IF X'=""
if 'X
SET ^PS(55,"ANV",DA(1),DA)=""
+125 SET DIKZ(7)=$GET(^PS(55,DA(1),5,DA,7))
+126 SET X=$PIECE($GET(DIKZ(7)),U,1)
+127 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(68)=X
SET PSGAL("C")=6000
SET PSGALFF=52
DO ^PSGAL5
+128 SET X=$PIECE($GET(DIKZ(7)),U,2)
+129 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(69)=X
SET PSGAL("C")=6000
SET PSGALFF=53
DO ^PSGAL5
+130 SET X=$PIECE($GET(DIKZ(5)),U,7)
+131 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(70)=X
SET PSGAL("C")=6000
SET PSGALFF=54
DO ^PSGAL5
+132 SET X=$PIECE($GET(DIKZ(4)),U,18)
+133 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(71)=X
SET PSGAL("C")=6000
SET PSGALFF=56
DO ^PSGAL5
+134 SET X=$PIECE($GET(DIKZ(4)),U,19)
+135 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(72)=X
SET PSGAL("C")=6000
SET PSGALFF=57
DO ^PSGAL5
+136 SET X=$PIECE($GET(DIKZ(4)),U,20)
+137 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(73)=X
SET PSGAL("C")=6000
SET PSGALFF=58
DO ^PSGAL5
+138 SET X=$PIECE($GET(DIKZ(4)),U,21)
+139 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(74)=X
SET PSGAL("C")=6000
SET PSGALFF=59
DO ^PSGAL5
+140 SET X=$PIECE($GET(DIKZ(4)),U,22)
+141 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(75)=X
SET PSGAL("C")=6000
SET PSGALFF=60
DO ^PSGAL5
+142 SET X=$PIECE($GET(DIKZ(4)),U,23)
+143 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(76)=X
SET PSGAL("C")=6000
SET PSGALFF=61
DO ^PSGAL5
+144 SET X=$PIECE($GET(DIKZ(4)),U,24)
+145 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(77)=X
SET PSGAL("C")=6000
SET PSGALFF=62
DO ^PSGAL5
+146 SET X=$PIECE($GET(DIKZ(0)),U,20)
+147 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(79)=X
SET PSGAL("C")=6000
SET PSGALFF=64
DO ^PSGAL5
+148 SET X=$PIECE($GET(DIKZ(0)),U,20)
+149 IF X'=""
KILL ^PS(55,"AUDDD",$EXTRACT(X,1,30),DA(1),DA)
+150 SET DIKZ(6.5)=$GET(^PS(55,DA(1),5,DA,6.5))
+151 SET X=$PIECE($GET(DIKZ(6.5)),U,1)
+152 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(78)=X
SET PSGAL("C")=6000
SET PSGALFF=65
DO ^PSGAL5
+153 SET X=$PIECE($GET(DIKZ(0)),U,21)
+154 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(80)=X
SET PSGAL("C")=6000
SET PSGALFF=66
DO ^PSGAL5
+155 SET DIKZ(.1)=$GET(^PS(55,DA(1),5,DA,.1))
+156 SET X=$PIECE($GET(DIKZ(.1)),U,1)
+157 IF X'=""
KILL ^PS(55,DA(1),5,"C",$EXTRACT(X,1,30),DA)
+158 SET X=$PIECE($GET(DIKZ(.1)),U,1)
+159 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(101)=X
SET PSGAL("C")=6000
SET PSGALFF=101
SET PSGALFN=55.06
DO ^PSGAL5
+160 SET X=$PIECE($GET(DIKZ(.1)),U,2)
+161 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(102)=X
SET PSGAL("C")=6000
SET PSGALFF=102
SET PSGALFN=55.06
DO ^PSGAL5
+162 SET X=$PIECE($GET(DIKZ(0)),U,24)
+163 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(103)=X
SET PSGAL("C")=6000
SET PSGALFF=103
SET PSGALFN=55.06
DO ^PSGAL5
+164 SET X=$PIECE($GET(DIKZ(0)),U,25)
+165 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(104)=X
SET PSGAL("C")=6000
SET PSGALFF=104
SET PSGALFN=55.06
DO ^PSGAL5
+166 SET X=$PIECE($GET(DIKZ(0)),U,26)
+167 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(105)=X
SET PSGAL("C")=6000
SET PSGALFF=105
SET PSGALFN=55.06
DO ^PSGAL5
+168 SET X=$PIECE($GET(DIKZ(.1)),U,3)
+169 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(106)=X
SET PSGAL("C")=6000
SET PSGALFF=106
SET PSGALFN=55.06
DO ^PSGAL5
+170 SET X=$PIECE($GET(DIKZ(0)),U,27)
+171 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(107)=X
SET PSGAL("C")=6000
SET PSGALFF=107
SET PSGALFN=55.06
DO ^PSGAL5
+172 SET X=$PIECE($GET(DIKZ(0)),U,1)
+173 IF X'=""
IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(1)=X
SET PSGAL("C")=6000
SET PSGALFF=.01
DO ^PSGAL5
+174 SET X=$PIECE($GET(DIKZ(0)),U,1)
+175 IF X'=""
KILL ^PS(55,DA(1),5,"B",$EXTRACT(X,1,30),DA)
+176 SET X=$PIECE($GET(DIKZ(0)),U,1)
+177 IF X'=""
IF '$DATA(DIU(0))
KILL ^PS(55,"AUE",DA(1),DA)
+178 SET X=$PIECE($GET(DIKZ(0)),U,1)
+179 IF X'=""
KILL ^PS(55,"APV",DA(1),DA)
+180 SET X=$PIECE($GET(DIKZ(0)),U,1)
+181 IF X'=""
KILL ^PS(55,"ANV",DA(1),DA)
CR1 SET DIXR=414
+1 KILL X
+2 SET DIKZ(.2)=$GET(^PS(55,DA(1),5,DA,.2))
+3 SET X(1)=$PIECE(DIKZ(.2),U,8)
+4 SET X(2)=$PIECE(DIKZ(0),U,21)
+5 SET X=$GET(X(1))
+6 IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+7 KILL X1,X2
MERGE X1=X,X2=X
+8 if $DATA(DIKIL)
SET (X2,X2(1),X2(2))=""
+9 NEW DIKXARR
MERGE DIKXARR=X
SET DIKCOND=1
+10 SET X=1
+11 SET DIKCOND=$GET(X)
KILL X
MERGE X=DIKXARR
+12 if 'DIKCOND
QUIT
+13 KILL ^PS(55,"ACX",$EXTRACT(X(1),1,30),$EXTRACT(X(2),1,30),DA_"U")
End DoDot:1
CR2 SET DIXR=465
+1 KILL X
+2 SET DIKZ(2)=$GET(^PS(55,DA(1),5,DA,2))
+3 SET X(1)=$PIECE(DIKZ(2),U,2)
+4 SET X(2)=$PIECE(DIKZ(2),U,4)
+5 SET X=$GET(X(1))
+6 IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+7 KILL X1,X2
MERGE X1=X,X2=X
+8 if $DATA(DIKIL)
SET (X2,X2(1),X2(2))=""
+9 NEW DIKXARR
MERGE DIKXARR=X
SET DIKCOND=1
+10 SET X=$$PATCH^XPDUTL("PXRM*1.5*12")
+11 SET DIKCOND=$GET(X)
KILL X
MERGE X=DIKXARR
+12 if 'DIKCOND
QUIT
+13 DO KPSPA^PSJXRFK(.X,.DA,"UD")
End DoDot:1
CR3 SET DIXR=499
+1 KILL X
+2 SET DIKZ(2)=$GET(^PS(55,DA(1),5,DA,2))
+3 SET X(1)=$PIECE(DIKZ(2),U,4)
+4 SET DIKZ(8)=$GET(^PS(55,DA(1),5,DA,8))
+5 SET X(2)=$PIECE(DIKZ(8),U,1)
+6 SET X=$GET(X(1))
+7 IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+8 KILL X1,X2
MERGE X1=X,X2=X
+9 if $DATA(DIKIL)
SET (X2,X2(1),X2(2))=""
+10 KILL ^PS(55,"AUDC",$EXTRACT(X(1),1,20),$EXTRACT(X(2),1,20),DA(1),DA)
End DoDot:1
CR4 SET DIXR=501
+1 KILL X
+2 SET DIKZ(2)=$GET(^PS(55,DA(1),5,DA,2))
+3 SET X(1)=$PIECE(DIKZ(2),U,4)
+4 SET DIKZ(8)=$GET(^PS(55,DA(1),5,DA,8))
+5 SET X(2)=$PIECE(DIKZ(8),U,1)
+6 SET X=$GET(X(1))
+7 IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+8 KILL X1,X2
MERGE X1=X,X2=X
+9 if $DATA(DIKIL)
SET (X2,X2(1),X2(2))=""
+10 KILL ^PS(55,DA(1),5,"AUN",X(1),X(2),DA)
End DoDot:1
CR5 SET DIXR=1120
+1 KILL X
+2 SET DIKZ(8)=$GET(^PS(55,DA(1),5,DA,8))
+3 SET X(1)=$PIECE(DIKZ(8),U,1)
+4 SET X=$GET(X(1))
+5 IF $GET(X(1))]""
Begin DoDot:1
+6 KILL X1,X2
MERGE X1=X,X2=X
+7 if $DATA(DIKIL)
SET (X2,X2(1))=""
+8 KILL ^PS(55,"CIMOCLU",X,DA(1),DA)
End DoDot:1
CR6 SET DIXR=1121
+1 KILL X
+2 SET DIKZ(0)=$GET(^PS(55,DA(1),5,DA,0))
+3 SET X(1)=$PIECE(DIKZ(0),U,15)
+4 SET DIKZ(8)=$GET(^PS(55,DA(1),5,DA,8))
+5 SET X(2)=$PIECE(DIKZ(8),U,1)
+6 SET DIKZ(2)=$GET(^PS(55,DA(1),5,DA,2))
+7 SET X(3)=$PIECE(DIKZ(2),U,4)
+8 SET X=$GET(X(1))
+9 IF $GET(X(1))]""
IF $GET(X(2))]""
IF $GET(X(3))]""
Begin DoDot:1
+10 KILL X1,X2
MERGE X1=X,X2=X
+11 if $DATA(DIKIL)
SET (X2,X2(1),X2(2),X2(3))=""
+12 KILL ^PS(55,"CIMOU",X(1),X(2),X(3),DA(1),DA)
End DoDot:1
CR7 SET DIXR=1216
+1 KILL X
+2 SET DIKZ(2.1)=$GET(^PS(55,DA(1),5,DA,2.1))
+3 SET X(1)=$PIECE(DIKZ(2.1),U,1)
+4 SET X(2)=$PIECE(DIKZ(2.1),U,3)
+5 SET X=$GET(X(1))
+6 IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+7 KILL X1,X2
MERGE X1=X,X2=X
+8 if $DATA(DIKIL)
SET (X2,X2(1),X2(2))=""
+9 NEW DIKXARR
MERGE DIKXARR=X
SET DIKCOND=1
+10 +11 SET DIKCOND=$GET(X)
KILL X
MERGE X=DIKXARR
+12 if 'DIKCOND
QUIT
+13 IF '$DATA(DIU(0))
IF '$DATA(PSGPO)
SET PSGAL(56)=X
SET PSGAL("C")=6000
SET PSGALFF=137
DO ^PSGAL5
End DoDot:1
CR8 KILL X
+1 if '$DATA(DIKLM)
GOTO A
if $DATA(DIKILL)
QUIT
END GOTO ^PSSJXR9