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

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

initial load of WorldVistAEHR

File size: 796 bytes
Line 
1IBXX2 ; COMPILED XREF FOR FILE #399.0222 ; 01/03/09
2 ;
3END G ^IBXX2
4 . K X1,X2 M X1=X,X2=X
5 . S:$D(DIKIL) (X2,X2(1),X2(2),X2(3),X2(4),X2(5),X2(6))=""
6 . N DIKXARR M DIKXARR=X S DIKCOND=1
7 . S X=$S($O(^DGCR(399,DA,"PRV",0)):1,1:0)
8 . S DIKCOND=$G(X) K X M X=DIKXARR
9 . Q:'DIKCOND
10 . D:X1(1)'=X2(1)!(X1(5)'=X2(5)) DELID^IBCEP3(DA,1) D:X1(2)'=X2(2)!(X1(4)'=X2(4)) DELID^IBCEP3(DA,2) D:X1(3)'=X2(3)!(X1(6)'=X2(6)) DELID^IBCEP3(DA,3)
11CR2 S DIXR=430
12 K X
13 S DIKZ("M")=$G(^DGCR(399,DA,"M"))
14 S X(1)=$P(DIKZ("M"),U,1)
15 S X(2)=$P(DIKZ("M"),U,2)
16 S X(3)=$P(DIKZ("M"),U,3)
17 S DIKZ(0)=$G(^DGCR(399,DA,0))
18 S X(4)=$P(DIKZ(0),U,2)
19 S X=$G(X(1))
20 D
21 . K X1,X2 M X1=X,X2=X
22 . S:$D(DIKIL) (X2,X2(1),X2(2),X2(3),X2(4))=""
23 . N G I $G(X(4)) F G=1,2,3 I $G(X(G)) K ^DGCR(399,"AE",X(4),X(G),DA)
24CR3 K X
25END G ^IBXX3
Note: See TracBrowser for help on using the repository browser.