April 4, 2022

SUB (Substitute Subscript) As a Field Attribute

SUB is a Field Attribute not documented on Meditech's website.  It allows you to define the Subscript for a field from a Child Segment.

The usual method is to set up a user-defined (xx) field with attributes similar to the following:

VAL=@child.field["SUBSCRIPT"]

Instead of setting up a user-defined field, you can simply use child.field as a field with the following attribute:

SUB="SUBSCRIPT"

The drawbacks to using SUB are that the xx field could be used as a Select Field, and that a field can only be listed once as a Report Field on Page 3.

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

You Might Also Enjoy

MV (Multi-Value) Arrays allow for the creation of our own "multiples". Often the MV array ...

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

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

The PRE Field Checks occur before the FCL Field Checks. They are executed after the ...

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