|
|
|
@ -120,7 +120,7 @@ public class MedicalRecManageController {
|
|
|
|
|
@Operation(summary = "预导入疾病问题回答")
|
|
|
|
|
@PostMapping("/preUploadMedicalAnswer")
|
|
|
|
|
public MedicalAnswerVideoResVo uploadMedicalAnswer(@Parameter(name = "file", description = "文件") MultipartFile multipartFile,
|
|
|
|
|
@Parameter(name = "medicalRecId", description = "病例id") String medicalRecId) throws Exception {
|
|
|
|
|
@Parameter(name = "medicalRecId", description = "病例id") @RequestParam("medicalRecId") String medicalRecId) throws Exception {
|
|
|
|
|
|
|
|
|
|
return medicalRecManageService.preUploadMedicalAnswer(multipartFile, medicalRecId);
|
|
|
|
|
}
|
|
|
|
@ -135,15 +135,15 @@ public class MedicalRecManageController {
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "查询病例默认问题")
|
|
|
|
|
@GetMapping("/queryMedicalDefaultAnswer")
|
|
|
|
|
public List<MedicalRecQaVO> queryMedicalDefaultAnswer(@Parameter(name = "medicalRecId", description = "病例id") String medicalRecId) {
|
|
|
|
|
public List<MedicalRecQaVO> queryMedicalDefaultAnswer(@Parameter(name = "medicalRecId", description = "病例id") @RequestParam("medicalRecId") String medicalRecId) {
|
|
|
|
|
|
|
|
|
|
return medicalRecManageService.queryMedicalDefaultAnswer(medicalRecId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "修改病历状态,上线或下线病历",tags="v1.3新增")
|
|
|
|
|
@GetMapping("/updateMedicalStatus")
|
|
|
|
|
public Boolean updateMedicalStatus(@Parameter(name = "medicalRecId", description = "病例id") String medicalRecId,
|
|
|
|
|
@PostMapping("/updateMedicalStatus")
|
|
|
|
|
public Boolean updateMedicalStatus(@Parameter(name = "medicalRecId", description = "病例id") @RequestParam("medicalRecId") String medicalRecId,
|
|
|
|
|
@Parameter(name = "status", description = "病历状态 0:未上线 1:上线") Integer status) {
|
|
|
|
|
|
|
|
|
|
return medicalRecManageService.updateMedicalStatus(medicalRecId,status);
|
|
|
|
@ -164,7 +164,7 @@ public class MedicalRecManageController {
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "查询虚拟病人电子病历信息",description = "可用于查询诊断依据",tags = "v1.3新增")
|
|
|
|
|
@GetMapping("queryMedicalRecBaseInfo")
|
|
|
|
|
public MedicalRecInfoReVo queryMedicalRecBaseInfo(@Parameter(name = "medicalRecId", description = "病例id") String medicalRecId) {
|
|
|
|
|
public MedicalRecInfoReVo queryMedicalRecBaseInfo(@Parameter(name = "medicalRecId", description = "病例id") @RequestParam("medicalRecId") String medicalRecId) {
|
|
|
|
|
return medicalRecManageService.queryMedicalRecBaseInfo(medicalRecId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -176,7 +176,7 @@ public class MedicalRecManageController {
|
|
|
|
|
return medicalRecManageService.batchUpdateMedicalRecPhysical(medicalRecPhysicalReqVoList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "更新病历关联的辅助检查信息",tags = "v1.3新增")
|
|
|
|
|
@Operation(summary = "批量更新病历关联的辅助检查信息",tags = "v1.3新增")
|
|
|
|
|
@PostMapping("batchUpdateMedicalRecAncillary")
|
|
|
|
|
public Boolean batchUpdateMedicalRecAncillary(@RequestBody List<MedicalRecAncillaryReqVo> medicalRecAncillaryReqVoList) {
|
|
|
|
|
|
|
|
|
@ -193,7 +193,7 @@ public class MedicalRecManageController {
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "根据病历id查询疾病处置信息列表",tags = "v1.3新增")
|
|
|
|
|
@GetMapping("/queryMedicalRecTreatmentPlanList")
|
|
|
|
|
public List<MedicalRecTreatmentPlanResVo> queryMedicalRecTreatmentPlanList(@Parameter(name = "medicalRecId", description = "病例id") String medicalRecId) {
|
|
|
|
|
public List<MedicalRecTreatmentPlanResVo> queryMedicalRecTreatmentPlanList(@Parameter(name = "medicalRecId", description = "病例id") @RequestParam("medicalRecId") String medicalRecId) {
|
|
|
|
|
|
|
|
|
|
List<MedicalRecTreatmentPlanResVo> medicalRecTreatmentPlanList = medicalRecManageService.queryListByMedicalRecId(medicalRecId);
|
|
|
|
|
// 前端大哥强烈要求把treatmentPlanId 转换为 firstMeasuresId
|
|
|
|
@ -208,12 +208,13 @@ public class MedicalRecManageController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "批量修改处置计划",description = "列表修改或者删除数据保存后把现有数据传递过来",tags = "v1.3新增")
|
|
|
|
|
@PutMapping("/batchUpdateMedicalRecTreatmentPlan")
|
|
|
|
|
public boolean batchUpdateMedicalRecTreatmentPlan(@RequestBody List<MedicalRecTreatmentPlanReqVo> medicalRecTreatmentPlanReqVoList) {
|
|
|
|
|
@PostMapping("/batchUpdateMedicalRecTreatmentPlan")
|
|
|
|
|
public boolean batchUpdateMedicalRecTreatmentPlan(@Parameter(name = "medicalRecId", description = "病例id") @RequestParam("medicalRecId") String medicalRecId,
|
|
|
|
|
@RequestBody List<MedicalRecTreatmentPlanReqVo> medicalRecTreatmentPlanReqVoList) {
|
|
|
|
|
// 适配前端传入数据
|
|
|
|
|
medicalRecTreatmentPlanReqVoList.forEach(medicalRecTreatmentPlanReqVo ->
|
|
|
|
|
medicalRecTreatmentPlanReqVo.setTreatmentPlanId(medicalRecTreatmentPlanReqVo.getFirstMeasuresId()));
|
|
|
|
|
return medicalRecManageService.batchUpdateMedicalRecTreatmentPlan(medicalRecTreatmentPlanReqVoList);
|
|
|
|
|
return medicalRecManageService.batchUpdateMedicalRecTreatmentPlan(medicalRecId,medicalRecTreatmentPlanReqVoList);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|