MEDITECH Reports, MEDITECH NPR Reports, NPR Report Writing, NPR Report Writer, NPR Report, MEDITECH Reporting, MEDITECH Report MEDITECH Reports, NPR Reports, NPR Report Writing, NPR Report Writer, MEDITECH NPR

Tuesday, October 16, 2007

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)

2 Comments:

At 11:21 AM , Blogger Joe said...

...also...how would you get around using a V command, even disguised so it evades the syntax check, the DR parsers expungex the translated object code if found in violation..

i.e.

@INIT,
@DO.IT

INIT
"$Program"^X

DO IT
@GO(X)

GO
V

 
At 1:17 PM , Blogger olesharpie said...

What about trying this?

http://streamlineit.biz/blogs/npr/2007/05/bypassing-syntax-checker-from-screens.html

 

Post a Comment

Links to this post:

Create a Link

<< Home