~eduardo-bayardo-bias/bias-trunk/bias_trunk

« back to all changes in this revision

Viewing changes to medical/report/prescription_order.rml

  • Committer: Eduardo Bayardo
  • Date: 2011-06-23 21:44:20 UTC
  • Revision ID: eduardo@eduardo-20110623214420-w63z1yahu6bo8kw9
agregue vista de costos de movimientos de stock para tener traceabilidad de costo estandar en modulo bias_product_related_cost

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
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"/>
 
6
    </pageTemplate>
 
7
   
 
8
  </template>
 
9
  <stylesheet>
 
10
    <blockTableStyle id="Standard_Outline">
 
11
      <blockAlignment value="LEFT"/>
 
12
      <blockValign value="TOP"/>
 
13
    </blockTableStyle>
 
14
    <blockTableStyle id="Table2">
 
15
      <blockAlignment value="LEFT"/>
 
16
      <blockValign value="CENTER"/>
 
17
 
 
18
    </blockTableStyle>
 
19
    <blockTableStyle id="Table1">
 
20
      <blockBackground colorName="lightgrey" start="0,0" stop="1,1"/>
 
21
      <blockAlignment value="LEFT"/>
 
22
      <blockValign value="TOP"/>
 
23
 
 
24
    </blockTableStyle>
 
25
    <blockTableStyle id="Table3">
 
26
      <lineStyle kind="GRID" colorName="grey"/>
 
27
      <blockAlignment value="LEFT"/>
 
28
      <blockValign value="TOP"/>
 
29
    </blockTableStyle>
 
30
 
 
31
    <initialize>
 
32
      <paraStyle name="all" alignment="justify"/>
 
33
    </initialize>
 
34
 
 
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"/>
 
49
                
 
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"/>
 
58
    <images/>
 
59
  </stylesheet>
 
60
  <story>
 
61
 
 
62
    <para style="P1">[[repeatIn(objects,'prescription')]]</para>
 
63
 
 
64
    <blockTable colWidths="250.0,250.0" style="Table1">
 
65
      <tr>
 
66
        <td>
 
67
          <para style="P12"><b>Prescription ID :</b> [[ prescription.prescription_id ]]</para>
 
68
          <para style="P12">Prescription date : [[ prescription.prescription_date ]]</para>
 
69
 
 
70
 
 
71
        </td>
 
72
        <td>
 
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>
 
77
        </td>
 
78
      </tr>
 
79
      <tr>
 
80
        <td>
 
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>
 
84
<!--
 
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>                    
 
89
-->
 
90
        </td>
 
91
      <td>
 
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>
 
97
        </td>
 
98
      </tr>
 
99
 
 
100
 
 
101
    </blockTable>
 
102
 
 
103
   <para style="P8"><font color="white"> </font></para>
 
104
 
 
105
   <section>
 
106
    <para style="P1">[[repeatIn(prescription.prescription_line,'lines')]]</para>
 
107
 
 
108
 
 
109
    <blockTable colWidths="100,220,180" style="Table2">
 
110
          <para style="P12">[[ lines.prnt or removeParentNode('blockTable') ]]</para>
 
111
      <tr>
 
112
        <td>
 
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>
 
119
        </td>
 
120
 
 
121
        <td>
 
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>
 
126
        </td>
 
127
 
 
128
 
 
129
        <td>
 
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 &gt;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>
 
135
        </td>
 
136
 
 
137
      </tr>
 
138
    </blockTable>
 
139
    <para style="P12"><font color="white"> </font></para>
 
140
 
 
141
    </section>
 
142
 
 
143
 
 
144
 
 
145
    <section>
 
146
        
 
147
    <blockTable colWidths="400,100" style="Table3">
 
148
      <tr>
 
149
        <td>
 
150
          <para style="P12">Notes:</para>
 
151
          <para style="P12">[[ prescription.notes ]]</para>
 
152
        </td>
 
153
        <td>
 
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>
 
157
 
 
158
        </td>
 
159
 
 
160
       </tr>
 
161
  
 
162
    </blockTable>    
 
163
    
 
164
    
 
165
    </section>
 
166
   </story>
 
167
</document>
 
168