ACRCST1 ; COMPILED XREF FOR FILE #9002195 ; 09/29/09
;
S DIKZK=2
S DIKZ(0)=$G(^ACRITEM(DA,0))
S X=$P(DIKZ(0),U,2)
I X'="" K ^ACRITEM("E",$E(X,1,30),DA)
S DIKZ("DT")=$G(^ACRITEM(DA,"DT"))
S X=$P(DIKZ("DT"),U,1)
I X'="" K ^ACRITEM("C",$E(X,1,30),DA)
S X=$P(DIKZ("DT"),U,4)
I X'="" K ^ACRITEM("NSN",$E(X,1,30),DA)
S X=$P(DIKZ("DT"),U,6)
I X'="" D
.N DIK,DIV,DIU,DIN
.K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRITEM(D0,"DT")):^("DT"),1:"") S X=$P(Y(1),U,5),X=X S DIU=X K Y X ^DD(9002195,6,1,1,2.1) X ^DD(9002195,6,1,1,2.4)
S DIKZ("DT")=$G(^ACRITEM(DA,"DT"))
S X=$P(DIKZ("DT"),U,7)
I X'="" D
.N DIK,DIV,DIU,DIN
.K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRITEM(D0,"DT")):^("DT"),1:"") S X=$P(Y(1),U,6),X=X S DIU=X K Y X ^DD(9002195,7,1,1,2.1) X ^DD(9002195,7,1,1,2.4)
S DIKZ("DT")=$G(^ACRITEM(DA,"DT"))
S X=$P(DIKZ("DT"),U,15)
I X'="" K ^ACRITEM("G",$E(X,1,30),DA)
S DIKZ("DT1")=$G(^ACRITEM(DA,"DT1"))
S X=$P(DIKZ("DT1"),U,1)
I X'="" K ^ACRITEM("F",$E(X,1,30),DA)
S X=$P(DIKZ("DT1"),U,2)
I X'="" K ^ACRITEM("VON",$E(X,1,30),DA)
S X=$P(DIKZ("DT1"),U,4)
I X'="" K ^ACRITEM("NDC",$E(X,1,30),DA)
S DIKZ(0)=$G(^ACRITEM(DA,0))
S X=$P(DIKZ(0),U,1)
I X'="" K ^ACRITEM("B",$E(X,1,30),DA)
END G ^ACRCST2
ACRCST1 ; COMPILED XREF FOR FILE #9002195 ; 09/29/09
+1 ;
+2 SET DIKZK=2
+3 SET DIKZ(0)=$GET(^ACRITEM(DA,0))
+4 SET X=$PIECE(DIKZ(0),U,2)
+5 IF X'=""
KILL ^ACRITEM("E",$EXTRACT(X,1,30),DA)
+6 SET DIKZ("DT")=$GET(^ACRITEM(DA,"DT"))
+7 SET X=$PIECE(DIKZ("DT"),U,1)
+8 IF X'=""
KILL ^ACRITEM("C",$EXTRACT(X,1,30),DA)
+9 SET X=$PIECE(DIKZ("DT"),U,4)
+10 IF X'=""
KILL ^ACRITEM("NSN",$EXTRACT(X,1,30),DA)
+11 SET X=$PIECE(DIKZ("DT"),U,6)
+12 IF X'=""
Begin DoDot:1
+13 NEW DIK,DIV,DIU,DIN
+14 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(1)=$SELECT($DATA(^ACRITEM(D0,"DT")):^("DT"),1:"")
SET X=$PIECE(Y(1),U,5)
SET X=X
SET DIU=X
KILL Y
XECUTE ^DD(9002195,6,1,1,2.1)
XECUTE ^DD(9002195,6,1,1,2.4)
End DoDot:1
+15 SET DIKZ("DT")=$GET(^ACRITEM(DA,"DT"))
+16 SET X=$PIECE(DIKZ("DT"),U,7)
+17 IF X'=""
Begin DoDot:1
+18 NEW DIK,DIV,DIU,DIN
+19 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(1)=$SELECT($DATA(^ACRITEM(D0,"DT")):^("DT"),1:"")
SET X=$PIECE(Y(1),U,6)
SET X=X
SET DIU=X
KILL Y
XECUTE ^DD(9002195,7,1,1,2.1)
XECUTE ^DD(9002195,7,1,1,2.4)
End DoDot:1
+20 SET DIKZ("DT")=$GET(^ACRITEM(DA,"DT"))
+21 SET X=$PIECE(DIKZ("DT"),U,15)
+22 IF X'=""
KILL ^ACRITEM("G",$EXTRACT(X,1,30),DA)
+23 SET DIKZ("DT1")=$GET(^ACRITEM(DA,"DT1"))
+24 SET X=$PIECE(DIKZ("DT1"),U,1)
+25 IF X'=""
KILL ^ACRITEM("F",$EXTRACT(X,1,30),DA)
+26 SET X=$PIECE(DIKZ("DT1"),U,2)
+27 IF X'=""
KILL ^ACRITEM("VON",$EXTRACT(X,1,30),DA)
+28 SET X=$PIECE(DIKZ("DT1"),U,4)
+29 IF X'=""
KILL ^ACRITEM("NDC",$EXTRACT(X,1,30),DA)
+30 SET DIKZ(0)=$GET(^ACRITEM(DA,0))
+31 SET X=$PIECE(DIKZ(0),U,1)
+32 IF X'=""
KILL ^ACRITEM("B",$EXTRACT(X,1,30),DA)
END GOTO ^ACRCST2