|
@@ -7,6 +7,7 @@ import com.lantone.qc.dbanaly.util.ModuleMappingUtil;
|
|
|
import com.lantone.qc.pub.model.doc.FirstPageRecordDoc;
|
|
|
import com.lantone.qc.pub.model.vo.MedrecVo;
|
|
|
import com.lantone.qc.pub.util.FastJsonUtils;
|
|
|
+import com.lantone.qc.pub.util.StringUtil;
|
|
|
import com.lantone.qc.trans.ModelDocTrans;
|
|
|
|
|
|
import java.util.List;
|
|
@@ -33,6 +34,21 @@ public class YiWuFirstPageRecordDocTrans extends ModelDocTrans {
|
|
|
} else {
|
|
|
structureExtMap = YiWuFirstPageRecordXmlUtil.process(content);
|
|
|
structureExtMap.put("mode_id", ModuleMappingUtil.getDeptModuleId(modeId));
|
|
|
+ if (structureExtMap != null && structureExtMap.size() > 0) {
|
|
|
+ String text = (String) structureExtMap.get("原始文本");
|
|
|
+ if (StringUtil.isNotBlank(text) && text.contains("年龄 Value1") && text.contains("新生儿出生体重克")) {
|
|
|
+ String substring = text.substring(text.indexOf("年龄 Value1"), text.indexOf("新生儿出生体重克"));
|
|
|
+ String[] split = substring.split(",");
|
|
|
+ if (split.length > 1) {
|
|
|
+ if (split[0].contains("=") && split[0].indexOf("=") + 1 <= split[0].length()) {
|
|
|
+ structureExtMap.put("新生儿出生月数", split[0].substring(split[0].indexOf("=") + 1));
|
|
|
+ }
|
|
|
+ if (split[1].contains("=") && split[1].indexOf("=") + 1 <= split[1].length()) {
|
|
|
+ structureExtMap.put("新生儿出生天数", split[1].substring(split[1].indexOf("=") + 1));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
firstPageRecordDoc.setStructureExtMap(structureExtMap);
|
|
|
}
|
|
|
structureExtMap.forEach((k, v) -> structureMap.put(k, v.toString()));
|