PRSPESR2 ;WOIFO/JAH - PTP ESR Edit-Calls from ScreenMan Form ;07/28/05
Source file <PRSPESR2.m>
action | A | extended action | Ea | event driver | Ed | subscriber | Su | protocol | O | limited protocol | LP | run routine | RR | broker | B | edit | E | server | Se | P | screenman | SM | inquire | I |
Name | Comments | DBIA/ICR reference |
---|---|---|
ELAPSE(MEAL,START,STOP) | ; CALCULATE THE HOURS BETWEEN 2 TIMES
|
|
FIVE(TIME) | ;ENSURE ELAPSE IS A FIVE CHAR STRING--04:15 OR 02:00
|
|
TWENTY4(TIME) | ;CONVERT TIME TO TWENTY FOUR HOUR TIME
|
|
MEALESS(HHMM,MEAL) | ;Remove meal time from hours total
; (subtract a 15 minute increment from length of time ; in hh:mm format, i.e. hh:mm - mm |
|
MEALIN | ;convert 15 minute meal to a digit
|
|
MEALOUT | ; convert meal digit to minutes
|
|
VALIDTT | ; Set DDSERROR if not a valid type of time.
|
|
VALIDLV(SSCH,SPST) | ; Set DDSERROR if any posting is outside the
; tour time segements inappropriately |
|
MARRAY(MARRAY,SEGS) | ; BUILD MINUTE ARRAY
; INPUT : SEGS--tour of duty segments in global format ; OUTPUT: MARRAY--array by reference of tour segments in minutes ; from midnight format ; EXAMPLE: ; 2 segment tour will look like the following: ; MARRAY(945,1)=1140^03:45P^07:00P ; MARRAY(1140,6)=1305^07:00P^09:45P ; MARRAY(1320,11)=1380^10:00P^11:00P |
|
PSTML(ROW) | ; AUTO POST MEAL TIME
; if the time segment row that we are on in a form covers ; the tour then post a meal. ; ROW - is passed as the ; Z is in the form of NODE 5 in the 458.02 day mult ; it changes with edits on the form ; like Z=09:00A^NOON^RG^^30^NOON^08:00P^RG^^^08:00P^MID^CU^15 |
|
OVEREAT(ROW) | ; Display warning on POST ACTION ON CHANGE for the
; meal field on the form if lunch more than allotted for tour |
|
BURP(PRSN5) | ; return ESR WORK NODE with no blank pieces
; PRSN5--esr work node $G(^PRST(458,PPI,"E",PRSIEN,"D",PRSD,5) ; if there's only a meal with a zero then skip that too. |
Name | Line Occurrences |
---|---|
Function Call: WRITE |
|
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^PRST(457.1 - [#457.1] | PSTML+30 |
^PRST(458 - [#458] | VALIDTT+10, VALIDTT+11 |
Name | Line Occurrences |
---|---|
$$FIVE | ELAPSE+22, MEALESS+20 |
$$MEALESS | ELAPSE+21 |
$$TWENTY4 | ELAPSE+6, ELAPSE+8 |
MARRAY | VALIDLV+10, PSTML+32, PSTML+33 |
MEALIN | MEALESS+13, MEALESS+14 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
ANY | MARRAY+12~, MARRAY+13*, MARRAY+14, MARRAY+17*, MARRAY+18 |
BASE | PSTML+8~, PSTML+11*, PSTML+13, PSTML+15, PSTML+18, PSTML+26, PSTML+47, OVEREAT+2~, OVEREAT+5*, OVEREAT+7 , OVEREAT+14 |
>> DA | PSTML+20, PSTML+45 |
>> DDSERROR | VALIDTT+7*, VALIDTT+10*, VALIDTT+13*, OVEREAT+9* |
DECR | MEALESS+4~, MEALESS+14*, MEALESS+16 |
>> DIE | PSTML+20, PSTML+45 |
DT | ELAPSE+11, ELAPSE+13, ELAPSE+14, VALIDTT+11 |
DY2 | PSTML+24~, PSTML+31* |
ELAPSE | ELAPSE+3~, ELAPSE+4*, ELAPSE+5, ELAPSE+15*, ELAPSE+17*, ELAPSE+20*, ELAPSE+21*, ELAPSE+22*, ELAPSE+23 |
FIVE | FIVE+1~, FIVE+8*, FIVE+9 |
FLDNUM | PSTML+8~, PSTML+15*, PSTML+20, PSTML+45 |
HH | FIVE+1~, FIVE+3*, FIVE+4*, FIVE+8, MEALESS+9*, MEALESS+17*, MEALESS+20 |
HHMM | MEALESS~, MEALESS+5, MEALESS+7, MEALESS+9 |
I | MEALESS+4~, MEALESS+16*, VALIDLV+6~, VALIDLV+7*, VALIDLV+11*, VALIDLV+12, VALIDLV+13, MARRAY+12~, MARRAY+14*, MARRAY+17 , MARRAY+19, MARRAY+22, BURP+5~, BURP+7*, BURP+8 |
I2 | VALIDLV+6~, VALIDLV+12*, VALIDLV+13 |
J | VALIDLV+6~, VALIDLV+15*, VALIDLV+16*, VALIDLV+17 |
K | OVEREAT+2~, OVEREAT+15* |
LV | VALIDLV+6~, VALIDLV+7*, VALIDLV+11, VALIDLV+14*, VALIDLV+20 |
MARRAY | MARRAY~ |
MARRAY( | MARRAY+22* |
MEAL | ELAPSE~, ELAPSE+21, MEALESS~, MEALESS+7, MEALESS+14 |
MM | FIVE+1~, FIVE+3*, FIVE+5*, FIVE+6*, FIVE+7*, FIVE+8, MEALESS+5*, MEALESS+7, MEALESS+13, MEALESS+19* , MEALESS+20 |
MSA | VALIDLV+6~, VALIDLV+10 |
MSA( | VALIDLV+16, VALIDLV+17 |
MTOT | OVEREAT+2~, OVEREAT+13*, OVEREAT+15*, OVEREAT+16 |
OBJ | MEALESS+4~, MEALESS+13*, MEALESS+15*, MEALESS+17, MEALESS+18*, MEALESS+19 |
OK | VALIDLV+6~, VALIDLV+7*, VALIDLV+11, VALIDLV+14*, VALIDLV+16, VALIDLV+18*, VALIDLV+20 |
P1 | VALIDLV+6~, VALIDLV+12*, VALIDLV+18, PSTML+24~, PSTML+36*, PSTML+37, PSTML+38, PSTML+44 |
P2 | VALIDLV+6~, VALIDLV+12*, VALIDLV+18, PSTML+24~, PSTML+38*, PSTML+39, PSTML+44 |
POST | PSTML+24~, PSTML+32 |
POST( | PSTML+38 |
POST(0 | PSTML+36 |
>> PPI | VALIDTT+5, VALIDTT+10, VALIDTT+11 |
>> PRSD | VALIDTT+5, VALIDTT+10, VALIDTT+11 |
>> PRSIEN | VALIDTT+5, VALIDTT+10 |
>> PRSML | PSTML+9, PSTML+20, PSTML+45, PSTML+47, OVEREAT+16 |
>> PRSML2 | OVEREAT+16 |
>> PRSN1 | PSTML+19, PSTML+27, PSTML+33 |
PRSN5 | BURP~, BURP+8 |
PRSZ | OVEREAT+2~, OVEREAT+14*, OVEREAT+15 |
RNG | PSTML+8~ |
ROW | PSTML~, PSTML+11, OVEREAT~, OVEREAT+4, OVEREAT+5 |
S1 | VALIDLV+6~, VALIDLV+17*, VALIDLV+18, PSTML+24~, PSTML+40*, PSTML+41, PSTML+42, PSTML+44 |
S2 | VALIDLV+6~, VALIDLV+17*, VALIDLV+18, PSTML+24~, PSTML+42*, PSTML+44 |
SCH | PSTML+24~, PSTML+33 |
SCH( | PSTML+42 |
SCH(0 | PSTML+40 |
SCHED | PSTML+24~, PSTML+27* |
SEGS | MARRAY~, MARRAY+17, MARRAY+19, MARRAY+22 |
SN | BURP+5~, BURP+6*, BURP+11*, BURP+12 |
SPST | VALIDLV~ |
SPST( | VALIDLV+11, VALIDLV+12, VALIDLV+13 |
SSCH | VALIDLV~, VALIDLV+10 |
ST2SP | PSTML+8~, PSTML+18*, PSTML+19, PSTML+26*, PSTML+32 |
START | ELAPSE~, ELAPSE+5, ELAPSE+6*, ELAPSE+10, ELAPSE+14*, ELAPSE+15 |
STOP | ELAPSE~, ELAPSE+5, ELAPSE+8*, ELAPSE+10, ELAPSE+11*, ELAPSE+13*, ELAPSE+15 |
STR | OVEREAT+2~, OVEREAT+10*, OVEREAT+11*, OVEREAT+12, OVEREAT+17*, OVEREAT+18 |
TIME | FIVE~, FIVE+2, FIVE+3, FIVE+6, TWENTY4~, TWENTY4+4, TWENTY4+5, TWENTY4+7, TWENTY4+8 |
>> TOD | PSTML+30 |
TSEG | BURP+5~, BURP+8*, BURP+10, BURP+11 |
TWO | PSTML+24~, PSTML+30*, PSTML+31 |
U | VALIDTT+6, VALIDTT+9, VALIDTT+11, VALIDTT+12, VALIDLV+12, VALIDLV+13, VALIDLV+17, MARRAY+17, MARRAY+19, MARRAY+20 , MARRAY+22, PSTML+13, PSTML+18, PSTML+19, PSTML+26, PSTML+27, PSTML+30, PSTML+33, PSTML+38, PSTML+42 , PSTML+47, OVEREAT+7, OVEREAT+14, OVEREAT+15, BURP+8 |
VALIDLV | VALIDLV+6~, VALIDLV+8*, VALIDLV+20*, VALIDLV+21 |
WORK | OVEREAT+2~, OVEREAT+7*, OVEREAT+8 |
X | MEALESS+4~, MEALESS+13*, MEALESS+14*, MEALIN+1*, MEALIN+2, MEALIN+3*, MEALIN+5!, VALIDTT+5, VALIDTT+6, VALIDTT+9 , VALIDTT+12, MARRAY+12~, MARRAY+19*, OVEREAT+4, OVEREAT+7, OVEREAT+11, OVEREAT+14 |
Y | TWENTY4+3*, TWENTY4+5*, TWENTY4+7*, TWENTY4+9*, TWENTY4+14*, TWENTY4+15*, TWENTY4+16, MEALESS+4~, MEALOUT+1*, MARRAY+12~ , MARRAY+20 |
>> Z | PSTML+13, PSTML+18, PSTML+26, PSTML+47*, OVEREAT+4, OVEREAT+7, OVEREAT+14 |
Z1 | MARRAY+12~, MARRAY+20*, MARRAY+22 |
Z2 | MARRAY+12~, MARRAY+20*, MARRAY+22 |