| CASE(RAOIFN,RARRAY) |
CASE^RAO7PC1(RAOIFN,RARRAY)
Input: RAOIFN = Internal entry number of the order requested.
RARRAY = This is the local array name in which the subscribing
package would like data returned. Returns an array subscripted
by case number(s) for non-cancelled exam(s) associated with the
order. It also returns a string in which the first piece is
the number of exam(s) linked to the order. The second piece
indicates whether or not the exam(s) are part of a printset.
Output: local_array_name(case number)=total number of exams
-or- error code^printset -or- error code text
subscripts
----------
Case Number: This is the case number of the non-cancelled exam
linked to an order. All registered exams have case numbers.
array value (in ascending order)
--------------------------------
First Piece: This can be a positive number indicating
the number of exam(s) registered for a single order. It also
may be an error code. For example, if an order is requested
for an exam set, and we register three exams, the first piece
would be a three. An error code of '-1' will exist if the
order number is invalid. An error code of '-2' will exist
if all the exams for this order are cancelled, or if we have
not registered exams for the order at the time of the data
extract.
Second Piece: If the second piece equals the string,
'PRINTSET', the exams are part of a special exam set. The
PRINTSET links all the exams of an exam set to a single report.
If the first piece is a negative number, then the second piece
defines the error code. Examples: 'cases cancelled', 'no case
registered to date' or 'invalid order ien' are valid error code
descriptors.
|