TIUEPN3 ; ;04/07/16
S X=DG(DQ),DIC=DIE
S ^TIU(8925,"CA",$E(X,1,30),DA)=""
S X=DG(DQ),DIC=DIE
I +$P($G(^TIU(8925,+DA,0)),U),+$P($G(^TIU(8925,+DA,13)),U),+$P($G(^TIU(8925,+DA,0)),U,5) S ^TIU(8925,"AAU",+X,+$P(^TIU(8925,+DA,0),U),+$P(^TIU(8925,+DA,0),U,5),(9999999-$P(^TIU(8925,+DA,13),U)),+DA)=""
S X=DG(DQ),DIC=DIE
I +$$AAUP^TIULX(+DA),+$P($G(^TIU(8925,+DA,15)),U) S ^TIU(8925,"AAUP",+X,+$P($G(^TIU(8925,+DA,15)),U),+DA)=""
S X=DG(DQ),DIC=DIE
D SACLAU^TIUDD0(1202,X)
S X=DG(DQ),DIC=DIE
K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X I '+$$ISDS^TIULX(+$G(^TIU(8925,+DA,0))) I X S X=DIV S Y(1)=$S($D(^TIU(8925,D0,14)):^(14),1:"") S X=$P(Y(1),U,4),X=X S DIU=X K Y X ^DD(8925,1202,1,5,1.1) X ^DD(8925,1202,1,5,1.4)
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HTIUEPN3 723 printed Nov 22, 2024@17:50:23 Page 2
TIUEPN3 ; ;04/07/16
+1 SET X=DG(DQ)
SET DIC=DIE
+2 SET ^TIU(8925,"CA",$EXTRACT(X,1,30),DA)=""
+3 SET X=DG(DQ)
SET DIC=DIE
+4 IF +$PIECE($GET(^TIU(8925,+DA,0)),U)
IF +$PIECE($GET(^TIU(8925,+DA,13)),U)
IF +$PIECE($GET(^TIU(8925,+DA,0)),U,5)
SET ^TIU(8925,"AAU",+X,+$PIECE(^TIU(8925,+DA,0),U),+$PIECE(^TIU(8925,+DA,0),U,5),(9999999-$PIECE(^TIU(8925,+DA,13),U)),+DA)=""
+5 SET X=DG(DQ)
SET DIC=DIE
+6 IF +$$AAUP^TIULX(+DA)
IF +$PIECE($GET(^TIU(8925,+DA,15)),U)
SET ^TIU(8925,"AAUP",+X,+$PIECE($GET(^TIU(8925,+DA,15)),U),+DA)=""
+7 SET X=DG(DQ)
SET DIC=DIE
+8 DO SACLAU^TIUDD0(1202,X)
+9 SET X=DG(DQ)
SET DIC=DIE
+10 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(0)=X
IF '+$$ISDS^TIULX(+$GET(^TIU(8925,+DA,0)))
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^TIU(8925,D0,14)):^(14),1:"")
SET X=$PIECE(Y(1),U,4)
SET X=X
SET DIU=X
KILL Y
XECUTE ^DD(8925,1202,1,5,1.1)
XECUTE ^DD(8925,1202,1,5,1.4)