| LATEST(.RESULT,DFN,TYPE,DATES,MAX,DX) |
Returns a list of entries for Pap Smear, Mammogram or
Breast Ultrasound in reverse chronological order for the search criteria
identified in the input parameters.
Output: RESULT(0)=# of matches
RESULT(n)=IEN^DFN^DATE^TYPE^DX CATEGORY^DX Result^RAD/LAB link^STATUS
where n = A sequential number starting with 1
IEN = FILE 790.1 internal entry number
DFN = FILE 2 internal entry number
DATE = Procedure date in FileMan format
TYPE = Procedure name (from FILE 790.2)
DX Category = 'Normal', 'Abnormal' or 'Pending'
DX Result = FILE 790.31, Field .01
RAD/LAB LINK = 0 stands for no link to rad/lab package
1 stands for link to rad/lab package
STATUS = FILE 790.1 entry status. 'OPEN' or 'CLOSED'
If no matches were found, RESULT(0)=-1^error message.
Example:
D LATEST(.RESULT,94,"M","3030101^3031231",10,"*") ZW RESULT
RESULT(0)=1^
RESULT(1)=314^94^3030321^MAMMOGRAM SCREENING^Normal^Negative^1^OPEN
|
| VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
.RESULT |
Both |
Array name for return values. (Required)
|
DFN |
Input |
Patient DFN. (Required)
|
TYPE |
Input |
A set of codes where "P" stands for Pap Smear, "M"
for Mammogram or "U" for Breast Ultrasound. (Required)
|
DATES |
Input |
A date range in FileMan internal format separated by
an uparrow (e.g., 3020101^3021231). (Optional).
If this value is not defined, the API will use the past three years as the
date range.
|
MAX |
Input |
The maximum number of entries to return. (Optional)
The default value is 10.
|
DX |
Input |
A set of codes that identify a category of results
where "N" stands for Normal, "A" stands for Abnormal, "P" stands for Pending
and "*" stands for everything. (Optional)
The default is "*". It returns entries that are marked as "Unsatisfactory for
DX" as well as Normal, Abnormal and Pending.
"P" returns entries that are marked as Unsatisfactory for DX as well as
Pending.
|
|