DGPMXX2 ; COMPILED XREF FOR FILE #405 ; 11/22/06 ; S DIKZK=1 S DIKZ(0)=$G(^DGPM(DA,0)) S X=$P(DIKZ(0),U,1) I X'="" S ^DGPM("B",$E(X,1,30),DA)="" S X=$P(DIKZ(0),U,1) I X'="" S DGPMDDF=1 D ^DGPMDD1 S X=$P(DIKZ(0),U,1) I X'="" D .N DIK,DIV,DIU,DIN .X ^DD(405,.01,1,3,1.3) I X S X=DIV X ^DD(405,.01,1,3,89.2) S X=$P(Y(101),U,1) S D0=I(0,0) S DIU=X K Y S X=DIV S X=DIV X ^DD(405,.01,1,3,1.4) S X=$P(DIKZ(0),U,1) I X'="" S:$P(^DGPM(DA,0),U,22)="" $P(^(0),U,22)=0 S X=$P(DIKZ(0),U,1) I X'="" D .N DIK,DIV,DIU,DIN .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S X=$S('$D(^DGPM(+$P(^DGPM(DA,0),U,24),0)):0,1:X'=+^(0)) I X S X=DIV S Y(1)=$S($D(^DGPM(D0,0)):^(0),1:"") S X=$P(Y(1),U,24),X=X S DIU=X K Y S X="" X ^DD(405,.01,1,5,1.4) S X=$P(DIKZ(0),U,1) I X'="" S:$P(^DGPM(DA,0),U,3) ^DGPM("ADFN"_$P(^(0),U,3),X,DA)="" S X=$P(DIKZ(0),U,1) I X'="" S Y=$P(^DGPM(DA,0),U,2) I Y,Y'=4,Y'=5,X,X