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

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

initial load of FOIAVistA 6/30/08 version

File size: 1.7 KB
Line 
1IBBAADD ;OAK/ELZ - PFSS FILE INDEXING ;15-MAR-2005
2 ;;2.0;INTEGRATED BILLING;**286**;21-MAR-94
3 ;;Per VHA Directive 10-93-142, this routine should not be modified.
4 ;
5SAC(DA) ;set AC xref on file #375
6 N X1,X2,X3
7 S X2=+$P($G(^IBBAA(375,DA,"PV1")),U,3)
8 Q:'X2
9 S X1=$P(^IBBAA(375,DA,0),U,3)
10 S X3=$P(^IBBAA(375,DA,"PV1"),U,44)
11 I X3'="" S ^IBBAA(375,"AC",X1,X3,X2,DA)=""
12 Q
13 ;
14KAC144(DA) ;kill AC xref on file #375
15 N X1,X2,X3
16 S X2=+$P($G(^IBBAA(375,DA,"PV1")),U,3)
17 Q:'X2
18 S X1=$P(^IBBAA(375,DA,0),U,3)
19 S X3=$P(^IBBAA(375,DA,"PV1"),U,44)
20 I X3'="" K ^IBBAA(375,"AC",X1,X3,X2,DA)
21 Q
22 ;
23SAF(DA) ;set AF xref on file #375
24 N X1,X2,X3
25 S X2=$G(^IBBAA(375,DA,16))
26 Q:X2=""
27 S X1=$P(^IBBAA(375,DA,0),U,3)
28 S X3=$P($G(^IBBAA(375,DA,"PV1")),U,44)
29 I X3'="" S ^IBBAA(375,"AF",X1,X3,X2,DA)=""
30 Q
31 ;
32KAF(DA) ;kill AF xref on file #375
33 N X1,X2,X3
34 S X2=$G(^IBBAA(375,DA,16))
35 Q:X2=""
36 S X1=$P(^IBBAA(375,DA,0),U,3)
37 S X3=$P($G(^IBBAA(375,DA,"PV1")),U,44)
38 I X3'="" K ^IBBAA(375,"AC",X1,X3,X2,DA)
39 Q
40 ;
41SAOX(DA,DFN,IBBTEST) ;set AX or OX xref on file #373
42 N X,X1,X2,X3,X4
43 ;do not set if test patient
44 I $$TESTPAT^VADPT($G(DFN)) S IBBTEST=1 Q
45 S X=$G(^IBBAD(373,DA,0))
46 S X1=$P(X,U,3),X2=$P(X,U,4),X3=$P(X,U,6),X4=$P(X,U,11)
47 I X4="" D
48 .I X3=419 S ^IBBAD(373,"AX",X1,X2,DA)=""
49 .E S ^IBBAD(373,"OX",X1,X2,DA)=""
50 Q
51 ;
52KAOX(DA) ;kill AX or OX xref on file #373
53 N X,X1,X2,X3,X4
54 S X=$G(^IBBAD(373,DA,0))
55 S X1=$P(X,U,3),X2=$P(X,U,4),X3=$P(X,U,6),X4=$P(X,U,11)
56 I X4 D
57 .I X3=419 K ^IBBAD(373,"AX",X1,X2,DA)
58 .E K ^IBBAD(373,"OX",X1,X2,DA)
59 Q
60 ;
61SAA(DA) ;set AA xref on file #374
62 N XX,X1,X2,X3
63 S XX=^IBBAS(374,DA(1),1,DA,0),X1=$P(XX,U,1),X2=$P(XX,U,2),X3=$P(XX,U,3)
64 I X3=1 S ^IBBAS(374,"AA",X1,X2,DA(1),DA)=""
65 Q
Note: See TracBrowser for help on using the repository browser.