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
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bestray.healthcareemr.Dao;

import com.bestray.healthcarecommonutil.exception.DataAccessException;
import com.bestray.healthcarecommonutil.vo.TAppointment;
import com.bestray.healthcarecommonutil.vo.TDepartmentMaster;
import com.bestray.healthcarecommonutil.vo.TDoctorInformation;
import com.bestray.healthcarecommonutil.vo.TPatient;
import com.bestray.healthcareemr.Vo.TOpdNumbers;
import java.util.Date;
import java.util.List;
import org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException;

// TODO: Auto-generated Javadoc
/**
 * The Interface AppointmentDao.
 *
 * @author sumitHome
 */
public interface AppointmentDao {

    /**
     * Find all appointment list.
     *
     * @param dt the dt
     * @param doctorId the doctor id
     * @return the list
     * @throws DataAccessException the data access exception
     */
    public List<TAppointment> findAllAppointmentList(Date dt,TDoctorInformation doctorId)throws DataAccessException;

    /**
     * Update appointment details.
     *
     * @param appointment the appointment
     * @throws DataAccessException the data access exception
     * @throws HibernateOptimisticLockingFailureException the hibernate optimistic locking failure exception
     */
    public void updateAppointmentDetails(TAppointment appointment)throws DataAccessException,HibernateOptimisticLockingFailureException;

    /**
     * Save appointment details.
     *
     * @param appointment the appointment
     * @throws DataAccessException the data access exception
     */
    public void saveAppointmentDetails(TAppointment appointment)throws DataAccessException;

    /**
     * Find appointment list by patient.
     *
     * @param patientId the patient id
     * @return the list
     * @throws DataAccessException the data access exception
     */
    public List<TAppointment> findAppointmentListByPatient(TPatient patientId)throws DataAccessException;

    /**
     * Find appointment details by id.
     *
     * @param appointmentID the appointment id
     * @return the t appointment
     * @throws DataAccessException the data access exception
     */
    public TAppointment findAppointmentDetailsById(Long appointmentID)throws DataAccessException;

    /**
     * Find appointment list by date.
     *
     * @param appointmentDate the appointment date
     * @return the list
     * @throws DataAccessException the data access exception
     */
    public List<TAppointment> findAppointmentListByDate(Date appointmentDate)throws DataAccessException;

    //public void deleteAppointmentrecord(TAppointment appointment)throws DataAccessException;
    
    /**
     * Save all appointments.
     *
     * @param appointments the appointments
     * @throws DataAccessException the data access exception
     */
    public void saveAllAppointments(List<TAppointment> appointments) throws DataAccessException;

    /**
     * Find previous appointments.
     *
     * @param patientId the patient id
     * @param AppointmentDate the appointment date
     * @param departmentId the department id
     * @param doctorName the doctor name
     * @param visitType the visit type
     * @return the list
     * @throws DataAccessException the data access exception
     */
    public List<TAppointment> findPreviousAppointments(TPatient patientId, Date AppointmentDate, TDepartmentMaster departmentId, TDoctorInformation doctorName, String visitType) throws DataAccessException;

    /**
     * Find appointment list by department.
     *
     * @param appointmentDate the appointment date
     * @param departmentId the department id
     * @return the list
     * @throws DataAccessException the data access exception
     */
    public List<TAppointment> findAppointmentListByDepartment(Date appointmentDate, TDepartmentMaster departmentId)throws DataAccessException;

    /**
     * Find appointment list by doctor.
     *
     * @param appointmentDate the appointment date
     * @param departmentId the department id
     * @param doctorId the doctor id
     * @return the list
     * @throws DataAccessException the data access exception
     */
    public List<TAppointment> findAppointmentListByDoctor(Date appointmentDate, TDepartmentMaster departmentId, TDoctorInformation doctorId)throws DataAccessException;
    
    /**
     * Gets the max opd number.
     *
     * @return the max opd number
     * @throws DataAccessException the data access exception
     */
    public TOpdNumbers getMaxOpdNumber(Date date) throws DataAccessException;
    
    /**
     * Save opd detail.
     *
     * @param opdnumber the opdnumber
     * @throws DataAccessException the data access exception
     */
    public void saveOpdDetail(TOpdNumbers opdnumber)throws DataAccessException;

    /**
     * Gets the visit occurance.
     *
     * @param id the id
     * @return the visit occurance
     * @throws DataAccessException the data access exception
     */
    public int getVisitOccurance(TPatient patient)throws DataAccessException;
    
    public List<TAppointment> showAppointmentList(Date date,String month,int monthyear,int year,TDepartmentMaster dept)throws DataAccessException;
}

Commits for Aurocare_27_07_2018/AuroCareEMR/src/main/java/com/bestray/healthcareemr/Dao/AppointmentDao.java

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