|
@ -1231,7 +1231,7 @@ public class RehabilitationInfoService {
|
|
|
*/
|
|
|
public List<Map<String, Object>> getPatientRehabilitationByPatientId(String patientId, String planId) {
|
|
|
String sql = "SELECT DISTINCT \n" +
|
|
|
" a.id,a.`name`,a.birthday,a.phone,a.sex,a.mobile,c.age,a.idcard,\n" +
|
|
|
" a.id,a.`name`,a.birthday,a.phone,a.sex,a.mobile,TIMESTAMPDIFF(YEAR,a.birthday,NOW()) 'age',a.idcard,\n" +
|
|
|
" b.id 'planId',b.title 'planTitle',b.plan_doctor_name 'planDoctorName',d. `name` 'diseaseName',c.dept_name 'deptName',\n" +
|
|
|
" b.`status` 'planStatus', c.hospital_name 'hospitalName',b.medical_records_code medicalRecordsCode," +
|
|
|
" c.from_source, " +
|