MEDITECH provides a number of standard programs that are very useful and help prevent programmers from reinventing the wheel. Utilize MIS.SCREEN.print to print a CDS with prompts and responses.
Syntax: MIS.SCREEN.print(A,B,C,D)
Description: Print entire CDS with prompts and responses
Arguments:
A=mnemonic of screen
B=^@Root(segment)
C=Strip blank lines
D=Left Margin
Example: Regular ADM CDS
%MIS.SCREEN.print(@cd.screen,^@Root(customer.defined.queries),1,0)