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/PRS8PP.m

    r628 r636  
    1 PRS8PP ;HISC/MRL,WIRMFO/MGD-DECOMP, PREMIUM PAYS ;05/10/07
    2  ;;4.0;PAID;**22,40,75,92,96,112**;Sep 21, 1995;Build 54
    3  ;;Per VHA Directive 2004-038, this routine should not be modified.
     1PRS8PP ;HISC/MRL,WIRMFO/MGD-DECOMP, PREMIUM PAYS ;02/27/04
     2 ;;4.0;PAID;**22,40,75,92,96**;Sep 21, 1995
    43 ;
    54 ;This routine is the entry point for determining certain premium
     
    9897 . . S DAT=$G(^TMP($J,"PRS8",DAYN,2)) D  Q:FND
    9998 . . . ; loop thru tour segments in exceptions
    100  . . . F TS=1:1:7 Q:$P(DAT,U,(TS-1)*4+1)=""  D  Q:FND
     99 . . . F TS=1:1:7 Q:$P(DAT,U,(TS-1)*3+1)=""  D  Q:FND
    101100 . . . . ; check if time contained in exception segment
    102  . . . . I M1'<$P(DAT,U,(TS-1)*4+1),M1'>$P(DAT,U,(TS-1)*4+2) D
    103  . . . . . S TOT=$P(DAT,U,(TS-1)*4+3)
    104  . . . . . ; On-Call and Recess are the only types of exceptions
    105  . . . . . ; where OT, CT and RG can be posted for the same 15 minute
    106  . . . . . ; segment of time, so don't stop searching if you find these.
    107  . . . . . I TOT="ON"!(TOT="RS") S TOT="" Q
    108  . . . . . S FND=1,SC=$P(DAT,U,(TS-1)*4+4)
    109  . . . . . Q
    110  . Q:TOT="OT"&("^11^12^17^"'[(U_SC_U))  ; Pre-Scheduled & Tour Coverage & OT/CT With Premiums
    111  . Q:TOT="CT"&("^12^17^"'[(U_SC_U))     ; Tour Coverage & OT/CT With Premiums
    112  . ; Code 17 - OT/CT with premiums only get ND for 6p-6a
    113  . Q:TOT="OT"!(TOT="CT")!(TOT="RG")&(SC=17)&((M'<25)&(M'>72))
    114  . Q:TOT="RG"&(SC'=7)&(SC'=17)          ; Shift Coverage & OT/CT With Premiums
    115  . S X=10
    116  . ; for 36/40 AWS, premium time resulting from their tour
    117  . ; will be mapped to Night Differential-AWS (ND/NU) and
    118  . ; Paid at the AAC with the 1872 divisor for the hourly rate (36*52)
    119  . I +NAWS=36,("OEc"'[VAL!(TOT="HW")) S X=51
    120  . D SET
     101 . . . . I M1'<$P(DAT,U,(TS-1)*3+1),M1'>$P(DAT,U,(TS-1)*3+2) D
     102 . . . . . S FND=1,TOT=$P(DAT,U,(TS-1)*3+3),SC=$P(DAT,U,(TS-1)*3+4)
     103 . Q:TOT="OT"&("^11^12^"'[(U_SC_U))  ; Pre-Scheduled & Tour Coverage
     104 . Q:TOT="CT"&(SC'=12)               ; Tour Coverage
     105 . Q:TOT="RG"&(SC'=7)                ; Shift Coverage
     106 . S X=10 D SET
    121107 . ; keep leave count since it may need to be backed out by PRS8MSC0
    122108 . I "LSRUFGD"[VAL S WKL(WK)=WKL(WK)+1
     
    157143 . . ; grant ND (unless meal-time, etc.), keep count of leave since it
    158144 . . ;   may need to be backed out by PRS8MSC0
    159  . . I AV[$E(D,J) D
    160  . . . S X=10
    161  . . . ; For 36/46 AWS nurses ND for Holiday Worked (HA/HL) and normal
    162  . . . ; tour time will be reported as Night Differential-AWS (ND/NU)
    163  . . . I +NAWS=36 D
    164  . . . . I $E(DAY(DAY,"HOL"),J)=2 S X=51 Q  ; Holiday Worked
    165  . . . . I "OEc"'[VAL S X=51 ; Tour time
    166  . . . D SET
    167  . . . S:"LSRUFGD"[$E(D,J) WKL(WK)=WKL(WK)+1
     145 . . I AV[$E(D,J) S X=10 D SET S:"LSRUFGD"[$E(D,J) WKL(WK)=WKL(WK)+1
    168146 ;
    169147 Q
Note: See TracChangeset for help on using the changeset viewer.