在HIS中调用Rest方法
使用com.mediway.his.server.http.HttpUtil类中get方法可以调用GET类型的请求
如:/ar/ip/xxxx?episodeId=1返回BaseResponse<MyDTO>
格式的JSON字段符
try{
String url = "/ar/ip/xxxx?episodeId=1";
MyDTO cvo = new MyDTO();
BaseResponse<Map<String,Object>> br = HttpUtil.get(url, BaseResponse.class);
if (br.getCode().equals("200")) {
cvo = BeanUtil.mapToBean(br.getData(), MyDTO.class, true, CopyOptions.create());
}
}catch (Exception ex){
log.error("请求{}报错", url);
log.error(ex.getMessage());
}
url支持多种格式:
举例:/ar/ip/xxxx
举例:/hispa/api/pat/QueryPaAllergyInfoClient/getMenuPaAllergyCount?episodeId=${episodeId}&patientId=${patientId}
http://www.mediway.his.com/api/v1/ 或者 http://www.mediway.his.com:8090/api/v1/
http://192.168.1.1:8080/api/v1/gateway/ 或者 http://192.168.1.1/api/v1/gateway/
http://ipcare-mediway-boot/api/v1/gateway/
访问量: 527249