source: WorldVistAEHR/trunk/r/ASISTS-OOPS/OOPSWCE2.m@ 846

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

initial load of WorldVistAEHR

File size: 8.4 KB
RevLine 
[613]1OOPSWCE2 ;WIOFO/LLH-Worker's Comp CA2 Edit routine ;03/23/00
2 ;;2.0;ASISTS;;Jun 03, 2002
3 ;;
4CA2 ; CA2 FORM
5 N ITEM
6 S (AIEN,AGN,ADD,CITY,STATE,ZIP)=""
7 S (PNAME,PADD,PCITY,PSTATE,PZIP,PTITLE,STAT,SIEN)=""
8 S WCPDO=""
9 W !!," Notice of Occupational Disease and Claim for Compensation (Form CA-2)"
10 W !!," Worker's Comp Edit of the Supervisor's Report"
11 W !," ----------------------------------------",!
12 D AGNINFO^OOPSUTL2
13 S DR=""
14 ; Patch 8 - added OWCP District Office
15 S WCPDO=$$GET1^DIQ(2262,"1,","2:.01","E")
16 S DR(1,2260,1)="73 OWCP DISTRICT OFFICE......//^S X=WCPDO"
17 ; Patch 11 - default chargeback code from site parameter file
18 S DR(1,2260,2)="70 OWCP CHARGEBACK CODE......//^S X=OWCP"
19 S DR(1,2260,3)="62 OWCP NOI CODE............."
20 ; Patch 8 - NOI code cannot begin with a T if CA2
21 S DR(1,2260,8)="I X,($E($$GET1^DIQ(2263.3,X,1))=""T"") W !?3,""NOI Code cannot begin with a T for a CA2."" S Y=62"
22 ; Removed, will generate from PAID file
23 ; S DR(1,2260,7)="224 9a. OCCUPATION CODE..............."
24 S DR(1,2260,9)="226 14b. TYPE CODE....................."
25 S DR(1,2260,10)="227 14c. SOURCE CODE..................."
26 S DR(1,2260,15)="230 19. AGENCY NAME...................//^S X=AGN;I X="""" S Y=""@5"""
27 S DR(1,2260,16)="I X'="""",'$$VCHAR^OOPSUTL4(X) W !,""Invalid character entered, (~,`,@,#,$,%,^,*,_,|,\,},{,[,],>, or <),"",!,""please edit."",! S Y=230"
28 S DR(1,2260,20)="231 STREET ADDRESS................//^S X=ADD"
29 S DR(1,2260,21)="I X'="""",'$$VCHAR^OOPSUTL4(X) W !,""Invalid character entered, (~,`,@,#,$,%,^,*,_,|,\,},{,[,],>, or <),"",!,""please edit."",! S Y=231"
30 S DR(1,2260,25)="232 CITY..........................//^S X=CITY"
31 S DR(1,2260,26)="I X'="""",'$$VCHAR^OOPSUTL4(X) W !,""Invalid character entered, (~,`,@,#,$,%,^,*,_,|,\,},{,[,],>, or <),"",!,""please edit."",! S Y=232"
32 S DR(1,2260,30)="233 STATE.........................//^S X=STATE"
33 S DR(1,2260,35)="234 AGENCY ZIP CODE...............//^S X=ZIP"
34 S DR(1,2260,40)="S Y=237"
35 S DR(1,2260,45)="@5"
36 S DR(1,2260,50)="231////@"
37 S DR(1,2260,55)="232////@"
38 S DR(1,2260,60)="233////@"
39 S DR(1,2260,65)="234////@"
40 S DR(1,2260,70)="237 20. EMPLOYEE'S DUTY STATION......."
41 S DR(1,2260,72)="I X'="""",'$$VCHAR^OOPSUTL4(X) W !,""Invalid character entered, (~,`,@,#,$,%,^,*,_,|,\,},{,[,],>, or <),"",!,""please edit."",! S Y=237"
42 S DR(1,2260,75)="238 STREET ADDRESS................"
43 S DR(1,2260,76)="I X'="""",'$$VCHAR^OOPSUTL4(X) W !,""Invalid character entered, (~,`,@,#,$,%,^,*,_,|,\,},{,[,],>, or <),"",!,""please edit."",! S Y=238"
44 S DR(1,2260,80)="239 CITY.........................."
45 S DR(1,2260,82)="I X'="""",'$$VCHAR^OOPSUTL4(X) W !,""Invalid character entered, (~,`,@,#,$,%,^,*,_,|,\,},{,[,],>, or <),"",!,""please edit."",! S Y=239"
46 S DR(1,2260,85)="240 STATE........................."
47 S DR(1,2260,90)="241 ZIP CODE......................"
48 S DR(1,2260,95)="W !,"" 21. REGULAR WORK HOURS:"""
49 S DR(1,2260,100)="242 FROM.........................."
50 S DR(1,2260,105)="243 TO............................"
51 S DR(1,2260,110)="S ITEM=22 W !,"" 22. REGULAR WORK SCHEDULE.........: ""_$$GET1^DIQ(2260,D0,244,""E"")"
52 S DR(1,2260,115)="K DIR S DIR(""A"")="" "",DIR(""B"")=$$GET1^DIQ(2260,D0,244,""I"") D RWS^OOPSUTL2 S:$D(DIRUT) Y=""@2"""
53 S DR(1,2260,120)="W !,"" 23. NAME AND ADDRESS OF PHYSICIAN FIRST PROVIDING MEDICAL CARE"""
54 ;Patch 7 - default physician info - if physician deleted, del oth flds
55 D PHINFO^OOPSUTL2
56 S DR(1,2260,125)="245 NAME OF PHYSICIAN.............//^S X=PNAME;I X="""" S Y=""@4"""
57 S DR(1,2260,126)="I X'="""",'$$NMCHK^OOPSUTL3(X) D NMERR^OOPSUTL3 K X S Y=245"
58 S DR(1,2260,130)="246 STREET ADDRESS................//^S X=PADD"
59 S DR(1,2260,131)="I X'="""",'$$VCHAR^OOPSUTL4(X) W !,""Invalid character entered, (~,`,@,#,$,%,^,*,_,|,\,},{,[,],>, or <),"",!,""please edit."",! S Y=246"
60 S DR(1,2260,135)="247 CITY..........................//^S X=PCITY"
61 S DR(1,2260,136)="I X'="""",'$$VCHAR^OOPSUTL4(X) W !,""Invalid character entered, (~,`,@,#,$,%,^,*,_,|,\,},{,[,],>, or <),"",!,""please edit."",! S Y=247"
62 S DR(1,2260,140)="248 STATE.........................//^S X=STATE"
63 S DR(1,2260,145)="249 ZIP CODE......................//^S X=PZIP"
64 S DR(1,2260,150)="270 PHYSICIAN TITLE...............//^S X=PTITLE"
65 S DR(1,2260,155)="S Y=250"
66 S DR(1,2260,160)="@4"
67 S DR(1,2260,165)="246////@"
68 S DR(1,2260,170)="247////@"
69 S DR(1,2260,175)="248////@"
70 S DR(1,2260,180)="249////@"
71 S DR(1,2260,181)="270////@"
72 S DR(1,2260,185)="250 24. 1ST DATE MEDICAL CARE RECEIVED"
73 S DR(1,2260,190)="I X'="""",'$$FUT^OOPSUTL4(X) S Y=250"
74 S DR(1,2260,195)="251 25. DO MEDICAL REPORTS SHOW EMPLOYEE IS DISABLED FOR WORK"
75 S DR(1,2260,200)="252 26. DATE EMPLOYEE FIRST REPORTED CONDITION TO SUPERVISOR."
76 S DR(1,2260,205)="I X'="""",'$$FUT^OOPSUTL4(X) S Y=252"
77 S DR(1,2260,210)="253 27. DATE/TIME EMPLOYEE STOPPED WORK.."
78 S DR(1,2260,215)="I X'="""",'$$FUT^OOPSUTL4($P(X,""."")) S Y=253"
79 S DR(1,2260,220)="254 28. DATE/TIME EMPLOYEE'S PAY STOPPED."
80 S DR(1,2260,225)="I X'="""",'$$FUT^OOPSUTL4($P(X,""."")) S Y=254"
81 S DR(1,2260,230)="255 29. DATE EMPLOYEE WAS LAST EXPOSED TO CONDITIONS ALLEGED TO HAVE CAUSED DISEASE OR ILLNESS..............."
82 S DR(1,2260,235)="256 30. DATE/TIME RETURNED TO WORK......."
83 S DR(1,2260,240)="I X'="""",'$$FUT^OOPSUTL4($P(X,""."")) S Y=256"
84 S DR(1,2260,245)="@3"
85 S DR(1,2260,250)="W !,"" 31. IF EMPLOYEE HAS RETURNED TO WORK AND WORK ASSIGNMENT HAS CHANGED, DESCRIBE NEW DUTIES"""
86 S DR(1,2260,255)="257 DESCRIPTION~"
87 S DR(1,2260,260)="W !"
88 S DR(1,2260,261)="S MAX=$$WP^OOPSUTL4(257)"
89 S DR(1,2260,262)="I '$P(MAX,U,2) W !,""Invalid character entered, (~,`,@ ,#,$,%,^,*,_,|,\,},{,[,],>, or <),"",!,""please edit."",! S Y=257"
90 S DR(1,2260,263)="I +MAX>MAX1 W !!,""Max length for field is "",MAX1,"" characters, you have entered "",+MAX,"". Please Edit."",! S Y=257"
91 S DR(1,2260,265)="60 32. EMPLOYEE'S RETIREMENT.........//^S X=RET;I X<3 S Y=""@6"""
92 S DR(1,2260,266)="61 OTHER RETIREMENT.............."
93 S DR(1,2260,267)="I X'="""",'$$VCHAR^OOPSUTL4(X) W !,""Invalid character entered, (~,`,@,#,$,%,^,*,_,|,\,},{,[,],>, or <),"",!,""please edit."",! S Y=61"
94 S DR(1,2260,268)="S Y=""@7"""
95 S DR(1,2260,269)="@6"
96 S DR(1,2260,270)="61////@"
97 S DR(1,2260,275)="@7"
98 S DR(1,2260,280)="258 33. WAS INJURY CAUSED BY 3RD PARTY;I X=""N"" S Y=""@1"""
99 S DR(1,2260,285)="259 34. NAME OF THIRD PARTY..........."
100 S DR(1,2260,286)="I X'="""",'$$VCHAR^OOPSUTL4(X) W !,""Invalid character entered, (~,`,@,#,$,%,^,*,_,|,\,},{,[,],>, or <),"",!,""please edit."",! S Y=259"
101 S DR(1,2260,290)="260 STREET ADDRESS................"
102 S DR(1,2260,291)="I X'="""",'$$VCHAR^OOPSUTL4(X) W !,""Invalid character entered, (~,`,@,#,$,%,^,*,_,|,\,},{,[,],>, or <),"",!,""please edit."",! S Y=260"
103 S DR(1,2260,295)="261 CITY.........................."
104 S DR(1,2260,296)="I X'="""",'$$VCHAR^OOPSUTL4(X) W !,""Invalid character entered, (~,`,@,#,$,%,^,*,_,|,\,},{,[,],>, or <),"",!,""please edit."",! S Y=261"
105 S DR(1,2260,300)="262 STATE........................."
106 S DR(1,2260,301)="263 ZIP CODE......................"
107 S DR(1,2260,302)="S Y=""@8"""
108 S DR(1,2260,303)="@1"
109 S DR(1,2260,304)="259////@"
110 S DR(1,2260,305)="260////@"
111 S DR(1,2260,306)="261////@"
112 S DR(1,2260,307)="262////@"
113 S DR(1,2260,308)="263////@"
114 S DR(1,2260,309)="@8"
115 ; Super has Signed, will not need re-signing - go to @2
116 S DR(1,2260,315)="I CASIGN S Y=""@2"""
117 S DR(1,2260,320)="S SUP=$$GET1^DIQ(200,DUZ,.01)"
118 S DR(1,2260,325)="W !!,"" Workers Comp signing for Supervisor"""
119 S DR(1,2260,330)="W !,"" Signature of Supervisor"""
120 S DR(1,2260,335)="W !,"" -----------------------------------"""
121 S DR(1,2260,340)="S ITEM=35 D EXCEPT^OOPSUTL2;264 EXCEPTION"
122 S DR(1,2260,341)="I X'="""",'$$VCHAR^OOPSUTL4(X) W !,""Invalid character entered, (~,`,@,#,$,%,^,*,_,|,\,},{,[,],>, or <),"",!,""please edit."",! S Y=264"
123 S DR(1,2260,345)="W !,"" NAME OF SUPERVISOR: ""_SUP"
124 S DR(1,2260,350)="268 SUPERVISOR'S TITLE"
125 S DR(1,2260,351)="I X'="""",'$$VCHAR^OOPSUTL4(X) W !,""Invalid character entered, (~,`,@,#,$,%,^,*,_,|,\,},{,[,],>, or <),"",!,""please edit."",! S Y=268"
126 S DR(1,2260,355)="269 OFFICE PHONE......"
127 ; Patch 8 - Phone must be 10 Numeric after stripping -
128 S DR(1,2260,356)="I $TR(X,""/-*#"","""")'?10N W !?3,""Phone number must include area code and 7 digits only. Example 703-123-8789"" S Y=269"
129 S DR(1,2260,360)="@2"
130 Q
Note: See TracBrowser for help on using the repository browser.