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

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

initial load of FOIAVistA 6/30/08 version

File size: 3.4 KB
Line 
1IB20P351 ;ALB/CXW-FY07 DSS CLINIC STOP CODES IB*2.0*351 POST INIT ;25-SEP-06
2 ;;2.0;INTEGRATED BILLING;**351**;21-MAR-94;Build 4
3 ;;Per VHA Directive 2004-038, this routine should not be modified.
4 ;
5POST ;
6 N IBEFFDT,U
7 S U="^",IBEFFDT=3061001 ;effective date OCT 1st, 2006
8 D START,ADD(IBEFFDT),UPDATE(IBEFFDT),FINISH
9 Q
10 ;
11START D BMES^XPDUTL("FY07 DSS Clinic Stop Codes, Post-Install Starting")
12 Q
13 ;
14FINISH D BMES^XPDUTL("FY07 DSS Clinic Stop Codes, Post-Install Complete")
15 Q
16 ;
17 ;
18ADD(IBEFFDT) ;
19 ;add a new code
20 N Y,IBC,IBT,IBX,IBY,IBCODE,IBTYPE,IBDES,IBOVER
21 D BMES^XPDUTL(" Adding new codes to file 352.5")
22 S IBC=0
23 F IBX=1:1 S IBT=$P($T(NCODE+IBX),";",3) Q:'$L(IBT) D
24 . S IBCODE=+$P(IBT,U)
25 . S IBY=$S(IBCODE=372:3041001,IBCODE=373:3041001,1:IBEFFDT)
26 . I $D(^IBE(352.5,"AEFFDT",IBCODE,-IBY)) D Q
27 . . D BMES^XPDUTL(" Duplication of stop code "_IBCODE)
28 . S IBTYPE=$P(IBT,U,2)
29 . S IBDES=$E($P(IBT,U,3),1,30)
30 . S IBOVER=$P(IBT,U,4)
31 . S Y=+$$ADD3525(IBCODE,IBY,IBTYPE,IBDES,IBOVER) S:Y>0 IBC=IBC+1
32 D BMES^XPDUTL(" "_IBC_$S(IBC<2:" entry",1:" entries")_" added to 352.5")
33 Q
34 ;
35UPDATE(IBEFFDT) ;
36 ;update an old code
37 N Y,IB1,IBC,IBT,IBX,IBCODE,IBMSG,IBTYPE,IBDES,IBOVER,IBLSTDT
38 S (IBC,IBMSG(1),IBMSG(2),IBMSG(3))=0
39 F IBX=1:1 S IBT=$P($T(OCODE+IBX),";",3) Q:'$L(IBT) D
40 . S IBCODE=+$P(IBT,U)
41 . I $D(^IBE(352.5,"AEFFDT",IBCODE,-IBEFFDT)) 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 . I $P(IBT,U,2) D
52 . . I 'IBMSG(1) D BMES^XPDUTL(" Updating billable type in file 352.5") S IBMSG(1)=1
53 . I $P(IBT,U,3)'="" D
54 . . I 'IBMSG(2),$P(IBT,U,3)'="" D BMES^XPDUTL(" Updating description in file 352.5") S IBMSG(2)=1
55 . I '$P(IBT,U,2),$P(IBT,U,3)="" D
56 . . I 'IBMSG(3) D BMES^XPDUTL(" Updating effective date in file 352.5") S IBMSG(3)=1
57 . S Y=+$$ADD3525(IBCODE,IBEFFDT,IBTYPE,IBDES,IBOVER) S:Y>0 IBC=IBC+1
58 D BMES^XPDUTL(" "_IBC_$S(IBC<2:" update",1:" updates")_" added to file 352.5")
59 Q
60 ;
61ADD3525(IBCODE,IBEFFDT,IBTYPE,IBDES,IBOVER) ;
62 ;add a new entry
63 D BMES^XPDUTL(" "_IBCODE_" "_IBDES)
64 N IBIENS,IBFDA,IBER,IBRET
65 S IBRET=""
66 S IBIENS="+1,"
67 S IBFDA(352.5,IBIENS,.01)=IBCODE
68 S IBFDA(352.5,IBIENS,.02)=IBEFFDT
69 S IBFDA(352.5,IBIENS,.03)=IBTYPE
70 S IBFDA(352.5,IBIENS,.04)=IBDES
71 S:IBOVER IBFDA(352.5,IBIENS,.05)=1
72 D UPDATE^DIE("","IBFDA","IBRET","IBER")
73 I $D(IBER) D BMES^XPDUTL(IBER("DIERR",1,"TEXT",1))
74 Q $G(IBRET(1))
75 ;
76 ;new codes
77NCODE ;;code^billable type^description^override flag
78 ;;372^1^MOVE PROGRAM INDIVIDUAL
79 ;;373^1^MOVE PROGRAM GROUP
80 ;;159^1^COMPLEMENTARY ALTERNATIVE THERAPIES
81 ;;182^0^TELEPHONE CASE MANAGEMENT^1
82 ;;310301^0^TRANSRECTAL ULTRASOUND F-U IND^1
83 ;;394301^0^TRANSRECTAL ULTRASOUND F-U GRP^1
84 ;;571^0^RETURN VET OUTREACH ED/CARE-IND^1
85 ;;572^0^RETURN VET OUTREACH ED/CARE-GRP^1
86 ;;582^1^PSYC/SOC REHAB/RECOV CENTR-IND
87 ;;583^1^PSYC/SOC REHAB/RECOV CENTR-GRP
88 ;;584^0^TELEPHONE PSYC/SOC REHAB/RECOVERY^1
89 ;;643^0^SEND-OUT PROCEDURES - RADIOLOGY^1
90 ;;697^0^CHART CONSULT
91 ;
92 ;codes update
93OCODE ;;code^billable type^description^override flag
94 ;;142^1^^0
95 ;;640
96 ;;641
97 ;;642
98 ;;656
99 ;;670
100 ;;704^^FEMALE GENDER SPECIFIC CANCER SCREENING
101 ;
Note: See TracBrowser for help on using the repository browser.