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

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

initial load of FOIAVistA 6/30/08 version

File size: 1.5 KB
Line 
1IB20P394 ;DAY/RRA - DSS CLINIC STOP CODES IB*2.0*394 PRE-INIT ; 3/13/07 12:55pm
2 ;;2.0;INTEGRATED BILLING;**394**;21-MAR-94;Build 6
3 ;;Per VHA Directive 2004-038, this routine should not be modified.
4 ;
5EN ;
6 N IBEFFDT,U
7 S U="^",IBEFFDT=3080215 ;effective date FEB 15th, 2008
8 D START,ADD(IBEFFDT),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(IBEFFDT) ;
19 ;add a new code
20 N Y,IBC,IBT,IBX,IBY,IBCODE,IBTYPE,IBDES,IBOVER
21 D BMES^XPDUTL(" Adding new code 718 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=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(" "_"Stop Code 718 added to 352.5")
33 Q
34 ;
35ADD3525(IBCODE,IBEFFDT,IBTYPE,IBDES,IBOVER) ;
36 ;add a new entry
37 D BMES^XPDUTL(" "_IBCODE_" "_IBDES)
38 N IBIENS,IBFDA,IBER,IBRET
39 S IBRET=""
40 S IBIENS="+1,"
41 S IBFDA(352.5,IBIENS,.01)=IBCODE
42 S IBFDA(352.5,IBIENS,.02)=IBEFFDT
43 S IBFDA(352.5,IBIENS,.03)=IBTYPE
44 S IBFDA(352.5,IBIENS,.04)=IBDES
45 S:IBOVER IBFDA(352.5,IBIENS,.05)=1
46 D UPDATE^DIE("","IBFDA","IBRET","IBER")
47 I $D(IBER) D BMES^XPDUTL(IBER("DIERR",1,"TEXT",1))
48 Q $G(IBRET(1))
49 ;
50 ;new non-billable type data
51NCODE ;;code^billable type^description^override flag
52 ;;718^0^DIABETIC RETINAL SCREENING^1
53 ;
Note: See TracBrowser for help on using the repository browser.