Subversion Repository Public Repository

Pharmacy_09_03_18

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="report name" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="691c2b02-a41f-487d-9d43-f14886134142">
	<property name="ireport.zoom" value="1.5"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="30"/>
	<style name="table">
		<box>
			<pen lineWidth="1.0" lineColor="#000000"/>
		</box>
	</style>
	<style name="table_TH" mode="Opaque" backcolor="#F0F8FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table_CH" mode="Opaque" backcolor="#BFE1FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 1">
		<box>
			<pen lineWidth="1.0" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 1_TH" mode="Opaque" backcolor="#F0F8FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 1_CH" mode="Opaque" backcolor="#BFE1FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 1_TD" mode="Opaque" backcolor="#FFFFFF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 2">
		<box>
			<pen lineWidth="1.0" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 2_TH" mode="Opaque" backcolor="#F0F8FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 2_CH" mode="Opaque" backcolor="#BFE1FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 2_TD" mode="Opaque" backcolor="#FFFFFF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 3">
		<box>
			<pen lineWidth="1.0" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 3_TH" mode="Opaque" backcolor="#F0F8FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 3_CH" mode="Opaque" backcolor="#BFE1FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 3_TD" mode="Opaque" backcolor="#FFFFFF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 4">
		<box>
			<pen lineWidth="1.0" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 4_TH" mode="Opaque" backcolor="#F0F8FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 4_CH" mode="Opaque" backcolor="#BFE1FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 4_TD" mode="Opaque" backcolor="#FFFFFF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<subDataset name="treatmentsession" uuid="864289b1-b7b4-4bc0-929c-60bbd207eb65">
		<parameter name="patientId" class="java.lang.Long">
			<defaultValueExpression><![CDATA[]]></defaultValueExpression>
		</parameter>
		<queryString>
			<![CDATA[SELECT
t_pat_enc_procedure.`order_date` AS tdate,
t_procedure_master.`procedure_name` AS t_procedure_master_procedure_name,
t_pat_enc_treatment_session.`session_name` AS t_pat_enc_treatment_session_session_name,
t_pat_enc_treatment_session.`session_details` AS t_pat_enc_treatment_session_session_details,
t_pat_enc_treatment_session.`session_date` AS t_pat_enc_treatment_session_session_date
FROM
`t_patient` t_patient INNER JOIN `t_pat_enc` t_pat_enc ON t_patient.`id` = t_pat_enc.`mrn_id`
INNER JOIN `t_pat_enc_procedure` t_pat_enc_procedure ON t_pat_enc.`enc_id` = t_pat_enc_procedure.`enc_id`
LEFT JOIN `t_pat_enc_treatment_session` t_pat_enc_treatment_session ON t_pat_enc_procedure.`id` = t_pat_enc_treatment_session.`enc_procedure_id`
INNER JOIN `t_procedure_master` t_procedure_master ON t_pat_enc_procedure.`procedure_id` = t_procedure_master.`id`


where
t_patient.`id`=$P{patientId}]]>
		</queryString>
		<field name="tdate" class="java.sql.Timestamp"/>
		<field name="t_procedure_master_procedure_name" class="java.lang.String"/>
		<field name="t_pat_enc_treatment_session_session_name" class="java.lang.String"/>
		<field name="t_pat_enc_treatment_session_session_details" class="java.lang.String"/>
		<field name="t_pat_enc_treatment_session_session_date" class="java.sql.Timestamp"/>
		<group name="t_procedure_master_procedure_name">
			<groupExpression><![CDATA[$F{t_procedure_master_procedure_name}]]></groupExpression>
		</group>
	</subDataset>
	<parameter name="patientId" class="java.lang.Long"/>
	<parameter name="radiancelogo" class="java.io.InputStream"/>
	<queryString>
		<![CDATA[SELECT
     t_patient.`id` AS patient_id,
     CONCAT( t_patient.`patient_f_name`," ",t_patient.`patient_m_name`," ",t_patient.`patient_l_name`) AS patient_name,
     CONCAT(TIMESTAMPDIFF(YEAR,birth_date,CURDATE()),' Yr') AS ageyr,
     t_patient.`patient_gender` AS gender
FROM
     `t_patient` t_patient

where t_patient.`id`= $P{patientId}]]>
	</queryString>
	<field name="patient_id" class="java.lang.Long"/>
	<field name="patient_name" class="java.lang.String"/>
	<field name="ageyr" class="java.lang.String"/>
	<field name="gender" class="java.lang.String"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="113" splitType="Stretch">
			<rectangle radius="10">
				<reportElement x="7" y="5" width="543" height="106" uuid="2b7a5383-1cc5-4f42-89d4-5b3ea5575289"/>
			</rectangle>
			<staticText>
				<reportElement x="61" y="61" width="423" height="20" uuid="0eaac04b-3aec-4ee6-89e0-0a847340a35b"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="Bookman Old Style" size="14"/>
				</textElement>
				<text><![CDATA[Ph.:067-2304200,Cell:9040665000,9040775000]]></text>
			</staticText>
			<staticText>
				<reportElement x="61" y="41" width="423" height="20" uuid="e5fb98f0-c777-4fe7-b2c7-4008500785e2"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="Bookman Old Style" size="14"/>
				</textElement>
				<text><![CDATA[Kathagola,Mangalabag,Cuttack,753001]]></text>
			</staticText>
			<staticText>
				<reportElement x="61" y="10" width="423" height="31" uuid="cd78de5a-e2ef-4e31-8b03-434491458f10"/>
				<textElement verticalAlignment="Middle">
					<font size="18" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[ODISHA ORTHOPAEDICS HOSPITAL PVT.LTD.]]></text>
			</staticText>
		</band>
	</title>
	<pageHeader>
		<band height="4" splitType="Stretch"/>
	</pageHeader>
	<columnHeader>
		<band height="4" splitType="Stretch"/>
	</columnHeader>
	<detail>
		<band height="91" splitType="Stretch">
			<rectangle radius="10">
				<reportElement x="7" y="7" width="543" height="78" uuid="2b7a5383-1cc5-4f42-89d4-5b3ea5575289"/>
			</rectangle>
			<staticText>
				<reportElement x="17" y="17" width="87" height="20" uuid="8954c1e8-b68b-4028-89dd-bb871b4da6cd"/>
				<textElement verticalAlignment="Middle">
					<font size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Regd No. :]]></text>
			</staticText>
			<staticText>
				<reportElement x="17" y="37" width="88" height="20" uuid="8954c1e8-b68b-4028-89dd-bb871b4da6cd"/>
				<textElement verticalAlignment="Middle">
					<font size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Patient Name :]]></text>
			</staticText>
			<staticText>
				<reportElement x="17" y="58" width="88" height="20" uuid="8954c1e8-b68b-4028-89dd-bb871b4da6cd"/>
				<textElement verticalAlignment="Middle">
					<font size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Gender :]]></text>
			</staticText>
			<staticText>
				<reportElement x="396" y="37" width="47" height="20" uuid="8954c1e8-b68b-4028-89dd-bb871b4da6cd"/>
				<textElement verticalAlignment="Middle">
					<font size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Age :]]></text>
			</staticText>
			<staticText>
				<reportElement x="396" y="17" width="47" height="20" uuid="8954c1e8-b68b-4028-89dd-bb871b4da6cd"/>
				<textElement verticalAlignment="Middle">
					<font size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Date :]]></text>
			</staticText>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="105" y="17" width="280" height="20" uuid="43de8f95-85e9-4298-8335-084d8589ace0"/>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{patient_id}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="105" y="38" width="280" height="20" uuid="a786901f-5a9e-43df-abb9-fc2df6d4447c"/>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{patient_name}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="105" y="58" width="100" height="20" uuid="74762be7-afea-4d3f-b917-51f6e010eba3"/>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{gender}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="443" y="38" width="100" height="20" uuid="ff1857a4-4c39-4ea3-a60a-7e0ecf222dc7"/>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{ageyr}]]></textFieldExpression>
			</textField>
			<textField pattern="dd-MMM-yy">
				<reportElement x="443" y="17" width="100" height="20" uuid="a2d55c10-5976-4bcd-a6db-21ee901ac0a2"/>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
		</band>
		<band height="64">
			<staticText>
				<reportElement x="12" y="2" width="113" height="20" uuid="8954c1e8-b68b-4028-89dd-bb871b4da6cd"/>
				<textElement verticalAlignment="Middle">
					<font size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Doctor's Remarks :]]></text>
			</staticText>
		</band>
		<band height="85">
			<componentElement>
				<reportElement key="table 4" style="table 4" x="12" y="0" width="538" height="85" isRemoveLineWhenBlank="true" uuid="3e140431-7da7-4be5-914e-c3a2e21a8bc3"/>
				<jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd">
					<datasetRun subDataset="treatmentsession" uuid="205f3e19-2a1f-4949-95fd-1935911be714">
						<datasetParameter name="patientId">
							<datasetParameterExpression><![CDATA[$P{patientId}]]></datasetParameterExpression>
						</datasetParameter>
						<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
					</datasetRun>
					<jr:column width="90" uuid="5aa98c26-c3e6-4062-aa4e-8b154ab90f43">
						<jr:columnHeader style="table 4_CH" height="24" rowSpan="1">
							<staticText>
								<reportElement x="0" y="0" width="90" height="24" uuid="50c6c148-f4f1-4bb9-bb9b-84b587a621b7"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font size="11" isBold="true"/>
								</textElement>
								<text><![CDATA[Date]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table 4_TD" height="23" rowSpan="1">
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement x="0" y="0" width="90" height="23" uuid="4162b7af-c29f-4164-a63d-21e787498873"/>
								<textElement textAlignment="Center" verticalAlignment="Middle"/>
								<textFieldExpression><![CDATA[$F{tdate}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="90" uuid="6af15649-475f-4cda-95c0-59fddbf2eb34">
						<jr:columnHeader style="table 4_CH" height="24" rowSpan="1">
							<staticText>
								<reportElement x="0" y="0" width="90" height="24" uuid="1e6bb02b-601a-4927-9e91-ca1b61ff4744"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font size="11" isBold="true"/>
								</textElement>
								<text><![CDATA[Treatment Name]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table 4_TD" height="23" rowSpan="1">
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement x="0" y="0" width="90" height="23" uuid="c52cd22f-3a66-4257-b512-0a5494064840"/>
								<textElement textAlignment="Center" verticalAlignment="Middle"/>
								<textFieldExpression><![CDATA[$F{t_procedure_master_procedure_name}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="90" uuid="7bfae295-899a-4650-95b9-40bd52190137">
						<jr:columnHeader style="table 4_CH" height="24" rowSpan="1">
							<staticText>
								<reportElement x="0" y="0" width="90" height="24" uuid="35e709fd-0ada-448f-9512-4591490d1fff"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font size="11" isBold="true"/>
								</textElement>
								<text><![CDATA[Session Date]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table 4_TD" height="23" rowSpan="1">
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement x="0" y="0" width="90" height="23" uuid="cad67d18-3080-4b1f-95d3-4c4eb7b8b28d"/>
								<textElement textAlignment="Center" verticalAlignment="Middle"/>
								<textFieldExpression><![CDATA[$F{t_pat_enc_treatment_session_session_date}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="90" uuid="53ae5749-7538-4742-b68f-1a9fc170282f">
						<jr:columnHeader style="table 4_CH" height="24" rowSpan="1">
							<staticText>
								<reportElement x="0" y="0" width="90" height="24" uuid="1c306cba-7b7b-490d-b4d0-e428019e82a5"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font size="11" isBold="true"/>
								</textElement>
								<text><![CDATA[Session Name]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table 4_TD" height="23" rowSpan="1">
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement x="0" y="0" width="90" height="23" uuid="12567c4a-482f-489f-a194-1107710628af"/>
								<textElement textAlignment="Center" verticalAlignment="Middle"/>
								<textFieldExpression><![CDATA[$F{t_pat_enc_treatment_session_session_name}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="90" uuid="0f9004ee-684e-42b6-8276-490ca783d357">
						<jr:columnHeader style="table 4_CH" height="24" rowSpan="1">
							<staticText>
								<reportElement x="0" y="0" width="90" height="24" uuid="5356e5e4-fd68-4a1b-9f1f-8d7efc467f1a"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font size="11" isBold="true"/>
								</textElement>
								<text><![CDATA[Description]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table 4_TD" height="23" rowSpan="1">
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement x="0" y="0" width="90" height="23" uuid="f3c24438-bda6-4e59-9ec6-29d08a905775"/>
								<textElement textAlignment="Center" verticalAlignment="Middle"/>
								<textFieldExpression><![CDATA[$F{t_pat_enc_treatment_session_session_details}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
				</jr:table>
			</componentElement>
		</band>
	</detail>
	<columnFooter>
		<band height="45" splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band height="54" splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band height="42" splitType="Stretch"/>
	</summary>
</jasperReport>

Commits for Pharmacy_09_03_18/Dr Gyana ProjectSpace/DrGyanaEMR/src/main/resources/reports/TreatmentDetailsReport.jrxml

Diff revisions: vs.
Revision Author Commited Message
1 girijabapi picture girijabapi Fri 27 Jul, 2018 07:30:57 +0000