|
@ -27,7 +27,7 @@ import com.yihu.jw.hospital.mapping.dao.PatientMappingDao;
|
|
|
import com.yihu.jw.hospital.prescription.dao.*;
|
|
|
import com.yihu.jw.oauth.OauthRsaKeyDao;
|
|
|
import com.yihu.jw.patient.dao.BasePatientDao;
|
|
|
import com.yihu.jw.restmodel.hospital.prescription.*;
|
|
|
import com.yihu.jw.restmodel.hospital.prescription.WlyyOutpatientVO;
|
|
|
import com.yihu.jw.util.common.IdCardUtil;
|
|
|
import com.yihu.jw.util.date.DateUtil;
|
|
|
import com.yihu.jw.util.encrypt.MD5;
|
|
@ -53,7 +53,6 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
* 第三医院内网his对接服务
|
|
@ -137,6 +136,9 @@ public class DsyyEntranceService {
|
|
|
|
|
|
public static String hospitalUrl = "http://192.168.118.240:10022/";//172.16.100.63
|
|
|
|
|
|
//请求内网服务
|
|
|
public static String entranceIotUrl = "http://192.168.101.2:10024/iotDevice/";
|
|
|
|
|
|
public String getSelectUrl(){
|
|
|
|
|
|
List<WlyyHospitalSysDictDO> list = wlyyHospitalSysDictDao.findByDictName("hcyyWebSelectService");
|
|
@ -194,6 +196,33 @@ public class DsyyEntranceService {
|
|
|
return sysDictDO.getDictCode();
|
|
|
}
|
|
|
|
|
|
//推送物联网体征数据
|
|
|
public void pushIotDeviceDataInfo(Long id){
|
|
|
try {
|
|
|
String url = entranceIotUrl +"uploadDeviceData";
|
|
|
Map<String,Object> params = new HashedMap();
|
|
|
params.put("id",id);
|
|
|
HttpResponse response = HttpUtils.doPost(url,params);
|
|
|
String content = response.getContent();
|
|
|
logger.info("response:"+content);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
|
//推送物联网设备数据
|
|
|
public void pushIotDeviceInfo(Long id){
|
|
|
try {
|
|
|
String url = entranceIotUrl +"deviceRegistration";
|
|
|
Map<String,Object> params = new HashedMap();
|
|
|
params.put("id",id);
|
|
|
HttpResponse response = HttpUtils.doPost(url,params);
|
|
|
String content = response.getContent();
|
|
|
logger.info("response:"+content);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* his 调用
|
|
|
* @param api
|