| DFN |
Input |
Internal entry number (IEN) of the patient's entry in
the PATIENT file (#2).
|
TYPE |
Input |
The context in which the list of orders are displayed
by the caller. Possible values are:
P - Pregnant context
L - Lactation context
Certain orders are only considered unsafe if a patient is lactating while
other orders are only considered unsafe while the patient is pregnant.
|
CACHE |
Input |
Boolean flag indicating whether to store a copy of
the returned text in nodes descendant from ^TMP("WVPTOCACHE",$J,TYPE) and
populate the TMP("WVGETORDERS",$J,TYPE) output variable; the value 1 will
store a copy as well as populate the variable and the value 0 will not store a
copy as well as not populate the variable. TYPE is the value of the input
variable TYPE.
|
$$GETORDRS |
Output |
The node address where the output is stored preceded
with the characters
"~@".
|
TMP GLOBAL |
Output |
^TMP("WVPTO",$J,LINE,0)=TEXT
LINE: line number of text; starts at one
and increments by one
TEXT: a line of text to display to the user
The following globals are only created when the CACHE input variable is set to
a value of one: ^TMP("WVGETORDERS",$J,TYPE)=N
TYPE: value of the input variable TYPE.
N: the number of unsafe orders found
^TMP("WVPTOCACHE",$J,TYPE,LINE,0)=TEXT
This is a copy of the text stored in the node
address returned by $$GETORDRS.
TYPE: value of the input variable TYPE.
LINE: line number of text; starts at one
and increments by one
TEXT: a line of text to display to the user
|