|
|
|
@ -3,6 +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.common.enums.BusinessType;
|
|
|
|
|
import com.ruoyi.system.domain.THospital;
|
|
|
|
|
import com.ruoyi.system.domain.TPatient;
|
|
|
|
|
import com.ruoyi.system.domain.TPatientHospitalDoctor;
|
|
|
|
@ -54,6 +55,7 @@ public class AppController extends BaseController
|
|
|
|
|
* 完成AI诊断
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation("完成AI诊断")
|
|
|
|
|
@Log(title = "App诊断记录状态", businessType = BusinessType.UPDATE)
|
|
|
|
|
@GetMapping("/ai/finish")
|
|
|
|
|
public AjaxResult finish(Long id)
|
|
|
|
|
{
|
|
|
|
@ -97,6 +99,7 @@ public class AppController extends BaseController
|
|
|
|
|
* @return {@code AjaxResult}
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation("患者预约")
|
|
|
|
|
@Log(title = "小程序患者预约", businessType = BusinessType.INSERT)
|
|
|
|
|
@GetMapping("/patient/makeAnAppointment")
|
|
|
|
|
public AjaxResult patientsToMakeAnAppointment(AppPatientHospitalDoctor appPatientHospitalDoctor)
|
|
|
|
|
{
|
|
|
|
@ -120,7 +123,7 @@ public class AppController extends BaseController
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PutMapping("/record/ai/finish/{id}")
|
|
|
|
|
@Log(title = "修改患者记录至已诊状态")
|
|
|
|
|
@Log(title = "App诊断记录状态", businessType = BusinessType.UPDATE)
|
|
|
|
|
public AjaxResult updateStatus(@PathVariable("id") Long id){
|
|
|
|
|
if(id == null){
|
|
|
|
|
return AjaxResult.error("未获取到记录id");
|
|
|
|
@ -133,7 +136,7 @@ public class AppController extends BaseController
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/config/ai/refreshtime")
|
|
|
|
|
@Log(title = "获取AI结果刷新时间接口")
|
|
|
|
|
//@Log(title = "获取AI结果刷新时间接口")
|
|
|
|
|
@ApiOperation("获取AI结果刷新时间接口")
|
|
|
|
|
public AjaxResult getConfigKey()
|
|
|
|
|
{
|
|
|
|
@ -147,6 +150,7 @@ public class AppController extends BaseController
|
|
|
|
|
* @return {@code AjaxResult}
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation("诊断记录上传")
|
|
|
|
|
@Log(title = "App诊断记录上传", businessType = BusinessType.UPDATE)
|
|
|
|
|
@PostMapping("/record/diagnostic/upload")
|
|
|
|
|
public AjaxResult diagnosticRecordsUploaded(@RequestBody AppRecordReq appRecordReq) {
|
|
|
|
|
TRecord tRecord = new TRecord();
|
|
|
|
@ -161,6 +165,7 @@ public class AppController extends BaseController
|
|
|
|
|
* @return {@code AjaxResult}
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation("添加患者")
|
|
|
|
|
@Log(title = "App患者添加", businessType = BusinessType.INSERT)
|
|
|
|
|
@PostMapping("/patient/add")
|
|
|
|
|
public AjaxResult addPatient(@RequestBody AppPatientReq appPatientReq)
|
|
|
|
|
{
|
|
|
|
@ -186,6 +191,7 @@ public class AppController extends BaseController
|
|
|
|
|
* @return {@code AjaxResult}
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation("患者信息修改")
|
|
|
|
|
@Log(title = "App患者修改", businessType = BusinessType.UPDATE)
|
|
|
|
|
@PostMapping("/patient/modify")
|
|
|
|
|
public AjaxResult patientsWithModified(@RequestBody AppPatientReq appPatientReq) {
|
|
|
|
|
TPatient tPatient = new TPatient();
|
|
|
|
|