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 ...

Sometimes MEDITECH does not make a segment available as a Detail Segment in their NPR ...

When picking Select Fields, Sort Fields, or Report Fields, users can press for a lookup ...

The Footnote FD (Field Delimiter) requires you to enter the ASCII code for a keystroke. ...

After pressing for a lookup for either Detail Segments or Index Files, press the number ...