DGMTXX12 ; COMPILED XREF FOR FILE #408.21 ; 10/15/12
;
S DIKZK=1
S DIKZ(0)=$G(^DGMT(408.21,DA,0))
S X=$P($G(DIKZ(0)),U,1)
I X'="" S ^DGMT(408.21,"B",$E(X,1,30),DA)=""
S X=$P($G(DIKZ(0)),U,1)
I X'="" S:$P(^DGMT(408.21,DA,0),U,2) ^DGMT(408.21,"AI",+$P(^(0),U,2),-X,DA)=""
S X=$P($G(DIKZ(0)),U,1)
I X'="" D E40821^DGRTRIG(DA)
S X=$P($G(DIKZ(0)),U,2)
I X'="" S ^DGMT(408.21,"AI",X,-$P(^DGMT(408.21,DA,0),U),DA)=""
S X=$P($G(DIKZ(0)),U,2)
I X'="" S ^DGMT(408.21,"C",$E(X,1,30),DA)=""
S X=$P($G(DIKZ(0)),U,8)
I X'="" D E40821^DGRTRIG(DA)
S X=$P($G(DIKZ(0)),U,9)
I X'="" D E40821^DGRTRIG(DA)
S X=$P($G(DIKZ(0)),U,10)
I X'="" D E40821^DGRTRIG(DA)
S X=$P($G(DIKZ(0)),U,11)
I X'="" D E40821^DGRTRIG(DA)
S X=$P($G(DIKZ(0)),U,12)
I X'="" D E40821^DGRTRIG(DA)
S X=$P($G(DIKZ(0)),U,13)
I X'="" D E40821^DGRTRIG(DA)
S X=$P($G(DIKZ(0)),U,14)
I X'="" D EMP^DGMTDD3
S X=$P($G(DIKZ(0)),U,14)
I X'="" D E40821^DGRTRIG(DA)
S X=$P($G(DIKZ(0)),U,15)
I X'="" D E40821^DGRTRIG(DA)
S X=$P($G(DIKZ(0)),U,16)
I X'="" D E40821^DGRTRIG(DA)
S X=$P($G(DIKZ(0)),U,17)
I X'="" D E40821^DGRTRIG(DA)
S DIKZ(1)=$G(^DGMT(408.21,DA,1))
S X=$P($G(DIKZ(1)),U,1)
I X'="" D AGME101^DGMTSCU4(DA)
S X=$P($G(DIKZ(1)),U,1)
I X'="" D E40821^DGRTRIG(DA)
S X=$P($G(DIKZ(1)),U,2)
I X'="" D E40821^DGRTRIG(DA)
S X=$P($G(DIKZ(1)),U,3)
I X'="" D E40821^DGRTRIG(DA)
S DIKZ(2)=$G(^DGMT(408.21,DA,2))
S X=$P($G(DIKZ(2)),U,1)
I X'="" D E40821^DGRTRIG(DA)
S X=$P($G(DIKZ(2)),U,2)
I X'="" D E40821^DGRTRIG(DA)
S X=$P($G(DIKZ(2)),U,3)
I X'="" D E40821^DGRTRIG(DA)
S X=$P($G(DIKZ(2)),U,4)
I X'="" I $D(^DGMT(408.21,DA,2)),$P(^(2),U,4)=0 D OTH^DGMTDD3
S X=$P($G(DIKZ(2)),U,4)
I X'="" D E40821^DGRTRIG(DA)
S X=$P($G(DIKZ(2)),U,5)
I X'="" D E40821^DGRTRIG(DA)
S DIKZ("MT")=$G(^DGMT(408.21,DA,"MT"))
S X=$P($G(DIKZ("MT")),U,1)
I X'="" S ^DGMT(408.21,"AM",$E(X,1,30),DA)=""
S DIKZ("USR")=$G(^DGMT(408.21,DA,"USR"))
S X=$P($G(DIKZ("USR")),U,4)
I X'="" D
.N DIK,DIV,DIU,DIN
.K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X I $P($G(^DGMT(408.21,DA,0)),U,18) I X S X=DIV S Y(1)=$S($D(^DGMT(408.21,D0,0)):^(0),1:"") S X=$P(Y(1),U,18),X=X S DIU=X K Y S X=DIV S X=0 X ^DD(408.21,104,1,1,1.4)
END Q
DGMTXX12 ; COMPILED XREF FOR FILE #408.21 ; 10/15/12
+1 ;
+2 SET DIKZK=1
+3 SET DIKZ(0)=$GET(^DGMT(408.21,DA,0))
+4 SET X=$PIECE($GET(DIKZ(0)),U,1)
+5 IF X'=""
SET ^DGMT(408.21,"B",$EXTRACT(X,1,30),DA)=""
+6 SET X=$PIECE($GET(DIKZ(0)),U,1)
+7 IF X'=""
IF $PIECE(^DGMT(408.21,DA,0),U,2)
SET ^DGMT(408.21,"AI",+$PIECE(^(0),U,2),-X,DA)=""
+8 SET X=$PIECE($GET(DIKZ(0)),U,1)
+9 IF X'=""
DO E40821^DGRTRIG(DA)
+10 SET X=$PIECE($GET(DIKZ(0)),U,2)
+11 IF X'=""
SET ^DGMT(408.21,"AI",X,-$PIECE(^DGMT(408.21,DA,0),U),DA)=""
+12 SET X=$PIECE($GET(DIKZ(0)),U,2)
+13 IF X'=""
SET ^DGMT(408.21,"C",$EXTRACT(X,1,30),DA)=""
+14 SET X=$PIECE($GET(DIKZ(0)),U,8)
+15 IF X'=""
DO E40821^DGRTRIG(DA)
+16 SET X=$PIECE($GET(DIKZ(0)),U,9)
+17 IF X'=""
DO E40821^DGRTRIG(DA)
+18 SET X=$PIECE($GET(DIKZ(0)),U,10)
+19 IF X'=""
DO E40821^DGRTRIG(DA)
+20 SET X=$PIECE($GET(DIKZ(0)),U,11)
+21 IF X'=""
DO E40821^DGRTRIG(DA)
+22 SET X=$PIECE($GET(DIKZ(0)),U,12)
+23 IF X'=""
DO E40821^DGRTRIG(DA)
+24 SET X=$PIECE($GET(DIKZ(0)),U,13)
+25 IF X'=""
DO E40821^DGRTRIG(DA)
+26 SET X=$PIECE($GET(DIKZ(0)),U,14)
+27 IF X'=""
DO EMP^DGMTDD3
+28 SET X=$PIECE($GET(DIKZ(0)),U,14)
+29 IF X'=""
DO E40821^DGRTRIG(DA)
+30 SET X=$PIECE($GET(DIKZ(0)),U,15)
+31 IF X'=""
DO E40821^DGRTRIG(DA)
+32 SET X=$PIECE($GET(DIKZ(0)),U,16)
+33 IF X'=""
DO E40821^DGRTRIG(DA)
+34 SET X=$PIECE($GET(DIKZ(0)),U,17)
+35 IF X'=""
DO E40821^DGRTRIG(DA)
+36 SET DIKZ(1)=$GET(^DGMT(408.21,DA,1))
+37 SET X=$PIECE($GET(DIKZ(1)),U,1)
+38 IF X'=""
DO AGME101^DGMTSCU4(DA)
+39 SET X=$PIECE($GET(DIKZ(1)),U,1)
+40 IF X'=""
DO E40821^DGRTRIG(DA)
+41 SET X=$PIECE($GET(DIKZ(1)),U,2)
+42 IF X'=""
DO E40821^DGRTRIG(DA)
+43 SET X=$PIECE($GET(DIKZ(1)),U,3)
+44 IF X'=""
DO E40821^DGRTRIG(DA)
+45 SET DIKZ(2)=$GET(^DGMT(408.21,DA,2))
+46 SET X=$PIECE($GET(DIKZ(2)),U,1)
+47 IF X'=""
DO E40821^DGRTRIG(DA)
+48 SET X=$PIECE($GET(DIKZ(2)),U,2)
+49 IF X'=""
DO E40821^DGRTRIG(DA)
+50 SET X=$PIECE($GET(DIKZ(2)),U,3)
+51 IF X'=""
DO E40821^DGRTRIG(DA)
+52 SET X=$PIECE($GET(DIKZ(2)),U,4)
+53 IF X'=""
IF $DATA(^DGMT(408.21,DA,2))
IF $PIECE(^(2),U,4)=0
DO OTH^DGMTDD3
+54 SET X=$PIECE($GET(DIKZ(2)),U,4)
+55 IF X'=""
DO E40821^DGRTRIG(DA)
+56 SET X=$PIECE($GET(DIKZ(2)),U,5)
+57 IF X'=""
DO E40821^DGRTRIG(DA)
+58 SET DIKZ("MT")=$GET(^DGMT(408.21,DA,"MT"))
+59 SET X=$PIECE($GET(DIKZ("MT")),U,1)
+60 IF X'=""
SET ^DGMT(408.21,"AM",$EXTRACT(X,1,30),DA)=""
+61 SET DIKZ("USR")=$GET(^DGMT(408.21,DA,"USR"))
+62 SET X=$PIECE($GET(DIKZ("USR")),U,4)
+63 IF X'=""
Begin DoDot:1
+64 NEW DIK,DIV,DIU,DIN
+65 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(0)=X
IF $PIECE($GET(^DGMT(408.21,DA,0)),U,18)
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^DGMT(408.21,D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,18)
SET X=X
SET DIU=X
KILL Y
SET X=DIV
SET X=0
XECUTE ^DD(408.21,104,1,1,1.4)
End DoDot:1
END QUIT