IBXS14 ; ;12/08/20
S X=DE(23),DIC=DIE
K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DPT(D0,.11)):^(.11),1:""),Y=$P(Y(1),U,7) X:$D(^DD(2,.117,2)) ^(2) S X=Y S DIU=X K Y S X=DIV S X="" X ^DD(2,.115,1,1,2.4)
S X=DE(23),DIC=DIE
S A1B2TAG="PAT" D ^A1B2XFR
S X=DE(23),DIC=DIE
D EVENT^IVMPLOG(DA)
S X=DE(23),DIC=DIE
K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DPT(D0,.11)):^(.11),1:"") S X=$P(Y(1),U,13),X=X S DIU=X K Y S X=DIV S X=$$NOW^XLFDT S DIH=$G(^DPT(DIV(0),.11)),DIV=X S $P(^(.11),U,13)=DIV,DIH=2,DIG=.118 D ^DICR
S X=DE(23),DIC=DIE
S IVMX=X,X="IVMPXFR" X ^%ZOSF("TEST") D:$T DPT^IVMPXFR S X=IVMX K IVMX
S X=DE(23),DIC=DIE
I ($T(AVAFC^VAFCDD01)'="") S VAFCF=".115;" D AVAFC^VAFCDD01(DA)
S X=DE(23),DIC=DIE
D:($T(ADGRU^DGRUDD01)'="") ADGRU^DGRUDD01(DA)
S X=DE(23),DIIX=2_U_DIFLD D AUDIT^DIET
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBXS14 821 printed Oct 16, 2024@18:30:39 Page 2
IBXS14 ; ;12/08/20
+1 SET X=DE(23)
SET DIC=DIE
+2 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(1)=$SELECT($DATA(^DPT(D0,.11)):^(.11),1:"")
SET Y=$PIECE(Y(1),U,7)
if $DATA(^DD(2,.117,2))
XECUTE ^(2)
SET X=Y
SET DIU=X
KILL Y
SET X=DIV
SET X=""
XECUTE ^DD(2,.115,1,1,2.4)
+3 SET X=DE(23)
SET DIC=DIE
+4 SET A1B2TAG="PAT"
DO ^A1B2XFR
+5 SET X=DE(23)
SET DIC=DIE
+6 DO EVENT^IVMPLOG(DA)
+7 SET X=DE(23)
SET DIC=DIE
+8 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(1)=$SELECT($DATA(^DPT(D0,.11)):^(.11),1:"")
SET X=$PIECE(Y(1),U,13)
SET X=X
SET DIU=X
KILL Y
SET X=DIV
SET X=$$NOW^XLFDT
SET DIH=$GET(^DPT(DIV(0),.11))
SET DIV=X
SET $PIECE(^(.11),U,13)=DIV
SET DIH=2
SET DIG=.118
DO ^DICR
+9 SET X=DE(23)
SET DIC=DIE
+10 SET IVMX=X
SET X="IVMPXFR"
XECUTE ^%ZOSF("TEST")
if $TEST
DO DPT^IVMPXFR
SET X=IVMX
KILL IVMX
+11 SET X=DE(23)
SET DIC=DIE
+12 IF ($TEXT(AVAFC^VAFCDD01)'="")
SET VAFCF=".115;"
DO AVAFC^VAFCDD01(DA)
+13 SET X=DE(23)
SET DIC=DIE
+14 if ($TEXT(ADGRU^DGRUDD01)'="")
DO ADGRU^DGRUDD01(DA)
+15 SET X=DE(23)
SET DIIX=2_U_DIFLD
DO AUDIT^DIET