|
@@ -15,19 +15,20 @@ import java.util.Map;
|
|
|
|
|
|
public class PretreatmentRule {
|
|
public class PretreatmentRule {
|
|
public void rule(SearchData searchData) throws java.io.IOException {
|
|
public void rule(SearchData searchData) throws java.io.IOException {
|
|
- //患者基本信息 性别 年龄
|
|
|
|
|
|
+ //患者基本信息 性别 年龄 婚姻
|
|
if (!StringUtils.isEmpty(searchData.getNormal())) {
|
|
if (!StringUtils.isEmpty(searchData.getNormal())) {
|
|
add2PreResultList(new PretreatmentNormal(), searchData.getNormal(), "normal", searchData);
|
|
add2PreResultList(new PretreatmentNormal(), searchData.getNormal(), "normal", searchData);
|
|
}
|
|
}
|
|
//症状规则 主诉、现病史提取
|
|
//症状规则 主诉、现病史提取
|
|
if (!StringUtils.isEmpty(searchData.getChief())) {
|
|
if (!StringUtils.isEmpty(searchData.getChief())) {
|
|
searchData.setChief(add2PreResultList(new PretreatmentSymptom(), searchData.getChief(), "symptom", searchData));
|
|
searchData.setChief(add2PreResultList(new PretreatmentSymptom(), searchData.getChief(), "symptom", searchData));
|
|
- add2PreResultList(new PretreatmentSymptom(), searchData.getSymptom(), "symptom", searchData);
|
|
|
|
}
|
|
}
|
|
//现病史 提取手术史和过敏史
|
|
//现病史 提取手术史和过敏史
|
|
if (!StringUtils.isEmpty(searchData.getSymptom())) {
|
|
if (!StringUtils.isEmpty(searchData.getSymptom())) {
|
|
- add2PreResultList(new PretreatmentOperation(), searchData.getSymptom(), "operation", searchData);
|
|
|
|
- add2PreResultList(new PretreatmentAllergy(), searchData.getSymptom(), "allergy", searchData);
|
|
|
|
|
|
+ add2PreResultList(new PretreatmentOperation(), searchData.getSymptom(), "operation", searchData); //手术史
|
|
|
|
+ add2PreResultList(new PretreatmentAllergy(), searchData.getSymptom(), "allergy", searchData); //过敏史
|
|
|
|
+ add2PreResultList(new PretreatmentSymptom(), searchData.getSymptom(), "symptom", searchData); //症状
|
|
|
|
+ add2PreResultList(new PretreatmentInfectious(), searchData.getSymptom(), "infectious", searchData); //传染病史
|
|
}
|
|
}
|
|
//体征数据 体征、现病史提取
|
|
//体征数据 体征、现病史提取
|
|
if (!StringUtils.isEmpty(searchData.getVital())) {
|
|
if (!StringUtils.isEmpty(searchData.getVital())) {
|
|
@@ -41,10 +42,8 @@ public class PretreatmentRule {
|
|
result.setUniqueName("诊断--");
|
|
result.setUniqueName("诊断--");
|
|
}
|
|
}
|
|
searchData.setDiagString(add2PreResultList(searchData.getDiag(), searchData.getDiagString(), "diag", searchData));
|
|
searchData.setDiagString(add2PreResultList(searchData.getDiag(), searchData.getDiagString(), "diag", searchData));
|
|
- add2PreResultList(new PretreatmentDiag(), searchData.getPasts(), "diag", searchData);
|
|
|
|
} else if (!StringUtils.isEmpty(searchData.getDiagString())) {
|
|
} else if (!StringUtils.isEmpty(searchData.getDiagString())) {
|
|
searchData.setDiagString(add2PreResultList(new PretreatmentDiag(), searchData.getDiagString(), "diag", searchData));
|
|
searchData.setDiagString(add2PreResultList(new PretreatmentDiag(), searchData.getDiagString(), "diag", searchData));
|
|
- add2PreResultList(new PretreatmentDiag(), searchData.getPasts(), "diag", searchData);
|
|
|
|
}
|
|
}
|
|
//药品数据 药品信息(历史)、现病史、既往史
|
|
//药品数据 药品信息(历史)、现病史、既往史
|
|
if (searchData.getDrug() != null && searchData.getDrug().size() > 0) {
|
|
if (searchData.getDrug() != null && searchData.getDrug().size() > 0) {
|
|
@@ -54,16 +53,17 @@ public class PretreatmentRule {
|
|
result.setUniqueName("药品--");
|
|
result.setUniqueName("药品--");
|
|
}
|
|
}
|
|
searchData.setDrugString(add2PreResultList(searchData.getDrug(), searchData.getDrugString(), "drug", searchData));
|
|
searchData.setDrugString(add2PreResultList(searchData.getDrug(), searchData.getDrugString(), "drug", searchData));
|
|
- add2PreResultList(new PretreatmentDrug(), searchData.getPasts(), "drug", searchData);
|
|
|
|
} else if (!StringUtils.isEmpty(searchData.getDrugString())) {
|
|
} else if (!StringUtils.isEmpty(searchData.getDrugString())) {
|
|
searchData.setDrugString(add2PreResultList(new PretreatmentDrug(), searchData.getDrugString(), "drug", searchData));
|
|
searchData.setDrugString(add2PreResultList(new PretreatmentDrug(), searchData.getDrugString(), "drug", searchData));
|
|
- add2PreResultList(new PretreatmentDrug(), searchData.getPasts(), "drug", searchData);
|
|
|
|
}
|
|
}
|
|
//既往史
|
|
//既往史
|
|
if (!StringUtils.isEmpty(searchData.getPasts())) {
|
|
if (!StringUtils.isEmpty(searchData.getPasts())) {
|
|
add2PreResultList(new PretreatmentPast(), searchData.getPasts(), "pasts", searchData);
|
|
add2PreResultList(new PretreatmentPast(), searchData.getPasts(), "pasts", searchData);
|
|
add2PreResultList(new PretreatmentOperation(), searchData.getPasts(), "operation", searchData);
|
|
add2PreResultList(new PretreatmentOperation(), searchData.getPasts(), "operation", searchData);
|
|
add2PreResultList(new PretreatmentAllergy(), searchData.getPasts(), "allergy", searchData);
|
|
add2PreResultList(new PretreatmentAllergy(), searchData.getPasts(), "allergy", searchData);
|
|
|
|
+ add2PreResultList(new PretreatmentDrug(), searchData.getPasts(), "drug", searchData);
|
|
|
|
+ add2PreResultList(new PretreatmentDiag(), searchData.getPasts(), "diag", searchData);
|
|
|
|
+ add2PreResultList(new PretreatmentInfectious(), searchData.getPasts(), "infectious", searchData);
|
|
}
|
|
}
|
|
//手术外伤史 现病史、手术史
|
|
//手术外伤史 现病史、手术史
|
|
if (!StringUtils.isEmpty(searchData.getOperation())) {
|
|
if (!StringUtils.isEmpty(searchData.getOperation())) {
|
|
@@ -75,9 +75,33 @@ public class PretreatmentRule {
|
|
add2PreResultList(new PretreatmentAllergy(), searchData.getAllergy(), "allergy", searchData);
|
|
add2PreResultList(new PretreatmentAllergy(), searchData.getAllergy(), "allergy", searchData);
|
|
}
|
|
}
|
|
//传染病 现病史、传染病史
|
|
//传染病 现病史、传染病史
|
|
- if (!StringUtils.isEmpty(searchData.getPasts())) {
|
|
|
|
|
|
+ if (!StringUtils.isEmpty(searchData.getInfectious())) {
|
|
add2PreResultList(new PretreatmentInfectious(), searchData.getInfectious(), "infectious", searchData);
|
|
add2PreResultList(new PretreatmentInfectious(), searchData.getInfectious(), "infectious", searchData);
|
|
- add2PreResultList(new PretreatmentInfectious(), searchData.getSymptom(), "infectious", searchData);
|
|
|
|
|
|
+ }
|
|
|
|
+ //个人史
|
|
|
|
+ if (!StringUtils.isEmpty(searchData.getPersonal())) {
|
|
|
|
+ add2PreResultList(new PretreatmentPersonal(), searchData.getPersonal(), "personal", searchData);
|
|
|
|
+ }
|
|
|
|
+ //家族史
|
|
|
|
+ if (!StringUtils.isEmpty(searchData.getFamily())) {
|
|
|
|
+ add2PreResultList(new PretreatmentFamily(), searchData.getFamily(), "family", searchData);
|
|
|
|
+ }
|
|
|
|
+ //接种史
|
|
|
|
+ if (!StringUtils.isEmpty(searchData.getVaccination())) {
|
|
|
|
+ add2PreResultList(new PretreatmentVaccination(), searchData.getVaccination(), "vaccination", searchData);
|
|
|
|
+ }
|
|
|
|
+ //其他史
|
|
|
|
+ if (!StringUtils.isEmpty(searchData.getOther())) {
|
|
|
|
+ add2PreResultList(new PretreatmentPast(), searchData.getOther(), "pasts", searchData);
|
|
|
|
+ add2PreResultList(new PretreatmentOperation(), searchData.getOther(), "operation", searchData);
|
|
|
|
+ add2PreResultList(new PretreatmentAllergy(), searchData.getOther(), "allergy", searchData);
|
|
|
|
+ add2PreResultList(new PretreatmentWound(), searchData.getOther(), "wound", searchData);
|
|
|
|
+ add2PreResultList(new PretreatmentInfectious(), searchData.getOther(), "infectious", searchData);
|
|
|
|
+ add2PreResultList(new PretreatmentPersonal(), searchData.getOther(), "personal", searchData);
|
|
|
|
+ add2PreResultList(new PretreatmentFamily(), searchData.getOther(), "family", searchData);
|
|
|
|
+ add2PreResultList(new PretreatmentVaccination(), searchData.getOther(), "vaccination", searchData);
|
|
|
|
+ add2PreResultList(new PretreatmentDrug(), searchData.getOther(), "drug", searchData);
|
|
|
|
+ add2PreResultList(new PretreatmentDiag(), searchData.getOther(), "diag", searchData);
|
|
}
|
|
}
|
|
//lis结构化信息
|
|
//lis结构化信息
|
|
if (searchData.getLis() != null && searchData.getLis().size() > 0) {
|
|
if (searchData.getLis() != null && searchData.getLis().size() > 0) {
|