March 7, 2022

Using the WITH footnote

WITH is a Footnote that allows you to specify which Subscript a user-defined (xx) field should be evaluated at.

For instance, let's assume your Detail Segment is a Child Segment to another Segment.  The Parent Segment has Subscript A and the Child Segment (your Detail Segment) has both Subscripts A and B. 

If you create a user-defined (xx) field whose VAL attribute uses fields from the Parent Segment only, you can use the WITH Footnote to instruct your report to evaluate your user-defined field when the report finds the Subscript A from the Parent Segment. 

This makes your report more efficient since it does not evaluate your user-defined field when the report finds the Subscript B of the Child Segment (your Detail Segment).

You do not need to do this for standard Meditech fields.  The Report Writer software is "smart" enough to evaluate standard Meditech fields as soon as the necessary Subscript is found.

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

You Might Also Enjoy

You can modify your report so that everything that prints is sent to your Windows ...

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

@Pgm.name is an NPR Programming Macro that can come in handy, especially when using the ...

@Translation.message is an NPR Programming Macro that can be used in NPR Report Writer ...

Select the Report DPM NPR.PROC Enter a report name (any name you like) Page 1 will need a ...