IBXX1 ; COMPILED XREF FOR FILE #399 ; 02/13/06
;
S DIKZK=2
S DIKZ(0)=$G(^DGCR(399,DA,0))
S X=$P(DIKZ(0),U,2)
I X'="" K ^DGCR(399,"C",$E(X,1,30),DA)
S X=$P(DIKZ(0),U,3)
I X'="" K ^DGCR(399,"D",$E(X,1,30),DA)
S X=$P(DIKZ(0),U,3)
I X'="" S IBN=$P(^DGCR(399,DA,0),"^",2) I $D(IBN) K ^DGCR(399,"APDT",IBN,DA,9999999-X),IBN
S X=$P(DIKZ(0),U,3)
I X'="" K ^DGCR(399,"ABNDT",DA,9999999-X)
S X=$P(DIKZ(0),U,5)
I X'="" K ^DGCR(399,"ABT",$E(X,1,30),DA)
S X=$P(DIKZ(0),U,7)
I X'="" D
.N DIK,DIV,DIU,DIN
.X ^DD(399,.07,1,1,2.3) I X S X=DIV S Y(1)=$S($D(^DGCR(399,D0,"U")):^("U"),1:"") S X=$P(Y(1),U,6),X=X S DIU=X K Y S X=DIV S X="N" X ^DD(399,.07,1,1,2.4)
S X=$P(DIKZ(0),U,7)
I X'="" K ^DGCR(399,"AD",$E(X,1,30),DA)
S DIKZ(0)=$G(^DGCR(399,DA,0))
S X=$P(DIKZ(0),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(^DGCR(399,D0,"U")):^("U"),1:"") S X=$P(Y(1),U,12),X=X S DIU=X K Y S X="" X ^DD(399,.08,1,4,2.4)
S X=$P(DIKZ(0),U,8)
I X'="" K ^DGCR(399,"APTF",$E(X,1,30),DA)
S DIKZ(0)=$G(^DGCR(399,DA,0))
S X=$P(DIKZ(0),U,11)
I X'="" D DEL^IBCU5
S X=$P(DIKZ(0),U,11)
I X'="" S DGRVRCAL=2
S X=$P(DIKZ(0),U,13)
I X'="" I $P(^DGCR(399,DA,0),U,2) K ^DGCR(399,"AOP",$P(^(0),U,2),DA)
S X=$P(DIKZ(0),U,13)
I X'="" K ^DGCR(399,"AST",+X,DA)
S X=$P(DIKZ(0),U,17)
I X'="" K ^DGCR(399,"AC",$E(X,1,30),DA)
S X=$P(DIKZ(0),U,19)
I X'="" S DGRVRCAL=2
S DIKZ("S")=$G(^DGCR(399,DA,"S"))
S X=$P(DIKZ("S"),U,1)
I X'="" K ^DGCR(399,"APD",$E(X,1,30),DA)
S X=$P(DIKZ("S"),U,12)
I X'="" K ^DGCR(399,"AP",$E(X,1,30),DA)
S DIKZ("C")=$G(^DGCR(399,DA,"C"))
S X=$P(DIKZ("C"),U,14)
I X'="" D
.N DIK,DIV,DIU,DIN
.K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DGCR(399,D0,"C")):^("C"),1:"") S X=$P(Y(1),U,10),X=X S DIU=X K Y S X="" X ^DD(399,64,1,1,2.4)
S DIKZ("M")=$G(^DGCR(399,DA,"M"))
S X=$P(DIKZ("M"),U,1)
I X'="" S DGRVRCAL=2
S X=$P(DIKZ("M"),U,1)
I X'="" K:$P(^DGCR(399,DA,0),"^",2) ^DGCR(399,"AE",$P(^(0),U,2),X,DA)
S X=$P(DIKZ("M"),U,11)
I X'="" D DEL^IBCU5
S X=$P(DIKZ("M"),U,11)
I X'="" S DGRVRCAL=2
S X=$P(DIKZ("M"),U,12)
I X'="" D
.N DIK,DIV,DIU,DIN
.K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DGCR(399,D0,"M")):^("M"),1:"") S X=$P(Y(1),U,1),X=X S DIU=X K Y S X="" X ^DD(399,112,1,1,2.4)
S X=$P(DIKZ("M"),U,12)
I X'="" D KIX^IBCNS2(DA,"I1")
S DIKZ("M")=$G(^DGCR(399,DA,"M"))
S X=$P(DIKZ("M"),U,13)
I X'="" D
.N DIK,DIV,DIU,DIN
.K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DGCR(399,D0,"M")):^("M"),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y S X="" X ^DD(399,113,1,1,2.4)
S X=$P(DIKZ("M"),U,13)
I X'="" D KIX^IBCNS2(DA,"I2")
S DIKZ("M")=$G(^DGCR(399,DA,"M"))
S X=$P(DIKZ("M"),U,14)
I X'="" D
.N DIK,DIV,DIU,DIN
.K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DGCR(399,D0,"M")):^("M"),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X="" X ^DD(399,114,1,1,2.4)
S X=$P(DIKZ("M"),U,14)
I X'="" D KIX^IBCNS2(DA,"I3")
S DIKZ("U")=$G(^DGCR(399,DA,"U"))
S X=$P(DIKZ("U"),U,1)
I X'="" S DGRVRCAL=2
S X=$P(DIKZ("U"),U,2)
I X'="" S DGRVRCAL=2
S DIKZ("U1")=$G(^DGCR(399,DA,"U1"))
S X=$P(DIKZ("U1"),U,2)
I X'="" D
.N DIK,DIV,DIU,DIN
.K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^DGCR(399,D0,"U1")):^("U1"),1:"") S X=$P(Y(1),U,2)="" I X S X=DIV S Y(1)=$S($D(^DGCR(399,D0,"U1")):^("U1"),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X="" X ^DD(399,202,1,1,2.4)
S DIKZ("U1")=$G(^DGCR(399,DA,"U1"))
S X=$P(DIKZ("U1"),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(^DGCR(399,D0,"U1")):^("U1"),1:"") S X=$P(Y(1),U,12),X=X S DIU=X K Y S X="" X ^DD(399,210,1,1,2.4)
S DIKZ(0)=$G(^DGCR(399,DA,0))
S X=$P(DIKZ(0),U,1)
I X'="" K ^DGCR(399,"B",$E(X,1,30),DA)
END G ^IBXX2
IBXX1 ; COMPILED XREF FOR FILE #399 ; 02/13/06
+1 ;
+2 SET DIKZK=2
+3 SET DIKZ(0)=$GET(^DGCR(399,DA,0))
+4 SET X=$PIECE(DIKZ(0),U,2)
+5 IF X'=""
KILL ^DGCR(399,"C",$EXTRACT(X,1,30),DA)
+6 SET X=$PIECE(DIKZ(0),U,3)
+7 IF X'=""
KILL ^DGCR(399,"D",$EXTRACT(X,1,30),DA)
+8 SET X=$PIECE(DIKZ(0),U,3)
+9 IF X'=""
SET IBN=$PIECE(^DGCR(399,DA,0),"^",2)
IF $DATA(IBN)
KILL ^DGCR(399,"APDT",IBN,DA,9999999-X),IBN
+10 SET X=$PIECE(DIKZ(0),U,3)
+11 IF X'=""
KILL ^DGCR(399,"ABNDT",DA,9999999-X)
+12 SET X=$PIECE(DIKZ(0),U,5)
+13 IF X'=""
KILL ^DGCR(399,"ABT",$EXTRACT(X,1,30),DA)
+14 SET X=$PIECE(DIKZ(0),U,7)
+15 IF X'=""
Begin DoDot:1
+16 NEW DIK,DIV,DIU,DIN
+17 XECUTE ^DD(399,.07,1,1,2.3)
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^DGCR(399,D0,"U")):^("U"),1:"")
SET X=$PIECE(Y(1),U,6)
SET X=X
SET DIU=X
KILL Y
SET X=DIV
SET X="N"
XECUTE ^DD(399,.07,1,1,2.4)
End DoDot:1
+18 SET X=$PIECE(DIKZ(0),U,7)
+19 IF X'=""
KILL ^DGCR(399,"AD",$EXTRACT(X,1,30),DA)
+20 SET DIKZ(0)=$GET(^DGCR(399,DA,0))
+21 SET X=$PIECE(DIKZ(0),U,8)
+22 IF X'=""
Begin DoDot:1
+23 NEW DIK,DIV,DIU,DIN
+24 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(1)=$SELECT($DATA(^DGCR(399,D0,"U")):^("U"),1:"")
SET X=$PIECE(Y(1),U,12)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(399,.08,1,4,2.4)
End DoDot:1
+25 SET X=$PIECE(DIKZ(0),U,8)
+26 IF X'=""
KILL ^DGCR(399,"APTF",$EXTRACT(X,1,30),DA)
+27 SET DIKZ(0)=$GET(^DGCR(399,DA,0))
+28 SET X=$PIECE(DIKZ(0),U,11)
+29 IF X'=""
DO DEL^IBCU5
+30 SET X=$PIECE(DIKZ(0),U,11)
+31 IF X'=""
SET DGRVRCAL=2
+32 SET X=$PIECE(DIKZ(0),U,13)
+33 IF X'=""
IF $PIECE(^DGCR(399,DA,0),U,2)
KILL ^DGCR(399,"AOP",$PIECE(^(0),U,2),DA)
+34 SET X=$PIECE(DIKZ(0),U,13)
+35 IF X'=""
KILL ^DGCR(399,"AST",+X,DA)
+36 SET X=$PIECE(DIKZ(0),U,17)
+37 IF X'=""
KILL ^DGCR(399,"AC",$EXTRACT(X,1,30),DA)
+38 SET X=$PIECE(DIKZ(0),U,19)
+39 IF X'=""
SET DGRVRCAL=2
+40 SET DIKZ("S")=$GET(^DGCR(399,DA,"S"))
+41 SET X=$PIECE(DIKZ("S"),U,1)
+42 IF X'=""
KILL ^DGCR(399,"APD",$EXTRACT(X,1,30),DA)
+43 SET X=$PIECE(DIKZ("S"),U,12)
+44 IF X'=""
KILL ^DGCR(399,"AP",$EXTRACT(X,1,30),DA)
+45 SET DIKZ("C")=$GET(^DGCR(399,DA,"C"))
+46 SET X=$PIECE(DIKZ("C"),U,14)
+47 IF X'=""
Begin DoDot:1
+48 NEW DIK,DIV,DIU,DIN
+49 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(1)=$SELECT($DATA(^DGCR(399,D0,"C")):^("C"),1:"")
SET X=$PIECE(Y(1),U,10)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(399,64,1,1,2.4)
End DoDot:1
+50 SET DIKZ("M")=$GET(^DGCR(399,DA,"M"))
+51 SET X=$PIECE(DIKZ("M"),U,1)
+52 IF X'=""
SET DGRVRCAL=2
+53 SET X=$PIECE(DIKZ("M"),U,1)
+54 IF X'=""
IF $PIECE(^DGCR(399,DA,0),"^",2)
KILL ^DGCR(399,"AE",$PIECE(^(0),U,2),X,DA)
+55 SET X=$PIECE(DIKZ("M"),U,11)
+56 IF X'=""
DO DEL^IBCU5
+57 SET X=$PIECE(DIKZ("M"),U,11)
+58 IF X'=""
SET DGRVRCAL=2
+59 SET X=$PIECE(DIKZ("M"),U,12)
+60 IF X'=""
Begin DoDot:1
+61 NEW DIK,DIV,DIU,DIN
+62 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(1)=$SELECT($DATA(^DGCR(399,D0,"M")):^("M"),1:"")
SET X=$PIECE(Y(1),U,1)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(399,112,1,1,2.4)
End DoDot:1
+63 SET X=$PIECE(DIKZ("M"),U,12)
+64 IF X'=""
DO KIX^IBCNS2(DA,"I1")
+65 SET DIKZ("M")=$GET(^DGCR(399,DA,"M"))
+66 SET X=$PIECE(DIKZ("M"),U,13)
+67 IF X'=""
Begin DoDot:1
+68 NEW DIK,DIV,DIU,DIN
+69 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(1)=$SELECT($DATA(^DGCR(399,D0,"M")):^("M"),1:"")
SET X=$PIECE(Y(1),U,2)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(399,113,1,1,2.4)
End DoDot:1
+70 SET X=$PIECE(DIKZ("M"),U,13)
+71 IF X'=""
DO KIX^IBCNS2(DA,"I2")
+72 SET DIKZ("M")=$GET(^DGCR(399,DA,"M"))
+73 SET X=$PIECE(DIKZ("M"),U,14)
+74 IF X'=""
Begin DoDot:1
+75 NEW DIK,DIV,DIU,DIN
+76 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(1)=$SELECT($DATA(^DGCR(399,D0,"M")):^("M"),1:"")
SET X=$PIECE(Y(1),U,3)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(399,114,1,1,2.4)
End DoDot:1
+77 SET X=$PIECE(DIKZ("M"),U,14)
+78 IF X'=""
DO KIX^IBCNS2(DA,"I3")
+79 SET DIKZ("U")=$GET(^DGCR(399,DA,"U"))
+80 SET X=$PIECE(DIKZ("U"),U,1)
+81 IF X'=""
SET DGRVRCAL=2
+82 SET X=$PIECE(DIKZ("U"),U,2)
+83 IF X'=""
SET DGRVRCAL=2
+84 SET DIKZ("U1")=$GET(^DGCR(399,DA,"U1"))
+85 SET X=$PIECE(DIKZ("U1"),U,2)
+86 IF X'=""
Begin DoDot:1
+87 NEW DIK,DIV,DIU,DIN
+88 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(0)=X
SET Y(1)=$SELECT($DATA(^DGCR(399,D0,"U1")):^("U1"),1:"")
SET X=$PIECE(Y(1),U,2)=""
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^DGCR(399,D0,"U1")):^("U1"),1:"")
SET X=$PIECE(Y(1),U,3)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(399,202,1,1,2.4)
End DoDot:1
+89 SET DIKZ("U1")=$GET(^DGCR(399,DA,"U1"))
+90 SET X=$PIECE(DIKZ("U1"),U,10)
+91 IF X'=""
Begin DoDot:1
+92 NEW DIK,DIV,DIU,DIN
+93 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(1)=$SELECT($DATA(^DGCR(399,D0,"U1")):^("U1"),1:"")
SET X=$PIECE(Y(1),U,12)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(399,210,1,1,2.4)
End DoDot:1
+94 SET DIKZ(0)=$GET(^DGCR(399,DA,0))
+95 SET X=$PIECE(DIKZ(0),U,1)
+96 IF X'=""
KILL ^DGCR(399,"B",$EXTRACT(X,1,30),DA)
END GOTO ^IBXX2