HOME
Specializing in the MEDITECH environment
Tips & Tricks: Key MEDITECH NPR variables
'@' VARIABLES

@.variable Direct Variable Description
@.appl /.APPL application name
@.country /.CNTRY MIS country: USA, CANADA, etc
@.db /.DB application database
@.device /.DEV user's internal terminal name
@.dir /.DIR current directory
@.facility /.FAC current facility
@.job /.JOB job number of process
@.logical device /.LOC user's external terminal name
@.lookup /.LK number of entries to display when doing a lookup
@.menu.arg /.MENU.ARG used by menus to pass arguments
@.mis /.MIS MIS database
@.mri.pfx /.MPX medical records prefix
@.now %Z.time.out(S(0)) current time (HHMM)
@.on.device /.PRT "ON DEVICE" prompt's last response
@.today /.DAT current date (YYYYMMDD)
@.user /.USR user's mnemonic


REPORT 'RUN-TIME' VARIABLES

Variables Description
/.LL lines left on page (before new page is written)
/R.CPI characters per inch (defined on page one of  Enter/Edit Report)
/R.CPL characters per line (defined on page one of Enter/Edit Report)
/R.DATE date the report began running
/R.FOUND will be '1' if a valid record was found
/R.FRAGMENT will be '1' if this is a report fragment
/R.HOSP application database report title (defined in the MIS Toolbox)
/R.LIMIT record limit (Z.record.limit)
/R.LPI lines per inch (defined on page one of  Enter/Edit Report)
/R.NEW.PAGE.PGM name of the new page program associated with the report
/R.PAGE.NUM current page number
/R.PS page size (defined on page one of the Enter/Edit Report).
/R.TIME time the report began running
/R.TITLE report title (found on page one of the Enter/Edit Report)
/RW.URN report name
/temp temporary sort array (used when you change the sort fields)


SPECIAL 'Z' VARIABLES

Z.variable Description
Z.count produces a count of the number of detail records selected (use in TKn and/or TR regions)
Z.record.limit used as a select field to limit the amount of records selected before the report prints
Z.spool spool file number (VAL=@Z.spool)


Contact: info@xo-consulting.com   909 624 7646 voice/fax   416 E Arrow Hwy   Claremont CA 91711