All messages should be posted in plain text. HTML will be converted to attachments. The meditech-l web site is MTUsers.com ======================================
Hi Doug, Try changing your variable name to DOC instead of doc. If a variable name is all lowercase, the Meditech NPR software thinks it is a standard Meditech field that can act as a "local" variable. "doc" is not a standard Meditech field with a "local", so that is why you are getting that error message. Your local variable DOC should be shared amongst your regions, macros, and footnotes. Just in case, you can begin your variable names with the slash / prefix. The slash prefix is connected to a private memory-based temp, which is essentially a private temporary database that is created specifically for your Meditech session when you sign on. It is wiped out when you sign off. Using slash will turn your local variable into a global variable, so you can be sure that it will be available just about anywhere within your report. Also, it will help to prevent "symbol-table overflow". Meditech refers to variables as symbols, and each Meditech session has only 1 KB (1024 bytes) for storing these local variables. Good luck, Brian Schmit Sr. Programmer, Picis Direct: 781 557 3315 Fax: 781 557 3140 100 Quannapowitt Parkway Suite 405 Wakefield, MA 01880 [EMAIL PROTECTED] www.picis.com Please visit www.picis.com/meditech for additional information about our NPR Report Writing Trainings. The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access or use by any other person to this internet email is not authorized and may be unlawful. If you are not the intended recipient, please delete or destroy this email. If you do not wish to receive future emails from the sender, please reply directly to this email requesting you be removed from any mailing list. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Graham Douglas Sent: Saturday, April 08, 2006 12:50 PM To: [email protected] Cc: Douglas Graham Subject: [MEDITECH-L] VAL local variable All messages should be posted in plain text. HTML will be converted to attachments. The meditech-l web site is MTUsers.com ====================================== How are local variables used in an NPR VAL statement? Do local variables need to be declared in a header or...? How do you create a variable that is in scope for the whole report? Just for a single region? Are variables shared between regions, macros, and footnotes? I'm having trouble getting local variables in a VAL statement to work without causing an error. Here is a simple example of what I want to do: [EMAIL PROTECTED] "it works - "_doc} When I translate the NPR that this statement is in I get this error: Evaluating computed field: xx.some.var in region D *** Can't find data element doc *** IF{*AA[aa]DR|0^ ***doc*** "it works - "_doc} *** Can't find data element doc *** IF{*AA[aa]DR|0^doc "it works - "_ ***doc*** } I've researched this problem through old and new manuals, the archives to this list, etc. Any help understanding NPR variables would be appreciated. Thank you, Doug Douglas S. Graham, JD, BSN, RN Clinical Systems Analyst Alaska Regional Hospital PH: 907-264-2077 FX: 866-368-3229 [EMAIL PROTECTED] "The information in this electronic message may be privileged and confidential and is intended for the use of the individual(s) or entity(ies) named above. If you are not the intended recipient, you are on notice that any unauthorized disclosure, copying, distribution, or taking of any action in reliance on the contents of these electronically transmitted materials is prohibited." _______________________________________________ meditech-l mailing list [email protected] http://mtusers.com/mailman/listinfo/meditech-l _______________________________________________ meditech-l mailing list [email protected] http://mtusers.com/mailman/listinfo/meditech-l
