[636] | 1 | DGPTXX3 ; COMPILED XREF FOR FILE #45.01 ; 12/27/07
|
---|
[628] | 2 | ;
|
---|
| 3 | S DA(1)=DA S DA=0
|
---|
| 4 | A1 ;
|
---|
| 5 | I $D(DIKILL) K DIKLM S:DIKM1=1 DIKLM=1 G @DIKM1
|
---|
| 6 | 0 ;
|
---|
| 7 | A S DA=$O(^DGPT(DA(1),"S",DA)) I DA'>0 S DA=0 G END
|
---|
| 8 | 1 ;
|
---|
| 9 | S DIKZ(0)=$G(^DGPT(DA(1),"S",DA,0))
|
---|
| 10 | S X=$P(DIKZ(0),U,8)
|
---|
| 11 | I X'="" K ^DGPT(DA(1),"S","AO",$E(X,1,30),DA)
|
---|
| 12 | S X=$P(DIKZ(0),U,9)
|
---|
| 13 | I X'="" K ^DGPT(DA(1),"S","AO",$E(X,1,30),DA)
|
---|
| 14 | S X=$P(DIKZ(0),U,10)
|
---|
| 15 | I X'="" K ^DGPT(DA(1),"S","AO",$E(X,1,30),DA)
|
---|
| 16 | S X=$P(DIKZ(0),U,11)
|
---|
| 17 | I X'="" K ^DGPT(DA(1),"S","AO",$E(X,1,30),DA)
|
---|
| 18 | S X=$P(DIKZ(0),U,12)
|
---|
| 19 | I X'="" K ^DGPT(DA(1),"S","AO",$E(X,1,30),DA)
|
---|
[636] | 20 | CR1 S DIXR=437
|
---|
[628] | 21 | K X
|
---|
| 22 | S X(1)=$P(DIKZ(0),U,1)
|
---|
| 23 | S X(2)=$P(DIKZ(0),U,8)
|
---|
| 24 | S X=$G(X(1))
|
---|
| 25 | I $G(X(1))]"",$G(X(2))]"" D
|
---|
| 26 | . K X1,X2 M X1=X,X2=X
|
---|
| 27 | . S:$D(DIKIL) (X2,X2(1),X2(2))=""
|
---|
| 28 | . D KDGPT0^DGPTDDCR(.X,.DA,"S",1)
|
---|
[636] | 29 | CR2 S DIXR=438
|
---|
[628] | 30 | K X
|
---|
| 31 | S DIKZ(0)=$G(^DGPT(DA(1),"S",DA,0))
|
---|
| 32 | S X(1)=$P(DIKZ(0),U,1)
|
---|
| 33 | S X(2)=$P(DIKZ(0),U,9)
|
---|
| 34 | S X=$G(X(1))
|
---|
| 35 | I $G(X(1))]"",$G(X(2))]"" D
|
---|
| 36 | . K X1,X2 M X1=X,X2=X
|
---|
| 37 | . S:$D(DIKIL) (X2,X2(1),X2(2))=""
|
---|
| 38 | . D KDGPT0^DGPTDDCR(.X,.DA,"S",2)
|
---|
[636] | 39 | CR3 S DIXR=439
|
---|
[628] | 40 | K X
|
---|
| 41 | S DIKZ(0)=$G(^DGPT(DA(1),"S",DA,0))
|
---|
| 42 | S X(1)=$P(DIKZ(0),U,1)
|
---|
| 43 | S X(2)=$P(DIKZ(0),U,10)
|
---|
| 44 | S X=$G(X(1))
|
---|
| 45 | I $G(X(1))]"",$G(X(2))]"" D
|
---|
| 46 | . K X1,X2 M X1=X,X2=X
|
---|
| 47 | . S:$D(DIKIL) (X2,X2(1),X2(2))=""
|
---|
| 48 | . D KDGPT0^DGPTDDCR(.X,.DA,"S",3)
|
---|
[636] | 49 | CR4 S DIXR=440
|
---|
[628] | 50 | K X
|
---|
| 51 | S DIKZ(0)=$G(^DGPT(DA(1),"S",DA,0))
|
---|
| 52 | S X(1)=$P(DIKZ(0),U,1)
|
---|
| 53 | S X(2)=$P(DIKZ(0),U,11)
|
---|
| 54 | S X=$G(X(1))
|
---|
| 55 | I $G(X(1))]"",$G(X(2))]"" D
|
---|
| 56 | . K X1,X2 M X1=X,X2=X
|
---|
| 57 | . S:$D(DIKIL) (X2,X2(1),X2(2))=""
|
---|
| 58 | . D KDGPT0^DGPTDDCR(.X,.DA,"S",4)
|
---|
[636] | 59 | CR5 S DIXR=441
|
---|
[628] | 60 | K X
|
---|
| 61 | S DIKZ(0)=$G(^DGPT(DA(1),"S",DA,0))
|
---|
| 62 | S X(1)=$P(DIKZ(0),U,1)
|
---|
| 63 | S X(2)=$P(DIKZ(0),U,12)
|
---|
| 64 | S X=$G(X(1))
|
---|
| 65 | I $G(X(1))]"",$G(X(2))]"" D
|
---|
| 66 | . K X1,X2 M X1=X,X2=X
|
---|
| 67 | . S:$D(DIKIL) (X2,X2(1),X2(2))=""
|
---|
| 68 | . D KDGPT0^DGPTDDCR(.X,.DA,"S",5)
|
---|
| 69 | CR6 K X
|
---|
| 70 | G:'$D(DIKLM) A Q:$D(DIKILL)
|
---|
| 71 | END G ^DGPTXX4
|
---|