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

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

initial load of FOIAVistA 6/30/08 version

File size: 4.2 KB
Line 
1IB20PT31 ;ALB/CPM - IB V2.0 POST INIT, RESOLVE TABLE POINTERS ; 02-SEP-93
2 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
3 ;
4 ;
5NEWAT ; Add new IB Action Types into file #350.1
6 W !!,">>> Adding new IB Action Types into file #350.1..."
7 F IBI=1:1 S IBCR=$P($T(NAT+IBI),";;",2) Q:IBCR="QUIT" D
8 .S X=$P(IBCR,"^")
9 .I $O(^IBE(350.1,"B",X,0)) W !," >> '",X,"' is already on file..." Q
10 .K DD,DO S DIC="^IBE(350.1,",DIC(0)="" D FILE^DICN Q:Y<0
11 .S ^(0)=^IBE(350.1,+Y,0)_"^"_$P(IBCR,"^",2,11) S DIK=DIC,DA=+Y D IX1^DIK
12 .W !," >> '",$P(IBCR,"^"),"' has been filed..."
13 K DA,DIC,DIE,DR,IBI,IBCR,X,Y
14 Q
15 ;
16NAT ; Action Types to add into file #350.1
17 ;;CHAMPVA SUBSISTENCE LIMIT^CVA LIM^^^82^^^CHAMPVA LIMIT
18 ;;DG CHAMPVA PER DIEM NEW^CVA PD^^^1^^^CHAMPVA SUBSISTENCE^^^6
19 ;;DG CHAMPVA PER DIEM CANCEL^CAN CPD^^^2
20 ;;DG CHAMPVA PER DIEM UPDATE^UPD CPD^^^3
21 ;;QUIT
22 ;
23NEWAC ; Add new IB Action Charges into file #350.2
24 W !!,">>> Adding new IB Action Charges into file #350.2..."
25 F IBI=1:1 S IBCR=$P($T(NAC+IBI),";;",2) Q:IBCR="QUIT" D
26 .S X=$P(IBCR,"^"),IBF=$O(^IBE(350.2,"B",X,0))
27 .I IBF S IBT=0 D Q:IBT
28 ..S IBG=0 F S IBG=$O(^IBE(350.2,"B",X,IBG)) Q:'IBG D Q:IBT
29 ...I $P($G(^IBE(350.2,IBG,0)),"^",2)=$P(IBCR,"^",2) S IBT=1 W !," >> '",X,"' for ",$$DAT1^IBOUTL($P(IBCR,"^",2))," is already on file..." Q
30 .;
31 .K DD,DO S DIC="^IBE(350.2,",DIC(0)="" D FILE^DICN Q:Y<0
32 .S DIE=DIC,DA=+Y,DR=".02////"_$P(IBCR,"^",2)_";.04////"_$P(IBCR,"^",4) D ^DIE
33 .W !," >> '",$P(IBCR,"^"),"' has been filed..."
34 K DA,DIC,DIE,DR,IBF,IBG,IBI,IBCR,IBT,X,Y
35 Q
36 ;
37NAC ; Action Charges to add into file #350.2
38 ;;CHAMPVA SUBSISTENCE LIMIT^2911001^^25
39 ;;CHAMPVA PER DIEM^2911001^^8.95
40 ;;CHAMPVA PER DIEM^2921001^^9.30
41 ;;QUIT
42 ;
43ATAC ; Resolve pointers to #350.1 from #350.2
44 W !!,">>> Updating pointers to file #350.1 from file #350.2 ... "
45 F IBI=1:1 S IBX=$P($T(CHG+IBI),";;",2,99) Q:IBX="" D
46 .S IBATYP=$O(^IBE(350.1,"B",$P(IBX,"^",2),0))
47 .S IBJ=0 F S IBJ=$O(^IBE(350.2,"B",$P(IBX,"^"),IBJ)) Q:'IBJ D
48 ..S DIE="^IBE(350.2,",DA=IBJ,DR=".03////"_IBATYP
49 ..D ^DIE K DA,DR,DIE W "."
50 K DA,DR,DIE,IBATYP,IBI,IBJ,IBX
51 Q
52 ;
53 ;
54CHG ;Action Charge (#350.2)^Action Type (#350.1)
55 ;;CHAMPVA SUBSISTENCE LIMIT^CHAMPVA SUBSISTENCE LIMIT
56 ;;CHAMPVA PER DIEM^DG CHAMPVA PER DIEM NEW
57 ;
58 ; - others that may need to be updated
59 ;
60 ;;RX1^PSO NSC RX COPAY NEW
61 ;;RX2^PSO SC RX COPAY NEW
62 ;;RX3^PSO NSC RX COPAY CANCEL
63 ;;RX4^PSO NSC RX COPAY UPDATE
64 ;;RX5^PSO SC RX COPAY CANCEL
65 ;;RX6^PSO SC RX COPAY UPDATE
66 ;;MEDICARE 1^IB OPT MEDICARE RATE 1
67 ;;MEDICARE 2^IB OPT MEDICARE RATE 2
68 ;;MEDICARE 3^IB OPT MEDICARE RATE 3
69 ;;MEDICARE 4^IB OPT MEDICARE RATE 4
70 ;;MEDICARE 5^IB OPT MEDICARE RATE 5
71 ;;MEDICARE 6^IB OPT MEDICARE RATE 6
72 ;;MEDICARE 7^IB OPT MEDICARE RATE 7
73 ;;MEDICARE 8^IB OPT MEDICARE RATE 8
74 ;;MEDICARE 9^IB OPT MEDICARE RATE 9
75 ;;INPT PER DIEM^DG INPT PER DIEM NEW
76 ;;NHCU PER DIEM^DG NHCU PER DIEM NEW
77 ;;MEDICARE DEDUCTIBLE^MEDICARE DEDUCTIBLE
78 ;
79 ;
80ATUT ; Resolve pointers to #350.1 from #399.1
81 W !!,">>> Updating pointers to file #350.1 from file #399.1 ... "
82 F IBI=1:1 S IBX=$P($T(UTL+IBI),";;",2,99) Q:IBX="" D
83 .S IBUTL=$O(^DGCR(399.1,"B",$P(IBX,"^"),0))
84 .S IBCP=$O(^IBE(350.1,"B",$P(IBX,"^",2),0))
85 .S IBPD=$O(^IBE(350.1,"B",$P(IBX,"^",3),0))
86 .S DIE="^DGCR(399.1,",DA=IBUTL,DR=".14////"_IBCP_";.15////"_IBPD
87 .D ^DIE K DA,DR,DIE W "."
88 ;
89 ; - repoint outpatient copay pointer
90 S DA=$O(^DGCR(399.1,"B","OUTPATIENT VISIT",0))
91 S IBCP=$O(^IBE(350.1,"B","DG OPT COPAY NEW",0))
92 I DA,IBCP S DIE="^DGCR(399.1,",DR=".14////"_IBCP D ^DIE W "."
93 K DA,DR,DIE,IBI,IBX,IBUTL,IBCP,IBPD
94 Q
95 ;
96UTL ;Utility (#399.1)^Copay Action (#350.1)^Per Diem Action (#350.1)
97 ;;ALCOHOL AND DRUG TREATMENT^DG INPT COPAY (ALC) NEW^DG INPT PER DIEM NEW
98 ;;BLIND REHABILITATION^DG INPT COPAY (BLI) NEW^DG INPT PER DIEM NEW
99 ;;GENERAL MEDICAL CARE^DG INPT COPAY (MED) NEW^DG INPT PER DIEM NEW
100 ;;INTERMEDIATE CARE^DG INPT COPAY (INT) NEW^DG INPT PER DIEM NEW
101 ;;NEUROLOGY^DG INPT COPAY (NEU) NEW^DG INPT PER DIEM NEW
102 ;;NURSING HOME CARE^DG NHCU COPAY NEW^DG NHCU PER DIEM NEW
103 ;;PSYCHIATRIC CARE^DG INPT COPAY (PSY) NEW^DG INPT PER DIEM NEW
104 ;;REHABILITATION MEDICINE^DG INPT COPAY (REH) NEW^DG INPT PER DIEM NEW
105 ;;SPINAL CORD INJURY CARE^DG INPT COPAY (SPI) NEW^DG INPT PER DIEM NEW
106 ;;SURGICAL CARE^DG INPT COPAY (SUR) NEW^DG INPT PER DIEM NEW
107 ;
Note: See TracBrowser for help on using the repository browser.