|
@@ -23,6 +23,15 @@ public class ChangxBeHospitalizedDocTrans extends ModelDocTrans {
|
|
|
public BeHospitalizedDoc extract(MedrecVo medrecVo) {
|
|
|
String content = ((List<String>) medrecVo.getContent().get("content")).get(0);
|
|
|
Map<String, String> sourceMap = CxXmlUtil.firstLevelNodeValue(content);
|
|
|
+ String sex = "男";
|
|
|
+ for (String key : sourceMap.keySet()) {
|
|
|
+ if (key.indexOf("性别") > -1) {
|
|
|
+ if (sourceMap.get(key).indexOf("男") > -1 || sourceMap.get(key).indexOf("女") > -1) {
|
|
|
+ sex = StringUtil.removeBlank(sourceMap.get(key));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ sourceMap.put(sex, "");
|
|
|
Map<String, String> structureMap = OrdinaryAssistant.mapKeyContrast(sourceMap, keyContrasts);
|
|
|
String specialCheck = structureMap.get("专科检查");
|
|
|
if (StringUtil.isNotBlank(specialCheck)) {
|