MEDITECH DR, NPR, MEDITECH Reporting, MEDITECH Reports, MEDITECH DR Reports, MEDITECH BI, MEDITECH Data Repository
I'm your host, John Sharpe, a MEDITECH Report Writing Consultant living in Spokane, WA. Read more ...
Expand your network by connecting on these social media sites:
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
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
Current Articles | RSS Feed
;*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#;; 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. :.
Want an alert when the next post is published? Click the phone and Subscribe to the MEDITECH Reports Blog!
Allowed tags: <a> link, <b> bold, <i> italics