Subversion Repository Public Repository

Aurocare_27_07_2018

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
<?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="PrescriptionReport" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="71099dce-f03d-4684-9bc8-9ef2ce55acc1">
	<property name="ireport.zoom" value="1.8150000000000004"/>
	<property name="ireport.x" value="42"/>
	<property name="ireport.y" value="0"/>
	<parameter name="appointmentId" class="java.lang.Long"/>
	<parameter name="printedby" class="java.lang.String"/>
	<queryString>
		<![CDATA[SELECT
     t_doctor_appointment.`id` AS t_doctor_appointment_id,
     t_doctor_appointment.`department_name_id` AS t_doctor_appointment_department_name_id,
     t_doctor_appointment.`appointment_time` AS t_doctor_appointment_appointment_time,
     t_doctor_appointment.`appointment_status` AS t_doctor_appointment_appointment_status,
    t_doctor_appointment.`visit_number` AS visit_number,
     DATE_FORMAT(t_doctor_appointment.`patient_checkin_time`,'%h:%i %p') AS t_doctor_appointment_patient_checkin_time,
     t_doctor_appointment.`patient_opd_number` AS t_doctor_appointment_patient_opd_number,
     t_department_master.`department_name` AS t_department_master_department_name,
     t_speciality_master.`speciality_name` AS t_speciality_master_speciality_name,
     t_doctor_information.`doctor_address` AS t_doctor_information_doctor_address,
     t_doctor_information.`doctor_name` AS t_doctor_information_doctor_name,
     t_doctor_information.`doctor_designation` AS t_doctor_information_doctor_designation,
     CONCAT(t_patient.`patient_f_name`," ",t_patient.`patient_m_name`," ",t_patient.`patient_l_name`) AS t_patient_patient_name,DATE_FORMAT(FROM_DAYS(TO_DAYS(NOW())-TO_DAYS(birth_date)), '%m%y') AS age,
TIMESTAMPDIFF(YEAR, birth_date, CURDATE()) as ageyr,
TIMESTAMPDIFF(MONTH, birth_date, CURDATE())%12 as agemn,
     t_patient.`joined_date` AS t_patient_joined_date,
     t_patient.`patient_ht_number` AS t_patient_patient_m_number,
     CONCAT(t_patient.`present_address1`," ",t_patient.`present_patient_city`) AS t_patient_present_address1,
     t_patient.`patient_gender` AS t_patient_patient_gender,
     t_patient.`birth_date` AS t_patient_birth_date,
     t_patient.`patient_id` AS t_patient_id
FROM
     `t_speciality_master` t_speciality_master INNER JOIN `t_department_master` t_department_master ON t_speciality_master.`id` = t_department_master.`department_specialty_id`
     INNER JOIN `t_doctor_information` t_doctor_information ON t_department_master.`id` = t_doctor_information.`doctor_department_id`
     INNER JOIN `t_doctor_appointment` t_doctor_appointment ON t_doctor_information.`id` = t_doctor_appointment.`doctor_name_id`
     INNER JOIN `t_patient` t_patient ON t_doctor_appointment.`patient_name_id` = t_patient.`id`
WHERE
t_doctor_appointment.`id` = $P{appointmentId}]]>
	</queryString>
	<field name="t_doctor_appointment_id" class="java.lang.Long"/>
	<field name="t_doctor_appointment_department_name_id" class="java.lang.Long"/>
	<field name="t_doctor_appointment_appointment_time" class="java.lang.String"/>
	<field name="t_doctor_appointment_appointment_status" class="java.lang.Integer"/>
	<field name="visit_number" class="java.lang.Integer"/>
	<field name="t_doctor_appointment_patient_checkin_time" class="java.lang.String"/>
	<field name="t_doctor_appointment_patient_opd_number" class="java.lang.Integer"/>
	<field name="t_department_master_department_name" class="java.lang.String"/>
	<field name="t_speciality_master_speciality_name" class="java.lang.String"/>
	<field name="t_doctor_information_doctor_address" class="java.lang.String"/>
	<field name="t_doctor_information_doctor_name" class="java.lang.String"/>
	<field name="t_doctor_information_doctor_designation" class="java.lang.String"/>
	<field name="t_patient_patient_name" class="java.lang.String"/>
	<field name="age" class="java.lang.String"/>
	<field name="ageyr" class="java.lang.Long"/>
	<field name="agemn" class="java.lang.Long"/>
	<field name="t_patient_joined_date" class="java.sql.Date"/>
	<field name="t_patient_patient_m_number" class="java.lang.Long"/>
	<field name="t_patient_present_address1" class="java.lang.String"/>
	<field name="t_patient_patient_gender" class="java.lang.String"/>
	<field name="t_patient_birth_date" class="java.sql.Date"/>
	<field name="t_patient_id" class="java.lang.String"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="18" splitType="Stretch"/>
	</title>
	<pageHeader>
		<band height="83" splitType="Stretch">
			<textField pattern="dd MMMMM yyyy" isBlankWhenNull="true">
				<reportElement x="473" y="51" width="76" height="13" uuid="7e3a988e-5ce8-46a7-8261-2c792813e8f6"/>
				<textElement verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<columnHeader>
		<band splitType="Stretch"/>
	</columnHeader>
	<detail>
		<band height="650" splitType="Stretch">
			<staticText>
				<reportElement x="11" y="0" width="54" height="15" uuid="2df02fb3-d7d2-4899-a634-05c811d07a4f"/>
				<textElement verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<text><![CDATA[NAME :]]></text>
			</staticText>
			<staticText>
				<reportElement x="11" y="15" width="54" height="14" uuid="6477ba6b-fd49-46bc-9c67-1042465fecb3"/>
				<textElement verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<text><![CDATA[SEX :]]></text>
			</staticText>
			<staticText>
				<reportElement x="11" y="29" width="54" height="15" uuid="7074593b-fb70-4e21-b39f-343c7a0a1688"/>
				<textElement verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<text><![CDATA[AGE :]]></text>
			</staticText>
			<staticText>
				<reportElement x="11" y="44" width="54" height="14" uuid="6c7cfac5-416b-43e5-a2ab-20b94e4215ae"/>
				<textElement verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<text><![CDATA[ADDRESS :]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement x="65" y="0" width="202" height="15" uuid="d9d9bcde-268c-42dd-bd93-c34dff37590f"/>
				<textElement verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{t_patient_patient_name}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="65" y="15" width="202" height="14" uuid="04204b5f-3842-4ace-a9f4-acc147da9eaf"/>
				<textElement verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{t_patient_patient_gender}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="65" y="44" width="202" height="14" uuid="eadeb383-5011-48c8-af81-d0a9fdb92a77"/>
				<textElement verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{t_patient_present_address1}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="344" y="0" width="103" height="15" uuid="dc6b5678-71ea-41eb-815e-4d1297e103af"/>
				<textElement verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<text><![CDATA[OPD REGD NO :]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement x="447" y="0" width="102" height="15" uuid="15581f8a-4f49-471e-af79-c94de146a916"/>
				<textElement verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{t_doctor_appointment_patient_opd_number}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="344" y="15" width="103" height="14" uuid="8a3de224-f7f6-43bb-b157-e49ae7e44708"/>
				<textElement verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<text><![CDATA[PATIENT ID :]]></text>
			</staticText>
			<staticText>
				<reportElement x="344" y="29" width="103" height="15" uuid="d1609b8d-cbfe-4cfd-aece-e5625dbba19c"/>
				<textElement verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<text><![CDATA[TICKET ISSUE TIME :]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement x="447" y="29" width="102" height="15" uuid="211aa787-4035-41fd-b839-9fe079771599"/>
				<textElement verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{t_doctor_appointment_patient_checkin_time}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="344" y="44" width="103" height="14" uuid="967e77dc-b0ba-4afd-be9f-ea5d73793018"/>
				<textElement verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<text><![CDATA[CONTACT NUMBER :]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement x="447" y="44" width="102" height="14" uuid="a04edb34-0ed9-4033-8d57-2a47f40c4f4d"/>
				<textElement verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{t_patient_patient_m_number}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="344" y="58" width="103" height="14" uuid="d27cccfc-6e65-4dfc-8686-d56c01f1157c"/>
				<textElement verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<text><![CDATA[VISIT NUMBER:]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement x="447" y="15" width="102" height="14" uuid="287bfe0f-5648-460b-a064-5b3cf9fd4ec7"/>
				<textElement verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{t_patient_id}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="77" y="29" width="16" height="15" uuid="b704d0f4-7bcc-4b49-9d3d-3a5975d02ede"/>
				<textElement verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<text><![CDATA[Yrs]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement x="77" y="630" width="153" height="20" uuid="3f2ac700-6843-42fb-92a4-9d978fe9ac1b"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="12" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{printedby}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="0" y="630" width="77" height="20" uuid="b930b79e-0df4-4555-94dc-770d2197ce01"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="12" isBold="true"/>
				</textElement>
				<text><![CDATA[Printed By :]]></text>
			</staticText>
			<textField>
				<reportElement x="447" y="58" width="102" height="14" uuid="8e38fea5-1e60-4402-be15-ed1ab9ed422e"/>
				<textElement verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{visit_number}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="65" y="30" width="12" height="14" uuid="6817a298-7ea7-4b3d-a9e7-c0224265b032"/>
				<textFieldExpression><![CDATA[$F{ageyr}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="98" y="29" width="16" height="15" uuid="4b2781e4-3a13-4499-8d62-bf4b340560aa"/>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{agemn}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="114" y="30" width="128" height="14" uuid="d49f362d-1e5c-4914-b420-82b3e7092096"/>
				<textElement verticalAlignment="Middle"/>
				<text><![CDATA[Months]]></text>
			</staticText>
		</band>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band height="3" splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band height="2" splitType="Stretch"/>
	</summary>
</jasperReport>

Commits for Aurocare_27_07_2018/AuroCareEMR/target/classes/reports/PrescriptionReport.jrxml

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