RESULTS |
Both |
Input: The global ^TMP array in which to return
results. (Required)
Output: Passed by Reference
Global array returned in the FM DIQ call
format:
|
MDARDFN |
Input |
The patient DFN (Required).
|
MDSDT |
Input |
The start date of the date range to return the data
in. This must be in FM internal format. (Required).
|
MDEDT |
Input |
The end date of the date range to return the data in.
This must be in FM internal format. (Required).
|
MDFLDS |
Input |
A list of fields from file #691.5 to be returned in
RESULTS. MDFLDS should contain a list of fields delimited by ";" (Required).
example: MDFLDS=".01;11;20..."
Example API call:
S RESULTS="^TMP(""NAMESPACE"",$J)" D
GET^MDAPI1(.RESULTS,162,2900101,3021001,
".01;11")
return:
^TMP("NAMESPACE",$J,file #,record ien_","
,field #,"E")=Data
^TMP("NAMESPACE",$J,subfile #,entry #_","_
record ien field of the multiple,"E")=data
^TMP("NAMESPACE",$J,0) will equal one of the
following,
If the call failed:
-1^No Patient DFN.
-1^No Start Date Range
-1^No End Date Range.
-1^Start Date greater than End Date.
-1^No fields defined.
If a local variable is defined in RESULTS,
^TMP("MDAPI",$J,0) equals
-1^Global TMP array only.
If no return array defined, ^TMP("MDAPI",$J,0) equals
-1^No return array global.
If no data, ^TMP("NAMESPACE",$J,0) equals
-1^No data for patient.
|