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

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

initial load of WorldVistAEHR

File size: 4.7 KB
Line 
1IBCNSA1 ;ALB/NLR - ANNUAL BENEFITS EDIT1 ; 27-MAY-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% G ^IBCNSA
6 ;
7EN ; -- entry point from ibcnsa
8 D OUTP,INP,MEN,HOME,REHAB,IV
9 Q
10 ;
11MEN ;
12 S START=23,OFFSET=42
13 D SET^IBCNSP(START,OFFSET+1," Mental Health Outpatient ",IORVON,IORVOFF)
14 D SET^IBCNSP(START+1,OFFSET+2,"MH Opt. Max Days/Year: "_$J($P(IBCABD2,U,14),8))
15 D SET^IBCNSP(START+2,OFFSET+3,"MH Lifetime Opt. Max: $"_$J($P(IBCABD2,U,5),7))
16 D SET^IBCNSP(START+3,OFFSET+5,"MH Annual Opt. Max: $"_$J($P(IBCABD2,U,6),7))
17 D SET^IBCNSP(START+4,OFFSET+1,"Mental Health Opt. (%): "_$J($P(IBCABD2,U,11),8)_"%")
18 ;D SET^IBCNSP(START+5,OFFSET+1,"Adult Day Health Care?: "_$J($$YN^IBCNSM($P(IBCABD2,U,17)),8))
19 ;
20 S START=23,OFFSET=2
21 D SET^IBCNSP(START,OFFSET+2," Mental Health Inpatient ",IORVON,IORVOFF)
22 D SET^IBCNSP(START+1,OFFSET,"MH Inpt. Max Days/Year: "_$J($P(IBCABD5,U,14),8))
23 D SET^IBCNSP(START+2,OFFSET+1,"MH Lifetime Inpt. Max: $"_$J($P(IBCABD5,U,5),7))
24 D SET^IBCNSP(START+3,OFFSET+3,"MH Annual Inpt. Max: $"_$J($P(IBCABD5,U,6),7))
25 D SET^IBCNSP(START+4,OFFSET-1,"Mental Health Inpt. (%): "_$J($P(IBCABD5,U,11),8)_"%")
26 Q
27 ;
28OUTP ;
29 ;
30 N OFFSET,START
31 S IBCABD2=$G(^IBA(355.4,IBCAB,2))
32 S START=15,OFFSET=3
33 D SET^IBCNSP(START,OFFSET+31," Outpatient ",IORVON,IORVOFF)
34 D SET^IBCNSP(START+1,OFFSET+4,"Annual Deductible: $"_$J($P(IBCABD2,U,1),7))
35 D SET^IBCNSP(START+2,OFFSET+1,"Per Visit Deductible: $"_$J($P(IBCABD2,U,2),7))
36 D SET^IBCNSP(START+3,OFFSET+9,"Lifetime Max: $"_$J($P(IBCABD2,U,3),7))
37 D SET^IBCNSP(START+4,OFFSET+11,"Annual Max: $"_$J($P(IBCABD2,U,4),7))
38 D SET^IBCNSP(START+5,OFFSET+12,"Visit (%): "_$J($P(IBCABD2,U,9),8)_"%")
39 D SET^IBCNSP(START+6,OFFSET+2,"Max Visits Per Year: "_$J($P(IBCABD2,U,15),8))
40 S OFFSET=46
41 D SET^IBCNSP(START+1,OFFSET+7,"Surgery (%): "_$J($P(IBCABD2,U,13),8)_"%")
42 D SET^IBCNSP(START+2,OFFSET+5,"Emergency (%): "_$J($P(IBCABD2,U,10),8)_"%")
43 D SET^IBCNSP(START+3,OFFSET+2,"Prescription (%): "_$J($P(IBCABD2,U,12),8)_"%")
44 D SET^IBCNSP(START+4,OFFSET-4,"Adult Day Health Care?: "_$J($$YN^IBCNSM($P(IBCABD2,U,17)),8))
45 D SET^IBCNSP(START+5,OFFSET+2,"Dental Cov. Type: "_$J($$EXPAND^IBTRE(355.4,2.07,$P(IBCABD2,U,7)),6))
46 G:'$P(IBCABD2,U,7) OPTQ
47 N IBX
48 S IBX=$S($P($G(IBCABD2),U,7)=1:" Dental Cov.: $",$P($G(IBCABD2),U,7)=2:" Dental Cov. (%): ",1:"Dental Coverage $ or %: ")_$J($P(IBCABD2,U,8),$S($P($G(IBCABD2),U,7)=1:7,1:8))_$S($P($G(IBCABD2),U,7)=2:"%",1:"")
49 D SET^IBCNSP(START+6,OFFSET-4,IBX)
50OPTQ Q
51INP ;
52 S IBCABD5=$G(^IBA(355.4,IBCAB,5))
53 S START=8,OFFSET=3
54 D SET^IBCNSP(START,OFFSET+32," Inpatient ",IORVON,IORVOFF)
55 D SET^IBCNSP(START+1,OFFSET+4,"Annual Deductible: $"_$J($P(IBCABD5,U),7))
56 D SET^IBCNSP(START+2,OFFSET,"Per Admis. Deductible: $"_$J($P(IBCABD5,U,2),7))
57 D SET^IBCNSP(START+3,OFFSET+3,"Inpt. Lifetime Max: $"_$J($P(IBCABD5,U,3),7))
58 D SET^IBCNSP(START+4,OFFSET+5,"Inpt. Annual Max: $"_$J($P(IBCABD5,U,4),7))
59 D SET^IBCNSP(START+5,OFFSET+5,"Room & Board (%): "_$J($P(IBCABD5,U,9),8)_"%")
60 S OFFSET=41
61 D SET^IBCNSP(START+1,OFFSET,"Drug/Alcohol Lifet. Max: $"_$J($P(IBCABD5,U,7),7))
62 D SET^IBCNSP(START+2,OFFSET,"Drug/Alcohol Annual Max: $"_$J($P(IBCABD5,U,8),7))
63 D SET^IBCNSP(START+3,OFFSET+7,"Nursing Home (%): "_$J($P(IBCABD5,U,10),8)_"%")
64 D SET^IBCNSP(START+4,OFFSET,"Other Inpt. Charges (%): "_$J($P(IBCABD5,U,12),8)_"%")
65 Q
66 ;
67HOME ;
68 ;
69 S IBCABD3=$G(^IBA(355.4,IBCAB,3))
70 S START=29,OFFSET=3
71 D SET^IBCNSP(START,OFFSET+1," Home Health Care ",IORVON,IORVOFF)
72 D SET^IBCNSP(START+1,OFFSET+8,"Care Level: "_$J($$EXPAND^IBTRE(355.4,3.01,$P(IBCABD3,U)),6))
73 D SET^IBCNSP(START+2,OFFSET+3,"Visits Per Year: "_$J($P(IBCABD3,U,2),8))
74 D SET^IBCNSP(START+3,OFFSET,"Max. Days Per Year: "_$J($P(IBCABD3,U,3),8))
75 D SET^IBCNSP(START+4,OFFSET,"Med. Equipment (%): "_$J($P(IBCABD3,U,4),8)_"%")
76 D SET^IBCNSP(START+5,OFFSET+2,"Visit Definition: "_$P(IBCABD3,U,5))
77 Q
78 ;
79REHAB ;
80 ;
81 S START=37,OFFSET=1
82 D SET^IBCNSP(START,OFFSET+4," Rehabilitation ",IORVON,IORVOFF)
83 D SET^IBCNSP(START+1,OFFSET," OT Visits/Yr: "_$J($P(IBCABD3,U,6),8))
84 D SET^IBCNSP(START+2,OFFSET," PT Visits/Yr: "_$J($P(IBCABD3,U,7),8))
85 D SET^IBCNSP(START+3,OFFSET," ST Visits/Yr: "_$J($P(IBCABD3,U,8),8))
86 D SET^IBCNSP(START+4,OFFSET,"Med Cnslg. Visits/Yr: "_$J($P(IBCABD3,U,9),8))
87 Q
88 ;
89IV ;
90 ;
91 S START=37,OFFSET=43
92 D SET^IBCNSP(START,OFFSET+1," IV Management ",IORVON,IORVOFF)
93 D SET^IBCNSP(START+1,OFFSET-1," IV Infusion Opt?: "_$J($$YN^IBCNSM($P(IBCABD4,U,6)),8))
94 D SET^IBCNSP(START+2,OFFSET-1," IV Infusion Inpt?: "_$J($$YN^IBCNSM($P(IBCABD4,U,7)),8))
95 D SET^IBCNSP(START+3,OFFSET-1," IV Antibiotics Opt?: "_$J($$YN^IBCNSM($P(IBCABD4,U,8)),8))
96 D SET^IBCNSP(START+4,OFFSET-1,"IV Antibiotics Inpt?: "_$J($$YN^IBCNSM($P(IBCABD4,U,9)),8))
97 Q
98EXIT Q
Note: See TracBrowser for help on using the repository browser.