DGRPTX36 ; ;10/30/24
S X=DG(DQ),DIC=DIE
X "S DFN=DA D INACT33^DGOTHEL(DFN),EN^DGMTR K DGREQF"
S X=DG(DQ),DIC=DIE
K DIV S DIV=X,D0=DA,DIV(0)=D0 X ^DD(2,.361,1,2,89.4) S Y(102)=$S($D(^DPT(D0,"E",D1,0)):^(0),1:"") S X=$S('$D(^DIC(8,+$P(Y(102),U,1),0)):"",1:$P(^(0),U,1)) S D0=I(0,0) S D1=I(1,0) S DIU=X K Y S X=DIV S X=DIV,X=X X ^DD(2,.361,1,2,1.4)
S X=DG(DQ),DIC=DIE
;
S X=DG(DQ),DIC=DIE
S ^DPT("AEL",DA,+X)="" D RESTORE^DGRP1152U(DA)
S X=DG(DQ),DIC=DIE
D AUTOUPD^DGENA2(DA)
I $D(DE(40))'[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[HDGRPTX36 583 printed Nov 22, 2024@18:06:57 Page 2
DGRPTX36 ; ;10/30/24
+1 SET X=DG(DQ)
SET DIC=DIE
+2 XECUTE "S DFN=DA D INACT33^DGOTHEL(DFN),EN^DGMTR K DGREQF"
+3 SET X=DG(DQ)
SET DIC=DIE
+4 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
XECUTE ^DD(2,.361,1,2,89.4)
SET Y(102)=$SELECT($DATA(^DPT(D0,"E",D1,0)):^(0),1:"")
SET X=$SELECT('$DATA(^DIC(8,+$PIECE(Y(102),U,1),0)):"",1:$PIECE(^(0),U,1))
SET D0=I(0,0)
SET D1=I(1,0)
SET DIU=X
KILL Y
SET X=DIV
SET X=DIV
SET X=X
XECUTE ^DD(2,.361,1,2,1.4)
+5 SET X=DG(DQ)
SET DIC=DIE
+6 ;
+7 SET X=DG(DQ)
SET DIC=DIE
+8 SET ^DPT("AEL",DA,+X)=""
DO RESTORE^DGRP1152U(DA)
+9 SET X=DG(DQ)
SET DIC=DIE
+10 DO AUTOUPD^DGENA2(DA)
+11 IF $DATA(DE(40))'[0!($GET(^DD(DP,DIFLD,"AUDIT"))["y")
SET X=DG(DQ)
SET DIIX=3_U_DIFLD
DO AUDIT^DIET