| MAIN(DFN,DOC,TIME1,TIME2,OCCLIM,TEXT,.FLDS,IDX) |
This entry point is used to extract TIU documents by
document Reference Date. It differs from MAIN^TIULAPIC in that the fields
required may be passed in by reference and the resulting global array may be
indexed by a field other that the Reference Date.
|
| VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
DFN |
Input |
The IEN of the PATIENT file #2 (required)
|
DOC |
Input |
TIU document class, IEN of the TIU DOCUMENT
DEFINITION file #8925.1 (required)
|
TIME1 |
Input |
The beginning date for a range of dates to extract
TIU documents (optional, default 6666666)
|
TIME2 |
Input |
The ending date for a range of dates to extract TIU
documents (optional, default 9999999)
|
OCCLIM |
Input |
A maxixum limit of occurrences of the type of
document to extract (optional, default 999)
|
TEXT |
Input |
Boolean flag (1/0) to include or not to include
document text with the extraction (required)
|
.FLDS |
Input |
An array of fields to extract from the TIU DOCUMENT
file #8925 and passed by reference (required) Format: FLD(<field #>)=""
|
IDX |
Input |
This is a field number from the TIU DOCUMENT file
#8925 to use to create an index in the ^TMP global (optional). This field
must also be included in FLDS() array. Creates the following index in the
^TMP global:
^TMP("TIU",$J,"IDX",<IDX field data>,<inverse date>,<TIU IEN>)
This TMP index can be used to display the data in an order other than
'REFERENCE DATE'
|
|
VISIT(DFN,DOC,TIME1,TIME2,LIM,TEXT,.FLDS,IDX) |
This entry point is used to extract TIU documents by
document Visit Date. It differs from VISIT^TIULAPIC in that the fields
required may be passed in by reference and the resulting global array may be
indexed by a field other that the Visit Date.
|
| VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
DFN |
Input |
The IEN of the PATIENT file #2 (required)
|
DOC |
Input |
TIU document class, IEN of the TIU DOCUMENT
DEFINITION file #8925.1 (required)
|
TIME1 |
Input |
The beginning date for a range of dates to extract
TIU documents (optional, default 6666666)
|
TIME2 |
Input |
The ending date for a range of dates to extract TIU
documents (optional, default 9999999)
|
OCCLIM |
Input |
A maxixum limit of occurrences of the type of
document to extract (optional, default 999)
|
TEXT |
Input |
Boolean flag (1/0) to include or not to include
document text with the extraction (required)
|
.FLDS |
Input |
An array of fields to extract from the TIU DOCUMENT
file #8925 and passed by reference (required) Format: FLD(<field #>)=""
|
IDX |
Input |
This is a field number from the TIU DOCUMENT file
#8925 to use to create an index in the ^TMP global (optional). This field
must also be included in FLDS() array. Creates the following index in the
^TMP global:
^TMP("TIU",$J,"IDX",<IDX field data>,<inverse date>,<TIU IEN>)
This TMP index can be used to display the data in an order other than 'VISIT
DATE'
|
|