DGRPTX35 ; ;05/27/04
S X=DE(5),DIC=DIE
X ^DD(2,.36205,1,1,2.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.362)):^(.362),1:"") S X=$P(Y(1),U,1),X=X S DIU=X K Y S X="" X ^DD(2,.36205,1,1,2.4)
S X=DE(5),DIC=DIE
S DFN=DA D EN^DGMTCOR K DGMTCOR
S X=DE(5),DIC=DIE
K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S X='$$TOTCHK^DGLOCK2(DA) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.362)):^(.362),1:"") S X=$P(Y(1),U,20),X=X S DIU=X K Y S X="" X ^DD(2,.36205,1,3,2.4)
S X=DE(5),DIC=DIE
D AUTOUPD^DGENA2(DA)
DGRPTX35 ; ;05/27/04
+1 SET X=DE(5)
SET DIC=DIE
+2 XECUTE ^DD(2,.36205,1,1,2.3)
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^DPT(D0,.362)):^(.362),1:"")
SET X=$PIECE(Y(1),U,1)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(2,.36205,1,1,2.4)
+3 SET X=DE(5)
SET DIC=DIE
+4 SET DFN=DA
DO EN^DGMTCOR
KILL DGMTCOR
+5 SET X=DE(5)
SET DIC=DIE
+6 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(0)=X
SET X='$$TOTCHK^DGLOCK2(DA)
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^DPT(D0,.362)):^(.362),1:"")
SET X=$PIECE(Y(1),U,20)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(2,.36205,1,3,2.4)
+7 SET X=DE(5)
SET DIC=DIE
+8 DO AUTOUPD^DGENA2(DA)