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

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

initial load of FOIAVistA 6/30/08 version

File size: 3.6 KB
Line 
1IBTRCD0 ;ALB/AAS - CLAIMS TRACKING - EXPAND CONTACTS SCREEN - CONT ; 02-JUL-1993
2 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
3 ;;Per VHA Directive 10-93-142, this routine should not be modified.
4 ;
5% ;
6EN D CONT,APPEAL,INS,COMM,USER
7 Q
8 ;
9CONT ; -- Contact infomation display
10 N OFFSET,START
11 S START=1,OFFSET=2
12CON1 D SET^IBCNSP(START,OFFSET," Contact Information ",IORVON,IORVOFF)
13 D SET^IBCNSP(START+1,OFFSET," Contact Date: "_$$DAT1^IBOUTL(+IBTRCD,"2P"))
14 D SET^IBCNSP(START+2,OFFSET,"Person Contacted: "_$E($P(IBTRCD,"^",6),1,20))
15 D SET^IBCNSP(START+3,OFFSET," Contact Method: "_$$EXPAND^IBTRE(356.2,.17,$P(IBTRCD,"^",17)))
16 D SET^IBCNSP(START+4,OFFSET,"Call Ref. Number: "_$E($P(IBTRCD,"^",9),1,20))
17 D SET^IBCNSP(START+5,OFFSET," Review Date: "_$$DAT1^IBOUTL($P(IBTRCD,"^",24)))
18 I '$P(IBTRCD,"^",2) D SET^IBCNSP(START+2,OFFSET,"Patient Contacted: "_$P($G(^DPT(+$P(IBTRCD,"^",5),0)),"^"))
19 Q
20 ;
21APPEAL ; -- Appeals address infomation display
22 N OFFSET,START
23 S START=15,OFFSET=2
24AP1 D SET^IBCNSP(START,OFFSET," Appeal Address Information ",IORVON,IORVOFF)
25 D SET^IBCNSP(START+1,OFFSET," Ins. Co. Name: "_$E($P($G(^DIC(36,+$P(IBTRCD,"^",8),0)),"^"),1,24))
26 N APLAD S APLAD=$G(^DIC(36,+$P(IBTRCD,"^",8),.14))
27 D SET^IBCNSP(START+2,OFFSET," Alternate Name: "_$P(APLAD,"^",7))
28 D SET^IBCNSP(START+3,OFFSET," Street line 1: "_$P(APLAD,"^",1))
29 D SET^IBCNSP(START+4,OFFSET," Street line 2: "_$P(APLAD,"^",2))
30 D SET^IBCNSP(START+5,OFFSET," Street line 3: "_$P(APLAD,"^",3))
31 D SET^IBCNSP(START+6,OFFSET," City/State/Zip: "_$P(APLAD,"^",4)_$S($P(APLAD,"^",4)]"":", ",1:"")_$P($G(^DIC(5,+$P(APLAD,"^",5),0)),"^",2)_" "_$P(APLAD,"^",6))
32 Q
33 ;
34INS ; -- Ins. Co. infomation display
35 N OFFSET,START,IBCDFND,IBPHONE
36 S START=9,OFFSET=2
37ENINS ; -- entry point, must set start and offset
38 D SET^IBCNSP(START,OFFSET+25," Insurance Policy Information ",IORVON,IORVOFF)
39 D SET^IBCNSP(START+1,OFFSET," Ins. Co. Name: "_$E($P($G(^DIC(36,+$P(IBTRCD,"^",8),0)),"^"),1,24))
40 S IBCDFND=$G(^DPT(DFN,.312,+$P(IBTRCD1,"^",5),0))
41 D SET^IBCNSP(START+2,OFFSET," Group Number: "_$$GRP^IBCNS($P(IBCDFND,"^",18)))
42 D SET^IBCNSP(START+3,OFFSET," Whose Insurance: "_$$EXPAND^IBTRE(2.312,6,$P(IBCDFND,"^",6)))
43 S IBPHONE=$G(^DIC(36,+$P(IBTRCD,"^",8),.13))
44 S IBPHONE=$S($P(IBPHONE,"^",3)'="":$P(IBPHONE,"^",3),1:$P(IBPHONE,"^"))
45 D SET^IBCNSP(START+4,OFFSET," Pre-Cert Phone: "_IBPHONE)
46 D INS1
47 Q
48INS1 ; -- second site of Ins. info
49 S OFFSET=45
50 D SET^IBCNSP(START+1,OFFSET,"Subscriber Name: "_$P(IBCDFND,"^",17))
51 D SET^IBCNSP(START+2,OFFSET," Subscriber ID: "_$P(IBCDFND,"^",2))
52 D SET^IBCNSP(START+3,OFFSET," Effective Date: "_$$DAT1^IBOUTL($P(IBCDFND,"^",8),"2P"))
53 D SET^IBCNSP(START+4,OFFSET,"Expiration Date: "_$$DAT1^IBOUTL($P(IBCDFND,"^",4),"2P"))
54 Q
55 ;
56USER ; -- display user information
57 N OFFSET,START
58 S START=15,OFFSET=45
59USER1 D SET^IBCNSP(START,OFFSET," User Information ",IORVON,IORVOFF)
60 D SET^IBCNSP(START+1,OFFSET," Entered By: "_$P($G(^VA(200,+$P(IBTRCD1,"^",2),0)),"^"))
61 D SET^IBCNSP(START+2,OFFSET," Entered On: "_$$DAT1^IBOUTL(+$P(IBTRCD1,"^"),"2P"))
62 D SET^IBCNSP(START+3,OFFSET,"Last Edited By: "_$P($G(^VA(200,+$P(IBTRCD1,"^",4),0)),"^"))
63 D SET^IBCNSP(START+4,OFFSET,"Last Edited On: "_$$DAT1^IBOUTL(+$P(IBTRCD1,"^",3),"2P"))
64 Q
65 ;
66COMM ; -- Comment display
67 N OFFSET,START,I,IBLCNT
68 S START=23,OFFSET=2
69COM1 D SET^IBCNSP(START,OFFSET," Comments ",IORVON,IORVOFF)
70 S (IBLCNT,IBI)=0 F S IBI=$O(^IBT(356.2,IBTRC,11,IBI)) Q:IBI<1 D
71 .S IBLCNT=IBLCNT+1
72 .D SET^IBCNSP(START+IBLCNT,OFFSET," "_$E($G(^IBT(356.2,IBTRC,11,IBI,0)),1,80))
73 D SC
74 Q
75 ;
76SC ; -- Service connected conditions
77 S START=START+2+IBLCNT,OFFSET=2,IBCNT=0,IBLCNT=0
78 D SC1^IBTRED01
79 Q
Note: See TracBrowser for help on using the repository browser.