|
@ -7530,6 +7530,108 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
return wlyyPrescriptionEmrDO;
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 门诊病历列表信息
|
|
|
*
|
|
|
* @param patient
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public com.alibaba.fastjson.JSONObject outpatient(String patient) throws Exception {
|
|
|
PatientMappingDO mappingDO = patientMappingDao.findByPatient(patient);
|
|
|
String url = "";
|
|
|
WlyyHospitalSysDictDO wlyyHospitalSysDictDO = hospitalSysDictDao.findById("HAI_TAI_OUTPATIENT_URL");
|
|
|
if (wlyyHospitalSysDictDO != null) {
|
|
|
url = wlyyHospitalSysDictDO.getDictCode();
|
|
|
}
|
|
|
String patNo = null;
|
|
|
if (mappingDO!=null){
|
|
|
patNo = mappingDO.getMappingCode();
|
|
|
}
|
|
|
String returnValue = "";
|
|
|
Map<String, String> params = new HashedMap();
|
|
|
params.put("type", "Outpatient");
|
|
|
params.put("xmlStr", patNo);
|
|
|
returnValue = com.yihu.jw.utils.WebserviceUtil.post(url,
|
|
|
"http://business.htemr.haitaiinc.com",
|
|
|
"manageDataAll",
|
|
|
params);
|
|
|
|
|
|
logger.info("门诊病历列表信息,返回值xmlstr:" + returnValue);
|
|
|
XMLSerializer xmlSerializer = new XMLSerializer();
|
|
|
net.sf.json.JSON json = xmlSerializer.read(returnValue);
|
|
|
logger.info("返回json" + json);
|
|
|
com.alibaba.fastjson.JSONObject object = com.alibaba.fastjson.JSONObject.parseObject(json.toString());
|
|
|
return object;
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 医疗文书列表信息
|
|
|
* @param patient
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public com.alibaba.fastjson.JSONObject outpmedicaldoc(String patient) throws Exception {
|
|
|
PatientMappingDO mappingDO = patientMappingDao.findByPatient(patient);
|
|
|
String url = "";
|
|
|
WlyyHospitalSysDictDO wlyyHospitalSysDictDO = hospitalSysDictDao.findById("HAI_TAI_OUTPATIENT_URL");
|
|
|
if (wlyyHospitalSysDictDO != null) {
|
|
|
url = wlyyHospitalSysDictDO.getDictCode();
|
|
|
}
|
|
|
String patNo = null;
|
|
|
if (mappingDO!=null){
|
|
|
patNo = mappingDO.getMappingCode();
|
|
|
}
|
|
|
String returnValue = "";
|
|
|
Map<String, String> params = new HashedMap();
|
|
|
params.put("type", "Outpmedicaldoc");
|
|
|
params.put("xmlStr", patNo);
|
|
|
returnValue = com.yihu.jw.utils.WebserviceUtil.post(url,
|
|
|
"http://business.htemr.haitaiinc.com",
|
|
|
"manageDataAll",
|
|
|
params);
|
|
|
|
|
|
logger.info("门诊病历列表信息,返回值xmlstr:" + returnValue);
|
|
|
XMLSerializer xmlSerializer = new XMLSerializer();
|
|
|
net.sf.json.JSON json = xmlSerializer.read(returnValue);
|
|
|
logger.info("返回json" + json);
|
|
|
com.alibaba.fastjson.JSONObject object = com.alibaba.fastjson.JSONObject.parseObject(json.toString());
|
|
|
return object;
|
|
|
}
|
|
|
|
|
|
|
|
|
public com.alibaba.fastjson.JSONObject getPatInfoDataXml(String opid,String recSn) throws Exception {
|
|
|
|
|
|
String url = "";
|
|
|
WlyyHospitalSysDictDO wlyyHospitalSysDictDO = hospitalSysDictDao.findById("HAI_TAI_OUTPATIENT_URL");
|
|
|
if (wlyyHospitalSysDictDO != null) {
|
|
|
url = wlyyHospitalSysDictDO.getDictCode();
|
|
|
}
|
|
|
String data = null;
|
|
|
if (StringUtils.isNoneBlank(opid)){
|
|
|
data = "Outpatient_"+opid;
|
|
|
}else if (StringUtils.isNoneBlank(recSn)){
|
|
|
data = "Outpmedicaldoc_"+recSn;
|
|
|
}
|
|
|
String returnValue = "";
|
|
|
Map<String, String> params = new HashedMap();
|
|
|
params.put("type", "getPatInfoDataXml");
|
|
|
params.put("data", data);
|
|
|
returnValue = com.yihu.jw.utils.WebserviceUtil.post(url,
|
|
|
"http://business.htemr.haitaiinc.com",
|
|
|
"manageDataAll",
|
|
|
params);
|
|
|
|
|
|
logger.info("门诊病历列表信息,返回值xmlstr:" + returnValue);
|
|
|
XMLSerializer xmlSerializer = new XMLSerializer();
|
|
|
net.sf.json.JSON json = xmlSerializer.read(returnValue);
|
|
|
logger.info("返回json" + json);
|
|
|
com.alibaba.fastjson.JSONObject object = com.alibaba.fastjson.JSONObject.parseObject(json.toString());
|
|
|
return object;
|
|
|
}
|
|
|
|
|
|
public String writeOutPatient(String registerSn, String chiefComplaint, String hpi, String elapsemhis, String bodycheck, String assistanTcheck, String doctorId, String doctorName) throws Exception {
|
|
|
String url = "";
|
|
|
WlyyHospitalSysDictDO wlyyHospitalSysDictDO = hospitalSysDictDao.findById("HAI_TAI_URL");
|