2
<document filename="test.pdf">
3
<template pageSize="(595.0,842.0)" title="Test" author="Martin Simon" allowSplitting="20">
4
<pageTemplate id="first">
5
<frame id="first" x1="15.0" y1="42.0" width="539" height="758"/>
10
<blockTableStyle id="Standard_Outline">
11
<blockAlignment value="LEFT"/>
12
<blockValign value="TOP"/>
14
<blockTableStyle id="Table2">
15
<blockAlignment value="LEFT"/>
16
<blockValign value="CENTER"/>
19
<blockTableStyle id="Table1">
20
<blockBackground colorName="lightgrey" start="0,0" stop="1,1"/>
21
<blockAlignment value="LEFT"/>
22
<blockValign value="TOP"/>
25
<blockTableStyle id="Table3">
26
<lineStyle kind="GRID" colorName="grey"/>
27
<blockAlignment value="LEFT"/>
28
<blockValign value="TOP"/>
32
<paraStyle name="all" alignment="justify"/>
35
<paraStyle name="P1" fontName="Times-Roman" fontSize="13.0" leading="16"/>
36
<paraStyle name="P2" fontName="Times-Roman" fontSize="13.0" leading="16" alignment="RIGHT"/>
37
<paraStyle name="P3" fontName="Times-Roman" fontSize="13.0" leading="16" alignment="LEFT"/>
38
<paraStyle name="P4" fontName="Times-Roman" fontSize="13.0" leading="16"/>
39
<paraStyle name="P12" fontName="Times-Roman" fontSize="13.0" leading="16" alignment="RIGHT"/>
40
<paraStyle name="P6" fontName="Times-Roman" fontSize="13.0" leading="16" alignment="LEFT"/>
41
<paraStyle name="P7" fontName="Times-Roman" fontSize="13.0" leading="16"/>
42
<paraStyle name="P8" fontName="Times-Roman" fontSize="22.0" leading="27" alignment="CENTER"/>
43
<paraStyle name="P9" fontName="Times-Roman" fontSize="13.0" leading="16"/>
44
<paraStyle name="P10" fontName="Times-Bold" fontSize="13.0" leading="16"/>
45
<paraStyle name="P11" fontName="Times-Roman" fontSize="13.0" leading="16"/>
46
<paraStyle name="P12" fontName="Times-Roman" fontSize="10.0" leading="16"/>
47
<paraStyle name="P13" fontName="Times-Roman" fontSize="10.0" leading="16" alignment="CENTER"/>
48
<paraStyle name="P14" fontName="Times-Bold" fontSize="10.0" leading="16"/>
50
<paraStyle name="Standard" fontName="Times-Roman"/>
51
<paraStyle name="Heading" fontName="Helvetica" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/>
52
<paraStyle name="Text body" fontName="Times-Roman" spaceBefore="0.0" spaceAfter="6.0"/>
53
<paraStyle name="List" fontName="Times-Roman" spaceBefore="0.0" spaceAfter="6.0"/>
54
<paraStyle name="Caption" fontName="Times-Roman" fontSize="12.0" leading="15" spaceBefore="6.0" spaceAfter="6.0"/>
55
<paraStyle name="Index" fontName="Times-Roman"/>
56
<paraStyle name="P12" fontName="Times-Roman"/>
57
<paraStyle name="Table Heading" fontName="Times-Roman" alignment="CENTER"/>
62
<para style="P1">[[repeatIn(objects,'prescription')]]</para>
64
<blockTable colWidths="250.0,250.0" style="Table1">
67
<para style="P12"><b>Prescription ID :</b> [[ prescription.prescription_id ]]</para>
68
<para style="P12">Prescription date : [[ prescription.prescription_date ]]</para>
73
<para style="P12"><b>[[ prescription.name.lastname and prescription.name.lastname + ', ' or '']] [[ prescription.name.name.name ]]</b></para>
74
<para style="P12">Age : [[ prescription.name.age ]]</para>
75
<para style="P12">DoB : [[ prescription.name.dob ]]</para>
76
<para style="P12">[[ prescription.name.current_insurance and 'Insurance : ' + prescription.name.current_insurance.company.name ]] [[ prescription.name.current_insurance and prescription.name.current_insurance.number ]]</para>
81
<para style="P12"><b>Prescribing Doctor</b></para>
82
<para style="P12">[[ prescription.user_id.name ]]</para>
83
<para style="P12">[[ prescription.user_id.signature ]]</para>
85
<para style="P12">[[ prescription.doctor.name and prescription.doctor.name.lastname + ', ' or '']] [[ prescription.doctor.name.name ]]</para>
86
<para style="P12">Lic. ID : [[ prescription.doctor.code or removeParentNode('para')]]</para>
87
<para style="P12">Tel: [[ prescription.doctor.name.address.phone[0] or removeParentNode('para')]]</para>
88
<para style="P12">email : [[ prescription.doctor.name.address.email[0] or removeParentNode('para')]]</para>
92
<para style="P12"><b>Patient Contact Information</b></para>
93
<para style="P12">ID : [[ prescription.name.name.ref or removeParentNode('para')]]</para>
94
<para style="P12">Address : [[ prescription.name.current_address.street or removeParentNode('para')]]</para>
95
<para style="P12">Tel : [[ prescription.name.current_address.phone or removeParentNode('para')]]</para>
96
<para style="P12">email : [[ prescription.name.current_address.email or removeParentNode('para')]]</para>
103
<para style="P8"><font color="white"> </font></para>
106
<para style="P1">[[repeatIn(prescription.prescription_line,'lines')]]</para>
109
<blockTable colWidths="100,220,180" style="Table2">
110
<para style="P12">[[ lines.prnt or removeParentNode('blockTable') ]]</para>
113
<para style="P12">Qty : [[ lines.quantity or removeParentNode('para')]]</para>
114
<para style="P12">Start : [[ (lines.start_treatment == 'False') and removeParentNode('para') or lines.start_treatment.split()[0] ]]</para>
115
<para style="P12">Stop : [[ (lines.end_treatment == 'False') and removeParentNode('para') or lines.end_treatment.split()[0] ]]</para>
116
<para style="P12">Refills : [[ lines.refills or removeParentNode('para')]]</para>
117
<para style="P12">[[ lines.allow_substitution and 'Substitution Allowed' ]]</para>
118
<para style="P12">Review : [[ (lines.review == 'False') and removeParentNode('para') or lines.review.split()[0] ]]</para>
122
<para style="P12"><b>[[ lines.medicament.name.name ]] [[ lines.dose ]] [[ lines.dose_unit.name ]]</b></para>
123
<para style="P12">Form : [[ lines.form.name and lines.form.name + 's' or removeParentNode('para')]]</para>
124
<para style="P12">Indication : [[ lines.indication.name or removeParentNode('para')]]</para>
125
<para style="P12">Remarks : <font color="red">[[ lines.short_comment or removeParentNode('para')]]</font></para>
130
<para style="P12">Take during [[ lines.duration or removeParentNode('para')]] [[ lines.duration_period ]]</para>
131
<para style="P12">[[ lines.qty ]] [[ lines.form.name ]][[lines.qty >1 and 's' or '' ]]</para>
132
<para style="P12">[[ lines.common_dosage.name or removeParentNode('para')]] [[ lines.admin_times and '(' + lines.admin_times + ')' ]]</para>
133
<para style="P12">Every [[ lines.frequency or removeParentNode('para')]] [[ lines.frequency_unit=='wr' and 'as needed' or lines.frequency_unit ]]</para>
134
<para style="P12">Route : [[ lines.route.name or removeParentNode('para')]]</para>
139
<para style="P12"><font color="white"> </font></para>
147
<blockTable colWidths="400,100" style="Table3">
150
<para style="P12">Notes:</para>
151
<para style="P12">[[ prescription.notes ]]</para>
154
<para style="P12">Doctor signature</para>
155
<para style="P8"><font color="white"> </font></para>
156
<para style="P8"><font color="white"> </font></para>