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
<?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="ConsultationFeeReport" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="36786df8-300c-4f62-9a3d-21448366c68f">
	<property name="ireport.zoom" value="1.0"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<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>
	<subDataset name="consultationfee" uuid="74fe950a-c24f-4afc-aa34-9f2da3e457d8">
		<parameter name="Date" class="java.lang.String"/>
		<parameter name="Month" class="java.lang.String"/>
		<parameter name="Year" class="java.lang.String"/>
		<parameter name="DepartmentIds" class="java.lang.String"/>
		<queryString>
			<![CDATA[SELECT
     DATE_FORMAT(t_doctor_appointment.`appointment_date`,'%d/%m/%y') AS appointment_date,
     t_doctor_appointment.`appointment_time` AS appointment_time,
     t_doctor_information.`doctor_name` AS doctor_name,
     t_department_master.`department_name` AS department_name,
     concat(t_patient.`patient_f_name`,' ',t_patient.`patient_m_name`,' ',t_patient.`patient_l_name`) AS  patient_name,
     t_doctor_appointment.`paid_amount` AS consultation_fee,
     t_doctor_appointment.`free_patient` AS free_paid_patient,
     t_patient.`opip_status` AS t_patient_opip_status,
     t_patient.`patient_id` AS mrn_number
FROM
     `t_doctor_information` t_doctor_information INNER JOIN `t_doctor_appointment` t_doctor_appointment ON t_doctor_information.`id` = t_doctor_appointment.`doctor_name_id`
     INNER JOIN `t_department_master` t_department_master ON t_doctor_appointment.`department_name_id` = t_department_master.`id`
     AND t_department_master.`id` = t_doctor_information.`doctor_department_id`
     INNER JOIN `t_patient` t_patient ON t_doctor_appointment.`patient_name_id` = t_patient.`id`
WHERE 
   (t_doctor_appointment.`appointment_date`= $P{Date}
    OR
    EXTRACT(YEAR_MONTH FROM t_doctor_appointment.`appointment_date`)= $P{Month}
    OR
    year(t_doctor_appointment.`appointment_date`)= $P{Year})
    AND
    find_in_set(t_doctor_appointment.`department_name_id`,$P{DepartmentIds} )
ORDER BY t_doctor_appointment.`appointment_date`,t_doctor_appointment.`patient_opd_number`]]>
		</queryString>
		<field name="appointment_date" class="java.lang.String"/>
		<field name="appointment_time" class="java.lang.String"/>
		<field name="doctor_name" class="java.lang.String"/>
		<field name="department_name" class="java.lang.String"/>
		<field name="patient_name" class="java.lang.String"/>
		<field name="consultation_fee" class="java.lang.Double"/>
		<field name="free_paid_patient" class="java.lang.String"/>
		<field name="t_patient_opip_status" class="java.lang.String"/>
		<field name="mrn_number" class="java.lang.String"/>
		<variable name="total_amount" class="java.math.BigDecimal" calculation="Sum">
			<variableExpression><![CDATA[$F{consultation_fee}]]></variableExpression>
		</variable>
	</subDataset>
	<parameter name="Date" class="java.lang.String"/>
	<parameter name="Month" class="java.lang.String"/>
	<parameter name="Year" class="java.lang.String"/>
	<parameter name="DisplayFormat" class="java.lang.String"/>
	<parameter name="DepartmentIds" class="java.lang.String"/>
	<queryString>
		<![CDATA[select 1 from dual]]>
	</queryString>
	<field name="1" class="java.lang.Long"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="57" splitType="Stretch">
			<staticText>
				<reportElement uuid="64fdb37c-e145-455c-88e3-0aa07580651e" x="0" y="15" width="555" height="21" forecolor="#FF0000"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="14" isBold="true"/>
				</textElement>
				<text><![CDATA[: Consultation Fee Report :]]></text>
			</staticText>
		</band>
	</title>
	<pageHeader>
		<band height="40" splitType="Stretch">
			<staticText>
				<reportElement uuid="72189318-e86d-4510-bfa8-60d7ac497f97" x="0" y="0" width="555" height="20" forecolor="#CC3300"/>
				<textElement verticalAlignment="Middle">
					<font size="12" isBold="true"/>
				</textElement>
				<text><![CDATA[Report Parameters : ]]></text>
			</staticText>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="29ec2016-75ce-485b-8b08-d9a5539d27ed" x="0" y="20" width="224" height="20"/>
				<textElement verticalAlignment="Middle">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{DisplayFormat}]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="4" splitType="Stretch"/>
	</columnHeader>
	<detail>
		<band height="89" splitType="Stretch">
			<componentElement>
				<reportElement uuid="06a6c8ef-3db6-4dd5-99f2-55fbe591dccb" key="table" style="table" x="0" y="0" width="555" height="87"/>
				<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="consultationfee" uuid="a59ae0bd-1533-4378-ae8c-ef31183ed47a">
						<datasetParameter name="Date">
							<datasetParameterExpression><![CDATA[$P{Date}]]></datasetParameterExpression>
						</datasetParameter>
						<datasetParameter name="Month">
							<datasetParameterExpression><![CDATA[$P{Month}]]></datasetParameterExpression>
						</datasetParameter>
						<datasetParameter name="Year">
							<datasetParameterExpression><![CDATA[$P{Year}]]></datasetParameterExpression>
						</datasetParameter>
						<datasetParameter name="DepartmentIds">
							<datasetParameterExpression><![CDATA[$P{DepartmentIds}]]></datasetParameterExpression>
						</datasetParameter>
						<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
					</datasetRun>
					<jr:column uuid="7fe27cb8-7964-4b88-b3e9-fc6adde47378" width="68">
						<jr:columnHeader style="table_CH" height="35" rowSpan="1">
							<staticText>
								<reportElement uuid="bc1016b2-a50e-4e06-9c7c-d3adfa802a82" x="0" y="0" width="68" height="35"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font size="12" isBold="true"/>
								</textElement>
								<text><![CDATA[Date]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:columnFooter style="table_CH" height="30" rowSpan="1"/>
						<jr:detailCell style="table_TD" height="20" rowSpan="1">
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement uuid="e40a6a60-1f87-45fe-aaa6-5cb3093e73be" stretchType="RelativeToTallestObject" x="0" y="0" width="68" height="20"/>
								<textElement textAlignment="Center" verticalAlignment="Middle"/>
								<textFieldExpression><![CDATA[$F{appointment_date}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column uuid="22018760-c24b-4a9a-bf82-f22e015a6a04" width="70">
						<jr:columnHeader style="table_CH" height="35" rowSpan="1">
							<staticText>
								<reportElement uuid="51cab205-a3ee-442f-aa5f-a52653c6478f" x="0" y="0" width="70" height="35"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font size="12" isBold="true"/>
								</textElement>
								<text><![CDATA[MRN]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:columnFooter style="table_CH" height="30" rowSpan="1"/>
						<jr:detailCell style="table_TD" height="20" rowSpan="1">
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement uuid="eb30af2d-9062-46f0-9f68-2af1c0e46cf2" stretchType="RelativeToTallestObject" x="0" y="0" width="70" height="20"/>
								<textElement textAlignment="Center" verticalAlignment="Middle"/>
								<textFieldExpression><![CDATA[$F{mrn_number}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column uuid="d04b5c6f-d039-4520-9e85-5346e44a5e0d" width="90">
						<jr:columnHeader style="table_CH" height="35" rowSpan="1">
							<staticText>
								<reportElement uuid="e8a7c43f-8c79-48d7-82ad-62dfcdd412fa" x="0" y="0" width="90" height="35"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font size="12" isBold="true"/>
								</textElement>
								<text><![CDATA[Patient Name]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:columnFooter style="table_CH" height="30" rowSpan="1"/>
						<jr:detailCell style="table_TD" height="20" rowSpan="1">
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement uuid="bbf3a9be-ac3b-4920-ad19-896a2fe8e047" stretchType="RelativeToTallestObject" x="0" y="0" width="90" height="20"/>
								<textElement textAlignment="Center" verticalAlignment="Middle"/>
								<textFieldExpression><![CDATA[$F{patient_name}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column uuid="4746416e-9995-4a1a-8c43-9a30117e1e4c" width="90">
						<jr:columnHeader style="table_CH" height="35" rowSpan="1">
							<staticText>
								<reportElement uuid="ca1dc1c8-7a77-4211-889a-30f45b1d71c7" x="0" y="0" width="90" height="35"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font size="12" isBold="true"/>
								</textElement>
								<text><![CDATA[Doctor ]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:columnFooter style="table_CH" height="30" rowSpan="1"/>
						<jr:detailCell style="table_TD" height="20" rowSpan="1">
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement uuid="5d06d3dc-fa1b-4a73-b04f-ca34d228f872" stretchType="RelativeToTallestObject" x="0" y="0" width="90" height="20"/>
								<textElement textAlignment="Center" verticalAlignment="Middle"/>
								<textFieldExpression><![CDATA[$F{doctor_name}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column uuid="37060f99-8eb8-42c0-8ec9-2f88b70cacf9" width="75">
						<jr:columnHeader style="table_CH" height="35" rowSpan="1">
							<staticText>
								<reportElement uuid="cb32f422-d94c-4a0a-bf03-7dec7c153eb3" x="0" y="0" width="75" height="35"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font size="12" isBold="true"/>
								</textElement>
								<text><![CDATA[Patient Type]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:columnFooter style="table_CH" height="30" rowSpan="1">
							<staticText>
								<reportElement uuid="0392f406-3398-416d-8547-442cb2c8545e" x="0" y="0" width="75" height="30"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font size="12" isBold="true"/>
								</textElement>
								<text><![CDATA[Total  :]]></text>
							</staticText>
						</jr:columnFooter>
						<jr:detailCell style="table_TD" height="20" rowSpan="1">
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement uuid="e1d5bf43-084e-4285-906f-3ee6df40d908" stretchType="RelativeToTallestObject" x="0" y="0" width="75" height="20"/>
								<textElement textAlignment="Center" verticalAlignment="Middle"/>
								<textFieldExpression><![CDATA[$F{free_paid_patient}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column uuid="d3753c3b-7dfe-4d86-9e0c-7c601e0dcbd7" width="79">
						<jr:columnHeader style="table_CH" height="35" rowSpan="1">
							<staticText>
								<reportElement uuid="04c41116-5060-4f74-87e3-41c314dfeb73" x="0" y="0" width="79" height="35"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font size="12" isBold="true"/>
								</textElement>
								<text><![CDATA[Consultation Fee]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:columnFooter style="table_CH" height="30" rowSpan="1">
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement uuid="386396b1-a49f-44d7-93f1-79dc43643f98" x="0" y="0" width="79" height="30"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font size="12" isBold="true"/>
								</textElement>
								<textFieldExpression><![CDATA[$V{total_amount}]]></textFieldExpression>
							</textField>
						</jr:columnFooter>
						<jr:detailCell style="table_TD" height="20" rowSpan="1">
							<textField>
								<reportElement uuid="29566bef-f9a5-42e1-a7f0-f1ead8de2a3d" x="0" y="0" width="79" height="20"/>
								<textElement textAlignment="Center" verticalAlignment="Middle"/>
								<textFieldExpression><![CDATA[$F{consultation_fee}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
				</jr:table>
			</componentElement>
		</band>
	</detail>
	<columnFooter>
		<band height="16" splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band height="12" splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band height="13" splitType="Stretch"/>
	</summary>
</jasperReport>

Commits for Satyam/AuroCareEMR/target/classes/reports/ConsultationFeeReport.jrxml

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