Changeset 636 for FOIAVistA/tag/r/PAID-PRS/PRS8SU.m
- Timestamp:
- Dec 4, 2009, 8:26:01 PM (14 years ago)
- Location:
- FOIAVistA/tag/r
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
FOIAVistA/tag/r/PAID-PRS/PRS8SU.m
r628 r636 1 PRS8SU ;HISC/MRL-DECOMPOSITION, SET-UP ;02/20/08 2 ;;4.0;PAID;**112,116**;Sep 21, 1995;Build 23 3 ;;Per VHA Directive 2004-038, this routine should not be modified. 1 PRS8SU ;HISC/MRL-DECOMPOSITION, SET-UP ;7/15/93 10:40 2 ;;4.0;PAID;;Sep 21, 1995 4 3 ; 5 4 ;This routine sets up various data elements required to process … … 8 7 ;holiday information, etc. All times are converted to 15-minute 9 8 ;increments in this routine (the number of 15-minute increments 10 ;into the day). Additionally, the credit tour for WG9 ;into the day). Additionally, the credity tour for WG 11 10 ;employees is determined in this routine. 12 11 ; … … 36 35 ....S FLAG=1 I N=2&(K1=1)&("^HW^"[("^"_$P(Z,"^",K+2)_"^")) S FLAG=$S(NDAY=1!(LAST>96)&("^HW^"[("^"_$P(Z,"^",K+2)_"^"))&((X["A")!(X["MID")):0,1:1),NDAY=0 37 36 ....S:$P(D(0),"^",14)'=""&(X="MID")&(LAST=96)&(N=2)&(K1=1) FLAG=0 S:N=2&(K1=1)&(FLAG=1) (NDAY,LAST)=0 S Y=K1-1 D 15 38 ....I N=2,"^RG^OT^CT^ON^SB^ "'[("^"_$P(Z,"^",K+2)_"^") D37 ....I N=2,"^RG^OT^CT^ON^SB^HW^"'[("^"_$P(Z,"^",K+2)_"^") D 39 38 .....S Y=+$O(DADRFM("S",(-X-.01))),Y1=+$O(DADRFM("F",(X-.01))) 40 39 .....I $G(DADRFM("S",Y))'=$G(DADRFM("F",Y1)) S X=X+96 … … 63 62 .S X="HOL" D SET ;save holiday string 64 63 .S X="P" D SET ;premium node 65 .S X="r" D SET ;Recess node66 64 .S X=D(0),OFF=0 I $P(X,"^",2)=1 S OFF=1 ;day off 67 65 .S Z=OFF,X="OFF" D SET … … 81 79 I TYP["B" S NH=320,(NH(1),NH(2))=160,TH=192,(TH(1),TH(2))=96 ; Baylor NH=40 hrs to mimic full time, TH = 24 hrs for reality 82 80 E S TH=NH,TH(1)=NH(1),TH(2)=NH(2) ;total hrs for pp 83 ;84 ; Update NH for the nurses on the 36/40 AWS85 I "KM"[$E(AC,1),$E(AC,2)=1,NH=288 S NH=320,(NH(1),NH(2))=160,TH=320,(TH(1),TH(2))=16086 ;87 81 I TYP["W",L>1 S $P(WK(3),"^",3)=L ;last tour (IN) in misc for WG 88 82 S VALOLD=$G(^PRST(458,+PY,"E",+DFN,5)) ;existing decomp … … 93 87 ; 94 88 ; Need to conditionally set Y $S(Y=0 mid=00:00, y=1: mid=24:00) 95 ; based on whether exception is within or outside thetour.89 ; based on whether exception is within or outsided tour. 96 90 D MIL^PRSATIM ;convert to military (24hr) time 97 91 I +Y<1000 S Y=$E("0000",0,4-$L(Y))_Y
Note:
See TracChangeset
for help on using the changeset viewer.