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 living in Spokane, WA. More about me.

Email John


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

HIT Topics

MEDITECH Reports

Current Articles | RSS Feed RSS Feed

NPR Macro Template (Example)

  | Share on Twitter Twitter | Submit to Digg digg it |  Add to delicious  delicious |  Submit to StumbleUpon StumbleUpon |  Share on LinkedIn LinkedIn |  Share On Technorati Technorati | Submit to Reddit reddit 

;*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
;
; Purpose: Centralize most used code from NPR reports NUR.
; Created: John Sharpe on August 13th, 2005
; Last Modified: John Sharpe on December 17th, 2005
; Name: write.data
; Macro Type: Program (Program / Footnote)
; Parameters: A as routine: 1=write.dynamic.text
; 2=write.to.mv
; 3=flatten.mv.tracker
; B as mv array
; C as field number
; D as line length
; E as number of spaces to indent
; F as data order
;
;*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#;
B^/MV.ARRAY,
C^/FN,
D^/LINE.LENGTH,
E^/INDENT.SPACES,
F+1^/DATA.ORDER,
;
IF{A=1 @WRITE.DYNAMIC.TEXT;
A=2 @WRITE.TO.MV;
A=3 @FLATTEN.MV.TRACKER},
;
1;

WRITE.DYNAMIC.TEXT
; Purpose: Write dynamic strings of text to /MV[] as MS Word would.
; Programmer: JNS12 on January 26th, 2005
; Inputs: /RESPO (Strings), /LINE.LENGTH (Integer), /INDENT.SPACES (String)
; Outputs: /MV[]
;
""^NXT.STR,
""^NXT.CHAR,
""^/W.CTR,
DO{+/RESPO[/W.CTR] @GET.NXT.STR,
@PROCESS.NXT.STR;
IF{L(STOR.LIN:0S)>0 STOR.LIN^/MV.TEXT,
""^STOR.LIN,@WRITE.TO.MV}}


.: This relates to Meditech Programming. :.


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