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

ACRCD15.m

Go to the documentation of this file.
ACRCD15 ; COMPILED XREF FOR FILE #9002196.0111 ; 09/30/09
 ; 
 S X=$P(DIKZ("REQ"),U,10)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRDOC(D0,0)):^(0),1:"") S X=$P(Y(1),U,8),X=X S DIU=X K Y X ^DD(9002196,113100,1,39,1.1) X ^DD(9002196,113100,1,39,1.4)
 S X=$P(DIKZ("REQ"),U,10)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .X ^DD(9002196,113100,1,40,1.3) I X S X=DIV S Y(1)=$S($D(^ACRDOC(D0,"REQ2")):^("REQ2"),1:"") S X=$P(Y(1),U,11),X=X S DIU=X K Y X ^DD(9002196,113100,1,40,1.1) X ^DD(9002196,113100,1,40,1.4)
 S X=$P(DIKZ("REQ"),U,10)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .X ^DD(9002196,113100,1,41,1.3) I X S X=DIV S Y(1)=$S($D(^ACRDOC(D0,"POIO")):^("POIO"),1:"") S X=$P(Y(1),U,8),X=X S DIU=X K Y X ^DD(9002196,113100,1,41,1.1) X ^DD(9002196,113100,1,41,1.4)
 S X=$P(DIKZ("REQ"),U,10)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .X ^DD(9002196,113100,1,42,1.3) I X S X=DIV S Y(1)=$S($D(^ACRDOC(D0,"REQ2")):^("REQ2"),1:"") S X=$P(Y(1),U,11),X=X S DIU=X K Y X ^DD(9002196,113100,1,42,1.1) X ^DD(9002196,113100,1,42,1.4)
 S X=$P(DIKZ("REQ"),U,10)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .X ^DD(9002196,113100,1,43,1.3) I X S X=DIV S Y(1)=$S($D(^ACRDOC(D0,"REQ2")):^("REQ2"),1:"") S X=$P(Y(1),U,7),X=X S DIU=X K Y X ^DD(9002196,113100,1,43,1.1) X ^DD(9002196,113100,1,43,1.4)
 S X=$P(DIKZ("REQ"),U,10)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRDOC(D0,"FA")):^("FA"),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y X ^DD(9002196,113100,1,44,1.1) X ^DD(9002196,113100,1,44,1.4)
 S X=$P(DIKZ("REQ"),U,10)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .X ^DD(9002196,113100,1,45,1.3) I X S X=DIV S Y(1)=$S($D(^ACRDOC(D0,"TO")):^("TO"),1:"") S X=$P(Y(1),U,27),X=X S DIU=X K Y X ^DD(9002196,113100,1,45,1.1) X ^DD(9002196,113100,1,45,1.4)
 S X=$P(DIKZ("REQ"),U,10)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRDOC(D0,"TRNG4")):^("TRNG4"),1:"") S X=$P(Y(1),U,15),X=X S DIU=X K Y X ^DD(9002196,113100,1,46,1.1) X ^DD(9002196,113100,1,46,1.4)
 S X=$P(DIKZ("REQ"),U,10)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .X ^DD(9002196,113100,1,47,1.3) I X S X=DIV S Y(1)=$S($D(^ACRDOC(D0,"PA")):^("PA"),1:"") S X=$P(Y(1),U,1),X=X S DIU=X K Y X ^DD(9002196,113100,1,47,1.1) X ^DD(9002196,113100,1,47,1.4)
 S DIKZ("REQ")=$G(^ACRDOC(DA,"REQ"))
 S X=$P(DIKZ("REQ"),U,11)
 I X'="" I X S X1=X,X2=$P(^ACRDOC(DA,"REQ"),U,5) D ^%DTC S $P(^ACRDOC(DA,"DT"),U,4)=$S(X>29:"R",X>15:"P",1:"E")
 S DIKZ("REQ1")=$G(^ACRDOC(DA,"REQ1"))
 S X=$P(DIKZ("REQ1"),U,2)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRDOC(D0,"POST")):^("POST"),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y S X=DIV S X=DIV X ^DD(9002196,113122,1,1,1.4)
 S DIKZ("REQ1")=$G(^ACRDOC(DA,"REQ1"))
 S X=$P(DIKZ("REQ1"),U,3)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRDOC(D0,"POST")):^("POST"),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X=DIV S X=DIV X ^DD(9002196,113123,1,1,1.4)
 S DIKZ("REQ1")=$G(^ACRDOC(DA,"REQ1"))
 S X=$P(DIKZ("REQ1"),U,5)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRDOC(D0,"POST")):^("POST"),1:"") S X=$P(Y(1),U,5),X=X S DIU=X K Y S X=DIV S X=DIV,X=X X ^DD(9002196,113125,1,1,1.4)
 S DIKZ("REQ1")=$G(^ACRDOC(DA,"REQ1"))
 S X=$P(DIKZ("REQ1"),U,8)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRDOC(D0,"POST")):^("POST"),1:"") S X=$P(Y(1),U,6),X=X S DIU=X K Y S X=DIV S X=DIV X ^DD(9002196,113126,1,1,1.4)
 S DIKZ("REQ2")=$G(^ACRDOC(DA,"REQ2"))
 S X=$P(DIKZ("REQ2"),U,13)
 I X'="" S ^ACRDOC("PVEN",$E(X,1,30),DA)=""
 S DIKZ("TO")=$G(^ACRDOC(DA,"TO"))
 S X=$P(DIKZ("TO"),U,20)
 I X'="" S ^ACRDOC("K",$E(X,1,30),DA)=""
 S X=$P(DIKZ("TO"),U,9)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRDOC(D0,"TO")):^("TO"),1:"") S X=$P(Y(1),U,18),X=X S DIU=X K Y S X=DIV S X=DIV,X=X X ^DD(9002196,130040,1,1,1.4)
 S X=$P(DIKZ("TO"),U,9)
 I X'="" I $D(DA),DA,$D(^ACRDOC(DA,"TO")),$P(^("TO"),U,9) S ACRDUZ=$P(^("TO"),U,9) I $D(^ACRAU(ACRDUZ,0)),$D(^(1)),+^(1) S $P(^ACRDOC(DA,"TO"),U,13)=+^(1)
 S X=$P(DIKZ("TO"),U,9)
 I X'="" S ^ACRDOC("N",$E(X,1,30),DA)=""
 S X=$P(DIKZ("TO"),U,9)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRDOC(D0,"TOAU")):^("TOAU"),1:"") S X=$P(Y(1),U,9),X=X S DIU=X K Y X ^DD(9002196,130040,1,4,1.1) X ^DD(9002196,130040,1,4,1.4)
 S DIKZ("TO")=$G(^ACRDOC(DA,"TO"))
 S X=$P(DIKZ("TO"),U,12)
 I X'="" S ^ACRDOC("TDEPT",$E(X,1,30),DA)=""
 S X=$P(DIKZ("TO"),U,14)
 I X'="" S ^ACRDOC("DD",$E(X,1,30),DA)=""
 S X=$P(DIKZ("TO"),U,19)
 I X'="" I $E(X)'="Y" S $P(^ACRDOC(+$G(DA),"TO"),U,25)=""
 S X=$P(DIKZ("TO"),U,18)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRDOC(D0,"REQ")):^("REQ"),1:"") S X=$P(Y(1),U,12),X=X S DIU=X K Y S X=DIV S X=DIV,X=X X ^DD(9002196,130150,1,1,1.4)
 S DIKZ("TO")=$G(^ACRDOC(DA,"TO"))
 S X=$P(DIKZ("TO"),U,16)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRDOC(D0,"TO")):^("TO"),1:"") S X=$P(Y(1),U,17),X=X S DIU=X K Y X ^DD(9002196,130151,1,1,1.1) X ^DD(9002196,130151,1,1,1.4)
 S X=$P(DIKZ("TO"),U,16)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRDOC(D0,"TOAU")):^("TOAU"),1:"") S X=$P(Y(1),U,4),X=X S DIU=X K Y S X=DIV S X=DIV,X=X X ^DD(9002196,130151,1,2,1.4)
 S DIKZ("TOAU")=$G(^ACRDOC(DA,"TOAU"))
 S X=$P(DIKZ("TOAU"),U,2)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRDOC(D0,"AU")):^("AU"),1:"") S X=$P(Y(1),U,1),X=X S DIU=X K Y S X=DIV S X=DIV,X=X X ^DD(9002196,130154,1,1,1.4)
 S X=$P(DIKZ("TOAU"),U,2)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRDOC(D0,"TOAU")):^("TOAU"),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X=DIV S X=DT X ^DD(9002196,130154,1,2,1.4)
 S X=$P(DIKZ("TOAU"),U,2)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRDOC(D0,"TOAU")):^("TOAU"),1:"") S X=$P(Y(1),U,1),X=X S DIU=X K Y X ^DD(9002196,130154,1,3,1.1) X ^DD(9002196,130154,1,3,1.4)
 S DIKZ("TO")=$G(^ACRDOC(DA,"TO"))
 S X=$P(DIKZ("TO"),U,22)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S X=Y(0),X=X S X=X=0 I X S X=DIV S Y(1)=$S($D(^ACRDOC(D0,"TOAU")):^("TOAU"),1:"") S X=$P(Y(1),U,8),X=X S DIU=X K Y S X="" X ^DD(9002196,130157,1,1,1.4)
 S DIKZ(13)=$G(^ACRDOC(DA,13))
 S X=$P(DIKZ(13),U,2)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRDOC(D0,"TO")):^("TO"),1:"") S X=$P(Y(1),U,26),X=X S DIU=X K Y X ^DD(9002196,130172,1,1,1.1) X ^DD(9002196,130172,1,1,1.4)
 S DIKZ("TOAU")=$G(^ACRDOC(DA,"TOAU"))
 S X=$P(DIKZ("TOAU"),U,8)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRDOC(D0,"TO")):^("TO"),1:"") S X=$P(Y(1),U,26),X=X S DIU=X K Y X ^DD(9002196,130177,1,1,1.1) X ^DD(9002196,130177,1,1,1.4)
 S DIKZ("TOAU")=$G(^ACRDOC(DA,"TOAU"))
 S X=$P(DIKZ("TOAU"),U,9)
 I X'="" S ^ACRDOC("Q",$E(X,1,30),DA)=""
 S DIKZ("TRNG")=$G(^ACRDOC(DA,"TRNG"))
 S X=$P(DIKZ("TRNG"),U,2)
 I X'="" S ^ACRDOC("F",$E(X,1,30),DA)=""
 S X=$P(DIKZ("TRNG"),U,2)
 I X'="" X ^DD(9002196,148030,1,2,1)
 S X=$P(DIKZ("TRNG"),U,2)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRDOC(D0,"TRNG4")):^("TRNG4"),1:"") S X=$P(Y(1),U,13),X=X S DIU=X K Y X ^DD(9002196,148030,1,3,1.1) X ^DD(9002196,148030,1,3,1.4)
 S DIKZ("TRNG")=$G(^ACRDOC(DA,"TRNG"))
 S X=$P(DIKZ("TRNG"),U,3)
 I X'="" S ^ACRDOC("M",$E(X,1,30),DA)=""
 S X=$P(DIKZ("TRNG"),U,4)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 X ^DD(9002196,148050,1,1,89.2) S X=$P(Y(101),U,1) S D0=I(0,0) S DIU=X K Y S X=DIV S X=DIV X ^DD(9002196,148050,1,1,1.4)
 S DIKZ("TRNG3")=$G(^ACRDOC(DA,"TRNG3"))
 S X=$P(DIKZ("TRNG3"),U,1)
END G ^ACRCD16