TIUEPN15 ; ;11/17/04
S X=DE(21),DIC=DIE
K ^TIU(8925,"CS",$E(X,1,30),DA)
S X=DE(21),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) K ^TIU(8925,"ASUP",+X,+$P(^TIU(8925,+DA,0),U),+$P(^TIU(8925,+DA,0),U,5),(9999999-$P($G(^TIU(8925,+DA,13)),U)),DA)
S X=DE(21),DIC=DIE
D KACLEC^TIUDD01(1208,X)
TIUEPN15 ; ;11/17/04
+1 SET X=DE(21)
SET DIC=DIE
+2 KILL ^TIU(8925,"CS",$EXTRACT(X,1,30),DA)
+3 SET X=DE(21)
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)
KILL ^TIU(8925,"ASUP",+X,+$PIECE(^TIU(8925,+DA,0),U),+$PIECE(^TIU(8925,+DA,0),U,5),(9999999-$PIECE($GET(^TIU(8925,+DA,13)),U)),DA)
+5 SET X=DE(21)
SET DIC=DIE
+6 DO KACLEC^TIUDD01(1208,X)