|
|
@ -11,9 +11,9 @@ import com.supervision.vo.manage.DiseaseAncillaryResVo;
|
|
|
|
import com.supervision.vo.manage.DiseasePhysicalResVo;
|
|
|
|
import com.supervision.vo.manage.DiseasePhysicalResVo;
|
|
|
|
import com.supervision.vo.manage.DiseaseTreatmentPlanResVo;
|
|
|
|
import com.supervision.vo.manage.DiseaseTreatmentPlanResVo;
|
|
|
|
import com.supervision.vo.manage.MedicalRecPageResVO;
|
|
|
|
import com.supervision.vo.manage.MedicalRecPageResVO;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import io.swagger.v3.oas.annotations.Parameter;
|
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
@ -21,7 +21,7 @@ import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
@Api(tags = "病历管理")
|
|
|
|
@Tag(name = "病历管理")
|
|
|
|
@RestController
|
|
|
|
@RestController
|
|
|
|
@RequestMapping("/medicalRecManage")
|
|
|
|
@RequestMapping("/medicalRecManage")
|
|
|
|
@RequiredArgsConstructor
|
|
|
|
@RequiredArgsConstructor
|
|
|
@ -29,93 +29,93 @@ public class MedicalRecManageController {
|
|
|
|
|
|
|
|
|
|
|
|
private final MedicalRecManageService medicalRecManageService;
|
|
|
|
private final MedicalRecManageService medicalRecManageService;
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("初步诊断下拉列表联想(这个接口查询所有疾病,包含复合疾病)")
|
|
|
|
@Operation(summary = "初步诊断下拉列表联想(这个接口查询所有疾病,包含复合疾病)")
|
|
|
|
@GetMapping("queryDiseaseListByDropList")
|
|
|
|
@GetMapping("queryDiseaseListByDropList")
|
|
|
|
public List<Disease> queryDiseaseListByDropList() {
|
|
|
|
public List<Disease> queryDiseaseListByDropList() {
|
|
|
|
return medicalRecManageService.queryDiseaseListByDropList();
|
|
|
|
return medicalRecManageService.queryDiseaseListByDropList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("初步诊断下拉列表联想(这个接口只查询单一疾病)")
|
|
|
|
@Operation(summary = "初步诊断下拉列表联想(这个接口只查询单一疾病)")
|
|
|
|
@GetMapping("querySingleDiseaseListByDropList")
|
|
|
|
@GetMapping("querySingleDiseaseListByDropList")
|
|
|
|
public List<Disease> querySingleDiseaseListByDropList() {
|
|
|
|
public List<Disease> querySingleDiseaseListByDropList() {
|
|
|
|
return medicalRecManageService.querySingleDiseaseListByDropList();
|
|
|
|
return medicalRecManageService.querySingleDiseaseListByDropList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("病历管理分页查询")
|
|
|
|
@Operation(summary = "病历管理分页查询")
|
|
|
|
@GetMapping("queryMedicalRecPage")
|
|
|
|
@GetMapping("queryMedicalRecPage")
|
|
|
|
public IPage<MedicalRecPageResVO> queryMedicalRecManagePage(@ApiParam("主诉") String selfDescKeyword,
|
|
|
|
public IPage<MedicalRecPageResVO> queryMedicalRecManagePage(@Parameter(name = "主诉") String selfDescKeyword,
|
|
|
|
@ApiParam("性别") String gender,
|
|
|
|
@Parameter(name = "性别") String gender,
|
|
|
|
@ApiParam("疾病ID") String diseaseId,
|
|
|
|
@Parameter(name = "疾病ID") String diseaseId,
|
|
|
|
Integer pageNum, Integer pageSize) {
|
|
|
|
Integer pageNum, Integer pageSize) {
|
|
|
|
return medicalRecManageService.queryMedicalRecManagePage(selfDescKeyword, gender, diseaseId, pageNum, pageSize);
|
|
|
|
return medicalRecManageService.queryMedicalRecManagePage(selfDescKeyword, gender, diseaseId, pageNum, pageSize);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("创建病历")
|
|
|
|
@Operation(summary = "创建病历")
|
|
|
|
@PostMapping("createMedicalRec")
|
|
|
|
@PostMapping("createMedicalRec")
|
|
|
|
public void createMedicalRec(@RequestBody MedicalRecManageVO reqVO) {
|
|
|
|
public void createMedicalRec(@RequestBody MedicalRecManageVO reqVO) {
|
|
|
|
medicalRecManageService.createMedicalRec(reqVO);
|
|
|
|
medicalRecManageService.createMedicalRec(reqVO);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("创建疾病时可选的的疾病列表")
|
|
|
|
@Operation(summary = "创建疾病时可选的的疾病列表")
|
|
|
|
@GetMapping("queryDiseaseListByCreat")
|
|
|
|
@GetMapping("queryDiseaseListByCreat")
|
|
|
|
public List<Disease> queryDiseaseListByCreat() {
|
|
|
|
public List<Disease> queryDiseaseListByCreat() {
|
|
|
|
return medicalRecManageService.queryDiseaseListByCreat();
|
|
|
|
return medicalRecManageService.queryDiseaseListByCreat();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("创建病历时查看配置的辅助检查项")
|
|
|
|
@Operation(summary = "创建病历时查看配置的辅助检查项")
|
|
|
|
@GetMapping("queryDiseaseAncillaryByCreat")
|
|
|
|
@GetMapping("queryDiseaseAncillaryByCreat")
|
|
|
|
public List<DiseaseAncillaryResVo> queryDiseaseAncillaryByCreat(String diseaseId){
|
|
|
|
public List<DiseaseAncillaryResVo> queryDiseaseAncillaryByCreat(String diseaseId){
|
|
|
|
return medicalRecManageService.queryDiseaseAncillaryByCreat(diseaseId);
|
|
|
|
return medicalRecManageService.queryDiseaseAncillaryByCreat(diseaseId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("创建病历时查看配置的体格检查项")
|
|
|
|
@Operation(summary = "创建病历时查看配置的体格检查项")
|
|
|
|
@GetMapping("queryDiseasePhysicalByCreat")
|
|
|
|
@GetMapping("queryDiseasePhysicalByCreat")
|
|
|
|
public List<DiseasePhysicalResVo> queryDiseasePhysicalByCreat(String diseaseId){
|
|
|
|
public List<DiseasePhysicalResVo> queryDiseasePhysicalByCreat(String diseaseId){
|
|
|
|
return medicalRecManageService.queryDiseasePhysicalByCreat(diseaseId);
|
|
|
|
return medicalRecManageService.queryDiseasePhysicalByCreat(diseaseId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("创建病历时查看配置的处置计划")
|
|
|
|
@Operation(summary = "创建病历时查看配置的处置计划")
|
|
|
|
@GetMapping("queryDiseaseTreatmentPlanByCreat")
|
|
|
|
@GetMapping("queryDiseaseTreatmentPlanByCreat")
|
|
|
|
public List<DiseaseTreatmentPlanResVo> queryDiseaseTreatmentPlanByCreat(String diseaseId){
|
|
|
|
public List<DiseaseTreatmentPlanResVo> queryDiseaseTreatmentPlanByCreat(String diseaseId){
|
|
|
|
return medicalRecManageService.queryDiseaseTreatmentPlanByCreat(diseaseId);
|
|
|
|
return medicalRecManageService.queryDiseaseTreatmentPlanByCreat(diseaseId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("创建病历时,根据疾病ID查询配置的问题")
|
|
|
|
@Operation(summary = "创建病历时,根据疾病ID查询配置的问题")
|
|
|
|
@GetMapping("queryQuestionListByCreat")
|
|
|
|
@GetMapping("queryQuestionListByCreat")
|
|
|
|
public List<MedicalRecQaVO> queryQuestionListByCreat(String diseaseId) {
|
|
|
|
public List<MedicalRecQaVO> queryQuestionListByCreat(String diseaseId) {
|
|
|
|
return medicalRecManageService.queryQuestionListByCreat(diseaseId);
|
|
|
|
return medicalRecManageService.queryQuestionListByCreat(diseaseId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("修改病历")
|
|
|
|
@Operation(summary = "修改病历")
|
|
|
|
@PostMapping("modifyMedicalRec")
|
|
|
|
@PostMapping("modifyMedicalRec")
|
|
|
|
public void modifyMedicalRec(@RequestBody MedicalRecManageVO reqVO) {
|
|
|
|
public void modifyMedicalRec(@RequestBody MedicalRecManageVO reqVO) {
|
|
|
|
medicalRecManageService.modifyMedicalRec(reqVO);
|
|
|
|
medicalRecManageService.modifyMedicalRec(reqVO);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("查询病例详细信息")
|
|
|
|
@Operation(summary = "查询病例详细信息")
|
|
|
|
@GetMapping("queryMedicalRecInfo")
|
|
|
|
@GetMapping("queryMedicalRecInfo")
|
|
|
|
public MedicalRecInfoVO queryMedicalRecInfo(String id) {
|
|
|
|
public MedicalRecInfoVO queryMedicalRecInfo(String id) {
|
|
|
|
return medicalRecManageService.queryMedicalRecInfo(id);
|
|
|
|
return medicalRecManageService.queryMedicalRecInfo(id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("删除病历")
|
|
|
|
@Operation(summary = "删除病历")
|
|
|
|
@GetMapping("deleteMedicalRec")
|
|
|
|
@GetMapping("deleteMedicalRec")
|
|
|
|
public void deleteMedicalRec(String id) {
|
|
|
|
public void deleteMedicalRec(String id) {
|
|
|
|
medicalRecManageService.deleteMedicalRec(id);
|
|
|
|
medicalRecManageService.deleteMedicalRec(id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("预导入疾病问题回答")
|
|
|
|
@Operation(summary = "预导入疾病问题回答")
|
|
|
|
@PostMapping("/preUploadMedicalAnswer")
|
|
|
|
@PostMapping("/preUploadMedicalAnswer")
|
|
|
|
public MedicalAnswerVideoResVo uploadMedicalAnswer(@ApiParam("文件") @RequestParam("file") MultipartFile multipartFile,
|
|
|
|
public MedicalAnswerVideoResVo uploadMedicalAnswer(@Parameter(name = "文件") @RequestParam("file") MultipartFile multipartFile,
|
|
|
|
@ApiParam("病例id") @RequestParam(value = "medicalRecId",required = false) String medicalRecId) throws Exception {
|
|
|
|
@Parameter(name = "病例id") @RequestParam(value = "medicalRecId", required = false) String medicalRecId) throws Exception {
|
|
|
|
|
|
|
|
|
|
|
|
return medicalRecManageService.preUploadMedicalAnswer(multipartFile, medicalRecId);
|
|
|
|
return medicalRecManageService.preUploadMedicalAnswer(multipartFile, medicalRecId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("下载疾病问题导入模板")
|
|
|
|
@Operation(summary = "下载疾病问题导入模板")
|
|
|
|
@GetMapping("/downloadMedicalAnswerTemplate")
|
|
|
|
@GetMapping("/downloadMedicalAnswerTemplate")
|
|
|
|
public void downloadMedicalAnswerTemplate(HttpServletResponse response) throws Exception {
|
|
|
|
public void downloadMedicalAnswerTemplate(HttpServletResponse response) throws Exception {
|
|
|
|
|
|
|
|
|
|
|
@ -123,11 +123,10 @@ public class MedicalRecManageController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "查询病例默认问题")
|
|
|
|
@ApiOperation("查询病例默认问题")
|
|
|
|
|
|
|
|
@GetMapping("/queryMedicalDefaultAnswer")
|
|
|
|
@GetMapping("/queryMedicalDefaultAnswer")
|
|
|
|
public List<MedicalRecQaVO> queryMedicalDefaultAnswer(@ApiParam("病例id")
|
|
|
|
public List<MedicalRecQaVO> queryMedicalDefaultAnswer(@Parameter(name = "病例id")
|
|
|
|
@RequestParam(value = "medicalRecId",required = false) String medicalRecId) {
|
|
|
|
@RequestParam(value = "medicalRecId", required = false) String medicalRecId) {
|
|
|
|
|
|
|
|
|
|
|
|
return medicalRecManageService.queryMedicalDefaultAnswer(medicalRecId);
|
|
|
|
return medicalRecManageService.queryMedicalDefaultAnswer(medicalRecId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|