|
|
@@ -34,8 +34,6 @@ import org.tio.core.ChannelContext;
|
|
|
import org.tio.core.Tio;
|
|
|
import org.tio.core.utils.TioUtils;
|
|
|
import org.tio.websocket.common.WsResponse;
|
|
|
-
|
|
|
-import javax.crypto.MacSpi;
|
|
|
import java.util.*;
|
|
|
import java.util.concurrent.*;
|
|
|
|
|
|
@@ -190,7 +188,7 @@ public class HisScriptSession {
|
|
|
* @param patientCode
|
|
|
* @return BusClinicEntity 开始时间最大的手术信息
|
|
|
*/
|
|
|
- public BusClinicEntity handle(String msgId,String text,String patientCode){
|
|
|
+ public BusClinicEntity handle(String text,String patientCode){
|
|
|
ScriptParse script = scriptManager.lookUpHospital(hospitalId);
|
|
|
if(script==null){
|
|
|
log.warn("没有获取到医院{}的解析脚本信息,不处理该条数据",hospitalId);
|
|
|
@@ -200,7 +198,6 @@ public class HisScriptSession {
|
|
|
return null;
|
|
|
}
|
|
|
ExecuteResult exec = script.exec(text);
|
|
|
- exec.setMsgId(msgId);
|
|
|
JSON result=null;
|
|
|
List<BusClinicEntity> sources=new ArrayList<>();
|
|
|
try {
|
|
|
@@ -314,7 +311,7 @@ public class HisScriptSession {
|
|
|
return;
|
|
|
}
|
|
|
//正常响应
|
|
|
- handle(messageId,Value.simple(hisResponse.getContext()).asString(), hisResponse.getPatientCode());
|
|
|
+ handle(Value.simple(hisResponse.getContext()).asString(), hisResponse.getPatientCode());
|
|
|
}else {
|
|
|
Date responseTimestamp = hisResponse.getTimestamp();
|
|
|
Date requestTimestamp = hisRequest.getTimestamp();
|
|
|
@@ -332,7 +329,7 @@ public class HisScriptSession {
|
|
|
}
|
|
|
//正常响应
|
|
|
try {
|
|
|
- BusClinicEntity clinic = handle(messageId,Value.simple(hisResponse.getContext()).asString(), hisResponse.getPatientCode());
|
|
|
+ BusClinicEntity clinic = handle(Value.simple(hisResponse.getContext()).asString(), hisResponse.getPatientCode());
|
|
|
if(clinic==null){
|
|
|
result.setResult(R.fail(String.format("病号【[%s]】病人数据查询为空",hisResponse.getPatientCode())));
|
|
|
}else {
|