|
@ -65,6 +65,13 @@ public class MedicalInsuranceService {
|
|
|
SolrDocumentList sublist = solrUtil.query(ResourceCore.SubTable,q,sb.toString(),null,(page-1)*size,size,subfields);
|
|
|
if(sublist!=null && sublist.getNumFound()>0){
|
|
|
for (SolrDocument doc : sublist){
|
|
|
if("0".equals(eventType)){
|
|
|
doc.put("fee",doc.getFieldValue("EHR_000045"));
|
|
|
doc.put("diagnosis",doc.getFieldValue("EHR_000109_VALUE"));
|
|
|
}else{
|
|
|
doc.put("fee",doc.getFieldValue("EHR_000175"));
|
|
|
doc.put("diagnosis",doc.getFieldValue("EHR_000293_VALUE"));
|
|
|
}
|
|
|
String q1="rowkey:"+doc.getFieldValue("profile_id");
|
|
|
SolrDocumentList list = solrUtil.query(ResourceCore.MasterTable,q1,null,null,0,1,fields);
|
|
|
doc.putAll(list.get(0));
|