|
@ -675,7 +675,7 @@ public class DsyyEntranceService {
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public JSONArray selectHistoryEmrFromEntrance(String patientId,String eventNo) throws Exception {
|
|
|
public JSONArray selectHistoryEmrFromEntrance(String patientId,String registerNo) throws Exception {
|
|
|
PatientMappingDO mappingDO = patientMappingDao.findByPatient(patientId);
|
|
|
String patient = null;
|
|
|
if (mappingDO!=null){
|
|
@ -712,6 +712,9 @@ public class DsyyEntranceService {
|
|
|
if (StringUtils.isNoneBlank(patient)){
|
|
|
sql +=" and PATIENT ='"+patient+"' ";
|
|
|
}
|
|
|
if (StringUtils.isNoneBlank(registerNo)){
|
|
|
sql +=" and REGISTERNO ='"+registerNo+"' ";
|
|
|
}
|
|
|
sql +=" order BY createTime desc ";
|
|
|
Map<String,Object> params = new HashedMap();
|
|
|
params.put("sql",sql);
|
|
@ -2993,30 +2996,33 @@ public class DsyyEntranceService {
|
|
|
}
|
|
|
|
|
|
public JSONArray selectEmrInfoIdAndVisitNo(String patientId,String visitNo) throws Exception {
|
|
|
String url = "HTTP://10.95.8.41:51221";
|
|
|
String xml = "{\n" +
|
|
|
" \"serverCode\": \"JHIDS-USD-HLWMZBL-012\",\n" +
|
|
|
" \"sysCode\": \"HLW\",\n" +
|
|
|
" \"pageSize\": \"10\",\n" +
|
|
|
" \"pageNo\": \"1\",\n" +
|
|
|
" \t\"orders\": [\n" +
|
|
|
"\t\n" +
|
|
|
"\t],\n" +
|
|
|
"\t\"condition\": [\n" +
|
|
|
"\t\t{\n" +
|
|
|
"\t\t\t\"column\": \"PATIENT_ID\",\n" +
|
|
|
"\t\t\t\"type\": \"eq\",\n" +
|
|
|
"\t\t\t\"value\": \""+patientId+"\"\n" +
|
|
|
"\t\t},\n" +
|
|
|
" \t{\n" +
|
|
|
"\t\t\t\"column\": \"VISIT_ID\",\n" +
|
|
|
"\t\t\t\"type\": \"eq\",\n" +
|
|
|
"\t\t\t\"value\": \""+visitNo+"\"\n" +
|
|
|
"\t\t}\n" +
|
|
|
"\t]\n" +
|
|
|
"}";
|
|
|
String url = "http://10.95.8.41:51225";
|
|
|
JSONObject data = new JSONObject();
|
|
|
JSONArray orders = new JSONArray();
|
|
|
JSONArray condition = new JSONArray();
|
|
|
data.put("serverCode","JHIDS-USD-HLWMZBL-014");
|
|
|
data.put("sysCode","HLW");
|
|
|
data.put("pageSize",1);
|
|
|
data.put("pageNo",1);
|
|
|
data.put("orders",orders);
|
|
|
if (StringUtils.isNoneBlank(patientId)){
|
|
|
JSONObject item = new JSONObject();
|
|
|
item.put("column","PATIENT_ID");
|
|
|
item.put("type","eq");
|
|
|
item.put("value",patientId);
|
|
|
condition.add(item);
|
|
|
}
|
|
|
if (StringUtils.isNoneBlank(visitNo)){
|
|
|
JSONObject item = new JSONObject();
|
|
|
item.put("column","VISIT_ID");
|
|
|
item.put("type","eq");
|
|
|
item.put("value",visitNo);
|
|
|
condition.add(item);
|
|
|
}
|
|
|
data.put("condition",condition);
|
|
|
String xml = data.toJSONString();
|
|
|
logger.info("xml"+xml);
|
|
|
String response = httpClientUtil.postHeadBodyText(url,xml);
|
|
|
String response = httpClientUtil.postHeadBodyText2(url,xml);
|
|
|
logger.info("response===="+response);
|
|
|
JSONArray jsonArray =new JSONArray();
|
|
|
Object json = JSON.parse(response);
|
|
@ -3077,7 +3083,7 @@ public class DsyyEntranceService {
|
|
|
}
|
|
|
if (StringUtils.isNoneBlank(visitNo)){
|
|
|
JSONObject item = new JSONObject();
|
|
|
item.put("column","VISIT_NO");
|
|
|
item.put("column","VISIT_ID");
|
|
|
item.put("type","eq");
|
|
|
item.put("value",visitNo);
|
|
|
condition.add(item);
|