VistA Analysis » VistA Reference » RPCs » MAGG IMAGE STATISTICS

MAGG IMAGE STATISTICS

The MAGG IMAGE STATISTICS remote procedure queries the image file(s) and returns various statistics/summary data. Currently, 2 queries are implemented: Counts of images captured in the provided date range grouped by the image status codes. Counts of images captured in the provided date range grouped by users and image status codes.

Properties

Property Value
Label IMGQUERY
MUMPS Implementation MAGGA03
Return Type GLOBAL ARRAY

Input Parameters

Name Type Maximum Data Length Required Description
FLAGS LITERAL   true Flags that control the execution (can be combined): C Capture date range. If this flag is provided, then the remote procedure uses values of the FROMDATE and TODATE parameters to select images that were captured in this date range (see the DATE/TIME IMAGE SAVED field (7) and the "AD" cross-reference). Otherwise, values of those parameters are treated as the date range when procedures were performed (see the PROCEDURE/EXAM DATE/TIME field (15) and cross-references "APDTPX" and "APDT"). D Include only deleted images (file #2005.1) E Include only existing images (file #2005) S Return image counts grouped by status U Return image counts grouped by users and status If neither 'E' nor 'D' flag is provided, then an error code (-6) isreturned. If neither 'S' nor 'U' flag is provided, then an error code (-6) isreturned.
FROMDATE LITERAL     Beginning of the date range for image selection. Dates can be in internalor external FileMan format. If the parameter is not defined or empty, thenthe date range remains open on this side. Depending on the value of the FLAGS parameter, the date range filter isapplied either to the exam/procedure dates (PROCEDURE/EXAM DATE/TIME field(15)) or image capture dates (DATE/TIME IMAGE SAVED field (7)). Time parts of date range parameters are ignored and both ends of the daterange are included in the search. For example, in order to search imagesfor May 21, 2008, the internal value of both parameters should be 3080521.
TODATE LITERAL     End of the date range for image selection. Dates can be in internal orexternal FileMan format. If the parameter is not defined or empty, thenthe date range remains open on this side. Depending on the value of the FLAGS parameter, the date range filter isapplied either to the exam/procedure dates (PROCEDURE/EXAM DATE/TIME field(15)) or image capture dates (DATE/TIME IMAGE SAVED field (7)). Time parts of date range parameters are ignored and both ends of the daterange are included in the search. For example, in order to search imagesfor May 21, 2008, the internal value of both parameters should be 3080521.


Document generated on August 31st 2022, 2:55:43 pm