Ignore:
Timestamp:
Dec 4, 2009, 8:26:01 PM (14 years ago)
Author:
George Lilly
Message:

WorldVistAEHR overlayed on FOIAVistA

Location:
FOIAVistA/tag/r
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • FOIAVistA/tag/r/PAID-PRS/PRS8HRSV.m

    r628 r636  
    1 PRS8HRSV ;WCIOFO/JAH-HOLIDAY FLAG, TIME CHECKER, WK() SET; 04/05/07
    2  ;;4.0;PAID;**29,52,102,108,112**;Sep 21, 1995;Build 54
    3  ;;Per VHA Directive 2004-038, this routine should not be modified.
    4  ;  Set up variable for holiday worked or holiday excused
     1PRS8HRSV ;WCIOFO/JAH-HOLIDAY FLAG, TIME CHECKER, WK() SET; 05/02/06
     2 ;;4.0;PAID;**29,52,102,108**;Sep 21, 1995
     3 ;  Set up variable for holiday worked or holiday exused
    54 ;  Holiday worked coded 2 in DAY array
    6  ;  Holiday excused coded 1 in DAY array
     5 ;  Holiday exused coded 1 in DAY array
    76 ;  A NON holiday is coded as all zero's in day array.
    87 ;
     
    6160 I X,Y=2,$E(ENT,+Y)'="H" S X=$S(TYP'["B":0,1:9)
    6261 ;
    63  ;   IF 36/40 AWS with WP determine eligibility for OT/CT
    64  ;   Skip this check if time is HW (X=29) or OT on Hol (X=24)
    65  ;   
    66  I "KM"[$E(AC,1),$E(AC,2)=1,$P(C0,U,16)=72,X'=32,X'=29,X'=24 D
    67  . I HT>32 S X=$S(VAL="O":TOUR+15,VAL="e":7,1:X)  Q
    68  . I TH(W)>160 S X=$S(VAL="O":TOUR+19,VAL="e":7,1:X)  Q
    69  . I HT'>32,TH(W)'>160 S X=9
    70  ;
    7162 ;   If X is hours in excess of 8/day & > 40/week & type of time
    7263 ;   is compensatory time X = 0
     
    112103 ..I X'=32,$E(ENT,25),'HOLWKD D
    113104 ...S ZZ=X
    114  ...; for 36/40 AWS w/ WP or NP report OT on Holiday as (OK/OS)
    115  ...; For 9mo AWS w/ Recess report OT on Holiday as (OK/OS)
    116  ...I +NAWS,VAL["O",$E(DAY(DAY,"HOL"),M)=0 S X=24 D SET S X=0 Q
    117  ...;
    118105 ...S X=$S(TYP["P"!(TYP["I"):TOUR+28,1:24) D SET
    119106 ...I TYP["P"!(TYP["I") S X=9 D SET
     
    167154SET ; --- Set value into WK array
    168155 ;
    169  ; Nurses on the 36/40 AWS are FT with Normal Hours of 72.  Nurses on the 9 month
    170  ; AWS are PT with Normal Hours of 80.  Neither will not have Part Time Hours
    171  ; counted in their 8B string.
    172  ;
    173  Q:$E(AC,2)=1&($P(C0,U,16)=72)&(X=32)  ; 36/40 AWS
    174  Q:$E(AC,2)=2&(NH=320)&(X=32)  ; 9month AWS before any Recess processed
    175  ;
    176156 ;     Full time employee & part time hours & normal hours WK1 + WK2
    177157 ;     = biweekly normal hours.
     
    198178 I $S(VAL=4:1,"osEe"[VAL!(VAL="O"&('HOLWKD)):1,1:0) D
    199179 . Q:(HT>32)&(TH(W)<160)&(NH<320)&($E(ENT,19)=1)
    200  . Q:(HT>32)&(TH(W)<160)&(NH=320)&($E(ENT,19)=1)&($E(AC,2)=2)  ; 9month AWS
    201180 . S TH=TH+1,TH(W)=TH(W)+1
    202181 Q
Note: See TracChangeset for help on using the changeset viewer.