|
|
@@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import io.swagger.annotations.Api;
|
|
|
-import io.swagger.annotations.ApiModelProperty;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.shiro.SecurityUtils;
|
|
|
@@ -19,6 +18,7 @@ import org.jeecg.modules.medical.common.bo.*;
|
|
|
import org.jeecg.modules.medical.common.enums.AfterwardsAuditStatusEnum;
|
|
|
import org.jeecg.modules.medical.entity.AfterwardsAudit;
|
|
|
import org.jeecg.modules.medical.entity.AfterwardsAuditDetail;
|
|
|
+import org.jeecg.modules.medical.entity.MedicalDoctorAppealRecord;
|
|
|
import org.jeecg.modules.medical.service.IAfterwardsAuditService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.util.ObjectUtils;
|
|
|
@@ -64,33 +64,12 @@ public class AfterwardsAuditController extends JeecgController<AfterwardsAudit,
|
|
|
return Result.OK(pageList);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "审核端-获取审核详细信息")
|
|
|
- @GetMapping(value = "/audit/info")
|
|
|
- public Result<AuditInfoResponse> loadAuditInfo(HttpServletRequest request, @RequestParam("id") Integer id) {
|
|
|
- LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
-// String loginUserName = JwtUtil.getUserNameByToken(request);
|
|
|
- if (null == loginUser) {
|
|
|
- log.error("当前用户未登录");
|
|
|
- throw new JeecgBootException("用户未登录"); // "登录已过期,请重新登录"
|
|
|
- }
|
|
|
- AuditInfoResponse result = afterwardsAuditService.loadAuditInfo(id);
|
|
|
- return Result.OK(result);
|
|
|
- }
|
|
|
|
|
|
- @ApiOperation(value = "审核端-诊断信息")
|
|
|
- @GetMapping(value = "/audit/diagnostic/info")
|
|
|
- public Result<List<DiagnosticInfoResponse>> loadDiagnosticInformation(HttpServletRequest request, @RequestParam("id") Integer id) {
|
|
|
- LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
- if (null == loginUser) {
|
|
|
- log.error("当前用户未登录");
|
|
|
- throw new JeecgBootException("用户未登录"); // "登录已过期,请重新登录"
|
|
|
- }
|
|
|
- List<DiagnosticInfoResponse> result = afterwardsAuditService.loadDiagnosticInfo(id);
|
|
|
- return Result.OK(result);
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
@ApiOperation(value = "审核端-医嘱信息")
|
|
|
- @GetMapping(value = "/audit/")
|
|
|
+ @GetMapping(value = "/audit/medicalorder/info")
|
|
|
public Result<List<MedicalOrderInfoResponse>> loadMedicalOrderInfoResponseInfo(HttpServletRequest request, @RequestParam("id") Integer id) {
|
|
|
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
if (null == loginUser) {
|
|
|
@@ -101,6 +80,46 @@ public class AfterwardsAuditController extends JeecgController<AfterwardsAudit,
|
|
|
return Result.OK(result);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "审核端-医院结算明细")
|
|
|
+ @GetMapping(value = "/audit/settlement/detail")
|
|
|
+ public Result<InpatientSettlementDetailResponse> loadInpatientSettlementDetail(HttpServletRequest request, @RequestParam("id") Integer id) {
|
|
|
+ InpatientSettlementDetailResponse result = afterwardsAuditService.loadInpatientSettlementDetail(id);
|
|
|
+ return Result.OK("获取成功", result);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "审核端-患者住院结算主单")
|
|
|
+ @GetMapping(value = "/audit/settlement/master")
|
|
|
+ public Result<List<InpatientSettlementMasterResponse>> loadInpatientSettlementMaster(HttpServletRequest request, @RequestParam("id") Integer id) {
|
|
|
+ List<InpatientSettlementMasterResponse> result = afterwardsAuditService.loadInpatientSettlementMaster(id);
|
|
|
+ return Result.OK("获取成功", result);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "审核端-诊断信息")
|
|
|
+ @GetMapping(value = "/audit/diagnostic/info")
|
|
|
+ public Result<List<DiagnosticInfoResponse>> loadDiagnosticInformation(HttpServletRequest request, @RequestParam("id") Integer id) {
|
|
|
+ LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
+ if (null == loginUser) {
|
|
|
+ log.error("当前用户未登录");
|
|
|
+ throw new JeecgBootException("用户未登录"); // "登录已过期,请重新登录"
|
|
|
+ }
|
|
|
+ List<DiagnosticInfoResponse> result = afterwardsAuditService.loadDiagnosticInfo(id);
|
|
|
+ return Result.OK(result);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "审核端-获取审核详细信息")
|
|
|
+ @GetMapping(value = "/audit/info")
|
|
|
+ public Result<AuditInfoResponse> loadAuditInfo(HttpServletRequest request, @RequestParam("id") Integer id) {
|
|
|
+ LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
+// String loginUserName = JwtUtil.getUserNameByToken(request);
|
|
|
+ if (null == loginUser) {
|
|
|
+ log.error("当前用户未登录");
|
|
|
+ throw new JeecgBootException("用户未登录"); // "登录已过期,请重新登录"
|
|
|
+ }
|
|
|
+ AuditInfoResponse result = afterwardsAuditService.loadAuditInfo(id);
|
|
|
+ return Result.OK(result);
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "审核端-发起审核", notes = "审核端-发起审核")
|
|
|
@PostMapping(value = "/audit")
|
|
|
public Result<String> audit(HttpServletRequest request, @RequestBody @Valid AuditRequestBO param) {
|
|
|
@@ -128,6 +147,7 @@ public class AfterwardsAuditController extends JeecgController<AfterwardsAudit,
|
|
|
afterwardsAudit.setOutpatientNumber(param.getAdmissionNumber());
|
|
|
afterwardsAudit.setPatientId(param.getPatientName());
|
|
|
afterwardsAudit.setCheckState(param.getCheckState());
|
|
|
+ afterwardsAudit.setDoctorId(param.getDoctorId());
|
|
|
QueryWrapper<AfterwardsAudit> queryWrapper = QueryGenerator.initQueryWrapper(afterwardsAudit, req.getParameterMap());
|
|
|
Page<AfterwardsAudit> page = new Page<>(pageNo, pageSize);
|
|
|
IPage<AfterwardsAudit> violations = afterwardsAuditService.getDoctorViolations(page, queryWrapper, loginUser);
|
|
|
@@ -145,7 +165,7 @@ public class AfterwardsAuditController extends JeecgController<AfterwardsAudit,
|
|
|
return Result.OK("获取成功", result);
|
|
|
}
|
|
|
|
|
|
- @ApiModelProperty(value = "科室端,复核", notes = "科室端,复核")
|
|
|
+ @ApiOperation(value = "科室端,复核", notes = "科室端,复核")
|
|
|
@PostMapping(value = "/dept/audit")
|
|
|
public Result<?> deptAudit(HttpServletRequest request, @RequestBody @Valid DeptAuditRequestBO param) {
|
|
|
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
@@ -157,6 +177,19 @@ public class AfterwardsAuditController extends JeecgController<AfterwardsAudit,
|
|
|
return Result.OK("请求成功");
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "科室端,查看复核记录", notes = "科室端-查看复核记录")
|
|
|
+ @GetMapping(value = "/appeal/record/list")
|
|
|
+ public Result<List<MedicalDoctorAppealRecord>> loadAppeal(Integer id) {
|
|
|
+ LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
+ if (null == loginUser) {
|
|
|
+ log.error("当前用户未登录");
|
|
|
+ throw new JeecgBootException("用户未登录"); // "登录已过期,请重新登录"
|
|
|
+ }
|
|
|
+ List<MedicalDoctorAppealRecord> record = afterwardsAuditService.loadAppealRecord(id, loginUser);
|
|
|
+ return Result.OK(record);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 分页列表查询
|
|
|
*
|