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.
|
MCARDFN |
Input |
The Patient DFN (Required).
|
MCSDT |
Input |
The start date of the date range to return the data
in. This must be in FM internal format. (Required)
|
MCEDT |
Input |
The end date of the date range to return the data in.
This must be in FM internal format. (Required)
|
MCFLDS |
Input |
A list of fields from file #691.5 to be returned in
RESULTS. MCFLDS should contain a list of fields delimited by ";" (Required)
example: MCFLDS=".01;11;20..."
Example API call:
S RESULTS="^TMP(""NAMESPACE"",$J)" D
GET^MCARAPI(.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
RESULTS(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.
-1^Global TMP array only.
If no return array defined,^TMP("MCAPI",$J,0)
equals
-1^No return array global.
If no data, RESULTS(0) equals
-1^No data for patient.
|