DGRPTX43 ; ;05/27/04
S X=DG(DQ),DIC=DIE
S ^DPT("APOS",$E(X,1,30),DA)=""
S X=DG(DQ),DIC=DIE
X ^DD(2,.323,1,2,1.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,"ODS")):^("ODS"),1:"") S X=$P(Y(1),U,1),X=X S DIU=X K Y X ^DD(2,.323,1,2,1.1) X ^DD(2,.323,1,2,1.4)
S X=DG(DQ),DIC=DIE
I ($T(AVAFC^VAFCDD01)'="") S VAFCF=".323;" D AVAFC^VAFCDD01(DA)
DGRPTX43 ; ;05/27/04
+1 SET X=DG(DQ)
SET DIC=DIE
+2 SET ^DPT("APOS",$EXTRACT(X,1,30),DA)=""
+3 SET X=DG(DQ)
SET DIC=DIE
+4 XECUTE ^DD(2,.323,1,2,1.3)
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^DPT(D0,"ODS")):^("ODS"),1:"")
SET X=$PIECE(Y(1),U,1)
SET X=X
SET DIU=X
KILL Y
XECUTE ^DD(2,.323,1,2,1.1)
XECUTE ^DD(2,.323,1,2,1.4)
+5 SET X=DG(DQ)
SET DIC=DIE
+6 IF ($TEXT(AVAFC^VAFCDD01)'="")
SET VAFCF=".323;"
DO AVAFC^VAFCDD01(DA)