87 lines
2.9 KiB
Mathematica
87 lines
2.9 KiB
Mathematica
PSSJXR8 ; COMPILED XREF FOR FILE #55.06 ; 01/17/08
|
|
;
|
|
S X=$P(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(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(DIKZ(.1),U,1)
|
|
I X'="" K ^PS(55,DA(1),5,"C",$E(X,1,30),DA)
|
|
S X=$P(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(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(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(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(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(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(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(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,1)
|
|
I X'="" K ^PS(55,"APV",DA(1),DA)
|
|
S X=$P(DIKZ(0),U,1)
|
|
I X'="" K ^PS(55,"ANV",DA(1),DA)
|
|
CR1 S DIXR=480
|
|
K X
|
|
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")
|
|
CR2 S DIXR=492
|
|
K X
|
|
S DIKZ(.2)=$G(^PS(55,DA(1),5,DA,.2))
|
|
S X(1)=$P(DIKZ(.2),U,8)
|
|
S DIKZ(0)=$G(^PS(55,DA(1),5,DA,0))
|
|
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")
|
|
CR3 S DIXR=495
|
|
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=497
|
|
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 K X
|
|
G:'$D(DIKLM) A^PSSJXR7 Q:$D(DIKILL)
|
|
END G ^PSSJXR9
|