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

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

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

WITH is a Field Attribute that determines when a field should be evaluated during a ...

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

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