|
| Thursday, 01 March 2007 07:00 |
|
Tricks of the Trade: Printing a New Page When Calling a Fragment (in CS) Contributed by: Jim Prandi, NPR Report Writer, CRH Consulting, Inc. Have you ever called a fragment and wanted to print a new page by location, patient, etc., but found that the fragment only prints a detail section? Well the reason for this is because of the New Page Program. When MEDITECH calls a fragment it does not change the New Page program to that of the fragment call. Here is how you can change the New Page Program in a fragment in Client Server. Say you are in a PHA report and calling a Lab Fragment. Before you call the fragment, switch the New Page Program and when your report returns, switch it back. Below is what the code looks like.
The highlighted section reads: ^@Pgm.trans(%LAB.M.SPEC.zcus.mm.get.micro.results.RP)^@Z.rpt.new.page.pgm, @CALL.REPORT, ^@Pgm.trans(%PHA.RX.zcus.mm.test.loc.RP)^@Z.rpt.new.page.pgm; Note that in Client Server, you have to use the ^@Pgm.trans utility to get this to work, whereas in MAGIC, it’s more straightforward. Jim Prandi is an NPR Report Writer for CRH Consulting, Inc. He has 10 years of experience with MEDITECH and his NPR expertise spans the gambit of clinical, financial and administrative applications on both Client Server and MAGIC platforms. |
399-meditechbulletin.com and MeditechCareers.com are not affiliated with MEDITECH, Inc.


