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

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

revised back to 6/30/08 version

File size: 2.5 KB
RevLine 
[623]1IBXX3 ; COMPILED XREF FOR FILE #399.0222 ; 12/27/07
[613]2 ;
3 S DA(1)=DA 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),"PRV",DA)) I DA'>0 S DA=0 G END
81 ;
9 S DIKZ(0)=$G(^DGCR(399,DA(1),"PRV",DA,0))
10 S X=$P(DIKZ(0),U,2)
11 I X'="" D
12 .N DIK,DIV,DIU,DIN
13 .K DIV S DIV=X,D0=DA(1),DIV(0)=D0,D1=DA,DIV(1)=D1 S Y(1)=$S($D(^DGCR(399,D0,"PRV",D1,0)):^(0),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X="" X ^DD(399.0222,.02,1,2,2.4)
14 S X=$P(DIKZ(0),U,2)
15 I X'="" D
16 .N DIK,DIV,DIU,DIN
17 .K DIV S DIV=X,D0=DA(1),DIV(0)=D0,D1=DA,DIV(1)=D1 S Y(1)=$S($D(^DGCR(399,D0,"PRV",D1,0)):^(0),1:"") S X=$P(Y(1),U,8),X=X S DIU=X K Y S X="" X ^DD(399.0222,.02,1,3,2.4)
18 S X=$P(DIKZ(0),U,2)
19 I X'="" D
20 .N DIK,DIV,DIU,DIN
21 .K DIV S DIV=X,D0=DA(1),DIV(0)=D0,D1=DA,DIV(1)=D1 S Y(1)=$S($D(^DGCR(399,D0,"PRV",D1,0)):^(0),1:"") S X=$P(Y(1),U,5),X=X S DIU=X K Y S X="" X ^DD(399.0222,.02,1,4,2.4)
22 S X=$P(DIKZ(0),U,2)
23 I X'="" D
24 .N DIK,DIV,DIU,DIN
25 .K DIV S DIV=X,D0=DA(1),DIV(0)=D0,D1=DA,DIV(1)=D1 S Y(1)=$S($D(^DGCR(399,D0,"PRV",D1,0)):^(0),1:"") S X=$P(Y(1),U,6),X=X S DIU=X K Y S X="" X ^DD(399.0222,.02,1,5,2.4)
26 S X=$P(DIKZ(0),U,2)
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,"PRV",D1,0)):^(0),1:"") S X=$P(Y(1),U,7),X=X S DIU=X K Y S X="" X ^DD(399.0222,.02,1,6,2.4)
30 S X=$P(DIKZ(0),U,2)
31 I X'="" D
32 .N DIK,DIV,DIU,DIN
33 .K DIV S DIV=X,D0=DA(1),DIV(0)=D0,D1=DA,DIV(1)=D1 S Y(1)=$S($D(^DGCR(399,D0,"PRV",D1,0)):^(0),1:"") S X=$P(Y(1),U,15),X=X S DIU=X K Y S X="" X ^DD(399.0222,.02,1,7,2.4)
34 S DIKZ(0)=$G(^DGCR(399,DA(1),"PRV",DA,0))
35 S X=$P(DIKZ(0),U,5)
36 I X'="" D ATTREND^IBCU1(DA(1),DA,.05)
37 S X=$P(DIKZ(0),U,6)
38 I X'="" D ATTREND^IBCU1(DA(1),DA,.06)
39 S X=$P(DIKZ(0),U,7)
40 I X'="" D ATTREND^IBCU1(DA(1),DA,.07)
41 S X=$P(DIKZ(0),U,12)
42 I X'="" D ATTREND^IBCU1(DA(1),DA,.12)
43 S X=$P(DIKZ(0),U,13)
44 I X'="" D ATTREND^IBCU1(DA(1),DA,.13)
45 S X=$P(DIKZ(0),U,14)
46 I X'="" D ATTREND^IBCU1(DA(1),DA,.14)
47 S X=$P(DIKZ(0),U,1)
48 I X'="" K ^DGCR(399,DA(1),"PRV","B",$E(X,1,30),DA)
49 S X=$P(DIKZ(0),U,1)
50 I X'="" D
51 .N DIK,DIV,DIU,DIN
52 .K DIV S DIV=X,D0=DA(1),DIV(0)=D0,D1=DA,DIV(1)=D1 S Y(1)=$S($D(^DGCR(399,D0,"PRV",D1,0)):^(0),1:"") S X=$P(Y(1),U,4),X=X S DIU=X K Y S X="" X ^DD(399.0222,.01,1,2,2.4)
53 S X=$P(DIKZ(0),U,1)
54 I X'="" K ^DGCR(399,DA(1),"PRV","C",$E($$EXTERNAL^DILFD(399.0222,.01,,X),1,30),DA)
55 S X=$P(DIKZ(0),U,1)
56 I X'="" K ^DGCR(399,DA(1),"PRV","C",$$LOW^XLFSTR($E($$EXTERNAL^DILFD(399.0222,.01,,X),1,30)),DA)
57 G:'$D(DIKLM) A Q:$D(DIKILL)
58END G ^IBXX4
Note: See TracBrowser for help on using the repository browser.