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

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

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

Entering documentation on Field Attributes, Line Attributes, and Footnotes can come in ...

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

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