|
|
|
@ -6,7 +6,6 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
|
|
import com.ruoyi.common.config.RuoYiConfig;
|
|
|
|
|
import com.ruoyi.common.constant.Constants;
|
|
|
|
|
import com.ruoyi.common.constant.UserConstants;
|
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
@ -103,6 +102,7 @@ public class AppController extends BaseController
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation("医院列表")
|
|
|
|
|
@GetMapping("/hospital/list")
|
|
|
|
|
@Log(title = "查询医院列表", businessType = BusinessType.OTHER)
|
|
|
|
|
public AjaxResult hospitalList()
|
|
|
|
|
{
|
|
|
|
|
List<THospital> tHospitals = tHospitalService.selectTHospitalList(new THospital());
|
|
|
|
@ -118,6 +118,7 @@ public class AppController extends BaseController
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation("医生信息获取")
|
|
|
|
|
@GetMapping("/doctor/info")
|
|
|
|
|
@Log(title = "获取医生信息", businessType = BusinessType.OTHER)
|
|
|
|
|
public AjaxResult doctorInformation(Long doctorId)
|
|
|
|
|
{
|
|
|
|
|
return AjaxResult.success(tDoctorService.selectAppDoctorDetailById(doctorId));
|
|
|
|
@ -296,6 +297,7 @@ public class AppController extends BaseController
|
|
|
|
|
|
|
|
|
|
@ApiOperation("获取患者详细信息")
|
|
|
|
|
@GetMapping("/patient/info/{id}")
|
|
|
|
|
@Log(title = "获取患者详细信息", businessType = BusinessType.OTHER)
|
|
|
|
|
public AjaxResult getPatientInfo2(@PathVariable("id") Long id)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
@ -311,12 +313,16 @@ public class AppController extends BaseController
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation("患者诊断记录历史列表")
|
|
|
|
|
@GetMapping("/record/list/{patientId}")
|
|
|
|
|
@Log(title = "患者诊断记录历史列表", businessType = BusinessType.OTHER)
|
|
|
|
|
public AjaxResult diagnosisOfRecordList(@PathVariable("patientId") Long patientId)
|
|
|
|
|
{
|
|
|
|
|
TPatientHospitalDoctor tPatientHospitalDoctor = new TPatientHospitalDoctor();
|
|
|
|
|
tPatientHospitalDoctor.setPatientId(patientId);
|
|
|
|
|
List<TRecordResp> tRecords = tRecordService.queryRecordListByPHDids(tPatientHospitalDoctor);
|
|
|
|
|
List<TRecordResp> tRecordResps = tRecords.stream().filter(record -> "1".equals(record.getStatus())).collect(Collectors.toList());
|
|
|
|
|
if (tRecordResps.isEmpty()) {
|
|
|
|
|
return AjaxResult.success(new ArrayList<TRecordResp>());
|
|
|
|
|
}
|
|
|
|
|
List<TRecordResp> respList = tRecordResps.stream().sorted(Comparator.comparing(TRecordResp::getUploadTime).reversed()).collect(Collectors.toList());
|
|
|
|
|
return AjaxResult.success(respList);
|
|
|
|
|
}
|
|
|
|
@ -329,6 +335,7 @@ public class AppController extends BaseController
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation("患者诊断记录信息详情")
|
|
|
|
|
@GetMapping("/record/info/{id}")
|
|
|
|
|
@Log(title = "患者诊断记录信息详情", businessType = BusinessType.OTHER)
|
|
|
|
|
public AjaxResult patientsWithDiagnosisOfRecordInformationDetails(@PathVariable("id") Long id)
|
|
|
|
|
{
|
|
|
|
|
Map<String,Object> data = new HashMap<>();
|
|
|
|
@ -348,6 +355,7 @@ public class AppController extends BaseController
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation("患者已诊列表")
|
|
|
|
|
@GetMapping("/record/diagnosedList")
|
|
|
|
|
@Log(title = "患者已诊列表", businessType = BusinessType.OTHER)
|
|
|
|
|
public TableDataInfo patientsDiagnosedList(TRecordResultReq recordResultReq)
|
|
|
|
|
{
|
|
|
|
|
// recordResultReq.setStatus("1");
|
|
|
|
@ -357,6 +365,7 @@ public class AppController extends BaseController
|
|
|
|
|
|
|
|
|
|
@ApiOperation("首页患者列表")
|
|
|
|
|
@GetMapping("/home/patient/list")
|
|
|
|
|
@Log(title = "查询首页患者列表", businessType = BusinessType.OTHER)
|
|
|
|
|
public TableDataInfo queryHomePatientsList(TRecordResultReq recordResultReq)
|
|
|
|
|
{
|
|
|
|
|
// recordResultReq.setStatus("1");
|
|
|
|
@ -373,6 +382,7 @@ public class AppController extends BaseController
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation("患者候诊列表")
|
|
|
|
|
@GetMapping("/record/waitingList")
|
|
|
|
|
@Log(title = "查询患者候诊列表", businessType = BusinessType.OTHER)
|
|
|
|
|
public TableDataInfo patientsWaitingList(TRecordResultReq recordResultReq)
|
|
|
|
|
{
|
|
|
|
|
// recordResultReq.setStatus("0");
|
|
|
|
@ -382,6 +392,7 @@ public class AppController extends BaseController
|
|
|
|
|
|
|
|
|
|
@ApiOperation("小程序获取患者详细信息")
|
|
|
|
|
@GetMapping("/patient/info")
|
|
|
|
|
@Log(title = "小程序获取患者详细信息", businessType = BusinessType.OTHER)
|
|
|
|
|
public AjaxResult getPatientInfo()
|
|
|
|
|
{
|
|
|
|
|
return AjaxResult.success(tPatientService.selectTPatientById(getUserId()));
|
|
|
|
@ -389,6 +400,7 @@ public class AppController extends BaseController
|
|
|
|
|
|
|
|
|
|
@GetMapping("/patient/record/historyData")
|
|
|
|
|
@ApiOperation("查询患者历史数据图表")
|
|
|
|
|
@Log(title = "查询患者历史数据图表", businessType = BusinessType.OTHER)
|
|
|
|
|
public AjaxResult getHistoryRecordList(AppRecordReq appRecordReq)
|
|
|
|
|
{
|
|
|
|
|
TRecord tRecord = new TRecord();
|
|
|
|
@ -398,6 +410,7 @@ public class AppController extends BaseController
|
|
|
|
|
|
|
|
|
|
@PostMapping("/ai/{recordId}")
|
|
|
|
|
@ApiOperation("ai接口")
|
|
|
|
|
@Log(title = "调用ai接口", businessType = BusinessType.OTHER)
|
|
|
|
|
public AjaxResult aiPost(@PathVariable("recordId") Long recordId, @RequestBody AiPostReq aiPostReq)
|
|
|
|
|
{
|
|
|
|
|
//删除同一次预约调用多次ai接口的图片数据
|
|
|
|
@ -451,6 +464,7 @@ public class AppController extends BaseController
|
|
|
|
|
|
|
|
|
|
@GetMapping("/image/{recordId}")
|
|
|
|
|
@ApiOperation("获取图片接口")
|
|
|
|
|
@Log(title = "获取图片接口", businessType = BusinessType.OTHER)
|
|
|
|
|
public AjaxResult getAiImage(@PathVariable("recordId") Long recordId){
|
|
|
|
|
if(recordId == null){
|
|
|
|
|
return AjaxResult.error("未获取到参数");
|
|
|
|
|