| | |
| | | import com.ruoyi.system.service.ISysConfigService; |
| | | import com.ruoyi.inhospvisit.domain.PatMedInhosp; |
| | | import com.ruoyi.common.core.service.dto.PatMedReq; |
| | | import com.smartor.domain.DTO.ManualVisitDTO; |
| | | import com.smartor.service.IPatMedInhospService; |
| | | import com.smartor.service.IPatMedOuthospService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 患者住院记录Controller |
| | |
| | | public TableDataInfo getDocAndPat(@RequestBody PatMedInhosp patMedInhosp) { |
| | | return getDataTable(patMedInhospService.getDocAndPat(patMedInhosp)); |
| | | } |
| | | /** |
| | | * 患者人工随访:删除未完成随访任务并按指定任务重新生成 |
| | | */ |
| | | @ApiOperation("addManualVisit") |
| | | @PostMapping("/addManualVisit") |
| | | public AjaxResult addManualVisit(@RequestBody ManualVisitDTO manualVisitDTO) { |
| | | Map<String, Object> result = patMedInhospService.addManualVisit(manualVisitDTO); |
| | | if (Boolean.TRUE.equals(result.get("hasDuplicate"))) { |
| | | return AjaxResult.warn((String) result.get("tipMessage"), result); |
| | | } |
| | | return success(result); |
| | | } |
| | | |
| | | /** |
| | | * 临时方法,处理diagcheckFlag = 0的数据,重新生成随访任务 |
| | | */ |
| | | @ApiOperation("dealIcd10Subtask") |
| | | @PostMapping("/dealIcd10Subtask") |
| | | public void addIcd10SubTask(@RequestBody PatMedInhosp patMedInhospVo) { |
| | | String config = configService.selectConfigByKey("visit.early.day"); |
| | | iPatMedInhospService.dealIcd10Subtask(patMedInhospVo, config); |
| | | } |
| | | } |