source: WorldVistAEHR/trunk/r/INTEGRATED_BILLING-IB-PRQ--IBD--IBQ--PRQS/IBXX6.m@ 1261

Last change on this file since 1261 was 623, checked in by George Lilly, 15 years ago

revised back to 6/30/08 version

File size: 2.1 KB
RevLine 
[623]1IBXX6 ; COMPILED XREF FOR FILE #399.042 ; 12/27/07
[613]2 ;
3 S DA=0
4A1 ;
5 I $D(DIKILL) K DIKLM S:DIKM1=1 DIKLM=1 G @DIKM1
60 ;
7A S DA=$O(^DGCR(399,DA(1),"RC",DA)) I DA'>0 S DA=0 G END
81 ;
9 S DIKZ(0)=$G(^DGCR(399,DA(1),"RC",DA,0))
10 S X=$P(DIKZ(0),U,2)
11 I X'="" D 22^IBCU2
12 S X=$P(DIKZ(0),U,3)
13 I X'="" D 32^IBCU2
14 S X=$P(DIKZ(0),U,4)
15 I X'="" S DGXRF=2 D TC^IBCU2 K DGXRF
16 S X=$P(DIKZ(0),U,5)
17 I X'="" K ^DGCR(399,DA(1),"RC","ABS",$E(X,1,30),+^DGCR(399,DA(1),"RC",DA,0),DA)
18 S X=$P(DIKZ(0),U,6)
19 I X'="" K ^DGCR(399,"ASC1",$E(X,1,30),DA(1),DA)
20 S X=$P(DIKZ(0),U,6)
21 I X'="" K ^DGCR(399,"ASC2",DA(1),$E(X,1,30),DA)
22 S X=$P(DIKZ(0),U,7)
23 I X'="" K ^DGCR(399,"ASC1",+$P(^DGCR(399,DA(1),"RC",DA,0),U,6),DA(1),DA)
24 S X=$P(DIKZ(0),U,7)
25 I X'="" K ^DGCR(399,"ASC2",DA(1),+$P(^DGCR(399,DA(1),"RC",DA,0),U,6),DA)
26 S X=$P(DIKZ(0),U,10)
27 I X'="" D
28 .N DIK,DIV,DIU,DIN
29 .K DIV S DIV=X,D0=DA(1),DIV(0)=D0,D1=DA,DIV(1)=D1 S Y(1)=$S($D(^DGCR(399,D0,"RC",D1,0)):^(0),1:"") S X=$P(Y(1),U,11),X=X S DIU=X K Y S X="" X ^DD(399.042,.1,1,1,2.4)
30 S X=$P(DIKZ(0),U,10)
31 I X'="" D
32 .N DIK,DIV,DIU,DIN
33 .X ^DD(399.042,.1,1,2,2.3) I X S X=DIV S Y(1)=$S($D(^DGCR(399,D0,"RC",D1,0)):^(0),1:"") S X=$P(Y(1),U,15),X=X S DIU=X K Y S X="" S DIH=$G(^DGCR(399,DIV(0),"RC",DIV(1),0)),DIV=X S $P(^(0),U,15)=DIV,DIH=399.042,DIG=.15 D ^DICR
34 S DIKZ(0)=$G(^DGCR(399,DA(1),"RC",DA,0))
35 S X=$P(DIKZ(0),U,11)
36 I X'="" D
37 .N DIK,DIV,DIU,DIN
38 .K DIV S DIV=X,D0=DA(1),DIV(0)=D0,D1=DA,DIV(1)=D1 S Y(0)=X S X=X'="" I X S X=DIV S Y(1)=$S($D(^DGCR(399,D0,"RC",D1,0)):^(0),1:"") S X=$P(Y(1),U,15),X=X S DIU=X K Y S X="" X ^DD(399.042,.11,1,1,2.4)
39 S DIKZ(0)=$G(^DGCR(399,DA(1),"RC",DA,0))
40 S X=$P(DIKZ(0),U,15)
41 I X'="" K ^DGCR(399,DA(1),"RC","ACP",$E(X,1,30),DA)
42 S X=$P(DIKZ(0),U,1)
43 I X'="" K ^DGCR(399,DA(1),"RC","B",$E(X,1,30),DA)
44 S X=$P(DIKZ(0),U,1)
45 I X'="" I $P(^DGCR(399,DA(1),"RC",DA,0),U,5) K ^DGCR(399,DA(1),"RC","ABS",$P(^DGCR(399,DA(1),"RC",DA,0),U,5),$E(X,1,30),DA)
46CR1 S DIXR=53
47 K X
48 S X(1)=$P(DIKZ(0),U,1)
49 S X(2)=$P(DIKZ(0),U,15)
50 S X=$G(X(1))
51 I $G(X(1))]"" D
52 . K X1,X2 M X1=X,X2=X
53 . S:$D(DIKIL) (X2,X2(1),X2(2))=""
54 . I X(2)'=""&'$D(^TMP("IBCRRX",$J)) D DELPR^IBCU1(DA(1),X(2))
55CR2 K X
56 G:'$D(DIKLM) A Q:$D(DIKILL)
57END G ^IBXX7
Note: See TracBrowser for help on using the repository browser.