LIST(SRG,SRDFN,SRSDT,SREDT,SRMAX,SRLDOC) |
Lists surgery cases for a patient with their
associated documents in TIU. This list is used to provide the tree view in
CPRS of cases and associated documents.
|
VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
SRDFN |
Input |
IEN in PATIENT file (#2)
|
SRSDT |
Used |
Beginning date of surgery cases to return
|
SREDT |
Used |
Ending date of surgery cases to return
|
SRMAX |
Used |
Maximum number of cases to return in list
|
SRLDOC |
Used |
Flag to list documents (1) or not (0) (Default is 1,
list documents)
|
SRG |
Used |
Array in which list of cases with documents will be
returned. Note: Array is killed at the beginning of the call. Calling
application is responsible for killing the array after use. If SRG is not
provided, the default is ^TMP("SRLIST",$J).
Below is the array layout for a case.
Node Piece (Delimited by ^)
---------- ---------------------------------
@SRG@(NUM1) 1 - IEN in File #130
2 - Principal Procedure
3 - Date of Operation (int)
4 - Surgeon name (int;ext)
5 - + (if documents present)
@SRG@(NUM1,NUM2) 1 - IEN in File #8925
2 - Document title
3 - Reference date/time (int)
4 - Patient name with last
initial/last 4 of PID
5 - Author (internal;external)
6 - Hospital location
7 - Signature status
8 - Visit data/time
9 - discharge date/time
10 - Variable Pointer to Request
11 - # of associated images
12 - Subject
13 - + (if has children)
14 - IEN of parent document
|
|
ONE(SRG,SROP) |
List documents associated with a single case.
|
VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
SROP |
Input |
IEN of case in SURGERY file #130
|
SRG |
Used |
Array in which list of cases documents will be
returned. Note: Array is killed at the beginning of the call. Calling
application is responsible for killing the array after use. If SRG is not
provided, the default is SRTIU.
Below is the array layout for a case.
Node Piece (Delimited by ^)
---------- ---------------------------------
@SRG@(NUM1) 1 - IEN in File #130
2 - Principal Procedure
3 - Date of Operation (int)
4 - Surgeon name (int;ext)
5 - + (if documents are present)
@SRG@(NUM1,NUM2) 1 - IEN in File #8925
2 - Document title
3 - Reference date/time (int)
4 - Patient name with last
initial/last 4 of PID
5 - Author (internal;external)
6 - Hospital location
7 - Signature status
8 - Visit data/time
9 - discharge date/time
10 - Variable Pointer to Request
11 - # of associated images
12 - Subject
13 - + (if has children)
14 - IEN of parent document
|
|
$$NON(SROP) |
Determine if case is non-OR procedure.
Returns: 0 - case is not non-OR procedure
1 - case is non-OR procedure
|
VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
SROP |
Input |
IEN of case in SURGERY file #130
|
|
$$OPTOP(SROP) |
Returns parameter value for showing Op-Top on
signature.
Returns: 0 - never display Op-Top
1 - always display Op-Top
2 - ask to display Op-Top
|
|