|
@@ -126,13 +126,13 @@ public class PatientInfoFacade extends PatientInfoServiceImpl {
|
|
|
|
|
|
String reqXml = JaxbUtil.convertToXml(body);
|
|
String reqXml = JaxbUtil.convertToXml(body);
|
|
System.out.println("请求Xml : " + reqXml);
|
|
System.out.println("请求Xml : " + reqXml);
|
|
- WebServicesPortTypeProxy proxy = new WebServicesPortTypeProxy("http://118.31.73.190:8081/APP_Webservicesfuzl/service/WebServices");
|
|
|
|
|
|
+ WebServicesPortTypeProxy proxy = new WebServicesPortTypeProxy("http://116.62.126.198:8089/APP_Webservicesfuzl/service/WebServices");
|
|
String resXml=proxy.ICSS_GET_PATIENT(reqXml);
|
|
String resXml=proxy.ICSS_GET_PATIENT(reqXml);
|
|
System.out.println("返回 Xml : " + resXml);
|
|
System.out.println("返回 Xml : " + resXml);
|
|
|
|
|
|
|
|
|
|
//接口调用信息记录
|
|
//接口调用信息记录
|
|
- HttpApi<InterfaceResponse> api = new HttpApi<InterfaceResponse>();
|
|
|
|
|
|
+ /*HttpApi<InterfaceResponse> api = new HttpApi<InterfaceResponse>();
|
|
InterfaceInfoWrapper interfaces = new InterfaceInfoWrapper();
|
|
InterfaceInfoWrapper interfaces = new InterfaceInfoWrapper();
|
|
interfaces.setHospitalId(patientInfoVO.getHospitalCode());
|
|
interfaces.setHospitalId(patientInfoVO.getHospitalCode());
|
|
interfaces.setDoctorNo(patientInfoVO.getDoctorCode());
|
|
interfaces.setDoctorNo(patientInfoVO.getDoctorCode());
|
|
@@ -142,7 +142,7 @@ public class PatientInfoFacade extends PatientInfoServiceImpl {
|
|
interfaces.setParamOut(resXml);
|
|
interfaces.setParamOut(resXml);
|
|
interfaces.setTransTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
|
|
interfaces.setTransTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
|
|
interfaces.setRemark("江干寓健");
|
|
interfaces.setRemark("江干寓健");
|
|
- api.doPost("http://localhost:8082/note-web/interfaces/record", interfaces, InterfaceResponse.class);
|
|
|
|
|
|
+ api.doPost("http://localhost:8082/note-web/interfaces/record", interfaces, InterfaceResponse.class);*/
|
|
|
|
|
|
|
|
|
|
//将返回的xml格式的数据拆包
|
|
//将返回的xml格式的数据拆包
|
|
@@ -152,11 +152,12 @@ public class PatientInfoFacade extends PatientInfoServiceImpl {
|
|
if(resBody!=null){
|
|
if(resBody!=null){
|
|
if(resBody.getRet()==0){
|
|
if(resBody.getRet()==0){
|
|
HISPatient hISPatien = resBody.getData();
|
|
HISPatient hISPatien = resBody.getData();
|
|
|
|
+ patientInfo.setHospitalCode(patientInfoVO.getHospitalCode());
|
|
patientInfo.setCode(patientInfoVO.getPatientCode());
|
|
patientInfo.setCode(patientInfoVO.getPatientCode());
|
|
patientInfo.setName(hISPatien.getPatName());
|
|
patientInfo.setName(hISPatien.getPatName());
|
|
patientInfo.setSex(Integer.parseInt(hISPatien.getPatSex()));
|
|
patientInfo.setSex(Integer.parseInt(hISPatien.getPatSex()));
|
|
if (hISPatien.getPatBirthday() != null) {
|
|
if (hISPatien.getPatBirthday() != null) {
|
|
- SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
patientInfo.setBirthday(sdf.parse(hISPatien.getPatBirthday()));
|
|
patientInfo.setBirthday(sdf.parse(hISPatien.getPatBirthday()));
|
|
}
|
|
}
|
|
//patientInfo.setIdType("");
|
|
//patientInfo.setIdType("");
|