|
@ -109,7 +109,9 @@ public class MedicalInsuranceService {
|
|
|
doc.put("fee",doc.getFieldValue("EHR_000045"));//门诊费用
|
|
|
SolrDocumentList ls = solrUtil.query(ResourceCore.SubTable,"EHR_000109:*",fq,null,0,1,subfields2);
|
|
|
if(ls!=null&&ls.size()>0){
|
|
|
doc.put("diagnosis",ls.get(0).getFieldValue("EHR_000109_VALUE")+"("+ls.get(0).getFieldValue("EHR_000109")+")");//门诊诊断
|
|
|
String name = ls.get(0).getFieldValue("EHR_000109_VALUE")==null?"":
|
|
|
ls.get(0).getFieldValue("EHR_000109_VALUE")+"";
|
|
|
doc.put("diagnosis",name+"("+ls.get(0).getFieldValue("EHR_000109")+")");//门诊诊断
|
|
|
}else{
|
|
|
doc.put("diagnosis","");
|
|
|
}
|
|
@ -117,7 +119,9 @@ public class MedicalInsuranceService {
|
|
|
doc.put("fee",doc.getFieldValue("EHR_000175"));
|
|
|
SolrDocumentList ls = solrUtil.query(ResourceCore.SubTable,"EHR_000293:*",fq,null,0,1,subfields2);
|
|
|
if(ls!=null&&ls.size()>0){
|
|
|
doc.put("diagnosis",ls.get(0).getFieldValue("EHR_000293_VALUE")+"("+ls.get(0).getFieldValue("EHR_000293")+")");
|
|
|
String name = ls.get(0).getFieldValue("EHR_000293_VALUE")==null?"":
|
|
|
ls.get(0).getFieldValue("EHR_000293_VALUE")+"";
|
|
|
doc.put("diagnosis", name+"("+ls.get(0).getFieldValue("EHR_000293")+")");
|
|
|
}else{
|
|
|
doc.put("diagnosis","");
|
|
|
}
|
|
@ -130,6 +134,7 @@ public class MedicalInsuranceService {
|
|
|
}
|
|
|
long count = solrUtil.count(ResourceCore.SubTable, q, sb.toString());
|
|
|
result.setSuccessFlg(true);
|
|
|
result.setObj((double)Math.round(fee*100)/100);
|
|
|
result.setDetailModelList(sublist);
|
|
|
result.setTotalCount((int)count);
|
|
|
result.setCurrPage(page);
|
|
@ -447,14 +452,10 @@ public class MedicalInsuranceService {
|
|
|
if(StringUtils.isNotEmpty(eventType)){
|
|
|
sb.append(" AND event_type:"+eventType);
|
|
|
}
|
|
|
String[] subfields = new String[7];
|
|
|
subfields[0]="EHR_000045";
|
|
|
subfields[1]="EHR_000109_VALUE";
|
|
|
subfields[2]="profile_id";
|
|
|
subfields[3]="EHR_000175";
|
|
|
subfields[4]="EHR_000293_VALUE";
|
|
|
subfields[5]="event_type";
|
|
|
subfields[6]="rowkey";
|
|
|
String[] subfields = new String[3];
|
|
|
subfields[0]="profile_id";
|
|
|
subfields[1]="event_type";
|
|
|
subfields[2]="rowkey";
|
|
|
String[] fi1elds = {"rowkey","patient_name","patient_age","patient_sex","demographic_id","EHR_001211","event_date"};
|
|
|
SolrDocumentList sublist = solrUtil.query(ResourceCore.SubTable,q,sb.toString(),null,(page-1)*size,size,subfields);
|
|
|
if(sublist!=null && sublist.getNumFound()>0){
|
|
@ -480,7 +481,8 @@ public class MedicalInsuranceService {
|
|
|
SolrDocumentList ls1 = solrUtil.query(ResourceCore.SubTable,"EHR_000109:*",fq,null,0,1,subfields2);
|
|
|
SolrDocumentList ls2 = solrUtil.query(ResourceCore.SubTable,"EHR_000045:*",fq,null,0,1,subfields1);
|
|
|
if(ls1!=null&&ls1.size()>0){
|
|
|
doc.put("diagnosis",ls1.get(0).getFieldValue("EHR_000109_VALUE")+"("+ls1.get(0).getFieldValue("EHR_000109")+")");
|
|
|
String name = ls1.get(0).getFieldValue("EHR_000109_VALUE")==null?"": ls1.get(0).getFieldValue("EHR_000109_VALUE")+"";
|
|
|
doc.put("diagnosis",name+"("+ls1.get(0).getFieldValue("EHR_000109")+")");
|
|
|
}else{
|
|
|
doc.put("diagnosis","");
|
|
|
}
|
|
@ -497,7 +499,8 @@ public class MedicalInsuranceService {
|
|
|
SolrDocumentList ls1 = solrUtil.query(ResourceCore.SubTable,"EHR_000293:*",fq,null,0,1,subfields2);
|
|
|
SolrDocumentList ls2 = solrUtil.query(ResourceCore.SubTable,"EHR_000175:*",fq,null,0,1,subfields1);
|
|
|
if(ls1!=null&&ls1.size()>0){
|
|
|
doc.put("diagnosis",ls1.get(0).getFieldValue("EHR_000293_VALUE")+"("+ls1.get(0).getFieldValue("EHR_000293")+")");
|
|
|
String name = ls1.get(0).getFieldValue("EHR_000293_VALUE")==null?"":ls1.get(0).getFieldValue("EHR_000293_VALUE")+"";
|
|
|
doc.put("diagnosis",name+"("+ls1.get(0).getFieldValue("EHR_000293")+")");
|
|
|
}else{
|
|
|
doc.put("diagnosis","");
|
|
|
}
|