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

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

initial load of WorldVistAEHR

File size: 2.0 KB
Line 
1IB20P306 ;ALB/CXW-FY05 DSS CLINIC STOP CODES IB*2.0*306 POST INIT ;10-MAY-05
2 ;;2.0;INTEGRATED BILLING;**306**;21-MAR-94
3 ;;Per VHA Directive 10-93-142, this routine should not be modified.
4 ;
5POST ;
6 D MES^XPDUTL("Now adding entries of NON-BILLABLE type codes to file 352.5")
7 I $$PATCH^XPDUTL("IB*2.0*306") D BMES^XPDUTL(" Skipping since the patch was previously installed.") Q
8 N IBEFFDT,U
9 S U="^",IBEFFDT=3050502 ;effective date MAY 2, 2005
10 D START,FNONB(IBEFFDT),FINISH
11 Q
12 ;
13START D MES^XPDUTL("")
14 D MES^XPDUTL("FY05 DSS Clinic Stop Codes, Post-Install Starting")
15 Q
16 ;
17FINISH ;
18 D MES^XPDUTL("")
19 D MES^XPDUTL("FY05 DSS Clinic Stop Codes, Post-Install Complete")
20 Q
21 ;
22FNONB(IBEFFDT) ;
23 ;update billable type (add a new entry with new type if code exists)
24 ;
25 N Y,IBC,IB1,IBT,IBX,IBCODE,IBDES,IBOVER,IBLSTDT
26 S IBC=0
27 F IBX=1:1 S IBT=$P($T(BTYPE+IBX),";",3) Q:'$L(IBT) D
28 . S IBCODE=+$P(IBT,"^",1)
29 . I $D(^IBE(352.5,"AEFFDT",IBCODE,-IBEFFDT)) D Q
30 . . D BMES^XPDUTL(" Duplication of non-billable type code "_IBCODE)
31 . S IBLSTDT=$O(^IBE(352.5,"AEFFDT",IBCODE,-9999999))
32 . I +IBLSTDT=0 D Q
33 . . D BMES^XPDUTL(" Code "_IBCODE_" not found for non-billable update")
34 . S IB1=$O(^IBE(352.5,"AEFFDT",IBCODE,IBLSTDT,0))
35 . S IBDES=$P($G(^IBE(352.5,IB1,0)),U,4)
36 . S IBOVER=+$P($G(^IBE(352.5,IB1,0)),U,5)
37 . S Y=+$$ADD3525(IBCODE,IBEFFDT,$P(IBT,U,2),IBDES,IBOVER) S:Y>0 IBC=IBC+1
38 D MES^XPDUTL("")
39 D MES^XPDUTL(IBC_$S('IBC:" entry has ",1:" entries have ")_"been added to file 352.5.")
40 Q
41 ;
42 ;add a new entry
43ADD3525(IBCODE,IBEFFDT,IBTYPE,IBDES,IBOVER) ;
44 D BMES^XPDUTL(" Non-billable type code "_IBCODE)
45 N IBIENS,IBFDA,IBER,IBRET
46 S IBRET=""
47 S IBIENS="+1,"
48 S IBFDA(352.5,IBIENS,.01)=IBCODE
49 S IBFDA(352.5,IBIENS,.02)=IBEFFDT
50 S IBFDA(352.5,IBIENS,.03)=IBTYPE
51 S IBFDA(352.5,IBIENS,.04)=IBDES
52 S:IBOVER IBFDA(352.5,IBIENS,.05)=1
53 D UPDATE^DIE("","IBFDA","IBRET","IBER")
54 I $D(IBER) D BMES^XPDUTL(IBER("DIERR",1,"TEXT",1))
55 Q $G(IBRET(1))
56 ;
57 ;;billable type data
58BTYPE ;;code^non-billable type
59 ;;533707^0
60 ;;566707^0
61 ;;707^0
62 ;;
63 ;
Note: See TracBrowser for help on using the repository browser.