ORCDFHO ;SLC/MKB-Utility functions for Outpt FH dialogs ;8/27/03 15:28
Source file <ORCDFHO.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
EN | ; -- entry action
|
|
EX | ; -- exit action
|
|
PTR(X) | ; -- Returns ptr value of prompt OR GTX X in Dialog file
|
|
OPDIETS | ; -- Get list of diets ok for outpatients
|
|
ONETIME() | ; -- Condition for SCHEDULE
|
|
TIMES | ; -- get existing outpatient meal times
|
|
ENDT | ; -- setup START
|
|
EXDT(X) | ; -- populate E/L T values from START
|
|
MEALTIME(IFN) | ; -- gets meal time for order IFN [from STARTDT^ORCSAVE2]
|
|
CKMEAL(Y,DAY,MEAL,LOC) | ; -- Returns Y if valid mealtime or not
; Y = 0^msg if invalid ; 1 if valid ; 2 if valid, but latetray will be needed ; RPC = ORCDFHO CKMEAL |
|
FMDATE(X) | ; -- Ensure X is in FM date format, return day only
|
|
FMTIME(X) | ; -- Returns FM format of time
|
|
LATETRAY | ; -- Check if latetray is needed, if so place order [from VALID^ORCSIGN]
; Expects ORIFN, ORL, ORVP ; Returns ORES(orifn;1)="" of new latetray order |
|
LTRAY | ; -- enter here w/ORDATE,ORNP,ORL [reinstated diet after dc'ing NPO]
|
|
LT1 |
Name | Line Occurrences |
---|---|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|