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

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

initial load of WorldVistAEHR

File size: 3.6 KB
Line 
1IB20PT5 ;ALB/CPM - IB V2.0 POST-INIT ONE-TIME ITEMS ; 03-SEP-93
2 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
3 ;
4 ; Perform various one-time post-init items
5 D ACHG ; kill any dangling nodes in the IB ACTION TYPE file
6 D DEF ; enter the default billing form, if necessary
7 D STAT ; populate the IB ACTION STATUS (#350.21) file
8 D BASC ; update the BASC start date to 10/1/99
9 D PSO ; update eligibility logic for PSO SC RX COPAY NEW (#350.1)
10 D CRES ; update the cancellation reason MT CHARGE EDITED (#350.3)
11 D CCMG ; update the central collection mailgroup
12 D FT ; update form type file
13 D ABP ; set auto biller parameters
14 D ^IB20PT51 ; keep going...
15 Q
16 ;
17 ;
18ACHG ; Clean up any IB ACTION CHARGE (#350.2) nodes left hanging.
19 W !!,">>> Cleaning up dangling nodes in the IB ACTION CHARGE (#350.2) file..."
20 S I=0 F S I=$O(^IBE(350.2,I)) Q:'I I '$D(^(I,0)) K ^IBE(350.2,I)
21 Q
22 ;
23DEF ; Enter default billing form type.
24 W !!,">>> Initializing the DEFAULT FORM TYPE, if necessary..."
25 I '$P($G(^IBE(350.9,1,1)),U,26) S DA=1,DIE="^IBE(350.9,",DR="1.26////1" D ^DIE K DA,DIE,DR
26 Q
27 ;
28BASC ; Update the BASC start date to 10/1/99.
29 W !!,">>> Updating the BASC start date to 10/1/99..."
30 S $P(^IBE(350.9,1,1),"^",24)=2991001
31 Q
32 ;
33STAT ; Set new entries into the IB ACTION STATUS (#350.21) file.
34 W !!,">>> Populating the IB ACTION (#350.21) file... "
35 K ^IBE(350.21)
36 S ^IBE(350.21,0)="IB ACTION STATUS^350.21^99^12"
37 S ^IBE(350.21,1,0)="INCOMPLETE^INCOMPLETE^INC^0^0^0"
38 S ^IBE(350.21,2,0)="COMPLETE^PENDING A/R^PEND^0^0^0"
39 S ^IBE(350.21,3,0)="BILLED^BILLED^BILL^1^0^0"
40 S ^IBE(350.21,4,0)="UPDATED^UPDATED^UPD^1^0^0"
41 S ^IBE(350.21,8,0)="ON HOLD^ON HOLD (INS)^INS^0^0^1"
42 S ^IBE(350.21,9,0)="ERROR ENCOUNTERED^ERROR^ERR^0^1^0"
43 S ^IBE(350.21,10,0)="CANCELLED^CANCELLED^CANC^1^1^0"
44 S ^IBE(350.21,11,0)="CO-PAY EXEMPTION CANCELLATION^CANCELLED (EXEMPTED)^EXEMPTED^1^1^0"
45 S ^IBE(350.21,20,0)="HOLD - RATE^ON HOLD (RATE)^RATE^0^0^1"
46 S ^IBE(350.21,99,0)="CONVERTED RECORD^CONVERTED RECORD^CONV^0^0^0"
47 S DIK="^IBE(350.21," D IXALL^DIK K DIK
48 Q
49 ;
50CCMG ; Update the central collection mailgroup in file #350.9
51 W !!,">>> Updating the central collection mailgroup to G.MCCR DATA@FORUM.VA.GOV ..."
52 S IBX="G.MCCR DATA@FORUM.VA.GOV"
53 S DA=1,DIE="^IBE(350.9,",DR="4.05///^S X=IBX" D ^DIE K DA,DR,DIE,IBX
54 Q
55 ;
56CRES ; Update the cancellation reason MT CHARGE EDITED in file #350.3
57 W !!,">>> Updating the cancellation reason MT CHARGE EDITED in file #350.3 ..."
58 S DA=$O(^IBE(350.3,"B","MT CHARGE EDITED",0))
59 I DA S DIE="^IBE(350.3,",DR=".03////2" D ^DIE K DIE,DR,DA
60 Q
61 ;
62FT ; Update called routine for form type HCFA 1500
63 W !!,">>> Updating the Form Types in #353..."
64 S IBFT="HCFA 1500" S IBFTI=$O(^IBE(353,"B",IBFT,0)) I +IBFTI S DIE="^IBE(353,",DA=IBFTI,DR="1.01////EN^IBCF2" D ^DIE K DIE,DR,DA
65 ;K DD,DO S DIC="^IBE(353,",DIC(0)="L",X="UB-92",DIC("DR")="1.01////EN^IBCF3" D FILE^DICN K DIC,X
66 K IBFT,IBFTI
67 Q
68 ;
69PSO ; Update the eligibility logic for PSO SC RX COPAY NEW
70 W !!,">>> Updating the Eligibility logic for SC veterans for Pharmacy copay..."
71 S IBNEWSC=$P($T(NEWCODE),";;",2,99)
72 S IBX="PSO SC RX COPAY NEW",IBDA=+$O(^IBE(350.1,"B",IBX,0))
73 S ^IBE(350.1,IBDA,40)=IBNEWSC
74 K IBDA,IBNEWSC,IBX
75 Q
76 ;
77NEWCODE ;;S X=0,X1="",X2="" G:'$D(VAEL) 1^IBAERR I VAEL(4),+VAEL(3),'IBDOM S X=$S($P(VAEL(3),"^",2)<50:2,1:0) I X S:$$RXEXMT^IBARXEU0(DFN,DT) X=0 I X S X2=$P(^IBE(350.1,DA,0),"^",4) D COST^IBAUTL
78 ;
79 ;
80ABP ; Set auto biller parameters.
81 Q:'$G(IBAUTOBP)
82 W !!,">>> Initializing the AUTO BILLER PARAMETERS ..."
83 S DA=1,DIE="^IBE(350.9,",DR="7.01////7;7.02////"_DT D ^DIE K DA,DIE,DR
84 S DA=1,DIE="^IBE(356.6,",DR=".04////1;.06////2" D ^DIE K DA,DIE,DR
85 Q
Note: See TracBrowser for help on using the repository browser.