source: FOIAVistA/trunk/r/ASISTS-OOPS/OOPSPC21.m@ 1582

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

initial load of FOIAVistA 6/30/08 version

File size: 5.9 KB
Line 
1OOPSPC21 ;HIRMFO/YH-SUPERVISOR'S REPORT, CA1 FORM ;6/12/98
2 ;;2.0;ASISTS;;Jun 03, 2002
3 ;SUPERVISOR'S REPORT
4 S OOPSDATA=$G(^OOPS(2260,IEN,"CA1F"))
5 S OOPSTMP1=$P(OOPSDATA,"^")_" "_$P(OOPSDATA,"^",2)
6 W !,"PU1,27.4;LB"_OOPSTMP1_"#;" K OOPSTMP1
7 ; Patch 8 - agency code, 8/29/00 changed to pull from fld 70
8 W "PU17.7,27.4;LB"_$$GET1^DIQ(2260,IEN,"70:.01")_"#;"
9 S OOPSTMP1=$P(OOPSDATA,"^",3)_", "_$P($G(^DIC(5,+$P(OOPSDATA,"^",4),0)),"^")_" "_$P(OOPSDATA,"^",5)_"#;"
10 W !,"PU1,26.6;LB"_OOPSTMP1_"#;" K OOPSTMP1
11 S OOPSDATA=$G(^OOPS(2260,IEN,"CA1M"))
12 S OOPSTMP1=$P(OOPSDATA,"^")_" "_$P(OOPSDATA,"^",2)_" "_$P(OOPSDATA,"^",3)_", "_$P($G(^DIC(5,+$P(OOPSDATA,"^",4),0)),"^")_" "_$P(OOPSDATA,"^",5)_"#;"
13 W !,"PU1,25.7;LB"_OOPSTMP1_"#;" K OOPSTMP1
14 ; Patch 8 - add retirement block 19
15 S OOPSDATA=$G(^OOPS(2260,IEN,"CA"))
16 S OOPSR=$P(OOPSDATA,U,4)
17 W !,$S(OOPSR=1:"PU7.2,25.1;LBX#;",OOPSR=2:"PU9.2,25.1;LBX#",OOPSR=3:"PU11.2,25.1;LBX#;",1:"")
18 I OOPSR=3 W !,"PU1,24.8;LB"_$P(OOPSDATA,U,5)_"#;"
19 K OOPSR
20 ;
21 S OOPSDATA=$G(^OOPS(2260,IEN,"CA1F"))
22 S OOPSP=$P(OOPSDATA,"^",9),OOPSP=$S(OOPSP="MID":"12:00A",OOPSP="NOON":"12:00P",1:OOPSP)
23 I OOPSP'="" W !,"PU3,23.6;LB"_$E(OOPSP,1,2)_"#;PU3.6,23.6;LB"_$E(OOPSP,4,5)_"#;"_$S(OOPSP["A":"PU4.1,24.2;LBX#;",OOPSP["P":"PU4.1,23.7;LBX#;",1:"")
24 S OOPSP=$P(OOPSDATA,"^",10),OOPSP=$S(OOPSP="MID":"12:00A",OOPSP="NOON":"12:00P",1:OOPSP)
25 I OOPSP'="" W !,"PU6.3,23.6;LB"_$E(OOPSP,1,2)_"#;PU7,23.6;LB"_$E(OOPSP,4,5)_"#;"_$S(OOPSP["A":"PU7.4,24.2;LBX#;",OOPSP["P":"PU7.4,23.7;LBX#;",1:"")
26 I +$P(OOPSDATA,"^",11)>0 D WKSCHDUL^OOPSPUT1($P(OOPSDATA,"^",11),"11,23.6","12.3,23.6","13.6,23.6","14.9,23.6","16.2,23.6","17.7,23.6","18.8,23.6") ;WORK SCHEDULE
27 S OOPSP=$P($G(^OOPS(2260,IEN,0)),"^",5) I OOPSP'="" D WDATE^OOPSPUT1($P(OOPSP,"."),"2.4,22.6","3.4,22.6","4.4,22.6") ;DATE OF INJURY
28 S OOPSP=$P($G(^OOPS(2260,IEN,"CA1L")),"^",7) I OOPSP'="" D WDATE^OOPSPUT1(OOPSP,"7.9,22.6","8.9,22.6","9.9,22.6") ;DATE OF NOTICE RECEIVED
29 S OOPSP=$P(OOPSDATA,"^",13) I OOPSP'="" D
30 . D WDATE^OOPSPUT1($P(OOPSP,"."),"13.1,22.6","14.1,22.6","15,22.6") ;DATE STOPPED WORK
31 . D WTIME^OOPSPUT1($P(OOPSP,".",2)_"0000","17.8,23","17.8,22.5","16.8,22.5","17.4,22.5")
32 S OOPSDATA=$G(^OOPS(2260,IEN,"CA1G"))
33 S OOPSP=$P(OOPSDATA,"^") I OOPSP'="" D WDATE^OOPSPUT1(OOPSP,"2.4,21.6","3.4,21.6","4.4,21.6") ;DATE PAY STOPPED
34 S OOPSP=$P(OOPSDATA,"^",2) I OOPSP'="" D WDATE^OOPSPUT1(OOPSP,"8.4,21.6","9.3,21.6","10.3,21.6") ;45 DAY PERIOD BEGIN
35 S OOPSP=$P(OOPSDATA,"^",3) I OOPSP'="" D
36 . D WDATE^OOPSPUT1($P(OOPSP,"."),"13.4,21.6","14.4,21.6","15.4,21.6") ;DATE RETURNED TO WORK
37 . D WTIME^OOPSPUT1($P(OOPSP,".",2)_"0000","18.2,21.9","18.2,21.5","17.1,21.5","17.7,21.5")
38 S OOPSP=$P(OOPSDATA,"^",4)
39 W !,$S(OOPSP="Y":"PU7.6,21;LBX#;",OOPSP="N":"PU9,21;LBX#;",1:"") ;INJURED PERFORMING JOB
40 I OOPSP="N",$P(OOPSDATA,"^",5)'="" W !,"PU1,20;LB"_$P(OOPSDATA,"^",5)_"#;"
41 S OOPSP=$P(OOPSDATA,"^",6)
42 W !,$S(OOPSP="Y":"PU15,19.5;LBX#;",OOPSP="N":"PU19.2,19.5;LBX#;",1:"") ;INJURY CAUSED BY EMPLOYEE
43 I OOPSP="Y",$P(OOPSDATA,"^",7)'="" W !,"PU1,18.6;LB"_$P(OOPSDATA,"^",7)_"#;"
44 S OOPSP=$P(OOPSDATA,"^",8) ;INJURY CAUSED BY 3RD PARTY
45 W !,$S(OOPSP="Y":"PU1,17.3;LBX#;",OOPSP="N":"PU2.7,17.3;LBX#;",1:"")
46 I OOPSP="Y" D
47 . S OOPSDATA=$G(^OOPS(2260,IEN,"CA1H"))
48 . W !,"PU4.3,17.7;LB"_$P(OOPSDATA,"^")_"#;"
49 . W !,"PU4.3,16.8;LB"_$P(OOPSDATA,"^",2)_"#;"
50 . W !,"PU4.3,15.9;LB"_$P(OOPSDATA,"^",3)_$S(+$P(OOPSDATA,"^",4)>0:", "_$P(^DIC(5,+$P(OOPSDATA,"^",4),0),"^"),1:"")_" "_$P(OOPSDATA,"^",5)_"#;"
51 S OOPSDATA=$G(^OOPS(2260,IEN,"CA1I"))
52 W !,"PU1,15;LB"_$P(OOPSDATA,"^")_"#;" ;NAME OF PHYSICIAN
53 W !,"PU1,14.1;LB"_$P(OOPSDATA,"^",2)_"#;" ;ADDRESS OF PHYSICIAN
54 W !,"PU1,13.3;LB"_$P(OOPSDATA,"^",3)_$S(+$P(OOPSDATA,"^",4)>0:", "_$P(^DIC(5,+$P(OOPSDATA,"^",4),0),"^"),1:"")_" "_$P(OOPSDATA,"^",5)_"#;" ;CITY, STATE AND ZIP CODE
55 S OOPSP=$P(OOPSDATA,"^",6) I OOPSP'="" D WDATE^OOPSPUT1(OOPSP,"17,14.9","18,14.9","18.9,14.9")
56 S OOPSP=$P(OOPSDATA,"^",7) ;SHOW EMPLOYEE IS DISABLED FOR WORK
57 W !,$S(OOPSP="Y":"PU17.4,14.1;LBX#;",OOPSP="N":"PU18.8,14.1;LBX#;",1:"")
58 S OOPSP=$P(OOPSDATA,"^",8)
59L35 ;YOUR KNOWLEDGE AGREE WITH STATEMENTS OF EMPLOYEE AND/OR WITNESS
60 W !,$S(OOPSP="Y":"PU15.8,12.7;LBX#;",OOPSP="N":"PU17.1,12.7;LBX#;",1:"")
61 S OOPSNODE="CA1J",OOPSDIWL=1,OOPSDIWR="",OOPSDIWF="C90",OOPSBS=3
62 S OOPSSEL="W !,$S(II=1:""PU1,12.4;LB"",II=2:""PU1,12;LB"",II=3:""PU1,11.6;LB"",1:"""")_$G(^UTILITY($J,""W"",1,II,0))_""#"""
63 S OOPSAT="W !,""PU1,12.3;LBSee Attached#;"""
64 S OOPSLBL="35. Does your knowledge of the facts about this injury agree with statements of the employee and/or witness?"
65 I $D(^OOPS(2260,IEN,OOPSNODE,0)) D
66 .D WP^OOPSPCA(OOPSDIWL,OOPSDIWR,OOPSDIWF,OOPSBS,OOPSNODE,OOPSSEL,OOPSAT,OOPSLBL)
67L36 ;IF THE EMPLOYING AGENCY CONTROVERTS CONTINUATION OF PAY, STATE THE REASON
68 S OOPSNODE="CA1K",OOPSDIWL=1,OOPSDIWR="",OOPSDIWF="C65",OOPSBS=3
69 S OOPSSEL="W !,$S(II=1:""PU1,10.6;LB"",II=2:""PU1,10.2;LB"",II=3:""PU1,9.8;1LB"",1:"""")_$G(^UTILITY($J,""W"",1,II,0))_""#"""
70 S OOPSAT="W !,""PU1,10.5;LBSee Attached#;"""
71 S OOPSLBL="36. If the employing agency controverts continuation of pay, state the reason in detail."
72 I $D(^OOPS(2260,IEN,OOPSNODE,0)) D
73 .D WP^OOPSPCA(OOPSDIWL,OOPSDIWR,OOPSDIWF,OOPSBS,OOPSNODE,OOPSSEL,OOPSAT,OOPSLBL)
74 S OOPSDATA=$G(^OOPS(2260,IEN,"CA1L"))
75 ; Patch 8 - changed PAY RATE PER logic to get external value
76 S OOPSP=$$GET1^DIQ(2260,IEN,167,"E")
77 W !,"PU15.2,9.9;LB"_$P(OOPSDATA,"^")_"#;PU18.7,9.9;LB"_OOPSP_"#;" K OOPSP ;PAY RATE
78 S OOPSDATA=$G(^OOPS(2260,IEN,"CA1ES"))
79 W !,"PU1,7.1;LB"_$P($G(^OOPS(2260,IEN,"CA1L")),"^",3)_"#;"
80 S OOPSP=$P($G(^VA(200,+$P(OOPSDATA,"^",4),0)),"^")
81 W !,"PU1,6.2;LB"_OOPSP_"#;"
82 I $P(OOPSDATA,"^",5)'="" W !,"PU1,5.4;LB/ES/ "_OOPSP_"#;"
83 I $P(OOPSDATA,"^",6)'="" W !,"PU12.9,5.4;LB"_$$FMTE^XLFDT($P(OOPSDATA,"^",6),1)_"#;"
84 S OOPSDATA=$G(^OOPS(2260,IEN,"CA1L"))
85 W !,"PU1,4.7;LB"_$P(OOPSDATA,"^",4)_"#;PU12.9,4.7;LB"_$P(OOPSDATA,"^",5)_"#;"
86 S OOPSP=+$P(OOPSDATA,"^",6)
87 W !,$S(OOPSP=1:"PU4.7,4.3;LBX#;",OOPSP=2:"PU4.7,3.9;LBX#;",OOPSP=3:"PU4.7,3.5;LBX#;",OOPSP=4:"PU4.7,3.1;LBX#;",1:"")
88 Q
Note: See TracBrowser for help on using the repository browser.