source: FOIAVistA/trunk/r/INTEGRATED_BILLING-IB-PRQ--IBD--IBQ--PRQS/IBXX18.m@ 1540

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

initial load of FOIAVistA 6/30/08 version

File size: 1.9 KB
Line 
1IBXX18 ; COMPILED XREF FOR FILE #399.0222 ; 07/22/08
2 ;
3 I X'="" D
4 .N DIK,DIV,DIU,DIN
5 .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,3),X=X S DIU=X K Y S X=DIV S X="PRIOR PAYMENT(S)" X ^DD(399,220,1,2,1.4)
6 S DIKZ("U2")=$G(^DGCR(399,DA,"U2"))
7 S X=$P(DIKZ("U2"),U,10)
8 I X'="" D
9 .N DIK,DIV,DIU,DIN
10 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DGCR(399,D0,"U2")):^("U2"),1:"") S X=$P(Y(1),U,12),X=X S DIU=X K Y X ^DD(399,232,1,1,1.1) X ^DD(399,232,1,1,1.4)
11 S X=$P(DIKZ("U2"),U,10)
12 I X'="" D
13 .N DIK,DIV,DIU,DIN
14 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S X=$$CLIAREQ^IBCEP8A(DA) I X S X=DIV S Y(1)=$S($D(^DGCR(399,D0,"U2")):^("U2"),1:"") S X=$P(Y(1),U,13),X=X S DIU=X K Y S X=DIV S X=$$CLIA^IBCEP8A(DA) X ^DD(399,232,1,3,1.4)
15 S X=$P(DIKZ("U2"),U,10)
16 I X'="" D
17 .N DIK,DIV,DIU,DIN
18 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DGCR(399,D0,"U3")):^("U3"),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X=DIV S X=$P($$TAXGET^IBCEP81(X),U,2) X ^DD(399,232,1,4,1.4)
19 S DIKZ("M1")=$G(^DGCR(399,DA,"M1"))
20 S X=$P(DIKZ("M1"),U,8)
21 I X'="" S ^DGCR(399,"AG",$E(X,1,30),DA)=""
22CR1 S DIXR=139
23 K X
24 S DIKZ("M")=$G(^DGCR(399,DA,"M"))
25 S X(1)=$P(DIKZ("M"),U,1)
26 S X(2)=$P(DIKZ("M"),U,2)
27 S X(3)=$P(DIKZ("M"),U,3)
28 S X(4)=$P(DIKZ("M"),U,13)
29 S X(5)=$P(DIKZ("M"),U,12)
30 S X(6)=$P(DIKZ("M"),U,14)
31 S X=$G(X(1))
32 D
33 . K X1,X2 M X1=X,X2=X
34 . N DIKXARR M DIKXARR=X S DIKCOND=1
35 . S X=$S($O(^DGCR(399,DA,"PRV",0)):1,1:0)
36 . S DIKCOND=$G(X) K X M X=DIKXARR
37 . Q:'DIKCOND
38 . D:X1(1)'=X2(1)!(X1(5)'=X2(5)) SETID^IBCEP3(DA,1) D:X1(2)'=X2(2)!(X1(4)'=X2(4)) SETID^IBCEP3(DA,2) D:X1(3)'=X2(3)!(X1(6)'=X2(6)) SETID^IBCEP3(DA,3)
39CR2 S DIXR=477
40 K X
41 S DIKZ("M")=$G(^DGCR(399,DA,"M"))
42 S X(1)=$P(DIKZ("M"),U,1)
43 S X(2)=$P(DIKZ("M"),U,2)
44 S X(3)=$P(DIKZ("M"),U,3)
45 S DIKZ(0)=$G(^DGCR(399,DA,0))
46 S X(4)=$P(DIKZ(0),U,2)
47 S X=$G(X(1))
48 D
49 . K X1,X2 M X1=X,X2=X
50 . N CURR S CURR=+$$COBN^IBCEF(DA) I $G(X(4)),$G(X(CURR)) S ^DGCR(399,"AE",X(4),X(CURR),DA)=""
51CR3 K X
52END G ^IBXX19
Note: See TracBrowser for help on using the repository browser.