|
@ -85,7 +85,7 @@ public interface FollowUpDao extends PagingAndSortingRepository<Followup, Long>,
|
|
*/
|
|
*/
|
|
@Query("select d.id,d.name,d.photo,a.followupType,a.followupClass,a.status,a.createTime,a.updateTime,a.followupManagerStatus," +
|
|
@Query("select d.id,d.name,d.photo,a.followupType,a.followupClass,a.status,a.createTime,a.updateTime,a.followupManagerStatus," +
|
|
"c.id,c.name,c.photo" + ",a.followupDate,a.followupPlanDate,a.followupNextDate,a.id,a.followupNo,a.prescriptionCode ," +
|
|
"c.id,c.name,c.photo" + ",a.followupDate,a.followupPlanDate,a.followupNextDate,a.id,a.followupNo,a.prescriptionCode ," +
|
|
" p.disease,p.diseaseName,q.planId,q.id " +
|
|
|
|
|
|
" p.disease,p.diseaseName,q.planId,q.id,q.doctorName " +
|
|
"from Followup a, BaseDoctorDO d, BaseDoctorDO c ,ServiceItemPlanDO q ,PatientRehabilitationPlanDO p " +
|
|
"from Followup a, BaseDoctorDO d, BaseDoctorDO c ,ServiceItemPlanDO q ,PatientRehabilitationPlanDO p " +
|
|
"where a.doctorCode = d.id AND a.id = q.relationCode and q.planId=p.id and a.creater = c.id and a.patientCode = ?1 and a.doctorCode=?2 and a.status > '0'")
|
|
"where a.doctorCode = d.id AND a.id = q.relationCode and q.planId=p.id and a.creater = c.id and a.patientCode = ?1 and a.doctorCode=?2 and a.status > '0'")
|
|
Page<Object> findByPatient(String patient,String doctor, PageRequest pageable);
|
|
Page<Object> findByPatient(String patient,String doctor, PageRequest pageable);
|
|
@ -96,7 +96,7 @@ public interface FollowUpDao extends PagingAndSortingRepository<Followup, Long>,
|
|
*/
|
|
*/
|
|
@Query("select d.id,d.name,d.photo,a.followupType,a.followupClass,a.status,a.createTime,a.updateTime,a.followupManagerStatus," +
|
|
@Query("select d.id,d.name,d.photo,a.followupType,a.followupClass,a.status,a.createTime,a.updateTime,a.followupManagerStatus," +
|
|
"c.id,c.name,c.photo" + ",a.followupDate,a.followupPlanDate,a.followupNextDate,a.id,a.followupNo,a.prescriptionCode ," +
|
|
"c.id,c.name,c.photo" + ",a.followupDate,a.followupPlanDate,a.followupNextDate,a.id,a.followupNo,a.prescriptionCode ," +
|
|
" p.disease,p.diseaseName,q.planId,q.id " +
|
|
|
|
|
|
" p.disease,p.diseaseName,q.planId,q.id,q.doctorName " +
|
|
"from Followup a, BaseDoctorDO d, BaseDoctorDO c ,ServiceItemPlanDO q ,PatientRehabilitationPlanDO p " +
|
|
"from Followup a, BaseDoctorDO d, BaseDoctorDO c ,ServiceItemPlanDO q ,PatientRehabilitationPlanDO p " +
|
|
"where a.doctorCode = d.id AND a.id = q.relationCode and q.planId=p.id and a.creater = c.id and a.patientCode = ?1 and a.status > '0'")
|
|
"where a.doctorCode = d.id AND a.id = q.relationCode and q.planId=p.id and a.creater = c.id and a.patientCode = ?1 and a.status > '0'")
|
|
Page<Object> findByPatient(String patient, PageRequest pageable);
|
|
Page<Object> findByPatient(String patient, PageRequest pageable);
|
|
@ -107,7 +107,7 @@ public interface FollowUpDao extends PagingAndSortingRepository<Followup, Long>,
|
|
*/
|
|
*/
|
|
@Query("select d.id,d.name,d.photo,a.followupType,a.followupClass,a.status,a.createTime,a.updateTime,a.followupManagerStatus," +
|
|
@Query("select d.id,d.name,d.photo,a.followupType,a.followupClass,a.status,a.createTime,a.updateTime,a.followupManagerStatus," +
|
|
"c.id,c.name,c.photo" + ",a.followupDate,a.followupPlanDate,a.followupNextDate,a.id,a.followupNo,a.prescriptionCode ," +
|
|
"c.id,c.name,c.photo" + ",a.followupDate,a.followupPlanDate,a.followupNextDate,a.id,a.followupNo,a.prescriptionCode ," +
|
|
" p.disease,p.diseaseName,q.planId,q.id " +
|
|
|
|
|
|
" p.disease,p.diseaseName,q.planId,q.id,q.doctorName " +
|
|
"from Followup a, BaseDoctorDO d, BaseDoctorDO c,ServiceItemPlanDO q ,PatientRehabilitationPlanDO p " +
|
|
"from Followup a, BaseDoctorDO d, BaseDoctorDO c,ServiceItemPlanDO q ,PatientRehabilitationPlanDO p " +
|
|
"where a.doctorCode = d.id AND a.id = q.relationCode and q.planId=p.id and a.creater = c.id and a.patientCode = ?1 and a.doctorCode=?2 and a.status = '2' ")
|
|
"where a.doctorCode = d.id AND a.id = q.relationCode and q.planId=p.id and a.creater = c.id and a.patientCode = ?1 and a.doctorCode=?2 and a.status = '2' ")
|
|
Page<Object> findPlanByPatient(String patient,String doctor, PageRequest pageable);
|
|
Page<Object> findPlanByPatient(String patient,String doctor, PageRequest pageable);
|
|
@ -117,7 +117,7 @@ public interface FollowUpDao extends PagingAndSortingRepository<Followup, Long>,
|
|
*/
|
|
*/
|
|
@Query("select d.id,d.name,d.photo,a.followupType,a.followupClass,a.status,a.createTime,a.updateTime,a.followupManagerStatus," +
|
|
@Query("select d.id,d.name,d.photo,a.followupType,a.followupClass,a.status,a.createTime,a.updateTime,a.followupManagerStatus," +
|
|
"c.id,c.name,c.photo" + ",a.followupDate,a.followupPlanDate,a.followupNextDate,a.id,a.followupNo,a.prescriptionCode ," +
|
|
"c.id,c.name,c.photo" + ",a.followupDate,a.followupPlanDate,a.followupNextDate,a.id,a.followupNo,a.prescriptionCode ," +
|
|
" p.disease,p.diseaseName,q.planId,q.id " +
|
|
|
|
|
|
" p.disease,p.diseaseName,q.planId,q.id,q.doctorName " +
|
|
"from Followup a, BaseDoctorDO d, BaseDoctorDO c,ServiceItemPlanDO q ,PatientRehabilitationPlanDO p " +
|
|
"from Followup a, BaseDoctorDO d, BaseDoctorDO c,ServiceItemPlanDO q ,PatientRehabilitationPlanDO p " +
|
|
"where a.doctorCode = d.id AND a.id = q.relationCode and q.planId=p.id and a.creater = c.id and a.patientCode = ?1 and a.status = '2' ")
|
|
"where a.doctorCode = d.id AND a.id = q.relationCode and q.planId=p.id and a.creater = c.id and a.patientCode = ?1 and a.status = '2' ")
|
|
Page<Object> findPlanByPatient(String patient, PageRequest pageable);
|
|
Page<Object> findPlanByPatient(String patient, PageRequest pageable);
|
|
@ -131,7 +131,7 @@ public interface FollowUpDao extends PagingAndSortingRepository<Followup, Long>,
|
|
*/
|
|
*/
|
|
@Query("select d.id,d.name,d.photo,a.followupType,a.followupClass,a.status,a.createTime,a.updateTime,a.followupManagerStatus," +
|
|
@Query("select d.id,d.name,d.photo,a.followupType,a.followupClass,a.status,a.createTime,a.updateTime,a.followupManagerStatus," +
|
|
"c.id,c.name,c.photo" + ",a.followupDate,a.followupPlanDate,a.followupNextDate,a.id,a.followupNo,a.prescriptionCode, " +
|
|
"c.id,c.name,c.photo" + ",a.followupDate,a.followupPlanDate,a.followupNextDate,a.id,a.followupNo,a.prescriptionCode, " +
|
|
" p.disease,p.diseaseName,q.planId,q.id " +
|
|
|
|
|
|
" p.disease,p.diseaseName,q.planId,q.id ,q.doctorName " +
|
|
"from Followup a, BaseDoctorDO d, BaseDoctorDO c , ServiceItemPlanDO q ,PatientRehabilitationPlanDO p " +
|
|
"from Followup a, BaseDoctorDO d, BaseDoctorDO c , ServiceItemPlanDO q ,PatientRehabilitationPlanDO p " +
|
|
" where a.doctorCode = d.id AND a.id = q.relationCode and q.planId=p.id and a.creater = c.id and a.patientCode = ?1 and a.doctorCode=?2 and (a.status = '1' or a.status = '3')")
|
|
" where a.doctorCode = d.id AND a.id = q.relationCode and q.planId=p.id and a.creater = c.id and a.patientCode = ?1 and a.doctorCode=?2 and (a.status = '1' or a.status = '3')")
|
|
Page<Object> findRecordByPatient(String patient, String doctor,PageRequest pageable);
|
|
Page<Object> findRecordByPatient(String patient, String doctor,PageRequest pageable);
|