|
|
|
@ -4,9 +4,8 @@ import cn.hutool.core.collection.CollUtil;
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
|
import com.supervision.manage.pojo.vo.*;
|
|
|
|
|
import com.supervision.manage.service.MedicalRecManageService;
|
|
|
|
|
import com.supervision.vo.manage.MedicalRecTreatmentPlanResVo;
|
|
|
|
|
import com.supervision.model.Disease;
|
|
|
|
|
import com.supervision.model.DiseaseAncillary;
|
|
|
|
|
import com.supervision.model.DiseasePhysical;
|
|
|
|
|
import com.supervision.vo.manage.*;
|
|
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
|
|
import io.swagger.v3.oas.annotations.Parameter;
|
|
|
|
@ -67,10 +66,10 @@ public class MedicalRecManageController {
|
|
|
|
|
return medicalRecManageService.queryDiseaseAncillaryByCreat(diseaseId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "查看配置的辅助检查项")
|
|
|
|
|
@GetMapping("queryDiseaseAncillary")
|
|
|
|
|
public List<DiseaseAncillaryResVo> queryDiseaseAncillary(@Parameter(name = "medicalRecId", description = "病例id") String medicalRecId){
|
|
|
|
|
return medicalRecManageService.queryDiseaseAncillary(medicalRecId);
|
|
|
|
|
@Operation(summary = "查看病历辅助检查项",tags="v1.3新增")
|
|
|
|
|
@GetMapping("queryMedicalAncillary")
|
|
|
|
|
public List<MedicalRecAncillaryResVo> queryMedicalAncillary(@Parameter(name = "medicalRecId", description = "病例id") String medicalRecId){
|
|
|
|
|
return medicalRecManageService.queryMedicalAncillary(medicalRecId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -80,10 +79,10 @@ public class MedicalRecManageController {
|
|
|
|
|
return medicalRecManageService.queryDiseasePhysicalByCreat(diseaseId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "查看配置的体格检查项")
|
|
|
|
|
@GetMapping("queryDiseasePhysical")
|
|
|
|
|
public List<DiseasePhysicalResVo> queryDiseasePhysical(@Parameter(name = "medicalRecId", description = "病例id") String medicalRecId){
|
|
|
|
|
return medicalRecManageService.queryDiseasePhysical(medicalRecId);
|
|
|
|
|
@Operation(summary = "查看病历的体格检查项",tags="v1.3新增")
|
|
|
|
|
@GetMapping("queryMedicalRecPhysical")
|
|
|
|
|
public List<MedicalRecPhysicalResVo> queryMedicalRecPhysical(@Parameter(name = "medicalRecId", description = "病例id") String medicalRecId){
|
|
|
|
|
return medicalRecManageService.queryMedicalRecPhysical(medicalRecId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "创建病历时查看配置的处置计划")
|
|
|
|
@ -142,7 +141,7 @@ public class MedicalRecManageController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "修改病历状态 用来上线或下线病历")
|
|
|
|
|
@Operation(summary = "修改病历状态,上线或下线病历",tags="v1.3新增")
|
|
|
|
|
@GetMapping("/updateMedicalStatus")
|
|
|
|
|
public Boolean updateMedicalStatus(@Parameter(name = "medicalRecId", description = "病例id") String medicalRecId,
|
|
|
|
|
@Parameter(name = "status", description = "病历状态 0:未上线 1:上线") Integer status) {
|
|
|
|
@ -150,87 +149,71 @@ public class MedicalRecManageController {
|
|
|
|
|
return medicalRecManageService.updateMedicalStatus(medicalRecId,status);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "新建病历基本信息")
|
|
|
|
|
@Operation(summary = "新建病历基本信息",description = "列表页面添加病历",tags = "v1.3新增")
|
|
|
|
|
@PostMapping("createMedicalRecBaseInfo")
|
|
|
|
|
public String createMedicalRecBaseInfo(@RequestBody MedicalRecBaseInfoReqVo reqVO) {
|
|
|
|
|
return medicalRecManageService.createMedicalRecBaseInfo(reqVO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "保存病历基本信息")
|
|
|
|
|
@Operation(summary = "保存虚拟病人电子病历信息",tags = "v1.3新增")
|
|
|
|
|
@PostMapping("saveMedicalRec")
|
|
|
|
|
public String saveMedicalRec(@RequestBody MedicalRecInfoReVo reqVO) {
|
|
|
|
|
return medicalRecManageService.saveMedicalRec(reqVO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "查询病历基本信息")
|
|
|
|
|
@Operation(summary = "查询虚拟病人电子病历信息",description = "可用于查询诊断依据",tags = "v1.3新增")
|
|
|
|
|
@GetMapping("queryMedicalRecBaseInfo")
|
|
|
|
|
public MedicalRecInfoReVo queryMedicalRecBaseInfo(@Parameter(name = "medicalRecId", description = "病例id") String medicalRecId) {
|
|
|
|
|
return medicalRecManageService.queryMedicalRecBaseInfo(medicalRecId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "保存病历关联的体格检查信息")
|
|
|
|
|
@PostMapping("saveMedicalRecPhysical")
|
|
|
|
|
public String saveMedicalRecPhysical(@RequestBody DiseasePhysicalReqVo diseasePhysicalReqVo) {
|
|
|
|
|
diseasePhysicalReqVo.floatDiagnosticCriteria();
|
|
|
|
|
DiseasePhysical result = medicalRecManageService.saveMedicalRecPhysical(diseasePhysicalReqVo);
|
|
|
|
|
return result.getId();
|
|
|
|
|
@Operation(summary = "批量更新病历关联的体格检查信息",tags = "v1.3新增")
|
|
|
|
|
@PostMapping("batchUpdateMedicalRecPhysical")
|
|
|
|
|
public Boolean batchUpdateMedicalRecPhysical(@RequestBody List<MedicalRecPhysicalReqVo> medicalRecPhysicalReqVoList) {
|
|
|
|
|
medicalRecPhysicalReqVoList.forEach(MedicalRecPhysicalReqVo::floatDiagnosticCriteria);
|
|
|
|
|
return medicalRecManageService.batchUpdateMedicalRecPhysical(medicalRecPhysicalReqVoList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "更新病历关联的体格检查信息")
|
|
|
|
|
@PostMapping("updateMedicalRecPhysical")
|
|
|
|
|
public Boolean updateMedicalRecPhysical(@RequestBody DiseasePhysicalReqVo diseasePhysicalReqVo) {
|
|
|
|
|
diseasePhysicalReqVo.floatDiagnosticCriteria();
|
|
|
|
|
return medicalRecManageService.updateMedicalRecPhysical(diseasePhysicalReqVo);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "保存病历关联的辅助检查信息")
|
|
|
|
|
@PostMapping("saveMedicalRecAncillary")
|
|
|
|
|
public String saveMedicalRecAncillary(@RequestBody DiseaseAncillaryReqVo diseaseAncillaryReqVo) {
|
|
|
|
|
|
|
|
|
|
diseaseAncillaryReqVo.floatDiagnosticCriteria();
|
|
|
|
|
DiseaseAncillary result = medicalRecManageService.saveMedicalRecAncillary(diseaseAncillaryReqVo);
|
|
|
|
|
return result.getId();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "更新病历关联的辅助检查信息")
|
|
|
|
|
@PostMapping("updateMedicalRecAncillary")
|
|
|
|
|
public Boolean updateMedicalRecAncillary(@RequestBody DiseaseAncillaryReqVo diseaseAncillaryReqVo) {
|
|
|
|
|
@Operation(summary = "更新病历关联的辅助检查信息",tags = "v1.3新增")
|
|
|
|
|
@PostMapping("batchUpdateMedicalRecAncillary")
|
|
|
|
|
public Boolean batchUpdateMedicalRecAncillary(@RequestBody List<MedicalRecAncillaryReqVo> medicalRecAncillaryReqVoList) {
|
|
|
|
|
|
|
|
|
|
diseaseAncillaryReqVo.floatDiagnosticCriteria();
|
|
|
|
|
return medicalRecManageService.updateMedicalRecAncillary(diseaseAncillaryReqVo);
|
|
|
|
|
medicalRecAncillaryReqVoList.forEach(MedicalRecAncillaryReqVo::floatDiagnosticCriteria);
|
|
|
|
|
return medicalRecManageService.batchUpdateMedicalRecAncillary(medicalRecAncillaryReqVoList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "更新病历的诊断依据")
|
|
|
|
|
@Operation(summary = "更新病历的诊断依据",tags = "v1.3新增")
|
|
|
|
|
@PostMapping("updateDiagnosisCriteria")
|
|
|
|
|
public Boolean updateDiagnosisCriteria(@RequestBody DiagnosisCriteriaReqVo diseaseAncillaryReqVo) {
|
|
|
|
|
|
|
|
|
|
return medicalRecManageService.updateDiagnosisCriteria(diseaseAncillaryReqVo);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "根据病历id查询疾病处置信息列表")
|
|
|
|
|
@GetMapping("/queryListByDiseaseId")
|
|
|
|
|
public List<DiseaseTreatmentPlanResVo> queryListByDiseaseId(@Parameter(name = "medicalRecId", description = "病例id") String medicalRecId) {
|
|
|
|
|
@Operation(summary = "根据病历id查询疾病处置信息列表",tags = "v1.3新增")
|
|
|
|
|
@GetMapping("/queryMedicalRecTreatmentPlanList")
|
|
|
|
|
public List<MedicalRecTreatmentPlanResVo> queryMedicalRecTreatmentPlanList(@Parameter(name = "medicalRecId", description = "病例id") String medicalRecId) {
|
|
|
|
|
|
|
|
|
|
List<DiseaseTreatmentPlanResVo> diseaseTreatmentPlanResVos = medicalRecManageService.queryListByDiseaseId(medicalRecId);
|
|
|
|
|
List<MedicalRecTreatmentPlanResVo> medicalRecTreatmentPlanList = medicalRecManageService.queryListByMedicalRecId(medicalRecId);
|
|
|
|
|
// 前端大哥强烈要求把treatmentPlanId 转换为 firstMeasuresId
|
|
|
|
|
diseaseTreatmentPlanResVos.forEach(vo -> {
|
|
|
|
|
medicalRecTreatmentPlanList.forEach(vo -> {
|
|
|
|
|
if (CollUtil.isEmpty(vo.getDrugIds())) {
|
|
|
|
|
vo.setFirstMeasuresId(vo.getTreatmentPlanId());
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return diseaseTreatmentPlanResVos;
|
|
|
|
|
return medicalRecTreatmentPlanList;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "修改处置计划")
|
|
|
|
|
@PutMapping("/updateDiseaseTreatmentPlan")
|
|
|
|
|
public boolean updateDiseaseTreatmentPlan(@RequestBody DiseaseTreatmentPlanReqVo diseaseTreatmentPlan) {
|
|
|
|
|
@Operation(summary = "批量修改处置计划",description = "列表修改或者删除数据保存后把现有数据传递过来",tags = "v1.3新增")
|
|
|
|
|
@PutMapping("/batchUpdateMedicalRecTreatmentPlan")
|
|
|
|
|
public boolean batchUpdateMedicalRecTreatmentPlan(@RequestBody List<MedicalRecTreatmentPlanReqVo> medicalRecTreatmentPlanReqVoList) {
|
|
|
|
|
// 适配前端传入数据
|
|
|
|
|
diseaseTreatmentPlan.setTreatmentPlanId(diseaseTreatmentPlan.getFirstMeasuresId());
|
|
|
|
|
return medicalRecManageService.updateDiseaseTreatmentPlan(diseaseTreatmentPlan);
|
|
|
|
|
medicalRecTreatmentPlanReqVoList.forEach(medicalRecTreatmentPlanReqVo ->
|
|
|
|
|
medicalRecTreatmentPlanReqVo.setTreatmentPlanId(medicalRecTreatmentPlanReqVo.getFirstMeasuresId()));
|
|
|
|
|
return medicalRecManageService.batchUpdateMedicalRecTreatmentPlan(medicalRecTreatmentPlanReqVoList);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|