|
@@ -4,6 +4,7 @@ import com.lantone.qc.pub.model.doc.BeHospitalizedDoc;
|
|
|
import com.lantone.qc.pub.model.keys.ModelStandardKeys;
|
|
|
import com.lantone.qc.pub.model.vo.MedrecVo;
|
|
|
import com.lantone.qc.pub.util.ListUtil;
|
|
|
+import com.lantone.qc.pub.util.StringUtil;
|
|
|
import com.lantone.qc.trans.ModelDocTrans;
|
|
|
|
|
|
import java.util.Map;
|
|
@@ -16,11 +17,18 @@ import java.util.Map;
|
|
|
public class BeHospitalizedDocTrans extends ModelDocTrans {
|
|
|
|
|
|
public BeHospitalizedDoc extract(MedrecVo medrecVo) {
|
|
|
+ String content = medrecVo.getContent().get("content").toString();
|
|
|
+ int index1 = content.indexOf("初步诊断") + 5;
|
|
|
+ int index2 = content.indexOf("修正诊断") - 1;
|
|
|
+ content = content.substring(0, index1)
|
|
|
+ + StringUtil.specialCharComma(content.substring(index1, index2))
|
|
|
+ + content.substring(index2);
|
|
|
+
|
|
|
Map<String, String> structureMap =
|
|
|
getPreproc().extract_doc_pub(
|
|
|
false,
|
|
|
ListUtil.isEmpty(medrecVo.getLabel()) ? ModelStandardKeys.beHospitalized : medrecVo.getLabel(),
|
|
|
- medrecVo.getContent().get("content").toString()
|
|
|
+ content
|
|
|
);
|
|
|
|
|
|
structureMap.put("体格检查", structureMap.get("体格检查(一)"));
|