Custom Printouts

In Monitor 2.1 or later, you can create a custom printout using SVG files. Monitor will recognise files from Sketch. It will not work with files from Adobe Illustrator.


These files are stored at ~/Library/Containers/hk.cinder.Monitor2/Data/Library/Application Support/Monitor2/PrintLayouts/ You can also find this folder by clicking the File Location button in the Drug & Fluids Preferences window.


The files determining the default print layout are in the Folder Default. They consist of a First page, Middle Pages and Last Pages. Middle and last pages should have an even and an odd page variant. The even pages are used if printing on both sides of the paper. If an even page layout is not provided, the program will use the odd page layout for both odd and even pages.


If you place another folder in the PrintLayouts folder, it will appear as an option in the Print Special menu. You can place a First Page, Middle Pages and Last Pages in this folder too. The menu item will be the title of the folder. You can set a command key equivalent by placing this character after a @ symbol in the name. For example, MyPrint@π


You can specify a frame for the page by inserting a rectangle called “frame”. This rectangle will not be drawn.


If you insert a text field with a name starting with ^, Monitor will localize this field for you using the localizations in Localizable.strings. If the name starts with % it will be localized using the file Abbreviated.strings. If you place a text field with a name starting with #, the Monitor will substitute the user entered value for the name. For example #Surname will enter the user entered value for Surname. You can see a list of user entered values in Data->Show Logged Data. A space must be entered using percent encoding. For example First Name should be entered as #First%20Name. Some special defined values are #Full%20Name.


To restrict a user entered text field to a defined


rect make a group. The text field should be the first item in the group and have the format # followed by the variable name. The second item in the group should be a rectangle which specifies the area in which the text will be printed. Stroke and fill characteristics of this rectangle will be ignored.


To enter a number of user items in a single rectangle create a group called !ClassInformationBaseObject. The first item in the group should be a text item. The font of the drawn text will be the same as this text item. To specify which items you want to be included in this rectangle, list them in a comma delimited fashion in the text object. Spaces do not need to be percent encoded.


The second item in the group should be a rectangle.


The name should be a group of 4 numbers separated by colons.


The first number indicates the number of


columns in the group.


If the second number is a zero, the headers will be placed opposite the data as show on the right.  If the value is a one, the headers will be placed above the data, as shown in the example on the left.


The third number specifies whether or not the headers are printed if the value is blank. To print a header for a blank value, make this number one. An example is shown on the right.


If the final value is set to a one, the program will put a space between categories.

If you want a frame around an image object, it will be the same colour as the stroke colour for this rectangle.


There are some special subtypes of the ClassInformationBaseObject.


If you call the group !DrugSummaryBaseObject it will summarise drug, fluid, monitor and output data. You can choose which you want included using the keywords, Drugs, Fluids, Output, Lines and Monitors as comma delimited words in the text item.


Calling a group !GraphBaseObject allows you to graph monitored data. You can insert rectangles called SerialNumbers or Events before the Text item. If you do so, any events which have associated text will be printed in the Events rectangle, and any entered serial numbers will be printed in the SerialNumbers rectangle.


A group called !DrugBoxBaseObject will insert a list of drugs to be given in recovery.


Special effects such as gradations are not supported. Do not use custom text spacing, or vary the fonts within a single text item.