| RESULT |
Input |
The subscript in the ^TMP global under which to
return data or error messages. This value is required.
|
WVDFN |
Input |
Internal entry number (IEN) of the patient in the WV
PATIENT file (#790). This value is required.
|
WVTYPE |
Input |
The type of data to return. Valid values include:
"P" for pregnancy data
"L" for lactation data
This value is required.
|
WVSDATE |
Input |
For date/time-based data, return data entered on or
after this date. The value must be in FileMan internal date/time format and is
optional.
|
WVEDATE |
Input |
For date/time-based data, return data entered on or
before this date. The value must be in FileMan internal date/time format and
is optional.
|
WVMAX |
Input |
The maximum number of entries to return. This value
is optional.
|
WVDIR |
Input |
The date/time order in which to return entries. Valid
values include:
1 for chronological order
-1 for reverse chronological order.
This value is optional and if undefined, data is returned in reverse
chronological order.
|
WVDT |
Input |
The date to use as today's date. The value must be in
internal FileMan date/time format and is optional. If undefined, the value
stored in the DT system variable is used.
|
TMP(RESULT,$J) |
Output |
The global node in which data is returned.
Format:
^TMP(RESULT,$J)=Caret-delimited string
RESULT - the value in the RESULT input variable
Caret-delimited string - status of the call to
GETDATA
PIECE VALUE
=======================
1 -1 to denote an error occurred
>-1 to denote the number of entries
returned
2 ERROR MESSAGE if an error occurred
"" if no error occurred
^TMP(RESULT,$J,N,"FIELD NAME")=Caret-delimited
string
RESULT - the value in the RESULT input variable
N - the entry number; starts at one and
increments by one
"FIELD NAME" - the name of the field from which
the data comes
Caret-delimited string - the returned data
PIECE VALUE
=======================
1 Internal format
2 External format
NOTE: Two pseudo-fields are returned whose
value is not caret-delimited like the
other "FIELD NAME" subscripts. These
fields are:
"RECORD ID": FileMan IENS for record N
"VISIT STRING": Semi-colon delimited
string of values from
the VISIT file (#9000010)
in internal format:
"HOSPITAL LOCATION (#.22) ;
VISIT/ADMIT DATE&TIME (#.01) ;
ENCOUNTER TYPE (#15003)"
|