1 | PSGXR31 ; COMPILED XREF FOR FILE #53.1 ; 11/08/09
|
---|
2 | ;
|
---|
3 | S DIKZK=2
|
---|
4 | S DIKZ(0)=$G(^PS(53.1,DA,0))
|
---|
5 | S X=$P(DIKZ(0),U,15)
|
---|
6 | I X'="" S XX=X,X="PSGAXR" X ^%ZOSF("TEST") I S X=XX D ENNPK^PSGAXR
|
---|
7 | S X=$P(DIKZ(0),U,5)
|
---|
8 | I X'="" D
|
---|
9 | .N DIK,DIV,DIU,DIN
|
---|
10 | .S DIU=$S($D(^PS(53.1,DA,0)):$P(^(0),"^",6),1:"") I DIU S $P(^(0),"^",6)="" I $O(^DD(53.1,6,1,0)) K DIV S (DIV(0),D0)=DA,DIV="",DIH=53.1,DIG=6 D ^DICR K DIV
|
---|
11 | S DIKZ(4)=$G(^PS(53.1,DA,4))
|
---|
12 | S X=$P(DIKZ(4),U,1)
|
---|
13 | I X'="" S XX=X,X="PSGAXR" X ^%ZOSF("TEST") I S X=XX D ENNACKK^PSGAXR
|
---|
14 | S DIKZ(2)=$G(^PS(53.1,DA,2))
|
---|
15 | S X=$P(DIKZ(2),U,1)
|
---|
16 | I X'="" D
|
---|
17 | .N DIK,DIV,DIU,DIN
|
---|
18 | .I '$D(DIU(0)),$D(PSGS0Y) S DIU=$S($D(^PS(53.1,DA,2)):$P(^(2),"^",5),1:"") I DIU]"" S $P(^(2),"^",5)="" I $O(^DD(53.1,39,1,0)) K DIV S (DIV(0),D0)=DA,DIV="",DIH=53.1,DIG=39 D ^DICR K DIV
|
---|
19 | S X=$P(DIKZ(2),U,1)
|
---|
20 | I X'="" D
|
---|
21 | .N DIK,DIV,DIU,DIN
|
---|
22 | .I $D(PSGS0XT) S DIU=$S($D(^PS(53.1,DA,2)):$P(^(2),"^",6),1:"") I DIU]"" S $P(^(2),"^",6)="" I $O(^DD(53.1,41,1,0)) K DIV S (DIV(0),D0)=DA,DIV="",DIH=53.1,DIG=41 D ^DICR K DIV
|
---|
23 | S DIKZ(0)=$G(^PS(53.1,DA,0))
|
---|
24 | S X=$P(DIKZ(0),U,9)
|
---|
25 | I X'="" S XX=X,X="PSGAXR" X ^%ZOSF("TEST") I S X=XX D ENSK^PSGAXR
|
---|
26 | S DIKZ(.1)=$G(^PS(53.1,DA,.1))
|
---|
27 | S X=$P(DIKZ(.1),U,1)
|
---|
28 | I X'="" D ENNDK^PSGAXR
|
---|
29 | S DIKZ(.2)=$G(^PS(53.1,DA,.2))
|
---|
30 | S X=$P(DIKZ(.2),U,8)
|
---|
31 | I X'="" K ^PS(53.1,"ACX",$E(X,1,30),DA)
|
---|
32 | S X=$P(DIKZ(0),U,1)
|
---|
33 | I X'="" K ^PS(53.1,"B",$E(X,1,30),DA)
|
---|
34 | CR1 S DIXR=498
|
---|
35 | K X
|
---|
36 | S DIKZ("DSS")=$G(^PS(53.1,DA,"DSS"))
|
---|
37 | S X(1)=$P(DIKZ("DSS"),U,1)
|
---|
38 | S X(2)=$P(DIKZ(0),U,15)
|
---|
39 | S X=$G(X(1))
|
---|
40 | I $G(X(1))]"",$G(X(2))]"" D
|
---|
41 | . K X1,X2 M X1=X,X2=X
|
---|
42 | . S:$D(DIKIL) (X2,X2(1),X2(2))=""
|
---|
43 | . K ^PS(53.1,"AD",$E(X(1),1,20),$E(X(2),1,20),DA)
|
---|
44 | CR2 K X
|
---|
45 | END G ^PSGXR32
|
---|