| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.github.pagehelper.ISelect; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("查询患者档案列表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:list')") |
| | | @PostMapping("/list") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody PatArchive patArchive) { |
| | | startPage(); |
| | | List<PatArchive> list = patArchiveService.selectPatArchiveList(patArchive); |
| | |
| | | return success(patArchiveService.selectPatArchiveByPatid(patid)); |
| | | } |
| | | |
| | | // /** |
| | | // * 新增患者档案 |
| | | // */ |
| | | // @ApiOperation("新增患者档案") |
| | | // @PreAuthorize("@ss.hasPermi('smartor:patarchive:add')") |
| | | // @Log(title = "患者档案", businessType = BusinessType.INSERT) |
| | | // @PostMapping("/add") |
| | | // public AjaxResult add(@RequestBody PatArchive patArchive) { |
| | | // return toAjax(patArchiveService.insertPatArchive(patArchive)); |
| | | // } |
| | | |
| | | /** |
| | | * 新增患者档案 |
| | | */ |
| | | @ApiOperation("新增患者档案") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:add')") |
| | | @Log(title = "患者档案", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatArchive patArchive) { |
| | | return toAjax(patArchiveService.insertPatArchive(patArchive)); |
| | | @ApiOperation("修改患者档案") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:update')") |
| | | @Log(title = "患者档案", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | public AjaxResult update(@RequestBody PatArchive patArchive) { |
| | | return toAjax(patArchiveService.update(patArchive)); |
| | | } |
| | | |
| | | /** |
| | | * 修改患者档案 |
| | | * 新增或修改患者档信息 |
| | | */ |
| | | @ApiOperation("修改患者档案") |
| | | @ApiOperation("新增或修改患者档信息") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:edit')") |
| | | @Log(title = "患者档案", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatArchive patArchive) { |
| | | return toAjax(patArchiveService.updatePatArchive(patArchive)); |
| | | @PostMapping("/saveOrUpdatePatInfo") |
| | | public AjaxResult saveOrUpdatePatInfo(@RequestBody PatArchiveVO patArchiveVO) { |
| | | return toAjax(patArchiveService.saveOrUpdatePatInfo(patArchiveVO)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @ApiOperation("查询患者列表") |
| | | @PostMapping("/patInfoByContion") |
| | | public TableDataInfo patInfoByCondition(@RequestBody PatArchiveReq patArchive) { |
| | | PageUtils.startPageByPost(patArchive.getPageNum(),patArchive.getPageSize()); |
| | | return getDataTable(patArchiveService.patInfoByContion(patArchive)); |
| | | PageUtils.startPageByPost(patArchive.getPageNum(), patArchive.getPageSize()); |
| | | List<PatArchive> patArchives = patArchiveService.patInfoByContion(patArchive); |
| | | long count = PageUtils.count(new ISelect() { |
| | | @Override |
| | | public void doSelect() { |
| | | patArchiveService.patInfoByContion(patArchive); |
| | | } |
| | | }); |
| | | return getDataTable2(count, patArchives); |
| | | } |
| | | |
| | | |
| | | // /** |
| | | // * 患者标签管理 |
| | | // */ |
| | | // @ApiOperation("患者标签管理") |
| | | // @PostMapping("/patTagByContion") |
| | | // public TableDataInfo patTagByContion(@RequestBody List<Long> tagids) { |
| | | // startPage(); |
| | | // return getDataTable(patArchiveService.patTagByContion(tagids)); |
| | | // } |
| | | |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * 获取用户诊疗信息(医疗档案) |
| | | * |
| | | * @return |
| | | * 获取患者信息 |
| | | */ |
| | | @ApiOperation("获取用户诊疗信息(医疗档案") |
| | | @PostMapping("/getUserTreatmentInfo") |
| | | public AjaxResult getUserTreatmentInfo(@RequestParam("pid") String pid,@RequestParam("type") String type) { |
| | | return null; |
| | | @ApiOperation("获取患者信息") |
| | | @PostMapping("/getPatientInfo") |
| | | public TableDataInfo getPatientInfo(@RequestBody PatArchiveReq patArchiveReq) { |
| | | PageUtils.startPageByPost(patArchiveReq.getPageNum(), patArchiveReq.getPageSize()); |
| | | List<PatTaskRelevance> patientInfo = patArchiveService.getPatientInfo(patArchiveReq); |
| | | long count = PageUtils.count(new ISelect() { |
| | | @Override |
| | | public void doSelect() { |
| | | patArchiveService.getPatientInfo(patArchiveReq); |
| | | } |
| | | }); |
| | | return getDataTable2(count, patientInfo); |
| | | } |
| | | |
| | | } |