Print Page as PDF
POTENTIAL UNSAFE ORDERS LIST ICR (6337)

POTENTIAL UNSAFE ORDERS LIST    ICR (6337)

Name Value
NUMBER 6337
IA # 6337
DATE CREATED 2015/12/21
CUSTODIAL PACKAGE WOMEN'S HEALTH
USAGE Controlled Subscription
TYPE Routine
DBIC APPROVAL STATUS APPROVED
ROUTINE WVRPCPT1
NAME POTENTIAL UNSAFE ORDERS LIST
GENERAL DESCRIPTION
This integration agreement allows subscribing packages
to retrieve a list of potentially unsafe orders in a user friendly format.
This list is displayed when changing the patient's pregnancy status to
pregnant or lactation status to lactating.
STATUS Active
KEYWORDS
  • Potential Teratogenic Orders
  • Potential Unsafe Orders
  • TIU Object
DURATION Till Otherwise Agreed
ID WVRPCPT1
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
$$GETORDRS(DFN,TYPE,CACHE)
This line tag returns a list of potentially unsafe
orders. Depending on the value of the TYPE parameter, it assumes the patient
is either pregnant or lactating.
VARIABLES TYPE VARIABLES DESCRIPTION
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
SUBSCRIBING PACKAGE
SUBSCRIBING PACKAGE SUBSCRIBING DETAILS
TEXT INTEGRATION UTILITIES
Text Integration Utilities will display the list within
an object.
CLINICAL REMINDERS
Clinical Reminders will reference the number of unsafe
orders returned.
DATE ACTIVATED 2017/11/17