|
|
@ -520,6 +520,21 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
|
|
|
|
* @param fieldMap 字段含义 map
|
|
|
|
* @param fieldMap 字段含义 map
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public Map<String, CheckSemanticModel> getCheckSemanticModelMap(Map<String, String> configRuleMap, Map<String, String> fieldMap, List<JSONObject> sourceJsonObjects) {
|
|
|
|
public Map<String, CheckSemanticModel> getCheckSemanticModelMap(Map<String, String> configRuleMap, Map<String, String> fieldMap, List<JSONObject> sourceJsonObjects) {
|
|
|
|
|
|
|
|
if (configRuleMap!=null) {
|
|
|
|
|
|
|
|
for (String s : configRuleMap.keySet()) {
|
|
|
|
|
|
|
|
String value = configRuleMap.get(s);
|
|
|
|
|
|
|
|
if ("hn".equals(s)) {
|
|
|
|
|
|
|
|
configRuleMap.put("hospitalName",value);
|
|
|
|
|
|
|
|
}else if("dn".equals(s)) {
|
|
|
|
|
|
|
|
configRuleMap.put("doctorName", value);
|
|
|
|
|
|
|
|
}else if("dmn".equals(s)) {
|
|
|
|
|
|
|
|
configRuleMap.put("departmentName", value);
|
|
|
|
|
|
|
|
}else if("time".equals(s)) {
|
|
|
|
|
|
|
|
configRuleMap.put("time", value);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, CheckSemanticModel> checkSemanticModelMap = new LinkedHashMap<>();
|
|
|
|
Map<String, CheckSemanticModel> checkSemanticModelMap = new LinkedHashMap<>();
|
|
|
|
//校验正确的值
|
|
|
|
//校验正确的值
|
|
|
|
Map<String, String> inputMap = new LinkedHashMap<>();
|
|
|
|
Map<String, String> inputMap = new LinkedHashMap<>();
|
|
|
|