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

ACRCTV2.m

Go to the documentation of this file.
ACRCTV2 ; COMPILED XREF FOR FILE #9002193.5 ; 09/30/09
 ; 
 S DIKZK=1
 S DIKZ(0)=$G(^ACRTV(DA,0))
 S X=$P(DIKZ(0),U,1)
 I X'="" S ^ACRTV("B",$E(X,1,30),DA)=""
 S X=$P(DIKZ(0),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(^ACRTV(D0,0)):^(0),1:"") S X=$P(Y(1),U,7),X=X S DIU=X K Y S X=DIV S X=DIV,X=X X ^DD(9002193.5,.02,1,1,1.4)
 S DIKZ(0)=$G(^ACRTV(DA,0))
 S X=$P(DIKZ(0),U,3)
 I X'="" S ^ACRTV("D",$E(X,1,30),DA)=""
 S X=$P(DIKZ(0),U,4)
 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>1 I X S X=DIV S Y(1)=$S($D(^ACRTV(D0,"DT")):^("DT"),1:"") S X=$P(Y(1),U,6),X=X S DIU=X K Y S X="" X ^DD(9002193.5,.04,1,1,1.4)
 S X=$P(DIKZ(0),U,4)
 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>1 I X S X=DIV S Y(1)=$S($D(^ACRTV(D0,"DT")):^("DT"),1:"") S X=$P(Y(1),U,5),X=X S DIU=X K Y S X="" X ^DD(9002193.5,.04,1,2,1.4)
 S DIKZ(0)=$G(^ACRTV(DA,0))
 S X=$P(DIKZ(0),U,7)
 I X'="" S ^ACRTV("C",$E(X,1,30),DA)=""
 S DIKZ("DT")=$G(^ACRTV(DA,"DT"))
 S X=$P(DIKZ("DT"),U,1)
 I X'="" S ^ACRTV("E",$E(X,1,30),DA)=""
 S X=$P(DIKZ("DT"),U,2)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .X ^DD(9002193.5,2,1,1,1.3) I X S X=DIV S Y(1)=$S($D(^ACRTV(D0,"DT")):^("DT"),1:"") S X=$P(Y(1),U,5),X=X S DIU=X K Y X ^DD(9002193.5,2,1,1,1.1) X ^DD(9002193.5,2,1,1,1.4)
 S DIKZ("DT")=$G(^ACRTV(DA,"DT"))
 S X=$P(DIKZ("DT"),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(^ACRTV(D0,"DT")):^("DT"),1:"") S X=$P(Y(1),U,6),X=X S DIU=X K Y S X="" X ^DD(9002193.5,3,1,1,1.4)
 S X=$P(DIKZ("DT"),U,3)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .X ^DD(9002193.5,3,1,2,1.3) I X S X=DIV S Y(1)=$S($D(^ACRTV(D0,"DT")):^("DT"),1:"") S X=$P(Y(1),U,5),X=X S DIU=X K Y X ^DD(9002193.5,3,1,2,1.1) X ^DD(9002193.5,3,1,2,1.4)
 S DIKZ("DT")=$G(^ACRTV(DA,"DT"))
 S X=$P(DIKZ("DT"),U,4)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .X ^DD(9002193.5,4,1,1,1.3) I X S X=DIV S Y(1)=$S($D(^ACRTV(D0,"DT")):^("DT"),1:"") S X=$P(Y(1),U,6),X=X S DIU=X K Y X ^DD(9002193.5,4,1,1,1.1) X ^DD(9002193.5,4,1,1,1.4)
 S X=$P(DIKZ("DT"),U,4)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .X ^DD(9002193.5,4,1,2,1.3) I X S X=DIV S Y(1)=$S($D(^ACRTV(D0,"DT")):^("DT"),1:"") S X=$P(Y(1),U,5),X=X S DIU=X K Y X ^DD(9002193.5,4,1,2,1.1) X ^DD(9002193.5,4,1,2,1.4)
 S DIKZ("DT")=$G(^ACRTV(DA,"DT"))
 S X=$P(DIKZ("DT"),U,5)
 I X'="" D FACTOR^ACRFSSA
END Q