|
|
|
@ -3,10 +3,7 @@ package com.ruoyi.web.controller.api;
|
|
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
|
import com.ruoyi.system.domain.TDoctor;
|
|
|
|
|
import com.ruoyi.system.domain.THospital;
|
|
|
|
|
import com.ruoyi.system.domain.TPatientHospitalDoctor;
|
|
|
|
|
import com.ruoyi.system.domain.TRecord;
|
|
|
|
|
import com.ruoyi.system.domain.*;
|
|
|
|
|
import com.ruoyi.system.service.*;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
@ -34,6 +31,9 @@ public class AppController extends BaseController
|
|
|
|
|
@Resource
|
|
|
|
|
private ITDoctorService tDoctorService;
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private ITPatientService tPatientService;
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private ITPatientHospitalDoctorService itPatientHospitalDoctorService;
|
|
|
|
|
|
|
|
|
@ -85,7 +85,7 @@ public class AppController extends BaseController
|
|
|
|
|
* @return {@code AjaxResult}
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation("患者预约")
|
|
|
|
|
@GetMapping("/getDoctorInfo")
|
|
|
|
|
@GetMapping("/patientsToMakeAnAppointment")
|
|
|
|
|
public AjaxResult patientsToMakeAnAppointment(TPatientHospitalDoctor tPatientHospitalDoctor)
|
|
|
|
|
{
|
|
|
|
|
// 患者预约,新增t_record中的一条记录;判断关联表是否存在当前关系
|
|
|
|
@ -123,4 +123,41 @@ public class AppController extends BaseController
|
|
|
|
|
{
|
|
|
|
|
return AjaxResult.success(configService.selectConfigByKey(configKey));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 诊断记录上传
|
|
|
|
|
*
|
|
|
|
|
* @return {@code AjaxResult}
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation("诊断记录上传")
|
|
|
|
|
@PostMapping("/diagnosticRecordsUploaded")
|
|
|
|
|
public AjaxResult diagnosticRecordsUploaded(TRecord tRecord) {
|
|
|
|
|
return AjaxResult.success(tRecordService.updateTRecord(tRecord));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 添加病人
|
|
|
|
|
*
|
|
|
|
|
* @param tPatient t病人
|
|
|
|
|
* @return {@code AjaxResult}
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation("添加患者")
|
|
|
|
|
@PostMapping("/addPatient")
|
|
|
|
|
public AjaxResult addPatient(TPatient tPatient) {
|
|
|
|
|
return AjaxResult.success(tPatientService.insertTPatient(tPatient));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 诊断记录列表
|
|
|
|
|
*
|
|
|
|
|
* @param tPatientHospitalDoctor t病人医院医生
|
|
|
|
|
* @return {@code AjaxResult}
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation("诊断记录列表")
|
|
|
|
|
@GetMapping("/diagnosisOfRecordList")
|
|
|
|
|
public AjaxResult diagnosisOfRecordList(TPatientHospitalDoctor tPatientHospitalDoctor) {
|
|
|
|
|
List<TRecord> tRecords = tRecordService.queryRecordListByPHDids(tPatientHospitalDoctor);
|
|
|
|
|
return AjaxResult.success(tRecords);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|