|
|
|
@ -11,7 +11,6 @@ import org.apache.commons.lang.StringUtils;
|
|
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
|
|
import org.jeecg.common.system.vo.DictModel;
|
|
|
|
|
import org.jeecg.common.util.*;
|
|
|
|
|
import org.jeecg.modules.ocr.controller.OcrSimulatorController;
|
|
|
|
|
import org.jeecg.modules.ocr.entity.OcrIdentify;
|
|
|
|
|
import org.jeecg.modules.ocr.entity.OcrIdentifyDetail;
|
|
|
|
|
import org.jeecg.modules.ocr.entity.OcrRuleCheck;
|
|
|
|
@ -24,7 +23,6 @@ import org.jeecg.modules.ocr.utils.FileOUtils;
|
|
|
|
|
import org.jeecg.modules.ocr.utils.ImageUtils;
|
|
|
|
|
import org.jeecg.modules.ocr.dto.OcrIdentifyDTO;
|
|
|
|
|
import org.jeecg.modules.ocr.dto.OcrRuleCheckDTO;
|
|
|
|
|
import org.jeecg.modules.ocr.vo.SimulateChecksVO;
|
|
|
|
|
import org.jeecg.modules.system.service.ISysDictService;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.scheduling.annotation.Async;
|
|
|
|
@ -36,7 +34,6 @@ import javax.annotation.Resource;
|
|
|
|
|
import java.awt.*;
|
|
|
|
|
import java.io.File;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -266,25 +263,4 @@ public class ApiController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "测试病历单")
|
|
|
|
|
@PostMapping(value = "/test_bld")
|
|
|
|
|
public Result<?> testCodeLogic() {
|
|
|
|
|
SimulateChecksVO simulateChecksVO=new SimulateChecksVO();
|
|
|
|
|
simulateChecksVO.setIdentifyId("10086");
|
|
|
|
|
List<String> identifyDetailIds = Arrays.asList("119");
|
|
|
|
|
simulateChecksVO.setIdentifyDetailIdList(identifyDetailIds);
|
|
|
|
|
simulateChecksVO.setRuleCheckId("114");
|
|
|
|
|
simulateChecksVO.setPatientName("栾梓涵");
|
|
|
|
|
simulateChecksVO.setMedicalRecordNumber("123456");
|
|
|
|
|
simulateChecksVO.setAdmissionDate("2023-02-02 10:18:23");
|
|
|
|
|
simulateChecksVO.setBornDate("2000-05-06");
|
|
|
|
|
simulateChecksVO.setAge("23");
|
|
|
|
|
//规则检查配置id
|
|
|
|
|
String ruleCheckId = simulateChecksVO.getRuleCheckId();
|
|
|
|
|
List<String> identifyDetailIdList = simulateChecksVO.getIdentifyDetailIdList();
|
|
|
|
|
AssertUtils.notEmpty(ruleCheckId, "请选择[规则扫描器]");
|
|
|
|
|
AssertUtils.hasSize(identifyDetailIdList,"请先上传图片");
|
|
|
|
|
return Result.OK(ocrIdentifyService.simulateChecks(simulateChecksVO));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|