|
@ -337,6 +337,7 @@ public class TasyNatService {
|
|
xml=xml.substring(xml.indexOf("<root>"),xml.lastIndexOf("]]"));
|
|
xml=xml.substring(xml.indexOf("<root>"),xml.lastIndexOf("]]"));
|
|
XMLSerializer xmlSerializer = new XMLSerializer();
|
|
XMLSerializer xmlSerializer = new XMLSerializer();
|
|
String json = xmlSerializer.read(xml).toString();
|
|
String json = xmlSerializer.read(xml).toString();
|
|
|
|
saveHttpLog("ChargenucleicBill",jsonObject.toString(),json,"ChargenucleicBill");
|
|
logger.info("ChargenucleicBill json:"+json);
|
|
logger.info("ChargenucleicBill json:"+json);
|
|
return json;
|
|
return json;
|
|
}
|
|
}
|
|
@ -541,7 +542,7 @@ public class TasyNatService {
|
|
key2.put("color",wxTemplateConfigDO1.getKeyword6());
|
|
key2.put("color",wxTemplateConfigDO1.getKeyword6());
|
|
key3.put("value",wxTemplateConfigDO1.getKeyword3());
|
|
key3.put("value",wxTemplateConfigDO1.getKeyword3());
|
|
key3.put("color",wxTemplateConfigDO1.getKeyword6());
|
|
key3.put("color",wxTemplateConfigDO1.getKeyword6());
|
|
key4.put("value",baseNatAppointmentD0.getDoctorName());
|
|
|
|
|
|
key4.put("value",baseNatAppointmentD0.getChargeAmount());
|
|
key4.put("color",wxTemplateConfigDO1.getKeyword6());
|
|
key4.put("color",wxTemplateConfigDO1.getKeyword6());
|
|
key5.put("value",baseNatAppointmentD0.getVoucherNo());
|
|
key5.put("value",baseNatAppointmentD0.getVoucherNo());
|
|
key5.put("color",wxTemplateConfigDO1.getKeyword6());
|
|
key5.put("color",wxTemplateConfigDO1.getKeyword6());
|
|
@ -799,6 +800,7 @@ public class TasyNatService {
|
|
logger.info("QueryApplyInfo json:"+json);
|
|
logger.info("QueryApplyInfo json:"+json);
|
|
return json;
|
|
return json;
|
|
}
|
|
}
|
|
|
|
|
|
public void savePayStatusByHis(String patientId) throws Exception {
|
|
public void savePayStatusByHis(String patientId) throws Exception {
|
|
List<BaseNatAppointmentDO> baseNatAppointmentDOList = baseNatAppointmentDao.findPayStatusByPatientId(patientId);
|
|
List<BaseNatAppointmentDO> baseNatAppointmentDOList = baseNatAppointmentDao.findPayStatusByPatientId(patientId);
|
|
for (BaseNatAppointmentDO baseNatAppointmentDO:baseNatAppointmentDOList){
|
|
for (BaseNatAppointmentDO baseNatAppointmentDO:baseNatAppointmentDOList){
|
|
@ -1000,4 +1002,36 @@ public class TasyNatService {
|
|
result.put("msg","验证通过");
|
|
result.put("msg","验证通过");
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
|
|
public String getPatientHisId(String idcard,String mediacard) throws Exception{
|
|
|
|
String res = findHisPatientCard(idcard);
|
|
|
|
JSONObject jsonObject = JSON.parseObject(res);
|
|
|
|
if ("1".equalsIgnoreCase(jsonObject.getString("ReturnCode"))) {
|
|
|
|
String patients=jsonObject.getString("patients");
|
|
|
|
if (patients.contains("[")) {
|
|
|
|
JSONArray jsonArray = JSON.parseArray(patients);
|
|
|
|
if (jsonArray != null && jsonArray.size() > 0) {
|
|
|
|
for (int i = 0; i < jsonArray.size(); i++) {
|
|
|
|
JSONObject child = jsonArray.getJSONObject(i);
|
|
|
|
if (mediacard.equalsIgnoreCase(child.getString("CardNo"))) {
|
|
|
|
String Patientid = child.getString("Patientid");
|
|
|
|
return Patientid;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
try {
|
|
|
|
JSONObject jsonObject1 = JSONObject.parseObject(patients);
|
|
|
|
if (mediacard.equalsIgnoreCase(jsonObject1.getString("CardNo"))) {
|
|
|
|
String Patientid = jsonObject1.getString("Patientid");
|
|
|
|
return Patientid;
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return "";
|
|
|
|
}
|
|
}
|
|
}
|