Print Page as PDF
Calls to LR7OGO ICR (2947)

Calls to LR7OGO    ICR (2947)

Name Value
NUMBER 2947
IA # 2947
DATE CREATED 1999/10/29
CUSTODIAL PACKAGE LAB SERVICE
CUSTODIAL ISC Dallas
USAGE Controlled Subscription
TYPE Routine
DBIC APPROVAL STATUS APPROVED
ROUTINE ORWLRR
NAME Calls to LR7OGO
GENERAL DESCRIPTION
This DBIA documents calls to routine LR7OGO.
STATUS Active
DURATION Till Otherwise Agreed
ID ORWLRR
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
ALLTESTS(.ARRAY,FROM,DIRECTION)
Returns 45 test names beginning with the value FROM
in either forward or reverse alphabetical order.
VARIABLES TYPE VARIABLES DESCRIPTION
ARRAY Both
Passed in as the name of an array and returned with
the lab test names.
FROM Input
Starting point for loop through LABORATORY TEST file
by name.
DIRECTION Input
-1 for reverse order or "" for forward order
ATESTS(.ARRAY,IEN)
Returns an array of lab tests included in a panel.
VARIABLES TYPE VARIABLES DESCRIPTION
ARRAY Both
Input as name of array and receives array of panels
for test specified.
IEN Input
IEN of the LABORATORY TEST file (#60).
ATG(.ARRAY,TESTGROUP,USER)
Returns an array of chemistry tests in a group for a
particular user.
VARIABLES TYPE VARIABLES DESCRIPTION
USER Input
Pointer to NEW PERSON file (#200).
TESTGROUP Input
Value of LAB TEST GROUP field from LAB SECTION PRINT
file (69.2)
ATOMICS(.ARRAY,FROM,DIR)
Returns an array of atomic lab tests (tests without
panels).
VARIABLES TYPE VARIABLES DESCRIPTION
ARRAY Both
see description for ALLTESTS
FROM Input
see description in ALLTESTS
DIR Input
See description in ALLTESTS
CHEMTEST(.ARRAY,FROM,DIR)
Returns an array of test names from the CHEM, HEM,
TOX, SER, RIA, ETC.  areas of lab.
VARIABLES TYPE VARIABLES DESCRIPTION
ARRAY Both
See description under ALLTESTS.
FROM Input
See description under ALLTESTS.
DIR Input
See description under ALLTESTS.
PARAM(.VALUE)
Returns the Laboratory Site parameters found in the
LABORATORY SITE (#69.9) file at the global location ^LAB(69.9,1,1).
VARIABLES TYPE VARIABLES DESCRIPTION
VALUE Output
1 node from LABORATORY SITE file currently defined
as:

^LAB(69.9,D0,1)= (#100) DEFAULT BLOOD SPECIMEN [1P] ^ (#101) DEFAULT URINE
SPECIMEN [2P] ^ (#102) DEFAULT SERUM SPECIMEN [3P] ^
==>(#103) DEFAULT PLASMA SPECIMEN [4P] ^ (#104) DEFAULT UNKNOWN
SPECIMEN [5P] ^  ^ (#210) DOWNLOAD FULL DATA [7S] ^
==>(#530) STANDARD LOCATIONS ONLY [8S] ^ (#18) *GRACE PERIOD FOR
STATISTICS [9N] ^ (#203) MICRO DEFAULT TEMPLATE
==>[10F] ^ (#204) MICRO OTHER TEMPLATE [11F] ^
SPEC(.ARRAY,FROM,DIR)
Returns an array of lab specimens from the TOPOGRAPHY
FIELD (#61) file in the format IEN^NAME.
VARIABLES TYPE VARIABLES DESCRIPTION
ARRAY Both
Passed in as the name of the array to receive data.
Data returned as ARRAY(COUNTER)=IEN^NAME
FROM Input
Starting name for search.  A maximum of 45 entries
are returned at a time.
DIR Input
See ALLTESTS for description of this variable.
TG(.ARRAY,USER)
Returns a list of chemistry test groups associated
with a user with the print names (or name if print name is not available) of
the lab tests in the panel separated by commas.  So, output would look like:
ARRAY(COUNT)=TESTGROUP IEN^TESTGROUP) PRINT NAME, PRINT NAME

Or actual example:
ARRAY(1)=1^1) WBC, RBC, HCT, HB, PLT
VARIABLES TYPE VARIABLES DESCRIPTION
ARRAY Both
See description under ALLTESTS
USER Input
IEN of NEW PERSON file (#200)
USERS(.ARRAY,FROM,DIR)
Loops through the NEW PERSON file an returns up to 18
users that have chemistry LAB TEST GROUPS defined.

Format ARRAY(COUNT)=IEN^USERNAME

Where IEN is the IEN of the USER REQUEST LIST multiple in the LAB SECTION
PRINT file (#69.2).
VARIABLES TYPE VARIABLES DESCRIPTION
ARRAY Both
See description under ALLTESTS
FROM Input
Name of NEW PERSON from which to begin search.
DIR Input
See description under ALLTESTS
UTGA(.Y,TESTS)
Places entries in the USER REQUEST LIST multiple of
the LAB SECTION PRINT file (#69.2).
VARIABLES TYPE VARIABLES DESCRIPTION
Y Input
Placeholder for RPC usage
TESTS Input
Array of data to be filed in USER REQUEST LIST
multiple
UTGD(.Y,TESTGROUP)
Deletes data from the USER REQUEST LIST multiple for
a specified TEST GROUP.
VARIABLES TYPE VARIABLES DESCRIPTION
Y Input
Placeholder for RPC usage
TESTGROUP Input
IEN of LAB TEST GROUP multiple of LAB SECTION PRINT
file (#69.2)
UTGR(.Y,TESTS,TESTGROUP)
Updates TEST multiple under LAB TEST GROUP multiple
in file 69.2.
VARIABLES TYPE VARIABLES DESCRIPTION
TESTS Input
Array of tests to be entered into TESTS subfield of
LAB TEST GROUP multiple.
TESTGROUP Input
IEN of TEST GROUP multiple for which TEST entries
will be replaced.
SUBSCRIBING PACKAGE
SUBSCRIBING PACKAGE ISC SUBSCRIBING DETAILS
ORDER ENTRY/RESULTS REPORTING Salt Lake City
Routine ORWLRR makes calls to the following linetags in
LR7OGO:
ALLTESTS
ATESTS
ATG
ATOMICS
CHEMTEST
PARAM
SPEC
TG
USERS
UTGA
UTGD
UTGR

The matching linetags in ORWLRR are called by RPCs for use in CPRS GUI.
CLINICAL CASE REGISTRIES