Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: TIUXRC2

TIUXRC2.m

Go to the documentation of this file.
TIUXRC2 ; COMPILED XREF FOR FILE #8925 ; 05/09/23
 ; 
 I X'="" I +$P($G(^TIU(8925,+DA,13)),U),+$P($G(^TIU(8925,+DA,0)),U,5),+$O(^TIU(8925.9,"B",+DA,0)) D APRBK^TIUDD(+X,+$P(^TIU(8925,+DA,0),U,5),(9999999-+$G(^TIU(8925,+DA,13))),DA)
 S X=$P($G(DIKZ(0)),U,1)
 I X'="" I +$P(^TIU(8925,+DA,0),U,3),+$P($G(^TIU(8925,+DA,13)),U),+$P($G(^TIU(8925,+DA,0)),U,5) K ^TIU(8925,"AVSIT",+$P(^TIU(8925,+DA,0),U,3),+X,+$P(^TIU(8925,+DA,0),U,5),(9999999-$P(^TIU(8925,+DA,13),U)),DA)
 S X=$P($G(DIKZ(0)),U,1)
 I X'="" I +$P(^TIU(8925,+DA,0),U,2),+$P($G(^TIU(8925,+DA,13)),U) K ^TIU(8925,"APTCL",+$P(^TIU(8925,+DA,0),U,2),+$$CLINDOC^TIULC1(+X,+DA),(9999999-$P(^TIU(8925,+DA,13),U)),DA)
 S X=$P($G(DIKZ(0)),U,1)
 I X'="" I +$P(^TIU(8925,+DA,0),U,2),+$P($G(^TIU(8925,+DA,13)),U) K ^TIU(8925,"APTCL",+$P(^TIU(8925,+DA,0),U,2),38,(9999999-$P(^TIU(8925,+DA,13),U)),DA)
 S X=$P($G(DIKZ(0)),U,1)
 I X'="" D KACLPT^TIUDD01(.01,X)
 S X=$P($G(DIKZ(0)),U,1)
 I X'="" D KACLAU^TIUDD01(.01,X),KACLAU1^TIUDD01(.01,X)
 S X=$P($G(DIKZ(0)),U,1)
 I X'="" D KACLEC^TIUDD01(.01,X)
 S X=$P($G(DIKZ(0)),U,1)
 I X'="" D KACLSB^TIUDD01(.01,X)
 S X=$P($G(DIKZ(0)),U,1)
 I X'="" D KAPTLD^TIUDD01(.01,X)
 S X=$P($G(DIKZ(0)),U,1)
 I X'="" S DH=8925,DV=.01,DU=1 S DIIX=2 D:$G(DIK(0))'["A" AUDIT^DIK1
CR1 S DIXR=247
 K X
 S X(1)=$P(DIKZ(12),U,12)
 S X(2)=$P(DIKZ(0),U,1)
 S X(3)=$P(DIKZ(0),U,5)
 S X=$P(DIKZ(13),U,1)
 I $G(X)]"" S X=9999999-X
 S:$D(X)#2 X(4)=X
 S X=$G(X(1))
 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D
 . K X1,X2 M X1=X,X2=X
 . S:$D(DIKIL) (X2,X2(1),X2(2),X2(3),X2(4))=""
 . K ^TIU(8925,"ADIV",X(1),X(2),X(3),X(4),DA)
CR2 S DIXR=557
 K X
 S DIKZ(12)=$G(^TIU(8925,DA,12))
 S X(1)=$P(DIKZ(12),U,1)
 S DIKZ(18)=$G(^TIU(8925,DA,18))
 S X(2)=$P(DIKZ(18),U,1)
 S X=$G(X(1))
 I $G(X(1))]"",$G(X(2))]"" D
 . K X1,X2 M X1=X,X2=X
 . S:$D(DIKIL) (X2,X2(1),X2(2))=""
 . K ^TIU(8925,"VBC",$E(X(1),1,14),$E(X(2),1,6),DA)
CR3 S DIXR=1329
 K X
 S DIKZ(0)=$G(^TIU(8925,DA,0))
 S X(1)=$P(DIKZ(0),U,1)
 S X(2)=$P(DIKZ(0),U,5)
 S X(3)=$P(DIKZ(0),U,6)
 S X(4)=$P(DIKZ(0),U,7)
 S X(5)=$P(DIKZ(0),U,8)
 S DIKZ(12)=$G(^TIU(8925,DA,12))
 S X(6)=$P(DIKZ(12),U,2)
 S X(7)=$P(DIKZ(12),U,5)
 S DIKZ(13)=$G(^TIU(8925,DA,13))
 S X(8)=$P(DIKZ(13),U,1)
 S DIKZ(14)=$G(^TIU(8925,DA,14))
 S X(9)=$P(DIKZ(14),U,5)
 S DIKZ(17)=$G(^TIU(8925,DA,17))
 S X(10)=$P(DIKZ(17),U,1)
 S DIKZ(21)=$G(^TIU(8925,DA,21))
 S X(11)=$P(DIKZ(21),U,1)
 S X(12)=$P(DIKZ(0),U,2)
 S X=$G(X(1))
 D
 . K X1,X2 M X1=X,X2=X
 . S:$D(DIKIL) (X2,X2(1),X2(2),X2(3),X2(4),X2(5),X2(6),X2(7),X2(8),X2(9),X2(10),X2(11),X2(12))=""
 . N DIKXARR M DIKXARR=X S DIKCOND=1
 . S X=(X2(1)="")
 . S DIKCOND=$G(X) K X M X=DIKXARR
 . Q:'DIKCOND
 . D DOC^TIUDDX
CR4 S DIXR=1571
 K X
 S DIKZ(12)=$G(^TIU(8925,DA,12))
 S X(1)=$P(DIKZ(12),U,2)
 S DIKZ(13)=$G(^TIU(8925,DA,13))
 S X(2)=$P(DIKZ(13),U,2)
 S X(3)=$P(DIKZ(13),U,1)
 S X=$G(X(1))
 D
 . K X1,X2 M X1=X,X2=X
 . S:$D(DIKIL) (X2,X2(1),X2(2),X2(3))=""
 . D KAADT^TIUDD01(.X)
CR5 S DIXR=1696
 K X
 S DIKZ(12)=$G(^TIU(8925,DA,12))
 S X(1)=$P(DIKZ(12),U,7)
 S X=$G(X(1))
 I $G(X(1))]"" D
 . K X1,X2 M X1=X,X2=X
 . S:$D(DIKIL) (X2,X2(1))=""
 . K ^TIU(8925,"VS",X,DA)
CR6 K X
END Q