January 3, 2022

Accessing useful routine NPR.SEG.id.editor in MEDITECH CS Software

NPR.SEG.id.editor is a very useful routine in MEDITECH's C/S software that provides handy lookups for DPMs, Segments, Procedures, Menus, Macros, and even object-code "Letters" (such as AA for ADM.PAT).  Here are the steps for accessing this routine:

Step 1:

  1. Set up an NPR Report with the report DPM NPR.PROC
  2. The Report Title should be as follows:
    "_%(NPR)PROC..zcus.report.M..t(0)_"
    Replace "report" with the name of your report.
  3. Add MIS.APPL.DB.mnemonic as a Select Field with operator LI and a prompt, such as CONNECT TO THESE DATABASES
  4. Add this Footnote: AL START s
  5. File and translate your report

Step 2:

  1. Set up a macro called t with the following code:
    IF{/DONE;1^/DONE^/Z.PRT.SUPPRESS.PRINTING},"";
  2. File and translate your macro

Step 3:

  1. Set up a macro called s with the following code:
    @NPR.PARAM.located.at.mt="Y"^/(.S).AT.MT,
     1^/REPEAT,
     %NPR.SEG.id.editor.S(""),
     ""^X,
     DO{+MIS.APPL.DB.c.mnemonic[X]^X %Z.switch.appl(X#0.,"",{1,X,"C"})},
     %Z.debug("s 1"),
     DO{@.appl'="NPR" %Z.switch.appl("")}
  2. File and translate your macro
  3. Retranslate your report
When you run this report, you will first be prompted to select whichever databases you want to connect to.  This can come in handy for looking at the data.

After selecting your databases, you will be brought into the NPR.SEG.id.editor routine, which has lots of great "lookups".  After exiting that routine, you will be brought to the "debug" prompt.  You can enter G to view your "Globals".  Any of the databases you selected should be available for viewing.

Topics: NPR Report

You Might Also Enjoy

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

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

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

Steps: Select the Report DPM NPR.DOLT Enter a report name (any name you like) Page 1 will ...

You can use the following steps to write data to your Windows clipboard from an NPR ...