DGRPTX30 ; ;05/27/04
S X=DE(10),DIC=DIE
K DIV S DIV=X,D0=DA,DIV(0)=D0 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,2.4)
S X=DE(10),DIC=DIE
K DIV S DIV=X,D0=DA,DIV(0)=D0 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,2.4)
S X=DE(10),DIC=DIE
D AUTOUPD^DGENA2(DA)
DGRPTX30 ; ;05/27/04
+1 SET X=DE(10)
SET DIC=DIE
+2 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
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,2.4)
+3 SET X=DE(10)
SET DIC=DIE
+4 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
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,2.4)
+5 SET X=DE(10)
SET DIC=DIE
+6 DO AUTOUPD^DGENA2(DA)