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
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
<?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.0"/>
	<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>
	<subDataset name="treatment" uuid="d1e4d901-62d6-4df6-b4ab-c04bb85089b7">
		<parameter name="encId" class="java.lang.Long"/>
		<parameter name="procedureId" class="java.lang.Long">
			<defaultValueExpression><![CDATA[]]></defaultValueExpression>
		</parameter>
		<queryString>
			<![CDATA[SELECT DISTINCT
     DATE_FORMAT(t_pat_enc_treatment_session.`session_date`,'%d/%m/%y') AS session_date,
     t_procedure_master.`procedure_name` AS treatment_name,
     t_pat_enc_treatment_session.`session_name` AS session_name,
     t_pat_enc_treatment_session.`session_details` AS session_details,
     t_pat_enc_treatment_session.`session_area` AS session_area,
     t_pat_enc_treatment_session.`laser_type` AS session_laser_type,
     t_pat_enc_treatment_session.`energy` AS session_energy,
     t_pat_enc_treatment_session.`pulse` AS session_pulse,
     t_pat_enc_treatment_session.`tipsize` AS session_tipsize
FROM
     `t_pat_enc` t_pat_enc INNER JOIN `t_pat_enc_procedure` t_pat_enc_procedure ON t_pat_enc.`enc_id` = t_pat_enc_procedure.`enc_id`
     LEFT OUTER 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`
     LEFT OUTER JOIN `t_procedure_master` t_procedure_master ON t_pat_enc_procedure.`procedure_id` = t_procedure_master.`id`
WHERE
     t_pat_enc_procedure.`procedure_id`= $P{procedureId} and
     t_pat_enc.`enc_id` = $P{encId}]]>
		</queryString>
		<field name="session_date" class="java.lang.String"/>
		<field name="treatment_name" class="java.lang.String"/>
		<field name="session_name" class="java.lang.String"/>
		<field name="session_details" class="java.lang.String"/>
		<field name="session_area" class="java.lang.String"/>
		<field name="session_laser_type" class="java.lang.String"/>
		<field name="session_energy" class="java.lang.String"/>
		<field name="session_pulse" class="java.lang.String"/>
		<field name="session_tipsize" class="java.lang.String"/>
	</subDataset>
	<parameter name="encId" class="java.lang.Long"/>
	<parameter name="radiancelogo" class="java.io.InputStream"/>
	<parameter name="procedureId" class="java.lang.Long">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<queryString>
		<![CDATA[SELECT DISTINCT 
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,
t_patient.`id` AS patient_id


from 
`t_pat_enc` t_pat_enc INNER JOIN `t_patient` t_patient ON t_pat_enc.`mrn_id` = t_patient.`id`


where
t_pat_enc.`enc_id` = $P{encId};]]>
	</queryString>
	<field name="patient_name" class="java.lang.String"/>
	<field name="ageyr" class="java.lang.String"/>
	<field name="gender" class="java.lang.String"/>
	<field name="patient_id" class="java.lang.Long"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="113" splitType="Stretch">
			<rectangle radius="10">
				<reportElement x="7" y="5" width="543" height="100" uuid="2b7a5383-1cc5-4f42-89d4-5b3ea5575289"/>
			</rectangle>
			<staticText>
				<reportElement x="56" y="61" width="423" height="20" uuid="57a08875-7e72-491a-bcef-9499a88e5e32"/>
				<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="56" y="41" width="423" height="20" uuid="691c5903-b20f-464f-b827-56afa6d72a22"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="Bookman Old Style" size="14"/>
				</textElement>
				<text><![CDATA[Kathagola,Mangalabag,Cuttack,753001]]></text>
			</staticText>
			<staticText>
				<reportElement x="56" y="10" width="423" height="31" uuid="a9d0b06a-58b1-4a76-993d-e12d2f57fc4c"/>
				<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="17" 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 2" style="table 2" x="7" y="0" width="543" height="85" uuid="adfdee26-76bf-4207-aaf2-b87956841960"/>
				<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="treatment" uuid="bd479ade-8eb1-46a0-aa3d-5626772415db">
						<datasetParameter name="encId">
							<datasetParameterExpression><![CDATA[$P{encId}]]></datasetParameterExpression>
						</datasetParameter>
						<datasetParameter name="procedureId">
							<datasetParameterExpression><![CDATA[$P{procedureId}]]></datasetParameterExpression>
						</datasetParameter>
						<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
					</datasetRun>
					<jr:column width="74" uuid="3e075788-6f5f-431d-85e0-8921fb3b1631">
						<jr:columnHeader style="table 2_CH" height="24" rowSpan="1">
							<staticText>
								<reportElement x="0" y="0" width="74" height="24" uuid="7f1576c8-f812-4a1b-b2cd-5416efaf09a8"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font isBold="true"/>
								</textElement>
								<text><![CDATA[Session Date]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table 2_TD" height="26" rowSpan="1">
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement x="0" y="0" width="74" height="26" uuid="fcb51c0b-601a-4e86-b2fa-3b71af65e007"/>
								<textElement textAlignment="Center" verticalAlignment="Middle"/>
								<textFieldExpression><![CDATA[$F{session_date}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="75" uuid="625e6a4d-7e6f-4f12-878d-41f12a9c525e">
						<jr:columnHeader style="table 2_CH" height="24" rowSpan="1">
							<staticText>
								<reportElement x="0" y="0" width="75" height="24" uuid="d137a1ad-e67e-419b-8aab-ca0101c19024"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font isBold="true"/>
								</textElement>
								<text><![CDATA[Session Name]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table 2_TD" height="26" rowSpan="1">
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement x="0" y="0" width="75" height="26" uuid="6de7925d-27b0-4828-a548-e7be641ef774"/>
								<textElement textAlignment="Center" verticalAlignment="Middle"/>
								<textFieldExpression><![CDATA[$F{session_name}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="47" uuid="b5ca0055-8a3c-4bb4-925d-0004f852db59">
						<jr:columnHeader style="table 2_CH" height="24" rowSpan="1">
							<staticText>
								<reportElement x="0" y="0" width="47" height="24" uuid="3c080a0d-84ba-4bc5-bc87-04344ecd599f"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font isBold="true"/>
								</textElement>
								<text><![CDATA[Details]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table 2_TD" height="26" rowSpan="1">
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement x="0" y="0" width="47" height="26" uuid="c845f0a8-2ad9-4a8a-9a05-b969118a2e18"/>
								<textElement textAlignment="Center" verticalAlignment="Middle"/>
								<textFieldExpression><![CDATA[$F{session_details}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="75" uuid="d59c0ee9-de9b-4d96-b256-806888113c05">
						<jr:columnHeader style="table 2_CH" height="24" rowSpan="1">
							<staticText>
								<reportElement x="0" y="0" width="75" height="24" uuid="6a3a4e25-2624-4769-ad64-6b7eaac6c434"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font isBold="true"/>
								</textElement>
								<text><![CDATA[Session Area]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table 2_TD" height="26" rowSpan="1">
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement x="0" y="0" width="75" height="26" uuid="34927cc7-e8bd-4f51-81b4-b4bc3a22f4b3"/>
								<textElement textAlignment="Center" verticalAlignment="Middle"/>
								<textFieldExpression><![CDATA[$F{session_area}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="62" uuid="00e3fde6-d0e9-4c33-b2e8-b9bb802f90b7">
						<jr:columnHeader style="table 2_CH" height="24" rowSpan="1">
							<staticText>
								<reportElement x="0" y="0" width="62" height="24" uuid="f9a41336-e2e9-43c7-a8ca-80079d8764d1"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font isBold="true"/>
								</textElement>
								<text><![CDATA[Laser Type]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table 2_TD" height="26" rowSpan="1">
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement x="0" y="0" width="62" height="26" uuid="80e36c1f-a6a2-4086-a6a2-c983f1bde06c"/>
								<textElement textAlignment="Center" verticalAlignment="Middle"/>
								<textFieldExpression><![CDATA[$F{session_laser_type}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="49" uuid="08899ce1-eba8-4a5e-94f2-e1782424dcd2">
						<jr:columnHeader style="table 2_CH" height="24" rowSpan="1">
							<staticText>
								<reportElement x="0" y="0" width="49" height="24" uuid="d9017d8e-c4d9-425d-b9c6-651ed6af58ba"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font isBold="true"/>
								</textElement>
								<text><![CDATA[Energy]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table 2_TD" height="26" rowSpan="1">
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement x="0" y="0" width="49" height="26" uuid="79e7963c-e079-4ead-82d7-e13eba7348ad"/>
								<textElement textAlignment="Center" verticalAlignment="Middle"/>
								<textFieldExpression><![CDATA[$F{session_energy}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="45" uuid="9e494720-92fe-4418-a3be-19e6aef2eae5">
						<jr:columnHeader style="table 2_CH" height="24" rowSpan="1">
							<staticText>
								<reportElement x="0" y="0" width="45" height="24" uuid="9ca5b34c-cc68-463d-986d-5a33683e4b61"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font isBold="true"/>
								</textElement>
								<text><![CDATA[Pulse]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table 2_TD" height="26" rowSpan="1">
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement x="0" y="0" width="45" height="26" uuid="d08e5556-1ffd-4ec1-898e-5cbd8d265275"/>
								<textElement textAlignment="Center" verticalAlignment="Middle"/>
								<textFieldExpression><![CDATA[$F{session_pulse}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="50" uuid="c56f8aac-68c8-4917-b84f-1da1b5d7c461">
						<jr:columnHeader style="table 2_CH" height="24" rowSpan="1">
							<staticText>
								<reportElement x="0" y="0" width="50" height="24" uuid="8077d824-c180-477f-a611-7ae0da9e0eb3"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font isBold="true"/>
								</textElement>
								<text><![CDATA[Tip Size]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table 2_TD" height="26" rowSpan="1">
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement x="0" y="0" width="50" height="26" uuid="f213b320-f264-483e-88a0-641911770e83"/>
								<textElement textAlignment="Center" verticalAlignment="Middle"/>
								<textFieldExpression><![CDATA[$F{session_tipsize}]]></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/TreatmentReportRadiance.jrxml

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