DGRPTX28 ; ;10/30/24
S X=DG(DQ),DIC=DIE
X ^DD(2,.301,1,1,1.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.3)):^(.3),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y S X="" X ^DD(2,.301,1,1,1.4)
S X=DG(DQ),DIC=DIE
X ^DD(2,.301,1,2,1.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.3)):^(.3),1:"") S X=$P(Y(1),U,12),X=X S DIU=X K Y S X="" X ^DD(2,.301,1,2,1.4)
S X=DG(DQ),DIC=DIE
D AUTOUPD^DGENA2(DA)
S X=DG(DQ),DIC=DIE
I ($T(AVAFC^VAFCDD01)'="") S VAFCF=".301;" D AVAFC^VAFCDD01(DA)
S X=DG(DQ),DIC=DIE
D:($T(ADGRU^DGRUDD01)'="") ADGRU^DGRUDD01(DA)
I $D(DE(33))'[0!($G(^DD(DP,DIFLD,"AUDIT"))["y") S X=DG(DQ),DIIX=3_U_DIFLD D AUDIT^DIET
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HDGRPTX28 626 printed Nov 22, 2024@18:06:49 Page 2
DGRPTX28 ; ;10/30/24
+1 SET X=DG(DQ)
SET DIC=DIE
+2 XECUTE ^DD(2,.301,1,1,1.3)
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^DPT(D0,.3)):^(.3),1:"")
SET X=$PIECE(Y(1),U,2)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(2,.301,1,1,1.4)
+3 SET X=DG(DQ)
SET DIC=DIE
+4 XECUTE ^DD(2,.301,1,2,1.3)
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^DPT(D0,.3)):^(.3),1:"")
SET X=$PIECE(Y(1),U,12)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(2,.301,1,2,1.4)
+5 SET X=DG(DQ)
SET DIC=DIE
+6 DO AUTOUPD^DGENA2(DA)
+7 SET X=DG(DQ)
SET DIC=DIE
+8 IF ($TEXT(AVAFC^VAFCDD01)'="")
SET VAFCF=".301;"
DO AVAFC^VAFCDD01(DA)
+9 SET X=DG(DQ)
SET DIC=DIE
+10 if ($TEXT(ADGRU^DGRUDD01)'="")
DO ADGRU^DGRUDD01(DA)
+11 IF $DATA(DE(33))'[0!($GET(^DD(DP,DIFLD,"AUDIT"))["y")
SET X=DG(DQ)
SET DIIX=3_U_DIFLD
DO AUDIT^DIET