WANT the MEDITECH Reports BLOG via EMAIL?

Your email:

About MEDITECH Reports

MEDITECH Reports is an online reference for NPR Report Writing and not affiliated with MEDITECH, Inc @ http://meditech.com. To learn more about NPR report development using the Meditech Report Writer read more here.

View John Sharpe's profile on LinkedInI'm your host, John Sharpe, a MEDITECH Report Writing Consultant in Spokane, WA. More about me.


Email John

Follow Comstock Software on Twitter 

Sign up for the MEDITECH Reports Blog; details to attend MEDITECH workshops are sent out 1 week in advance to all MEDITECH Report blog subscribers.

These MEDITECH Workshops are sponsored by Donna Carroll at the MEDITECH Community Bulletin

MEDITECH NPR & RW RESOURCES:

Ascii Table: For NPR Report Writer
Loop Builder: For NPR Macros
Key Codes: For CDS Attributes
List Builder: For NPR Macros
MT Report Names: For NPR Reports
MT Structure Viewer: For Physicals
Strings: Format & Sort

MEDITECH Reports

Current Articles | RSS Feed RSS Feed

NPR Syntax Workarounds


The NPR report writer was written to protect us from damaging the MEDITECH HCIS. Unless you are a very experienced programmer, do not attempt to workaround the syntax checker. The MEDITECH languages (CS & Magic) are very powerful; meaning, it takes very little code to do a lot (good or bad). If you make a mistake it could cost you your career as a MEDITECH NPR Report Writer / Programmer.

Question: How do you perform a KILL in NPR Report Writer?
Answer: You can do a kill, but you shouldn't this is just too dangerous.
Workaround: ""^Q,DO{>/ECT[Q]^Q ""^/ECT[Q]}

Question: How do you seg in the report writer?
Workaround: $["SEGS"]("A","LIVE.MIS")

Question: How do you open prefixes in the NPR report writer?
Workaround:
;If the prefix is open like / is, stack it using the S.
;When you are done with the / prefix, unstack using the U.
@OPEN(/S,"P"),
@CLOSE(/U)

OPEN
O

CLOSE
C

Source: K@SETUP.TEMP.U,M([B],[U])
Object: K([U]),M([B],[U])}

V@HL.PRINT.LINE

HL.PRINT.LINE
(@hl.print.line)


Comments

Currently, there are no comments. Be the first to post one!
Post Comment
Name
 *
Email
 *
Website (optional)
Comment
 *

Allowed tags: <a> link, <b> bold, <i> italics

Receive email when someone replies.