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

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

initial load of FOIAVistA 6/30/08 version

File size: 4.0 KB
Line 
1IBCF2P ;ALB/ARH - PRINT HCFA 1500 12-90 FORM ; 17-JUL-93
2 ;;2.0;INTEGRATED BILLING;**8,52,133**;21-MAR-94
3 ;;Per VHA Directive 10-93-142, this routine should not be modified.
4 ;
5PRINT ; print the form, IBFLD required
6 S IBADDM=+$P($G(^IBE(350.9,1,1)),U,27),IBPAGE=1
7 F IBI=1:1:6 W !,?IBADDM,$G(IBFLD(0,IBI)) ;mailing address
8LINE8 ; insured's ID number
9 W !!,?49,$E(IBFLD("1A"),1,28)
10LINE10 ; patient name, DOB, sex; insured's name ("SAME" if patient)
11 W !!,$E(IBFLD(2),1,28),?30,IBFLD("3D"),?($S(IBFLD("3X")="M":41,1:46)),"X",?49,$E(IBFLD(4),1,28)
12LINE12 ; patient's address (street); pt. rel to ins.; insured's address
13 W !!,$E(IBFLD(5,1),1,28),?($S(+IBFLD(6)=1:32,+IBFLD(6)=2:37,+IBFLD(6)=3:41,1:46)),"X",?49,$E(IBFLD(7),1,28)
14LINE14 ; patient addr city, state code, marital status; insured's city, state
15 W !!,$E(IBFLD(5,2),1,24),?25,IBFLD("5S"),?($S(IBFLD("8M")="S":34,IBFLD("8M")="M":40,1:46)),"X",?49
16LINE16 ; patient zip code, phone; patient employment status; insured's zip code, phone
17 W !!,$E(IBFLD(5,3),1,12),?14,IBFLD("5T"),?34,$S(IBFLD("8E")="E":"X",1:""),?49
18LINE18 ; other insured's name; insured's policy group
19 W !!,$E(IBFLD(9),1,28),?49,$E(IBFLD(11),1,28)
20LINE20 ; other insured's policy number; condition related to employment?; insured's date of birth and sex
21 W !!,$E(IBFLD("9A"),1,28),?($S(+IBFLD("10A"):34,1:40)),"X"
22 W ?53,IBFLD("11AD") I IBFLD("11AX")'="" W ?($S(IBFLD("11AX")="M":67,1:74)),"X"
23LINE22 ; other insured's DOB, sex; patient auto accident & place; insured's employer
24 W !!,?1,IBFLD("9BD") I IBFLD("9BX")'="" W ?($S(IBFLD("9BX")="M":17,1:23)),"X"
25 W ?($S(+IBFLD("10B"):34,1:40)),"X",?44,IBFLD("10BS"),?49,$E(IBFLD("11B"),1,28)
26LINE24 ; other insured's employer; patient other accident; insured's insurance plan name
27 W !!,$E(IBFLD("9C"),1,28),?($S(+IBFLD("10C"):34,1:40)),"X",?49,$E(IBFLD("11C"),1,28)
28LINE26 ; other insured's plan name; is there another benefit plan
29 W !!,$E(IBFLD("9D"),1,28),?($S(+IBFLD("11D"):51,1:56)),"X"
30LINE29 ; patient's signature; insured's signature (use PL 99-272, SECTION 1729 TITLE 38)
31 W !!!,?3,IBFLD(12),?56,IBFLD(13)
32LINE32 ; date of current illness; date of similar illness; dates unable to work
33 W !!!,?1,IBFLD(14),?36,IBFLD(15),?53,IBFLD("16A"),?67,IBFLD("16B")
34LINE34 ; name of referring physician; ID# referring physician; hospitalization dates related to services
35 W !!,?53,IBFLD("18A"),?67,IBFLD("18B")
36LINE35 ; "not for SC" note line 1
37 W !,?14,$E(IBFLD(19),1,31)_"-"
38LINE36 ; "not for SC" note line 2; outside lab (now defaults to "no" in IBEHCFA)
39 W !,$E(IBFLD(19),32,999),?56,"X"
40LINE38 ; diagnosis codes 1 and 2; field 22 (MEDICAID) left blank
41 W !!,?2,IBFLD(21,1),?30,IBFLD(21,3)
42LINE40 ; diagnosis codes 3 and 4; field 23 (prior authorization #)
43 W !!,?2,IBFLD(21,2),?30,IBFLD(21,4),?49,IBFLD(23)
44LINE44 ;lines 44,46,48,50,52,54 all the same
45 W !! S IBI=+$P(IBFLD(24),U,2) F IBJ=1:1:6 S IBI=IBI+1 D
46 . W ! I $D(IBFLD(24,IBI_"A")) W ?25,$E(IBFLD(24,IBI_"A"),1,15)
47 . W ! I $D(IBFLD(24,IBI)) D S IBFLD(24)=IBFLD(24)-1
48 .. W $P(IBFLD(24,IBI),U,1),?9,$P(IBFLD(24,IBI),U,2),?18,$P(IBFLD(24,IBI),U,3),?21,$P(IBFLD(24,IBI),U,4),?25,$E($P(IBFLD(24,IBI),U,5),1,15)
49 .. I $P(IBFLD(24,IBI),U,9) W ?32,$P($$MOD^ICPTMOD(+$P(IBFLD(24,IBI),U,9),"I",DT),U,2)
50 .. W ?41,$P(IBFLD(24,IBI),U,6),?48,$S(+$P(IBFLD(24,IBI),U,7):$J($P(IBFLD(24,IBI),U,7),9,2),1:""),?57,$J($P(IBFLD(24,IBI),U,8),3)
51 S $P(IBFLD(24),U,2)=IBI
52 ;
53LINE56 W !!,IBFLD(25),?18,"X",?22,IBFLD(26),?49,$J(IBFLD(28),10,2)
54 W:IBFLD(29) ?62,$J(IBFLD(29),7,2),?71,$J(IBFLD(30),7,2)
55LINE58 W !!,?22,$E(IBFLD(32,1),1,26),?49,$E(IBFLD(33,1),1,26)
56LINE69 W !,$E(IBFLD(31),1,21),?22,$E(IBFLD(32,2),1,26),?49,$E(IBFLD(33,2),1,26)
57LINE60 W !,$E(IBFLD(31),22,42)
58 W ?22,$E(IBFLD(32,3),1,(26-2-$L(IBFLD(32,"X")))) I IBFLD(32,"X")'="" W ", "_IBFLD(32,"X")
59 W ?49,$E(IBFLD(33,3),1,(26-2-$L(IBFLD(33,"X")))) I IBFLD(33,"X")'="" W ", "_IBFLD(33,"X")
60LINE61 W !,$E(IBFLD(31),43,63),?49,IBFLD(33,4)
61 ;
62 I +IBFLD(24)>0 D G LINE38 ;multiple pages
63 . S IBPAGE=IBPAGE+1
64 . W @IOF,!,?IBADDM,"PAGE ",IBPAGE,!!!!!!!,?49,IBFLD("1A"),!!,IBFLD(2)
65 . F IBI=1:1:26 W !
66 ;
67END K IBADDM,IBPAGE
68 Q
Note: See TracBrowser for help on using the repository browser.