|
@@ -10,7 +10,6 @@ import com.lantone.qc.pub.util.StringUtil;
|
|
import com.lantone.qc.trans.ModelDocTrans;
|
|
import com.lantone.qc.trans.ModelDocTrans;
|
|
import com.lantone.qc.trans.comsis.OrdinaryAssistant;
|
|
import com.lantone.qc.trans.comsis.OrdinaryAssistant;
|
|
import com.lantone.qc.trans.taizhou.util.TzXmlUtil;
|
|
import com.lantone.qc.trans.taizhou.util.TzXmlUtil;
|
|
-import org.apache.commons.beanutils.BeanUtils;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -37,7 +36,7 @@ public class TaiZhouThreeLevelWardDocTrans extends ModelDocTrans {
|
|
}
|
|
}
|
|
|
|
|
|
private void classifyThreeLevelWardDoc(ThreeLevelWardDoc result, String content) {
|
|
private void classifyThreeLevelWardDoc(ThreeLevelWardDoc result, String content) {
|
|
- Map<String, String> sourceMap = TzXmlUtil.getXmlToMapForTZWithReplace(content); // xml原始数据给华卓
|
|
|
|
|
|
+ Map<String, String> sourceMap = TzXmlUtil.getXmlToMapForTZ(content);
|
|
Map<String, String> structureMap = OrdinaryAssistant.mapKeyContrast(sourceMap, keyContrasts);
|
|
Map<String, String> structureMap = OrdinaryAssistant.mapKeyContrast(sourceMap, keyContrasts);
|
|
|
|
|
|
if (StringUtils.isEmpty(structureMap.get("查房日期"))) {
|
|
if (StringUtils.isEmpty(structureMap.get("查房日期"))) {
|
|
@@ -56,16 +55,16 @@ public class TaiZhouThreeLevelWardDocTrans extends ModelDocTrans {
|
|
//总的查房记录 汇总
|
|
//总的查房记录 汇总
|
|
ThreeLevelWardDoc allDoctorWradDoc = new ThreeLevelWardDoc();
|
|
ThreeLevelWardDoc allDoctorWradDoc = new ThreeLevelWardDoc();
|
|
allDoctorWradDoc.setStructureMap(structureMap);
|
|
allDoctorWradDoc.setStructureMap(structureMap);
|
|
- allDoctorWradDoc.setPageData((Map)sourceMap);
|
|
|
|
|
|
+ allDoctorWradDoc.setPageData((Map) structureMap);
|
|
result.addAllDoctorWradDoc(allDoctorWradDoc);
|
|
result.addAllDoctorWradDoc(allDoctorWradDoc);
|
|
|
|
|
|
//主任医师查房
|
|
//主任医师查房
|
|
- DirectorDoctorWardDoc directorDoctorWardDoc = findDirectorDoctorWardDoc(sourceMap, structureMap);
|
|
|
|
|
|
+ DirectorDoctorWardDoc directorDoctorWardDoc = findDirectorDoctorWardDoc(structureMap);
|
|
if (directorDoctorWardDoc != null) {
|
|
if (directorDoctorWardDoc != null) {
|
|
- result.addDirectorDoctorWardDoc(findDirectorDoctorWardDoc(sourceMap, structureMap));
|
|
|
|
|
|
+ result.addDirectorDoctorWardDoc(findDirectorDoctorWardDoc(structureMap));
|
|
}
|
|
}
|
|
//主治医师查房
|
|
//主治医师查房
|
|
- AttendingDoctorWardDoc attendingDoctorWardDoc = findAttendingDoctorWardDoc(sourceMap, structureMap);
|
|
|
|
|
|
+ AttendingDoctorWardDoc attendingDoctorWardDoc = findAttendingDoctorWardDoc(structureMap);
|
|
if (attendingDoctorWardDoc != null) {
|
|
if (attendingDoctorWardDoc != null) {
|
|
result.addAttendingDoctorWardDoc(attendingDoctorWardDoc);
|
|
result.addAttendingDoctorWardDoc(attendingDoctorWardDoc);
|
|
}
|
|
}
|
|
@@ -73,58 +72,46 @@ public class TaiZhouThreeLevelWardDocTrans extends ModelDocTrans {
|
|
if (directorDoctorWardDoc == null && attendingDoctorWardDoc == null) {
|
|
if (directorDoctorWardDoc == null && attendingDoctorWardDoc == null) {
|
|
GeneralDoctorWardDoc generalDoctorWardDoc = new GeneralDoctorWardDoc();
|
|
GeneralDoctorWardDoc generalDoctorWardDoc = new GeneralDoctorWardDoc();
|
|
generalDoctorWardDoc.setStructureMap(structureMap);
|
|
generalDoctorWardDoc.setStructureMap(structureMap);
|
|
- generalDoctorWardDoc.setPageData((Map)sourceMap);
|
|
|
|
|
|
+ generalDoctorWardDoc.setPageData((Map) structureMap);
|
|
result.addGeneralDoctorWardDoc(generalDoctorWardDoc);
|
|
result.addGeneralDoctorWardDoc(generalDoctorWardDoc);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 主任医师查房
|
|
* 主任医师查房
|
|
- * @param sourceMap
|
|
|
|
|
|
+ *
|
|
* @param structureMap
|
|
* @param structureMap
|
|
*/
|
|
*/
|
|
- private DirectorDoctorWardDoc findDirectorDoctorWardDoc(Map<String, String> sourceMap, Map<String, String> structureMap) {
|
|
|
|
|
|
+ private DirectorDoctorWardDoc findDirectorDoctorWardDoc(Map<String, String> structureMap) {
|
|
String title = structureMap.get("查房标题");
|
|
String title = structureMap.get("查房标题");
|
|
title = subTitle(title); //标题有代字
|
|
title = subTitle(title); //标题有代字
|
|
|
|
|
|
DirectorDoctorWardDoc directorDoctorWardDoc = null;
|
|
DirectorDoctorWardDoc directorDoctorWardDoc = null;
|
|
- if (StringUtils.isNotEmpty(title) && title.contains("主任") ) {
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(title) && title.contains("主任")) {
|
|
directorDoctorWardDoc = new DirectorDoctorWardDoc();
|
|
directorDoctorWardDoc = new DirectorDoctorWardDoc();
|
|
directorDoctorWardDoc.setStructureMap(structureMap);
|
|
directorDoctorWardDoc.setStructureMap(structureMap);
|
|
- directorDoctorWardDoc.setPageData((Map)sourceMap);
|
|
|
|
|
|
+ directorDoctorWardDoc.setPageData((Map) structureMap);
|
|
}
|
|
}
|
|
return directorDoctorWardDoc;
|
|
return directorDoctorWardDoc;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 主治医师查房
|
|
* 主治医师查房
|
|
- * @param sourceMap
|
|
|
|
|
|
+ *
|
|
* @param structureMap
|
|
* @param structureMap
|
|
*/
|
|
*/
|
|
- private AttendingDoctorWardDoc findAttendingDoctorWardDoc(Map<String, String> sourceMap, Map<String, String> structureMap) {
|
|
|
|
|
|
+ private AttendingDoctorWardDoc findAttendingDoctorWardDoc(Map<String, String> structureMap) {
|
|
String title = structureMap.get("查房标题");
|
|
String title = structureMap.get("查房标题");
|
|
title = subTitle(title); //标题有代字
|
|
title = subTitle(title); //标题有代字
|
|
AttendingDoctorWardDoc attendingDoctorWardDoc = null;
|
|
AttendingDoctorWardDoc attendingDoctorWardDoc = null;
|
|
if (StringUtils.isNotEmpty(title) && title.contains("主治")) {
|
|
if (StringUtils.isNotEmpty(title) && title.contains("主治")) {
|
|
attendingDoctorWardDoc = new AttendingDoctorWardDoc();
|
|
attendingDoctorWardDoc = new AttendingDoctorWardDoc();
|
|
attendingDoctorWardDoc.setStructureMap(structureMap);
|
|
attendingDoctorWardDoc.setStructureMap(structureMap);
|
|
- attendingDoctorWardDoc.setPageData((Map)sourceMap);
|
|
|
|
|
|
+ attendingDoctorWardDoc.setPageData((Map) structureMap);
|
|
}
|
|
}
|
|
return attendingDoctorWardDoc;
|
|
return attendingDoctorWardDoc;
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * 普通医师查房
|
|
|
|
- * @param threeLevelWardDoc
|
|
|
|
- */
|
|
|
|
- private GeneralDoctorWardDoc findGeneralDoctorWardDoc(ThreeLevelWardDoc threeLevelWardDoc) {
|
|
|
|
- GeneralDoctorWardDoc generalDoctorWardDoc = new GeneralDoctorWardDoc();
|
|
|
|
- generalDoctorWardDoc.setStructureMap(threeLevelWardDoc.getStructureMap());
|
|
|
|
- generalDoctorWardDoc.setText(threeLevelWardDoc.getText());
|
|
|
|
- generalDoctorWardDoc.setPageData(threeLevelWardDoc.getPageData());
|
|
|
|
- return generalDoctorWardDoc;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
private List<String> keyContrasts = Lists.newArrayList(
|
|
private List<String> keyContrasts = Lists.newArrayList(
|
|
"事件日期=记录时间",
|
|
"事件日期=记录时间",
|
|
"事件日期=查房日期",
|
|
"事件日期=查房日期",
|