DGRPX76 ; ;03/21/13
S X=DE(12),DIC=DIE
X ^DD(2,.3025,1,1,2.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.3)):^(.3),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X="" X ^DD(2,.3025,1,1,2.4)
S X=DE(12),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,.3025,1,2,2.4)
S X=DE(12),DIC=DIE
D EVENT^IVMPLOG(DA)
DGRPX76 ; ;03/21/13
+1 SET X=DE(12)
SET DIC=DIE
+2 XECUTE ^DD(2,.3025,1,1,2.3)
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^DPT(D0,.3)):^(.3),1:"")
SET X=$PIECE(Y(1),U,3)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(2,.3025,1,1,2.4)
+3 SET X=DE(12)
SET DIC=DIE
+4 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,.3025,1,2,2.4)
+5 SET X=DE(12)
SET DIC=DIE
+6 DO EVENT^IVMPLOG(DA)