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

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

initial load of FOIAVistA 6/30/08 version

File size: 1.2 KB
Line 
1IBXSC39 ; ;02/03/08
2 ;;
31 N X,X1,X2 S DIXR=139 D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X
4 D
5 . N DIEZCOND,DIEXARR M DIEXARR=X S DIEZCOND=1
6 . S X=$S($O(^DGCR(399,DA,"PRV",0)):1,1:0)
7 . S DIEZCOND=$G(X) K X M X=DIEXARR Q:'DIEZCOND
8 . 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)
9 K X M X=X2 D
10 . N DIEZCOND,DIEXARR M DIEXARR=X S DIEZCOND=1
11 . S X=$S($O(^DGCR(399,DA,"PRV",0)):1,1:0)
12 . S DIEZCOND=$G(X) K X M X=DIEXARR Q:'DIEZCOND
13 . 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)
14 Q
15X1(DION) K X
16 S X(1)=$G(@DIEZTMP@("V",399,DIIENS,101,DION),$P($G(^DGCR(399,DA,"M")),U,1))
17 S X(2)=$G(@DIEZTMP@("V",399,DIIENS,102,DION),$P($G(^DGCR(399,DA,"M")),U,2))
18 S X(3)=$G(@DIEZTMP@("V",399,DIIENS,103,DION),$P($G(^DGCR(399,DA,"M")),U,3))
19 S X(4)=$G(@DIEZTMP@("V",399,DIIENS,113,DION),$P($G(^DGCR(399,DA,"M")),U,13))
20 S X(5)=$G(@DIEZTMP@("V",399,DIIENS,112,DION),$P($G(^DGCR(399,DA,"M")),U,12))
21 S X(6)=$G(@DIEZTMP@("V",399,DIIENS,114,DION),$P($G(^DGCR(399,DA,"M")),U,14))
22 S X=$G(X(1))
23 Q
Note: See TracBrowser for help on using the repository browser.