Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: DGPTXX7

DGPTXX7.m

Go to the documentation of this file.
DGPTXX7 ; COMPILED XREF FOR FILE #45.06 ; 10/30/24
 ; 
 S DA=0
A1 ;
 I $D(DIKILL) K DIKLM S:DIKM1=1 DIKLM=1 G @DIKM1
0 ;
A S DA=$O(^DGPT(DA(1),"C",DA)) I DA'>0 S DA=0 G END
1 ;
 S DIKZ(0)=$G(^DGPT(DA(1),"C",DA,0))
 S X=$P($G(DIKZ(0)),U,6)
 I X'="" D SUB^AUPNVSIT
 S X=$P($G(DIKZ(0)),U,1)
 I X'="" K ^DGPT(DA(1),"C","B",$E(X,1,30),DA)
CR1 S DIXR=624
 K X
 S X(1)=$P(DIKZ(0),U,1)
 S X(2)=$P(DIKZ(0),U,7)
 S X(3)=$P(DIKZ(0),U,9)
 S X=$G(X(1))
 D
 . K X1,X2 M X1=X,X2=X
 . S:$D(DIKIL) (X2,X2(1),X2(2),X2(3))=""
 . N DIKXARR M DIKXARR=X S DIKCOND=1
 . S X=X2(2)!X2(3)!(X(1)'=X(2))
 . S DIKCOND=$G(X) K X M X=DIKXARR
 . Q:'DIKCOND
 . K:X1(1)'="" ^DGPT("AB",X1(1),DA(1),DA)
CR2 S DIXR=834
 K X
 S DIKZ(0)=$G(^DGPT(DA(1),"C",DA,0))
 S X(1)=$P(DIKZ(0),U,1)
 S X(2)=$P(DIKZ(0),U,4)
 S X(3)=$P(DIKZ(0),U,9)
 S X=$G(X(1))
 D
 . K X1,X2 M X1=X,X2=X
 . S:$D(DIKIL) (X2,X2(1),X2(2),X2(3))=""
 . D NOTIFY^DGPTDD(.X1,.X2,.DA,45,"SERVICE","KILL")
CR3 K X
 G:'$D(DIKLM) A Q:$D(DIKILL)
END Q