|
@@ -9,6 +9,7 @@ import com.lantone.qc.trans.ModelDocTrans;
|
|
|
import com.lantone.qc.trans.comsis.ModelDocGenerate;
|
|
|
import com.lantone.qc.trans.comsis.Preproc;
|
|
|
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
@@ -20,7 +21,7 @@ public class ChangxBeHospitalizedDocTrans extends ModelDocTrans {
|
|
|
|
|
|
@Override
|
|
|
public BeHospitalizedDoc extract(MedrecVo medrecVo) {
|
|
|
- String content = medrecVo.getContent().get("content").toString();
|
|
|
+ String content = ((List<String>) medrecVo.getContent().get("content")).get(0);
|
|
|
int index1 = content.indexOf("初步诊断") + 5;
|
|
|
int index2 = content.indexOf("\n", index1) - 1;
|
|
|
if (index1 < index2) {
|