|
|
@ -3,6 +3,7 @@ package com.ccsens.tcm.api; |
|
|
|
import com.ccsens.cloudutil.annotation.MustLogin; |
|
|
|
import com.ccsens.tcm.bean.dto.PatientDto; |
|
|
|
import com.ccsens.tcm.bean.vo.PatientVo; |
|
|
|
import com.ccsens.tcm.bean.vo.QuestionVo; |
|
|
|
import com.ccsens.tcm.service.IPatientService; |
|
|
|
import com.ccsens.util.JsonResponse; |
|
|
|
import com.ccsens.util.bean.dto.QueryDto; |
|
|
@ -17,6 +18,7 @@ import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMethod; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
/** |
|
|
@ -27,7 +29,7 @@ import java.util.List; |
|
|
|
@RequestMapping("/patient") |
|
|
|
@Slf4j |
|
|
|
public class PatientController { |
|
|
|
|
|
|
|
@Resource |
|
|
|
private IPatientService patientService; |
|
|
|
|
|
|
|
@MustLogin |
|
|
@ -39,6 +41,16 @@ public class PatientController { |
|
|
|
log.info("添加患者基本信息成功"); |
|
|
|
return JsonResponse.newInstance().ok(); |
|
|
|
} |
|
|
|
@MustLogin |
|
|
|
@ApiOperation(value = "查询患者基本信息", notes = "w:查询患者基本信息") |
|
|
|
@RequestMapping(value = "/selPatientMes", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
|
public JsonResponse<PageInfo<PatientVo.SelPatient>> selPatientInformationList(@ApiParam @Validated @RequestBody QueryDto<PatientDto.SelPatientList> params) { |
|
|
|
log.info("查询患者基本信息:{}",params); |
|
|
|
PageInfo<PatientVo.SelPatient> selPatientList= patientService.selPatientInformationList(params.getParam(),params.getUserId()); |
|
|
|
log.info("查询患者基本信息成功"); |
|
|
|
return JsonResponse.newInstance().ok(selPatientList); |
|
|
|
} |
|
|
|
|
|
|
|
@MustLogin |
|
|
|
@ApiOperation(value = "保存患者病例信息", notes = "w:提交患者的相关病例信息") |
|
|
|
@RequestMapping(value = "/saveCaseMes", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
@ -56,13 +68,12 @@ public class PatientController { |
|
|
|
log.info("添加患者病例信息成功"); |
|
|
|
return JsonResponse.newInstance().ok(selPatientListPageInfo); |
|
|
|
} |
|
|
|
@ApiOperation(value = "通过查询搜索条件", notes = "w:通过查询搜索条件") |
|
|
|
@ApiOperation(value = "查询搜索条件", notes = "w:查询搜索条件") |
|
|
|
@RequestMapping(value = "/selSearchCriteriaList", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
|
public JsonResponse<List<PatientVo.SelPatient>> selSearchCriteriaList() { |
|
|
|
// List<PatientVo.SelPatient> selSearchCriteriaList= patientService.selSearchCriteriaList(params.getParam(),0L);
|
|
|
|
// log.info("通过查询搜索条件");
|
|
|
|
// return JsonResponse.newInstance().ok(selSearchCriteriaList);
|
|
|
|
return null; |
|
|
|
public JsonResponse<List<QuestionVo.ReportCodeVo>> selSearchCriteriaList() { |
|
|
|
List<QuestionVo.ReportCodeVo> selSearchCriteriaList= patientService.selSearchCriteriaList(); |
|
|
|
log.info("通过查询搜索条件"); |
|
|
|
return JsonResponse.newInstance().ok(selSearchCriteriaList); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|