DGMTXX21 ; COMPILED XREF FOR FILE #408.22 ; 01/05/16
;
S DIKZK=2
S DIKZ(0)=$G(^DGMT(408.22,DA,0))
S X=$P($G(DIKZ(0)),U,2)
I X'="" K ^DGMT(408.22,"AIND",$E(X,1,30),DA)
S X=$P($G(DIKZ(0)),U,2)
I X'="" K ^DGMT(408.22,"AMT",+$P($G(^DGMT(408.22,DA,"MT")),U),+$P(^DGMT(408.22,DA,0),U),X,DA)
S X=$P($G(DIKZ(0)),U,5)
I X'="" D
.N DIK,DIV,DIU,DIN
.K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X X ^DD(408.22,.05,1,1,79.2) S X=X="" I X S X=DIV S Y(1)=$S($D(^DGMT(408.22,D0,0)):^(0),1:"") S X=$P(Y(1),U,6),X=X S DIU=X K Y S X="" X ^DD(408.22,.05,1,1,2.4)
S X=$P($G(DIKZ(0)),U,5)
I X'="" I $D(^DGMT(408.22,DA,0)),$P(^(0),U,5)="" D FUN^DGMTDD2:'$P(^(0),U,8),SP^DGMTDD2
S X=$P($G(DIKZ(0)),U,5)
I X'="" D E40822^DGRTRIG(DA)
S DIKZ(0)=$G(^DGMT(408.22,DA,0))
S X=$P($G(DIKZ(0)),U,6)
I X'="" D
.N DIK,DIV,DIU,DIN
.K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X X ^DD(408.22,.06,1,1,79.2) S X=X="" I X S X=DIV S Y(1)=$S($D(^DGMT(408.22,D0,0)):^(0),1:"") S X=$P(Y(1),U,7),X=X S DIU=X K Y S X="" X ^DD(408.22,.06,1,1,2.4)
S X=$P($G(DIKZ(0)),U,6)
I X'="" D
.N DIK,DIV,DIU,DIN
.K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X X ^DD(408.22,.06,1,2,79.2) S X=X="" I X S X=DIV S Y(1)=$S($D(^DGMT(408.22,D0,0)):^(0),1:"") S X=$P(Y(1),U,10),X=X S DIU=X K Y S X="" X ^DD(408.22,.06,1,2,2.4)
S X=$P($G(DIKZ(0)),U,6)
I X'="" D E40822^DGRTRIG(DA)
S DIKZ(0)=$G(^DGMT(408.22,DA,0))
S X=$P($G(DIKZ(0)),U,7)
I X'="" I $D(^DGMT(408.22,DA,0)),'$P(^(0),U,6),$P(^(0),U,7)="" D SP^DGMTDD2
S X=$P($G(DIKZ(0)),U,7)
I X'="" D E40822^DGRTRIG(DA)
S X=$P($G(DIKZ(0)),U,8)
I X'="" I $D(^DGMT(408.22,DA,0)),$P(^(0),U,8)="",'$P(^(0),U,5) D FUN^DGMTDD2
S X=$P($G(DIKZ(0)),U,8)
I X'="" D E40822^DGRTRIG(DA)
S X=$P($G(DIKZ(0)),U,9)
I X'="" D E40822^DGRTRIG(DA)
S X=$P($G(DIKZ(0)),U,10)
I X'="" D E40822^DGRTRIG(DA)
S X=$P($G(DIKZ(0)),U,11)
I X'="" D
.N DIK,DIV,DIU,DIN
.X ^DD(408.22,.11,1,1,2.3) I X S X=DIV S Y(1)=$S($D(^DGMT(408.22,D0,0)):^(0),1:"") S X=$P(Y(1),U,12),X=X S DIU=X K Y S X="" S DIH=$G(^DGMT(408.22,DIV(0),0)),DIV=X S $P(^(0),U,12)=DIV,DIH=408.22,DIG=.12 D ^DICR
S X=$P($G(DIKZ(0)),U,11)
I X'="" I $D(^DGMT(408.22,DA,0)),$P(^(0),U,11)="" D INC^DGMTDD2
S X=$P($G(DIKZ(0)),U,11)
I X'="" D E40822^DGRTRIG(DA)
S DIKZ(0)=$G(^DGMT(408.22,DA,0))
S X=$P($G(DIKZ(0)),U,12)
I X'="" I $D(^DGMT(408.22,DA,0)),$P(^(0),U,12)="",$P(^(0),U,11) D INC^DGMTDD2
S X=$P($G(DIKZ(0)),U,12)
I X'="" D E40822^DGRTRIG(DA)
S X=$P($G(DIKZ(0)),U,13)
I X'="" D E40822^DGRTRIG(DA)
S X=$P($G(DIKZ(0)),U,14)
I X'="" D
.N DIK,DIV,DIU,DIN
.X ^DD(408.22,.14,1,1,2.3) I X S X=DIV S Y(1)=$S($D(^DGMT(408.22,D0,0)):^(0),1:"") S X=$P(Y(1),U,15),X=X S DIU=X K Y S X="" S DIH=$G(^DGMT(408.22,DIV(0),0)),DIV=X S $P(^(0),U,15)=DIV,DIH=408.22,DIG=.15 D ^DICR
S X=$P($G(DIKZ(0)),U,14)
I X'="" D
.N DIK,DIV,DIU,DIN
.X ^DD(408.22,.14,1,2,2.3) I X S X=DIV S Y(1)=$S($D(^DGMT(408.22,D0,0)):^(0),1:"") S X=$P(Y(1),U,16),X=X S DIU=X K Y S X="" S DIH=$G(^DGMT(408.22,DIV(0),0)),DIV=X S $P(^(0),U,16)=DIV,DIH=408.22,DIG=.16 D ^DICR
S X=$P($G(DIKZ(0)),U,14)
I X'="" D
.N DIK,DIV,DIU,DIN
.X ^DD(408.22,.14,1,3,2.3) I X S X=DIV S Y(1)=$S($D(^DGMT(408.22,D0,0)):^(0),1:"") S X=$P(Y(1),U,17),X=X S DIU=X K Y S X="" S DIH=$G(^DGMT(408.22,DIV(0),0)),DIV=X S $P(^(0),U,17)=DIV,DIH=408.22,DIG=.17 D ^DICR
S DIKZ(0)=$G(^DGMT(408.22,DA,0))
S X=$P($G(DIKZ(0)),U,16)
I X'="" D
.N DIK,DIV,DIU,DIN
.X ^DD(408.22,.16,1,1,2.3) I X S X=DIV S Y(1)=$S($D(^DGMT(408.22,D0,0)):^(0),1:"") S X=$P(Y(1),U,15),X=X S DIU=X K Y S X="" S DIH=$G(^DGMT(408.22,DIV(0),0)),DIV=X S $P(^(0),U,15)=DIV,DIH=408.22,DIG=.15 D ^DICR
S DIKZ(0)=$G(^DGMT(408.22,DA,0))
S X=$P($G(DIKZ(0)),U,17)
I X'="" D
.N DIK,DIV,DIU,DIN
.X ^DD(408.22,.17,1,1,2.3) I X S X=DIV S Y(1)=$S($D(^DGMT(408.22,D0,0)):^(0),1:"") S X=$P(Y(1),U,16),X=X S DIU=X K Y S X="" S DIH=$G(^DGMT(408.22,DIV(0),0)),DIV=X S $P(^(0),U,16)=DIV,DIH=408.22,DIG=.16 D ^DICR
S DIKZ(0)=$G(^DGMT(408.22,DA,0))
S X=$P($G(DIKZ(0)),U,18)
I X'="" D E40822^DGRTRIG(DA)
S X=$P($G(DIKZ(0)),U,20)
I X'="" I $D(^DGMT(408.22,DA,0)),'$P(^(0),U,6),'$P(^(0),U,20) D SP^DGMTDD2
S X=$P($G(DIKZ(0)),U,20)
I X'="" D E40822^DGRTRIG(DA)
S DIKZ("MT")=$G(^DGMT(408.22,DA,"MT"))
S X=$P($G(DIKZ("MT")),U,1)
I X'="" K ^DGMT(408.22,"AMT",X,+$P(^DGMT(408.22,DA,0),U),+$P($G(^DGMT(408.22,DA,0)),U,2),DA)
S X=$P($G(DIKZ(0)),U,1)
I X'="" K ^DGMT(408.22,"B",$E(X,1,30),DA)
S X=$P($G(DIKZ(0)),U,1)
I X'="" K ^DGMT(408.22,"AMT",+$P($G(^DGMT(408.22,DA,"MT")),U),X,+$P(^DGMT(408.22,DA,0),U,2),DA)
END Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HDGMTXX21 4549 printed Dec 13, 2024@02:45:58 Page 2
DGMTXX21 ; COMPILED XREF FOR FILE #408.22 ; 01/05/16
+1 ;
+2 SET DIKZK=2
+3 SET DIKZ(0)=$GET(^DGMT(408.22,DA,0))
+4 SET X=$PIECE($GET(DIKZ(0)),U,2)
+5 IF X'=""
KILL ^DGMT(408.22,"AIND",$EXTRACT(X,1,30),DA)
+6 SET X=$PIECE($GET(DIKZ(0)),U,2)
+7 IF X'=""
KILL ^DGMT(408.22,"AMT",+$PIECE($GET(^DGMT(408.22,DA,"MT")),U),+$PIECE(^DGMT(408.22,DA,0),U),X,DA)
+8 SET X=$PIECE($GET(DIKZ(0)),U,5)
+9 IF X'=""
Begin DoDot:1
+10 NEW DIK,DIV,DIU,DIN
+11 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(0)=X
XECUTE ^DD(408.22,.05,1,1,79.2)
SET X=X=""
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^DGMT(408.22,D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,6)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(408.22,.05,1,1,2.4)
End DoDot:1
+12 SET X=$PIECE($GET(DIKZ(0)),U,5)
+13 IF X'=""
IF $DATA(^DGMT(408.22,DA,0))
IF $PIECE(^(0),U,5)=""
if '$PIECE(^(0),U,8)
DO FUN^DGMTDD2
DO SP^DGMTDD2
+14 SET X=$PIECE($GET(DIKZ(0)),U,5)
+15 IF X'=""
DO E40822^DGRTRIG(DA)
+16 SET DIKZ(0)=$GET(^DGMT(408.22,DA,0))
+17 SET X=$PIECE($GET(DIKZ(0)),U,6)
+18 IF X'=""
Begin DoDot:1
+19 NEW DIK,DIV,DIU,DIN
+20 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(0)=X
XECUTE ^DD(408.22,.06,1,1,79.2)
SET X=X=""
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^DGMT(408.22,D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,7)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(408.22,.06,1,1,2.4)
End DoDot:1
+21 SET X=$PIECE($GET(DIKZ(0)),U,6)
+22 IF X'=""
Begin DoDot:1
+23 NEW DIK,DIV,DIU,DIN
+24 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(0)=X
XECUTE ^DD(408.22,.06,1,2,79.2)
SET X=X=""
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^DGMT(408.22,D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,10)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(408.22,.06,1,2,2.4)
End DoDot:1
+25 SET X=$PIECE($GET(DIKZ(0)),U,6)
+26 IF X'=""
DO E40822^DGRTRIG(DA)
+27 SET DIKZ(0)=$GET(^DGMT(408.22,DA,0))
+28 SET X=$PIECE($GET(DIKZ(0)),U,7)
+29 IF X'=""
IF $DATA(^DGMT(408.22,DA,0))
IF '$PIECE(^(0),U,6)
IF $PIECE(^(0),U,7)=""
DO SP^DGMTDD2
+30 SET X=$PIECE($GET(DIKZ(0)),U,7)
+31 IF X'=""
DO E40822^DGRTRIG(DA)
+32 SET X=$PIECE($GET(DIKZ(0)),U,8)
+33 IF X'=""
IF $DATA(^DGMT(408.22,DA,0))
IF $PIECE(^(0),U,8)=""
IF '$PIECE(^(0),U,5)
DO FUN^DGMTDD2
+34 SET X=$PIECE($GET(DIKZ(0)),U,8)
+35 IF X'=""
DO E40822^DGRTRIG(DA)
+36 SET X=$PIECE($GET(DIKZ(0)),U,9)
+37 IF X'=""
DO E40822^DGRTRIG(DA)
+38 SET X=$PIECE($GET(DIKZ(0)),U,10)
+39 IF X'=""
DO E40822^DGRTRIG(DA)
+40 SET X=$PIECE($GET(DIKZ(0)),U,11)
+41 IF X'=""
Begin DoDot:1
+42 NEW DIK,DIV,DIU,DIN
+43 XECUTE ^DD(408.22,.11,1,1,2.3)
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^DGMT(408.22,D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,12)
SET X=X
SET DIU=X
KILL Y
SET X=""
SET DIH=$GET(^DGMT(408.22,DIV(0),0))
SET DIV=X
SET $PIECE(^(0),U,12)=DIV
SET DIH=408.22
SET DIG=.12
DO ^DICR
End DoDot:1
+44 SET X=$PIECE($GET(DIKZ(0)),U,11)
+45 IF X'=""
IF $DATA(^DGMT(408.22,DA,0))
IF $PIECE(^(0),U,11)=""
DO INC^DGMTDD2
+46 SET X=$PIECE($GET(DIKZ(0)),U,11)
+47 IF X'=""
DO E40822^DGRTRIG(DA)
+48 SET DIKZ(0)=$GET(^DGMT(408.22,DA,0))
+49 SET X=$PIECE($GET(DIKZ(0)),U,12)
+50 IF X'=""
IF $DATA(^DGMT(408.22,DA,0))
IF $PIECE(^(0),U,12)=""
IF $PIECE(^(0),U,11)
DO INC^DGMTDD2
+51 SET X=$PIECE($GET(DIKZ(0)),U,12)
+52 IF X'=""
DO E40822^DGRTRIG(DA)
+53 SET X=$PIECE($GET(DIKZ(0)),U,13)
+54 IF X'=""
DO E40822^DGRTRIG(DA)
+55 SET X=$PIECE($GET(DIKZ(0)),U,14)
+56 IF X'=""
Begin DoDot:1
+57 NEW DIK,DIV,DIU,DIN
+58 XECUTE ^DD(408.22,.14,1,1,2.3)
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^DGMT(408.22,D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,15)
SET X=X
SET DIU=X
KILL Y
SET X=""
SET DIH=$GET(^DGMT(408.22,DIV(0),0))
SET DIV=X
SET $PIECE(^(0),U,15)=DIV
SET DIH=408.22
SET DIG=.15
DO ^DICR
End DoDot:1
+59 SET X=$PIECE($GET(DIKZ(0)),U,14)
+60 IF X'=""
Begin DoDot:1
+61 NEW DIK,DIV,DIU,DIN
+62 XECUTE ^DD(408.22,.14,1,2,2.3)
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^DGMT(408.22,D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,16)
SET X=X
SET DIU=X
KILL Y
SET X=""
SET DIH=$GET(^DGMT(408.22,DIV(0),0))
SET DIV=X
SET $PIECE(^(0),U,16)=DIV
SET DIH=408.22
SET DIG=.16
DO ^DICR
End DoDot:1
+63 SET X=$PIECE($GET(DIKZ(0)),U,14)
+64 IF X'=""
Begin DoDot:1
+65 NEW DIK,DIV,DIU,DIN
+66 XECUTE ^DD(408.22,.14,1,3,2.3)
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^DGMT(408.22,D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,17)
SET X=X
SET DIU=X
KILL Y
SET X=""
SET DIH=$GET(^DGMT(408.22,DIV(0),0))
SET DIV=X
SET $PIECE(^(0),U,17)=DIV
SET DIH=408.22
SET DIG=.17
DO ^DICR
End DoDot:1
+67 SET DIKZ(0)=$GET(^DGMT(408.22,DA,0))
+68 SET X=$PIECE($GET(DIKZ(0)),U,16)
+69 IF X'=""
Begin DoDot:1
+70 NEW DIK,DIV,DIU,DIN
+71 XECUTE ^DD(408.22,.16,1,1,2.3)
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^DGMT(408.22,D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,15)
SET X=X
SET DIU=X
KILL Y
SET X=""
SET DIH=$GET(^DGMT(408.22,DIV(0),0))
SET DIV=X
SET $PIECE(^(0),U,15)=DIV
SET DIH=408.22
SET DIG=.15
DO ^DICR
End DoDot:1
+72 SET DIKZ(0)=$GET(^DGMT(408.22,DA,0))
+73 SET X=$PIECE($GET(DIKZ(0)),U,17)
+74 IF X'=""
Begin DoDot:1
+75 NEW DIK,DIV,DIU,DIN
+76 XECUTE ^DD(408.22,.17,1,1,2.3)
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^DGMT(408.22,D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,16)
SET X=X
SET DIU=X
KILL Y
SET X=""
SET DIH=$GET(^DGMT(408.22,DIV(0),0))
SET DIV=X
SET $PIECE(^(0),U,16)=DIV
SET DIH=408.22
SET DIG=.16
DO ^DICR
End DoDot:1
+77 SET DIKZ(0)=$GET(^DGMT(408.22,DA,0))
+78 SET X=$PIECE($GET(DIKZ(0)),U,18)
+79 IF X'=""
DO E40822^DGRTRIG(DA)
+80 SET X=$PIECE($GET(DIKZ(0)),U,20)
+81 IF X'=""
IF $DATA(^DGMT(408.22,DA,0))
IF '$PIECE(^(0),U,6)
IF '$PIECE(^(0),U,20)
DO SP^DGMTDD2
+82 SET X=$PIECE($GET(DIKZ(0)),U,20)
+83 IF X'=""
DO E40822^DGRTRIG(DA)
+84 SET DIKZ("MT")=$GET(^DGMT(408.22,DA,"MT"))
+85 SET X=$PIECE($GET(DIKZ("MT")),U,1)
+86 IF X'=""
KILL ^DGMT(408.22,"AMT",X,+$PIECE(^DGMT(408.22,DA,0),U),+$PIECE($GET(^DGMT(408.22,DA,0)),U,2),DA)
+87 SET X=$PIECE($GET(DIKZ(0)),U,1)
+88 IF X'=""
KILL ^DGMT(408.22,"B",$EXTRACT(X,1,30),DA)
+89 SET X=$PIECE($GET(DIKZ(0)),U,1)
+90 IF X'=""
KILL ^DGMT(408.22,"AMT",+$PIECE($GET(^DGMT(408.22,DA,"MT")),U),X,+$PIECE(^DGMT(408.22,DA,0),U,2),DA)
END QUIT