|
|
@ -6,6 +6,7 @@ import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
import com.ruoyi.system.domain.*;
|
|
|
|
import com.ruoyi.system.domain.*;
|
|
|
|
import com.ruoyi.system.domain.req.AppPatientHospitalDoctor;
|
|
|
|
import com.ruoyi.system.domain.req.AppPatientHospitalDoctor;
|
|
|
|
import com.ruoyi.system.domain.req.AppPatientReq;
|
|
|
|
import com.ruoyi.system.domain.req.AppPatientReq;
|
|
|
|
|
|
|
|
import com.ruoyi.system.domain.req.AppRecordReq;
|
|
|
|
import com.ruoyi.system.domain.req.TRecordResultReq;
|
|
|
|
import com.ruoyi.system.domain.req.TRecordResultReq;
|
|
|
|
import com.ruoyi.system.service.*;
|
|
|
|
import com.ruoyi.system.service.*;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
@ -142,25 +143,29 @@ public class AppController extends BaseController
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@ApiOperation("诊断记录上传")
|
|
|
|
@ApiOperation("诊断记录上传")
|
|
|
|
@PostMapping("/record/diagnostic/upload")
|
|
|
|
@PostMapping("/record/diagnostic/upload")
|
|
|
|
public AjaxResult diagnosticRecordsUploaded(TRecord tRecord) {
|
|
|
|
public AjaxResult diagnosticRecordsUploaded(AppRecordReq appRecordReq) {
|
|
|
|
|
|
|
|
TRecord tRecord = new TRecord();
|
|
|
|
|
|
|
|
BeanUtils.copyProperties(appRecordReq, tRecord);
|
|
|
|
return AjaxResult.success(tRecordService.updateTRecord(tRecord));
|
|
|
|
return AjaxResult.success(tRecordService.updateTRecord(tRecord));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 添加病人
|
|
|
|
* 添加病人
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param tPatient t病人
|
|
|
|
* @param appPatientReq App端添加患者入参实体
|
|
|
|
* @return {@code AjaxResult}
|
|
|
|
* @return {@code AjaxResult}
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@ApiOperation("添加患者")
|
|
|
|
@ApiOperation("添加患者")
|
|
|
|
@PostMapping("/patient/add")
|
|
|
|
@PostMapping("/patient/add")
|
|
|
|
public AjaxResult addPatient(AppPatientReq tPatient)
|
|
|
|
public AjaxResult addPatient(AppPatientReq appPatientReq)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
TPatient tPatient = new TPatient();
|
|
|
|
|
|
|
|
BeanUtils.copyProperties(appPatientReq, tPatient);
|
|
|
|
tPatientService.insertTPatient(tPatient);
|
|
|
|
tPatientService.insertTPatient(tPatient);
|
|
|
|
TPatientHospitalDoctor tPatientHospitalDoctor = new TPatientHospitalDoctor();
|
|
|
|
TPatientHospitalDoctor tPatientHospitalDoctor = new TPatientHospitalDoctor();
|
|
|
|
tPatientHospitalDoctor.setHospitalId(tPatient.getHospitalId());
|
|
|
|
tPatientHospitalDoctor.setHospitalId(appPatientReq.getHospitalId());
|
|
|
|
tPatientHospitalDoctor.setDoctorId(tPatient.getDoctorId());
|
|
|
|
tPatientHospitalDoctor.setDoctorId(appPatientReq.getDoctorId());
|
|
|
|
tPatientHospitalDoctor.setPatientId(tPatient.getId());
|
|
|
|
tPatientHospitalDoctor.setPatientId(appPatientReq.getId());
|
|
|
|
List<TPatientHospitalDoctor> tPatientHospitalDoctors = itPatientHospitalDoctorService.selectTPatientHospitalDoctorList(tPatientHospitalDoctor);
|
|
|
|
List<TPatientHospitalDoctor> tPatientHospitalDoctors = itPatientHospitalDoctorService.selectTPatientHospitalDoctorList(tPatientHospitalDoctor);
|
|
|
|
if (tPatientHospitalDoctors.isEmpty())
|
|
|
|
if (tPatientHospitalDoctors.isEmpty())
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -169,6 +174,20 @@ public class AppController extends BaseController
|
|
|
|
return AjaxResult.success();
|
|
|
|
return AjaxResult.success();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 修改患者
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param appPatientReq App端添加患者入参实体
|
|
|
|
|
|
|
|
* @return {@code AjaxResult}
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@ApiOperation("患者信息修改")
|
|
|
|
|
|
|
|
@PostMapping("/patient/modify")
|
|
|
|
|
|
|
|
public AjaxResult patientsWithModified(AppPatientReq appPatientReq) {
|
|
|
|
|
|
|
|
TPatient tPatient = new TPatient();
|
|
|
|
|
|
|
|
BeanUtils.copyProperties(appPatientReq, tPatient);
|
|
|
|
|
|
|
|
return AjaxResult.success(tPatientService.updateTPatient(tPatient));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 诊断记录列表
|
|
|
|
* 诊断记录列表
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -191,12 +210,11 @@ public class AppController extends BaseController
|
|
|
|
* @return {@code AjaxResult}
|
|
|
|
* @return {@code AjaxResult}
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@ApiOperation("患者诊断记录信息详情")
|
|
|
|
@ApiOperation("患者诊断记录信息详情")
|
|
|
|
@GetMapping("/record/info")
|
|
|
|
@GetMapping("/record/info/{id}")
|
|
|
|
public AjaxResult patientsWithDiagnosisOfRecordInformationDetails(Long id) {
|
|
|
|
public AjaxResult patientsWithDiagnosisOfRecordInformationDetails(@PathVariable("id") Long id) {
|
|
|
|
return AjaxResult.success(tRecordService.selectById(id));
|
|
|
|
return AjaxResult.success(tRecordService.selectById(id));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 患者已诊列表
|
|
|
|
* 患者已诊列表
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -206,11 +224,10 @@ public class AppController extends BaseController
|
|
|
|
@ApiOperation("患者已诊列表")
|
|
|
|
@ApiOperation("患者已诊列表")
|
|
|
|
@GetMapping("/record/diagnosedList")
|
|
|
|
@GetMapping("/record/diagnosedList")
|
|
|
|
public AjaxResult patientsDiagnosedList(TRecordResultReq recordResultReq) {
|
|
|
|
public AjaxResult patientsDiagnosedList(TRecordResultReq recordResultReq) {
|
|
|
|
recordResultReq.setStatus("0");
|
|
|
|
recordResultReq.setStatus("1");
|
|
|
|
return AjaxResult.success(tRecordService.selectTRecordListWithoutResult(recordResultReq));
|
|
|
|
return AjaxResult.success(tRecordService.selectTRecordListWithoutResult(recordResultReq));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 病人等待名单
|
|
|
|
* 病人等待名单
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -220,7 +237,7 @@ public class AppController extends BaseController
|
|
|
|
@ApiOperation("患者候诊列表")
|
|
|
|
@ApiOperation("患者候诊列表")
|
|
|
|
@GetMapping("/record/waitingList")
|
|
|
|
@GetMapping("/record/waitingList")
|
|
|
|
public AjaxResult patientsWaitingList(TRecordResultReq recordResultReq) {
|
|
|
|
public AjaxResult patientsWaitingList(TRecordResultReq recordResultReq) {
|
|
|
|
recordResultReq.setStatus("2");
|
|
|
|
recordResultReq.setStatus("0");
|
|
|
|
return AjaxResult.success(tRecordService.selectTRecordListWithoutResult(recordResultReq));
|
|
|
|
return AjaxResult.success(tRecordService.selectTRecordListWithoutResult(recordResultReq));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|