Subversion Repository Public Repository

Satyam

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
<?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="AllLabReport" pageWidth="595" pageHeight="842" whenNoDataType="BlankPage" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c489c049-1279-4e23-9a07-fd1572c6fb58">
	<property name="ireport.zoom" value="1.0"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<parameter name="enc_id" class="java.lang.String"/>
	<parameter name="procedure_id" class="java.lang.String"/>
	<queryString>
		<![CDATA[SELECT DISTINCT
-- Patinet Header
t_patient.`patient_id` AS patient_id,
concat(t_patient.`patient_f_name`, ' ',t_patient.`patient_m_name`,' ',t_patient.`patient_l_name` ) AS patent_name,
t_patient.`patient_gender` AS patient_gender,
DATE_FORMAT(t_patient.`birth_date`,'%d/%m/%y') AS birth_date,
DATE_FORMAT(FROM_DAYS(TO_DAYS(NOW())-TO_DAYS(t_patient.`birth_date`)), '%y') AS age,
-- Order Details
(DATE_FORMAT(t_pat_enc_procedure.`order_date`,'%d/%m/%y')) AS procedure_order_date,
t_pat_enc_procedure.`order_by` AS procedure_order_by,
t_pat_enc_procedure.`order_status` AS procedure_order_status,
t_procedure_master.`procedure_name` AS procedure_name,
-- Component Details
t_component_master.`component_name` AS component_name,
t_component_master.`component_normal_range` AS component_normal_range,
t_component_master.`component_status` AS component_status,
t_component_master.`unit` AS component_unit,
t_pat_enc_order_results.`component_results` AS component_results,
t_pat_enc_procedure.`order_status` AS t_pat_enc_procedure_order_status,
t_pat_enc_order_results.`component_notes` AS results_component_notes,
t_pat_enc_procedure.`id` AS Pocedure_id,
t_pat_enc_order_results.`component_status` AS results_component_status

FROM
`t_procedure_master` t_procedure_master INNER JOIN `t_pat_enc_procedure` t_pat_enc_procedure ON t_procedure_master.`id` = t_pat_enc_procedure.`procedure_id`
INNER JOIN `t_pat_enc` t_pat_enc ON t_pat_enc_procedure.`enc_id` = t_pat_enc.`enc_id`
INNER JOIN `t_pat_enc_order_results` t_pat_enc_order_results ON t_pat_enc_procedure.`id` = t_pat_enc_order_results.`order_id`
INNER JOIN `t_patient` t_patient ON t_pat_enc.`mrn_id` = t_patient.`id`
INNER JOIN `t_component_master` ON t_component_master.`id` = t_pat_enc_order_results.`component_id`
WHERE
	
find_in_set(t_pat_enc_procedure.`id`,$P{procedure_id})
AND 	t_pat_enc_procedure.`order_status` = t_pat_enc_procedure.`order_status`
ORDER BY t_procedure_master.`id`]]>
	</queryString>
	<field name="patient_id" class="java.lang.String"/>
	<field name="patent_name" class="java.lang.String"/>
	<field name="patient_gender" class="java.lang.String"/>
	<field name="birth_date" class="java.lang.String"/>
	<field name="age" class="java.lang.String"/>
	<field name="procedure_order_date" class="java.lang.String"/>
	<field name="procedure_order_by" class="java.lang.String"/>
	<field name="procedure_order_status" class="java.lang.String"/>
	<field name="procedure_name" class="java.lang.String"/>
	<field name="component_name" class="java.lang.String"/>
	<field name="component_normal_range" class="java.lang.String"/>
	<field name="component_status" class="java.lang.String"/>
	<field name="component_unit" class="java.lang.String"/>
	<field name="component_results" class="java.lang.String"/>
	<field name="t_pat_enc_procedure_order_status" class="java.lang.String"/>
	<field name="results_component_notes" class="java.lang.String"/>
	<field name="Pocedure_id" class="java.lang.Long"/>
	<field name="results_component_status" class="java.lang.String"/>
	<group name="patient_id">
		<groupExpression><![CDATA[$F{patient_id}]]></groupExpression>
		<groupHeader>
			<band height="44">
				<staticText>
					<reportElement uuid="c25bd69c-44e9-4b98-a568-f07be182b0d2" x="333" y="0" width="55" height="20"/>
					<textElement verticalAlignment="Middle">
						<font fontName="Bookman Old Style" size="12" isBold="true"/>
					</textElement>
					<text><![CDATA[Gender :]]></text>
				</staticText>
				<staticText>
					<reportElement uuid="f9186519-2a73-493a-8aff-874875ae94bd" x="446" y="0" width="31" height="20"/>
					<textElement verticalAlignment="Middle">
						<font fontName="Bookman Old Style" size="12" isBold="true"/>
					</textElement>
					<text><![CDATA[Age :]]></text>
				</staticText>
				<staticText>
					<reportElement uuid="e72083cc-c5f9-4119-82c3-6ca430990a14" x="0" y="0" width="38" height="20"/>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font fontName="Bookman Old Style" size="12" isBold="true"/>
					</textElement>
					<text><![CDATA[MRN :]]></text>
				</staticText>
				<textField isBlankWhenNull="true">
					<reportElement uuid="6ea19f83-834d-4229-bebd-d8eaa75cd68c" x="38" y="0" width="54" height="20"/>
					<textElement verticalAlignment="Middle"/>
					<textFieldExpression><![CDATA[$F{patient_id}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" isBlankWhenNull="true">
					<reportElement uuid="066ac179-030b-4073-bddc-15ff292b93f1" x="187" y="0" width="146" height="20"/>
					<textElement textAlignment="Left" verticalAlignment="Middle"/>
					<textFieldExpression><![CDATA[$F{patent_name}]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement uuid="3bf5f280-250a-4057-bfd0-ede28188f5bb" x="388" y="0" width="58" height="20"/>
					<textElement verticalAlignment="Middle"/>
					<textFieldExpression><![CDATA[$F{patient_gender}]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement uuid="7edaf738-cdfa-4b35-a0ca-c2dd717d3f8b" x="477" y="0" width="18" height="20"/>
					<textElement verticalAlignment="Middle"/>
					<textFieldExpression><![CDATA[$F{age}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement uuid="ad67e1d4-dfbc-4ad4-97f9-8cae47a90846" x="495" y="0" width="30" height="20"/>
					<textElement verticalAlignment="Middle"/>
					<text><![CDATA[Years]]></text>
				</staticText>
				<line>
					<reportElement uuid="7d48ece3-fe90-4c53-9ce1-d03d9caf7f37" x="0" y="43" width="555" height="1" forecolor="#33CCFF"/>
					<graphicElement>
						<pen lineWidth="2.0"/>
					</graphicElement>
				</line>
				<staticText>
					<reportElement uuid="4c04e7c2-af44-49f7-af73-0c214faaec94" x="92" y="0" width="95" height="20"/>
					<textElement verticalAlignment="Middle">
						<font fontName="Bookman Old Style" size="12" isBold="true"/>
					</textElement>
					<text><![CDATA[Patient Name :]]></text>
				</staticText>
			</band>
		</groupHeader>
	</group>
	<group name="procedure_order_date">
		<groupExpression><![CDATA[$F{procedure_order_date}]]></groupExpression>
		<groupHeader>
			<band height="27">
				<rectangle>
					<reportElement uuid="30f08882-b272-4b9f-9478-36ff02368172" x="0" y="6" width="157" height="19" backcolor="#EFEDED"/>
				</rectangle>
				<staticText>
					<reportElement uuid="6d72fc9a-545a-41ce-8cf6-e81adce105f3" x="0" y="5" width="81" height="20"/>
					<textElement verticalAlignment="Middle">
						<font fontName="Bookman Old Style" size="12" isBold="true"/>
					</textElement>
					<text><![CDATA[Order Date :]]></text>
				</staticText>
				<textField>
					<reportElement uuid="65aa52f1-0d37-49ba-8e9d-1628369c5d1a" x="81" y="6" width="76" height="19"/>
					<textElement verticalAlignment="Middle"/>
					<textFieldExpression><![CDATA[$F{procedure_order_date}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
	</group>
	<group name="Pocedure_id">
		<groupExpression><![CDATA[$F{Pocedure_id}]]></groupExpression>
		<groupHeader>
			<band height="53">
				<staticText>
					<reportElement uuid="44aa0e53-8d3a-494d-af2c-d1e2c9a324bc" stretchType="RelativeToBandHeight" x="383" y="2" width="76" height="20" forecolor="#3366FF"/>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font fontName="Bookman Old Style" size="10" isBold="true"/>
					</textElement>
					<text><![CDATA[Order Status:]]></text>
				</staticText>
				<staticText>
					<reportElement uuid="1e033de2-8e09-41e0-839a-9232d095af74" stretchType="RelativeToBandHeight" x="242" y="2" width="59" height="20" forecolor="#3366FF"/>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font fontName="Bookman Old Style" size="10" isBold="true"/>
					</textElement>
					<text><![CDATA[Order By : ]]></text>
				</staticText>
				<textField isStretchWithOverflow="true" isBlankWhenNull="true">
					<reportElement uuid="d237290a-9485-4115-a4e4-bf97126e598e" stretchType="RelativeToBandHeight" x="302" y="2" width="81" height="20" forecolor="#3366FF"/>
					<textElement textAlignment="Left" verticalAlignment="Middle"/>
					<textFieldExpression><![CDATA[$F{procedure_order_by}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" isBlankWhenNull="true">
					<reportElement uuid="49f22952-53a6-4063-bccf-d0adefd14ed1" stretchType="RelativeToBandHeight" x="459" y="2" width="96" height="20" forecolor="#3366FF"/>
					<textElement textAlignment="Left" verticalAlignment="Middle"/>
					<textFieldExpression><![CDATA[$F{procedure_order_status}]]></textFieldExpression>
				</textField>
				<rectangle>
					<reportElement uuid="4dccae0e-1b3f-4c16-b3a4-7d1c6a5ffe90" x="17" y="33" width="538" height="20" backcolor="#CCCCCC"/>
				</rectangle>
				<staticText>
					<reportElement uuid="73df58c9-46b2-42ff-8abc-5a9383795b10" x="17" y="33" width="79" height="20"/>
					<box>
						<pen lineWidth="0.5"/>
						<topPen lineWidth="0.5"/>
						<leftPen lineWidth="0.5"/>
						<bottomPen lineWidth="0.5"/>
						<rightPen lineWidth="0.5"/>
					</box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="11" isBold="true"/>
					</textElement>
					<text><![CDATA[Component Name ]]></text>
				</staticText>
				<staticText>
					<reportElement uuid="71bdf337-a3ca-47ad-8993-5868bb2d79a4" x="96" y="33" width="112" height="20"/>
					<box>
						<pen lineWidth="0.5"/>
						<topPen lineWidth="0.5"/>
						<leftPen lineWidth="0.5"/>
						<bottomPen lineWidth="0.5"/>
						<rightPen lineWidth="0.5"/>
					</box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="11" isBold="true"/>
					</textElement>
					<text><![CDATA[Component Result]]></text>
				</staticText>
				<staticText>
					<reportElement uuid="8b051db3-5c3c-49af-9da5-74180bfa7c39" x="208" y="33" width="93" height="20"/>
					<box>
						<pen lineWidth="0.5"/>
						<topPen lineWidth="0.5"/>
						<leftPen lineWidth="0.5"/>
						<bottomPen lineWidth="0.5"/>
						<rightPen lineWidth="0.5"/>
					</box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="11" isBold="true"/>
					</textElement>
					<text><![CDATA[Component Unit]]></text>
				</staticText>
				<staticText>
					<reportElement uuid="652af8ed-6751-440e-b755-80eef6a25a4a" x="301" y="33" width="146" height="20"/>
					<box>
						<pen lineWidth="0.5"/>
						<topPen lineWidth="0.5"/>
						<leftPen lineWidth="0.5"/>
						<bottomPen lineWidth="0.5"/>
						<rightPen lineWidth="0.5"/>
					</box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="11" isBold="true"/>
					</textElement>
					<text><![CDATA[Component Normal Range]]></text>
				</staticText>
				<staticText>
					<reportElement uuid="743a5452-9b75-4d82-b870-c91c0c053837" x="447" y="33" width="108" height="20"/>
					<box>
						<pen lineWidth="0.5"/>
						<topPen lineWidth="0.5"/>
						<leftPen lineWidth="0.5"/>
						<bottomPen lineWidth="0.5"/>
						<rightPen lineWidth="0.5"/>
					</box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="11" isBold="true"/>
					</textElement>
					<text><![CDATA[Component Status ]]></text>
				</staticText>
				<staticText>
					<reportElement uuid="62e9323a-6c53-4f77-a40c-c6b8ff807f84" stretchType="RelativeToBandHeight" x="1" y="2" width="70" height="20" forecolor="#3366FF"/>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font fontName="Bookman Old Style" size="10" isBold="true"/>
					</textElement>
					<text><![CDATA[Order Name : ]]></text>
				</staticText>
				<textField isStretchWithOverflow="true" isBlankWhenNull="true">
					<reportElement uuid="3072fe3e-ba6a-4330-88c2-db687472258f" stretchType="RelativeToBandHeight" x="71" y="2" width="158" height="20" forecolor="#3366FF"/>
					<textElement textAlignment="Left" verticalAlignment="Middle"/>
					<textFieldExpression><![CDATA[$F{procedure_name}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="118" splitType="Stretch">
			<staticText>
				<reportElement uuid="6f4b5e5a-ae65-4f49-a961-7ee7bb844db2" x="0" y="97" width="555" height="21"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="SansSerif" size="16" isBold="true"/>
				</textElement>
				<text><![CDATA[All Lab Report ]]></text>
			</staticText>
		</band>
	</title>
	<pageHeader>
		<band height="5" splitType="Stretch"/>
	</pageHeader>
	<columnHeader>
		<band height="7" splitType="Stretch"/>
	</columnHeader>
	<detail>
		<band height="20" splitType="Stretch">
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="31941b01-6418-4ea9-b2f6-86d95569ec36" stretchType="RelativeToTallestObject" x="17" y="0" width="79" height="20"/>
				<box>
					<pen lineWidth="0.25"/>
					<topPen lineWidth="0.25"/>
					<leftPen lineWidth="0.25"/>
					<bottomPen lineWidth="0.25"/>
					<rightPen lineWidth="0.25"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font isStrikeThrough="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{component_name}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="c8a4c62b-f247-464a-95a8-4e758230a6c3" stretchType="RelativeToTallestObject" x="96" y="0" width="112" height="20"/>
				<box>
					<pen lineWidth="0.25"/>
					<topPen lineWidth="0.25"/>
					<leftPen lineWidth="0.25"/>
					<bottomPen lineWidth="0.25"/>
					<rightPen lineWidth="0.25"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font isStrikeThrough="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{component_results}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="80f51421-2b89-4aba-81cc-7ae85e58aeda" stretchType="RelativeToTallestObject" x="208" y="0" width="93" height="20"/>
				<box>
					<pen lineWidth="0.25"/>
					<topPen lineWidth="0.25"/>
					<leftPen lineWidth="0.25"/>
					<bottomPen lineWidth="0.25"/>
					<rightPen lineWidth="0.25"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font isStrikeThrough="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{component_unit}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="031baf6a-65b9-4457-85f7-56e6792464a4" stretchType="RelativeToTallestObject" x="301" y="0" width="146" height="20"/>
				<box>
					<pen lineWidth="0.25"/>
					<topPen lineWidth="0.25"/>
					<leftPen lineWidth="0.25"/>
					<bottomPen lineWidth="0.25"/>
					<rightPen lineWidth="0.25"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font isStrikeThrough="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{component_normal_range}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="db333c09-3565-436e-8b50-d16544607505" stretchType="RelativeToTallestObject" x="447" y="0" width="108" height="20"/>
				<box>
					<pen lineWidth="0.25"/>
					<topPen lineWidth="0.25"/>
					<leftPen lineWidth="0.25"/>
					<bottomPen lineWidth="0.25"/>
					<rightPen lineWidth="0.25"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font isStrikeThrough="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{results_component_status}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band height="13" splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band height="31" splitType="Stretch">
			<staticText>
				<reportElement uuid="cc48054f-8725-4daa-b071-2c69a278addf" positionType="FixRelativeToBottom" x="375" y="11" width="180" height="20"/>
				<textElement verticalAlignment="Middle">
					<font fontName="Monotype Corsiva" size="14" isBold="true"/>
				</textElement>
				<text><![CDATA[Lab Technician's Signature]]></text>
			</staticText>
		</band>
	</pageFooter>
	<summary>
		<band height="8" splitType="Stretch"/>
	</summary>
</jasperReport>

Commits for Satyam/AuroCareLabInformationSystem/src/main/resources/reports/AllLabReport.jrxml

Diff revisions: vs.
Revision Author Commited Message
1 girijabapi picture girijabapi Fri 20 Jul, 2018 05:59:17 +0000