DGRPTX31 ; ;05/27/04
S X=DG(DQ),DIC=DIE
X ^DD(2,.322013,1,1,1.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.322)):^(.322),1:"") S X=$P(Y(1),U,14),X=X S DIU=X K Y S X="" X ^DD(2,.322013,1,1,1.4)
S X=DG(DQ),DIC=DIE
X ^DD(2,.322013,1,2,1.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.322)):^(.322),1:"") S X=$P(Y(1),U,15),X=X S DIU=X K Y S X="" X ^DD(2,.322013,1,2,1.4)
S X=DG(DQ),DIC=DIE
D AUTOUPD^DGENA2(DA)
DGRPTX31 ; ;05/27/04
+1 SET X=DG(DQ)
SET DIC=DIE
+2 XECUTE ^DD(2,.322013,1,1,1.3)
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^DPT(D0,.322)):^(.322),1:"")
SET X=$PIECE(Y(1),U,14)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(2,.322013,1,1,1.4)
+3 SET X=DG(DQ)
SET DIC=DIE
+4 XECUTE ^DD(2,.322013,1,2,1.3)
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^DPT(D0,.322)):^(.322),1:"")
SET X=$PIECE(Y(1),U,15)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(2,.322013,1,2,1.4)
+5 SET X=DG(DQ)
SET DIC=DIE
+6 DO AUTOUPD^DGENA2(DA)