|
@ -1181,9 +1181,10 @@ public class XzzxEntranceService{
|
|
|
if (StringUtils.isNoneBlank(realOrder)){
|
|
|
params +="&realOrder="+realOrder;
|
|
|
}
|
|
|
logger.info("处方request:"+registerSn+"=="+patNo+"==="+admNo+"===="+realOrder);
|
|
|
String url = entranceUrl+"getOriginPrescriptionList?registerSn="+registerSn+"&patNo="+patNo+"&admNo="+admNo+params;
|
|
|
response = httpClientUtil.get(url,"GBK");
|
|
|
logger.info("处方response:"+response);
|
|
|
logger.info("处方response:"+response+"===="+url);
|
|
|
JSONObject object = JSONObject.parseObject(response);
|
|
|
if (object.getInteger("status")==200){
|
|
|
JSONArray array = new JSONArray();
|
|
@ -1224,7 +1225,7 @@ public class XzzxEntranceService{
|
|
|
wlyyPrescriptionVO.setHospital(isEmty(jsonObject.getString("HOSPITAL")));
|
|
|
wlyyPrescriptionVO.setHospitalName(isEmty(jsonObject.getString("HOSPITALNAME")));
|
|
|
wlyyPrescriptionVO.setConsult(isEmty(jsonObject.getString("CONSULT")));
|
|
|
wlyyPrescriptionVO.setDispensaryType(jsonObject.getInteger("DISPENSARYTYPE"));
|
|
|
wlyyPrescriptionVO.setDispensaryType(isEmty(jsonObject.getString("DISPENSARYTYPE"))!=null?Integer.parseInt(isEmty(jsonObject.getString("DISPENSARYTYPE"))):null);
|
|
|
wlyyPrescriptionVO.setReason(isEmty(jsonObject.getString("REASON")));
|
|
|
wlyyPrescriptionVO.setDiseaseImg(isEmty(jsonObject.getString("DISEASEIMG")));
|
|
|
wlyyPrescriptionVO.setRemark(isEmty(jsonObject.getString("REMARK")));
|
|
@ -1239,8 +1240,8 @@ public class XzzxEntranceService{
|
|
|
wlyyPrescriptionVO.setHisGisterTypeCode(isEmty(jsonObject.getString("HISGISTERTYPECODE")));
|
|
|
wlyyPrescriptionVO.setHisRateTypeCode(isEmty(jsonObject.getString("HISRATETYPECODE")));
|
|
|
wlyyPrescriptionVO.setHisHospital(isEmty(jsonObject.getString("HISHOSPITAL")));
|
|
|
wlyyPrescriptionVO.setHisRegisterFee(Integer.parseInt(isEmty(jsonObject.getString("HISREGISTERFEE"))));
|
|
|
wlyyPrescriptionVO.setPayStatus(Integer.parseInt(isEmty(jsonObject.getString("PAYSTATUS"))));
|
|
|
wlyyPrescriptionVO.setHisRegisterFee(isEmty(jsonObject.getString("HISREGISTERFEE"))!=null?Integer.parseInt(isEmty(jsonObject.getString("HISREGISTERFEE"))):null);
|
|
|
wlyyPrescriptionVO.setPayStatus(isEmty(jsonObject.getString("PAYSTATUS"))!=null?Integer.parseInt(isEmty(jsonObject.getString("PAYSTATUS"))):null);
|
|
|
//TODO 快递数据
|
|
|
wlyyPrescriptionVO.setDispUser(isEmty(jsonObject.getString("DISPUSER")));
|
|
|
wlyyPrescriptionVO.setDispUserName(isEmty(jsonObject.getString("DISPUSERNAME")));
|
|
@ -1259,7 +1260,7 @@ public class XzzxEntranceService{
|
|
|
WlyyPrescriptionDiagnosisVO prescriptionDiagnosisVO = new WlyyPrescriptionDiagnosisVO();
|
|
|
prescriptionDiagnosisVO.setCode(isEmty(disagnosisJson.getString("DIAGNOSECODE")));
|
|
|
prescriptionDiagnosisVO.setName(isEmty(disagnosisJson.getString("DIAGNOSENAME")));
|
|
|
prescriptionDiagnosisVO.setType(disagnosisJson.getInteger("DIAGNOSETYPE"));
|
|
|
prescriptionDiagnosisVO.setType(isEmty(disagnosisJson.getString("DIAGNOSETYPE"))==null?null:Integer.parseInt(disagnosisJson.getString("DIAGNOSETYPE")));
|
|
|
prescriptionDiagnosisVOS.add(prescriptionDiagnosisVO);
|
|
|
}
|
|
|
wlyyPrescriptionVO.setDiagnosisVOs(prescriptionDiagnosisVOS);
|
|
@ -1316,7 +1317,7 @@ public class XzzxEntranceService{
|
|
|
WlyyInspectionVO inspectionVO = new WlyyInspectionVO();
|
|
|
JSONObject inspectionJson = inspectionArray.getJSONObject(j);
|
|
|
inspectionVO.setGroupName(isEmty(inspectionJson.getString("GROUPNAME")));
|
|
|
inspectionVO.setQuantity(Integer.parseInt(isEmty(inspectionJson.getString("QUANTITYS"))));
|
|
|
inspectionVO.setQuantity(isEmty(inspectionJson.getString("QUANTITYS"))!=null?Integer.parseInt(isEmty(inspectionJson.getString("QUANTITYS"))):null);
|
|
|
inspectionVO.setFrequency(isEmty(inspectionJson.getString("FREQUENCYS")));
|
|
|
inspectionVO.setParentCode(isEmty(inspectionJson.getString("PARENTCODE")));
|
|
|
inspectionVO.setParentName(isEmty(inspectionJson.getString("PARENTCODENAME")));
|
|
@ -1330,6 +1331,7 @@ public class XzzxEntranceService{
|
|
|
}
|
|
|
wlyyPrescriptionVO.setInspectionVOs(wlyyInspectionVOList);
|
|
|
}
|
|
|
prescriptionVOList.add(wlyyPrescriptionVO);
|
|
|
}
|
|
|
}
|
|
|
return prescriptionVOList;
|
|
@ -1455,7 +1457,7 @@ public class XzzxEntranceService{
|
|
|
public Map<String,Object> updatePreStatus(String admNo,String realOrder,String status) throws Exception {
|
|
|
Map<String,Object> map = new HashedMap();
|
|
|
List<WlyyOutpatientDO> wlyyOutpatientDOList = outpatientDao.findByAdmNo(admNo);
|
|
|
if (wlyyOutpatientDOList!=null&&wlyyOutpatientDOList.size()!=0){
|
|
|
if (wlyyOutpatientDOList==null||wlyyOutpatientDOList.size()==0){
|
|
|
throw new Exception("该就诊号查不到!");
|
|
|
}
|
|
|
for (WlyyOutpatientDO wlyyOutpatientDO:wlyyOutpatientDOList){
|