MIML Print Control Language

A print format control language called MIML (MedInformatix Markup Language) has been added to the Letters printing functions in Workflow Views and in Boilerplates used for creating documents and views. This allows advanced formatting capability when printing letters and patient statements. It uses the concept of “tags” inside the text, which is very similar to HTML. Note that this feature can only be used with boilerplate TXT files accessed through the Letters function (Batch or Single) or Patient Statement Cycles and cannot be used to create documents within the Decision Tree or Document Repository.

 

Introduction

MIML is an HTML-like language.  Although it works in a similar manner to HTML, it is not HTML.  HTML ignores white spaces but MIML considers white spaces (tabs, space, linefeeds, etc…).   New tags were introduced that exist in MIML but does not exist in HTML.  Other tags were modified to enhance the language.  Also, not all parameters of a parameterized tag in HTML are supported; only those indicated below are supported.

 

Commands

 

<B>

Language: HTML, MIML

-This command bolds any string that comes after it.

<B>  

-This ends the bold command

</B> 

 

Example:      

<B>This is in bold</B> and this is not

 

<CENTER>

Language: HTML, MIML

-This command starts center justify for any string that comes after it.

<CENTER>

-This command ends center justify and defaults to left justify

</CENTER>

 

Example:

<CENTER>Title</CENTER>

 

<RIGHT>

Language: MIML

-This command starts right justify for any string that comes after it.

<RIGHT>

-This command ends right justify and defaults to left justify

</RIGHT>

 

Example:

<RIGHT>Title</RIGHT>

 

<BARC>

Language: MIML

-This command converts any string after it to scanable barcode

<BARC>

-This command ends the barcode conversion

</BARC>

 

Example:

Barcode is <BARC>12345</BARC> and value is 12345.

 

<PAGE>

Language: MIML

-This command forces a new page

<PAGE>

 

Example:

Any thing that comes after this <PAGE> will be printed on a new page.

 

<I>

Language: HTML, MIML

-This command put a string in italics

<I>

-This command will stop putting a string in italics

</I>

 

Example:

<I>This string is in italics</I> and this string is not in italics.

 

</S>

Language: HTML, MIML

-This command will strike out a string

<S>

-This command ends strike outs

</S>

 

Example:

<S>This string is struck out</S> and this string is not.

 

<BR>

Language: HTML, MIML

-This command will force a new line

<BR>

 

Example:

This line is on line one <BR> and this line is on line 2.

 

<FONT>

Language: HTML, MIML (modified)

Modification: POINT was introduced, SIZE is not currently supported.

Font is a parameterized command.  It allows the user to change the font characteristics to any fonts the user desires.  It contains several parameters that could be used independently of each other. Here they are:

 

POINT: Changes the current point size.

FACE: Changes the current font.

COLOR: Changes the Color of the font.

 

Example (mix version):

<FONT POINT=20 FACE=”Times New Roman”> This string will be point size 20 and in Times New Roman font. <FONT FACE=”Courier”> This string will be point size 20 and in Courier font. <FONT POINT=10> This string will be point size 10 and in Courier font

 

<TYPESET>

Language: MIML

Typeset is a parameterized command.  It allows the user to dynamically set the margins (in inches).  It contains several parameters that could be used.  Here they are:

 

LEFTMARGIN: Changes the left margin.

RIGHTMARGIN: Changes the right margin.

TOPMARGIN: Changes the top margin.

BOTTOMMARGIN: Changes the bottom margin.

 

Example:

<TYPESET LEFTMARGIN=0.5 RIGHTMARGIN=0.5 TOPMARGIN=1.0 BOTTOMMARGIN=1.0> This sets the margins for ½ inch from the left and right and 1 inch from the bottom and top.

 

NOTE: This value will set the margins for the document on down.  It is recommended that this tag comes before any other tags since it will determine the how the document will be printed.

 

<IMG>

Language: HTML, MIML

IMG is a parameterized command.  It allows the user to embed an image into the document.  The parameter is:

 

SRC: Source of image file. The file is assumed to be in the Forms Directory.

 

Example:

This is a picture of me:

<IMG SRC=”me.bmp”>

 

<INSERTHTML>

This MIML tag can be added to the print heading to insert an HTML file from the FORMS directory. This tag can only be used if used the Enhanced Editor in the Document Repository.

 

Example:

Let’s say you would like to use an HTML heading inserted when it prints. In this case, you could make the following changes to your DIMPROF print heading settings:

Print Head Lines=1

Print Head Line1=<INSERTHTML SRC="myhtmlheader.htm">

;Print Head Line2=

;Print Head Line3=

;Print Head Line4= 

 

<INCLUDE>

Language: MIML

INCLUDE is a parameterized command.  It allows the user to embed one script file in another. The file is assumed to be in the Forms Directory.

 

SRC: Script file to embed.

 

Example:

<INCLUDE SRC=”STANDARDSCRIPT.TXT”>

 

<REPORT>

Language: MIML

REPORT is a parameterized command.  It allows the user to indicate the start of a report.  This allows the user to add report headers at the start of every new page.

 

HEADER=Header file to embed in script.

TOPSPACE=Space from top of new page to start of header. (inches)

 

Example:

<REPORT HEADER=”C:\HEADER.TXT” TOPSPACE=1.0>

This is my report

</REPORT>