April 11, 2022

Using the PRE Field Attribute on NPR Report Writer Screens

The PRE Field Checks occur before the FCL Field Checks.  They are executed after the end-user enters a non-printable character.  Unlike FCLs, they execute regardless of whether or not the end-user entered in a new non-nil value.

Here is an example (MAGIC) that converts whatever the end-user enters from lowercase to uppercase:   PRE1=A~$L.TO.U^A

Here is the same example but for C/S:   PRE1=A@Trl2u^A

Here is an example for MAGIC that automatically exits a screen if the end-user does not enter any value into a field:

PRE1=IF{@Not(A) 231^/Z^t}

Here is that sample example for C/S:   PRE1=IF{@Not(A) 27^/Z,1^/(.S).SKIP.EXIT}

This example will work for both MAGIC and C/S.  It pops up the exit prompt if no value is entered:   PRE1=IF{@Not(A) 27^/Z}

Topics: MEDITECH, Magic System, NPR Report, CS System

You Might Also Enjoy

BFI stands for Before Input. BFI attributes can come in pairs, just like FCL attributes. ...

There are two NPR Macros that can either launch a PC-based executable or automatically ...

There is an alternative method for viewing Meditech Data Definitions that will show all ...

SUB is a Field Attribute not documented on Meditech's website. It allows you to define ...

l (that's a lowercase L) is the MAGIC function for returning the number of leading ...