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
<?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="0"/>
	<property name="ireport.y" value="0"/>
	<parameter name="appointmentId" class="java.lang.Long"/>
	<parameter name="printedby" class="java.lang.String"/>
	<parameter name="rxlogo" class="java.io.InputStream"/>
	<parameter name="logo" class="java.io.InputStream"/>
	<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.`paid_amount` AS paid_amount,
     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,

     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,
     t_patient.`patient_relation_name` AS t_patient_relation_name
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">
		<fieldDescription><![CDATA[]]></fieldDescription>
	</field>
	<field name="t_doctor_appointment_patient_checkin_time" class="java.lang.String"/>
	<field name="paid_amount" class="java.lang.Double">
		<fieldDescription><![CDATA[]]></fieldDescription>
	</field>
	<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="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"/>
	<field name="t_patient_relation_name" class="java.lang.String"/>
	<title>
		<band height="61" splitType="Stretch"/>
	</title>
	<pageHeader>
		<band height="130" splitType="Stretch">
			<staticText>
				<reportElement x="392" y="91" width="11" height="15" uuid="b704d0f4-7bcc-4b49-9d3d-3a5975d02ede"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<text><![CDATA[Yr]]></text>
			</staticText>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="380" y="91" width="12" height="15" uuid="6817a298-7ea7-4b3d-a9e7-c0224265b032"/>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{ageyr}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="39" y="91" width="137" 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 isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement x="491" y="91" width="52" height="15" uuid="4c0513ab-cccc-4cd5-b732-ccf5a703c064"/>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="1" y="91" width="38" height="15" uuid="7fc91311-e5aa-49b2-9d8c-1e4e0524eec7"/>
				<text><![CDATA[Name:]]></text>
			</staticText>
			<staticText>
				<reportElement x="354" y="91" width="26" height="15" uuid="eb9ebf5c-b192-4873-bf15-4d2eaa8032cf"/>
				<text><![CDATA[Age:]]></text>
			</staticText>
			<staticText>
				<reportElement x="176" y="91" width="46" height="15" uuid="843e41f3-2d6a-454b-8fd0-1dfa0d2126a5"/>
				<text><![CDATA[Patient id:]]></text>
			</staticText>
			<textField>
				<reportElement x="222" y="91" width="61" height="15" uuid="4cfb96e3-7e59-4a1c-9dda-0db1cbd2fae5"/>
				<textFieldExpression><![CDATA[$F{t_patient_id}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="403" y="91" width="21" height="15" uuid="6df61944-02c8-48f4-853d-8df391c79cf1"/>
				<text><![CDATA[Sex:]]></text>
			</staticText>
			<textField>
				<reportElement x="424" y="91" width="40" height="15" uuid="a6ca38c0-097a-4b35-9e25-83a992672d97"/>
				<textFieldExpression><![CDATA[$F{t_patient_patient_gender}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="464" y="91" width="27" height="15" uuid="03b181bd-13c7-49e0-88c9-6ccf81eb1c06"/>
				<text><![CDATA[Date:]]></text>
			</staticText>
			<staticText>
				<reportElement x="283" y="91" width="49" height="15" uuid="a2b8b3bc-7228-4a48-b0ed-aadaba257157"/>
				<text><![CDATA[Opd No.:]]></text>
			</staticText>
			<textField>
				<reportElement x="332" y="91" width="23" height="15" uuid="fc592917-e39b-49b0-9c5d-c6c86a93742f"/>
				<textFieldExpression><![CDATA[$F{t_doctor_appointment_patient_opd_number}]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<columnHeader>
		<band splitType="Stretch"/>
	</columnHeader>
	<detail>
		<band height="307" splitType="Stretch"/>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band height="2" splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band height="2" splitType="Stretch"/>
	</summary>
</jasperReport>

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

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