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
ACRCTV2 ; COMPILED XREF FOR FILE #9002193.5 ; 09/30/09
+1 ;
+2 SET DIKZK=1
+3 SET DIKZ(0)=$GET(^ACRTV(DA,0))
+4 SET X=$PIECE(DIKZ(0),U,1)
+5 IF X'=""
SET ^ACRTV("B",$EXTRACT(X,1,30),DA)=""
+6 SET X=$PIECE(DIKZ(0),U,2)
+7 IF X'=""
Begin DoDot:1
+8 NEW DIK,DIV,DIU,DIN
+9 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(1)=$SELECT($DATA(^ACRTV(D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,7)
SET X=X
SET DIU=X
KILL Y
SET X=DIV
SET X=DIV
SET X=X
XECUTE ^DD(9002193.5,.02,1,1,1.4)
End DoDot:1
+10 SET DIKZ(0)=$GET(^ACRTV(DA,0))
+11 SET X=$PIECE(DIKZ(0),U,3)
+12 IF X'=""
SET ^ACRTV("D",$EXTRACT(X,1,30),DA)=""
+13 SET X=$PIECE(DIKZ(0),U,4)
+14 IF X'=""
Begin DoDot:1
+15 NEW DIK,DIV,DIU,DIN
+16 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(0)=X
SET X=Y(0)
SET X=X
SET X=X>1
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^ACRTV(D0,"DT")):^("DT"),1:"")
SET X=$PIECE(Y(1),U,6)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(9002193.5,.04,1,1,1.4)
End DoDot:1
+17 SET X=$PIECE(DIKZ(0),U,4)
+18 IF X'=""
Begin DoDot:1
+19 NEW DIK,DIV,DIU,DIN
+20 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(0)=X
SET X=Y(0)
SET X=X
SET X=X>1
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^ACRTV(D0,"DT")):^("DT"),1:"")
SET X=$PIECE(Y(1),U,5)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(9002193.5,.04,1,2,1.4)
End DoDot:1
+21 SET DIKZ(0)=$GET(^ACRTV(DA,0))
+22 SET X=$PIECE(DIKZ(0),U,7)
+23 IF X'=""
SET ^ACRTV("C",$EXTRACT(X,1,30),DA)=""
+24 SET DIKZ("DT")=$GET(^ACRTV(DA,"DT"))
+25 SET X=$PIECE(DIKZ("DT"),U,1)
+26 IF X'=""
SET ^ACRTV("E",$EXTRACT(X,1,30),DA)=""
+27 SET X=$PIECE(DIKZ("DT"),U,2)
+28 IF X'=""
Begin DoDot:1
+29 NEW DIK,DIV,DIU,DIN
+30 XECUTE ^DD(9002193.5,2,1,1,1.3)
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^ACRTV(D0,"DT")):^("DT"),1:"")
SET X=$PIECE(Y(1),U,5)
SET X=X
SET DIU=X
KILL Y
XECUTE ^DD(9002193.5,2,1,1,1.1)
XECUTE ^DD(9002193.5,2,1,1,1.4)
End DoDot:1
+31 SET DIKZ("DT")=$GET(^ACRTV(DA,"DT"))
+32 SET X=$PIECE(DIKZ("DT"),U,3)
+33 IF X'=""
Begin DoDot:1
+34 NEW DIK,DIV,DIU,DIN
+35 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(1)=$SELECT($DATA(^ACRTV(D0,"DT")):^("DT"),1:"")
SET X=$PIECE(Y(1),U,6)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(9002193.5,3,1,1,1.4)
End DoDot:1
+36 SET X=$PIECE(DIKZ("DT"),U,3)
+37 IF X'=""
Begin DoDot:1
+38 NEW DIK,DIV,DIU,DIN
+39 XECUTE ^DD(9002193.5,3,1,2,1.3)
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^ACRTV(D0,"DT")):^("DT"),1:"")
SET X=$PIECE(Y(1),U,5)
SET X=X
SET DIU=X
KILL Y
XECUTE ^DD(9002193.5,3,1,2,1.1)
XECUTE ^DD(9002193.5,3,1,2,1.4)
End DoDot:1
+40 SET DIKZ("DT")=$GET(^ACRTV(DA,"DT"))
+41 SET X=$PIECE(DIKZ("DT"),U,4)
+42 IF X'=""
Begin DoDot:1
+43 NEW DIK,DIV,DIU,DIN
+44 XECUTE ^DD(9002193.5,4,1,1,1.3)
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^ACRTV(D0,"DT")):^("DT"),1:"")
SET X=$PIECE(Y(1),U,6)
SET X=X
SET DIU=X
KILL Y
XECUTE ^DD(9002193.5,4,1,1,1.1)
XECUTE ^DD(9002193.5,4,1,1,1.4)
End DoDot:1
+45 SET X=$PIECE(DIKZ("DT"),U,4)
+46 IF X'=""
Begin DoDot:1
+47 NEW DIK,DIV,DIU,DIN
+48 XECUTE ^DD(9002193.5,4,1,2,1.3)
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^ACRTV(D0,"DT")):^("DT"),1:"")
SET X=$PIECE(Y(1),U,5)
SET X=X
SET DIU=X
KILL Y
XECUTE ^DD(9002193.5,4,1,2,1.1)
XECUTE ^DD(9002193.5,4,1,2,1.4)
End DoDot:1
+49 SET DIKZ("DT")=$GET(^ACRTV(DA,"DT"))
+50 SET X=$PIECE(DIKZ("DT"),U,5)
+51 IF X'=""
DO FACTOR^ACRFSSA
END QUIT