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

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

initial load of WorldVistAEHR

File size: 3.9 KB
Line 
1IB20P378 ;DAY/RRA - DSS CLINIC STOP CODES IB*2.0*378 PRE-INIT ; 3/13/07 12:55pm
2 ;;2.0;INTEGRATED BILLING;**378**;21-MAR-94;Build 6
3 ;;Per VHA Directive 10-93-142, this routine should not be modified.
4 ;
5EN ;
6 N IBEFFDT,U
7 S U="^"
8 D START,ADD,UPDATE,FINISH
9 Q
10 ;
11START D BMES^XPDUTL("DSS Clinic Stop Codes, Post-Install Starting")
12 Q
13 ;
14FINISH D BMES^XPDUTL("DSS Clinic Stop Codes, Post-Install Complete")
15 Q
16 ;
17 ;
18ADD ;add a new code
19 N Y,IBC,IBT,IBX,IBY,IBCODE,IBTYPE,IBDES,IBOVER
20 D BMES^XPDUTL(" Adding new codes to file 352.5")
21 S IBC=0
22 F IBX=1:1 S IBT=$P($T(NCODE+IBX),";",3) Q:'$L(IBT) D
23 . S IBCODE=+$P(IBT,U)
24 . S IBTYPE=$P(IBT,U,2)
25 . S IBDES=$E($P(IBT,U,3),1,30)
26 . S IBOVER=$P(IBT,U,4)
27 . S IBY=$P(IBT,U,5)
28 . I $D(^IBE(352.5,"AEFFDT",IBCODE,-IBY)) D Q
29 . . D BMES^XPDUTL(" Duplication of stop code "_IBCODE)
30 . S Y=+$$ADD3525(IBCODE,IBY,IBTYPE,IBDES,IBOVER) S:Y>0 IBC=IBC+1
31 D BMES^XPDUTL(" "_IBC_$S(IBC<2:" entry",1:" entries")_" added to 352.5")
32 Q
33 ;
34UPDATE ;update an old code
35 N Y,IB1,IBC,IBT,IBX,IBCODE,IBMSG,IBTYPE,IBDES,IBOVER,IBLSTDT
36 S (IBC,IBMSG(1),IBMSG(2),IBMSG(3))=0
37 D BMES^XPDUTL(" Updating Stop Code entries in file 352.5")
38 F IBX=1:1 S IBT=$P($T(OCODE+IBX),";",3) Q:'$L(IBT) D
39 . S IBCODE=+$P(IBT,U)
40 . S IBY=$P(IBT,U,5)
41 . I $D(^IBE(352.5,"AEFFDT",IBCODE,-IBY)) D Q
42 . . D BMES^XPDUTL(" Duplication of stop code "_IBCODE)
43 . S IBLSTDT=$O(^IBE(352.5,"AEFFDT",IBCODE,-9999999))
44 . I +IBLSTDT=0 D Q
45 . . D BMES^XPDUTL(" Code "_IBCODE_" not found in file 352.5")
46 . S IB1=$O(^IBE(352.5,"AEFFDT",IBCODE,IBLSTDT,0))
47 . S IB1=$G(^IBE(352.5,IB1,0))
48 . S IBTYPE=$S($P(IBT,U,2)'="":$P(IBT,U,2),1:$P(IB1,U,3))
49 . S IBDES=$S($P(IBT,U,3)'="":$E($P(IBT,U,3),1,30),1:$P(IB1,U,4))
50 . S IBOVER=$S($P(IBT,U,4)'="":$P(IBT,U,4),1:$P(IB1,U,5))
51 . S Y=+$$ADD3525(IBCODE,IBY,IBTYPE,IBDES,IBOVER) S:Y>0 IBC=IBC+1
52 D BMES^XPDUTL(" "_IBC_$S(IBC<2:" update",1:" updates")_" added to file 352.5")
53 Q
54 ;
55ADD3525(IBCODE,IBEFFDT,IBTYPE,IBDES,IBOVER) ;
56 ;add a new entry
57 D BMES^XPDUTL(" "_IBCODE_" "_IBDES)
58 N IBIENS,IBFDA,IBER,IBRET
59 S IBRET=""
60 S IBIENS="+1,"
61 S IBFDA(352.5,IBIENS,.01)=IBCODE
62 S IBFDA(352.5,IBIENS,.02)=IBEFFDT
63 S IBFDA(352.5,IBIENS,.03)=IBTYPE
64 S IBFDA(352.5,IBIENS,.04)=IBDES
65 S:IBOVER IBFDA(352.5,IBIENS,.05)=1
66 D UPDATE^DIE("","IBFDA","IBRET","IBER")
67 I $D(IBER) D BMES^XPDUTL(IBER("DIERR",1,"TEXT",1))
68 Q $G(IBRET(1))
69 ;
70 ;new non-billable type data
71NCODE ;;code^billable type^description^override flag
72 ;;184^0^CARE/CASE MANAGER^^3071001
73 ;;185^0^PHYSICIAN EXTENDER (NP)^^3021001
74 ;;186^0^PHYSICIAN EXTENDER (PA)^^3021001
75 ;;187^0^PHYSICIAN EXTENDER (CNS)^^3021001
76 ;;188^0^PHYSICIAN RESIDENT^^3021001
77 ;;337^2^HEPATOLOGY CLINIC^^3071001
78 ;;349^2^SLEEP MEDICINE^^3071001
79 ;;434^2^NON-OR ANESTHESIA PROC^^3071001
80 ;;534^1^MENTAL HEALTH INTEGRATED CARE^^3071001
81 ;;591^0^INCARCERATED VETERANS RE-ENTRY^1^3071001
82 ;;476^0^LOCAL CREDIT PAIR^^3021001
83 ;;477^0^LOCAL CREDIT PAIR^^3021001
84 ;;482^0^LOCAL CREDIT PAIR^^3021001
85 ;;484^0^LOCAL CREDIT PAIR^^3021001
86 ;;485^0^LOCAL CREDIT PAIR^^3021001
87 ;
88 ;codes update
89OCODE ;;code^billable type^description^override flag
90 ;;116^1^^^3071001
91 ;;119^0^^^3071001
92 ;;179^1^^^3071001
93 ;;211^^AMPUTATION FOLLOW-UP CLINIC^^3071001
94 ;;309^2^^^3071001
95 ;;331^1^^^3071001
96 ;;371^^^1^3071001
97 ;;432^1^^^3071001
98 ;;454^^LOCAL CREDIT PAIR^^3041001
99 ;;456^^LOCAL CREDIT PAIR^^3041001
100 ;;459^^LOCAL CREDIT PAIR^^3041001
101 ;;460^^LOCAL CREDIT PAIR^^3041001
102 ;;461^^LOCAL CREDIT PAIR^^3041001
103 ;;479^^LOCAL CREDIT PAIR^^3071001
104 ;;519^^SUBSTANCE USE DISORDER/PTSD TM^^3071001
105 ;;525^1^^^3071001
106 ;;550^^MENTAL HEALTH CLINIC (GROUP)^^3071001
107 ;;552^^MH INTENSIVE CASE MGMT (MHICM)^^3071001
108 ;;602^^ASSISTED HEMODIALYSIS^^3071001
109 ;;606^^CONT AMB PERIT DIALYSIS (CAPD)^^3071001
110 ;;607^^LMTD SELF CARE CONT AMB PERT^^3071001
111 ;;710^^^0^3071001
112 ;;351^1^HOSPICE AND PALLITIVE CARE^^3071001
113 ;;610^1^^^3071001
114 ;;692^^^0^3071001
115 ;;693^^^0^3071001
116 ;;695^^^0^3071001
117 ;;696^^^0^3071001
118 ;;697^^^1^3071001
119 ;
Note: See TracBrowser for help on using the repository browser.