DGMTXM1 ; ;12/15/03
S X=DE(7),DIC=DIE
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=DE(7),DIC=DIE
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)
DGMTXM1 ; ;12/15/03
+1 SET X=DE(7)
SET DIC=DIE
+2 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)
+3 SET X=DE(7)
SET DIC=DIE
+4 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)