|
@ -427,6 +427,8 @@ public class EntranceService {
|
|
public List<WlyyOutpatientVO> BS30025(String PAT_NO,String conNo,String startTime,String endTime,boolean demoFlag) throws Exception {
|
|
public List<WlyyOutpatientVO> BS30025(String PAT_NO,String conNo,String startTime,String endTime,boolean demoFlag) throws Exception {
|
|
String fid = BS30025;
|
|
String fid = BS30025;
|
|
String resp = "";
|
|
String resp = "";
|
|
|
|
String orgCode = "350211A1002";
|
|
|
|
String orgName = "厦门市中山医院";
|
|
if (demoFlag) {
|
|
if (demoFlag) {
|
|
resp = getJosnFileResullt(fid);
|
|
resp = getJosnFileResullt(fid);
|
|
} else {
|
|
} else {
|
|
@ -462,8 +464,8 @@ public class EntranceService {
|
|
if (null != jsonObjectMgsInfo) {
|
|
if (null != jsonObjectMgsInfo) {
|
|
wlyyOutpatientVO = new WlyyOutpatientVO();
|
|
wlyyOutpatientVO = new WlyyOutpatientVO();
|
|
//中山医院固定入参
|
|
//中山医院固定入参
|
|
wlyyOutpatientVO.setHospital("350211A1002");
|
|
|
|
wlyyOutpatientVO.setHospitalName("厦门市中山医院");
|
|
|
|
|
|
wlyyOutpatientVO.setHospital(orgCode);
|
|
|
|
wlyyOutpatientVO.setHospitalName(orgName);
|
|
wlyyOutpatientVO.setWinNo("6");
|
|
wlyyOutpatientVO.setWinNo("6");
|
|
wlyyOutpatientVO.setAdmNo(null == jsonObjectMgsInfo.get("ADM_NO") ? "" : jsonObjectMgsInfo.get("ADM_NO") + "");
|
|
wlyyOutpatientVO.setAdmNo(null == jsonObjectMgsInfo.get("ADM_NO") ? "" : jsonObjectMgsInfo.get("ADM_NO") + "");
|
|
wlyyOutpatientVO.setRegisterNo(null == jsonObjectMgsInfo.get("REGISTER_SN") ? "" : jsonObjectMgsInfo.get("REGISTER_SN") + "");
|
|
wlyyOutpatientVO.setRegisterNo(null == jsonObjectMgsInfo.get("REGISTER_SN") ? "" : jsonObjectMgsInfo.get("REGISTER_SN") + "");
|
|
@ -481,15 +483,59 @@ public class EntranceService {
|
|
wlyyOutpatientVO.setPatientName(patientName);
|
|
wlyyOutpatientVO.setPatientName(patientName);
|
|
wlyyOutpatientVO.setConNo(null == jsonObjectMgsInfo.get("CON_NO") ? "" : jsonObjectMgsInfo.get("CON_NO") + "");
|
|
wlyyOutpatientVO.setConNo(null == jsonObjectMgsInfo.get("CON_NO") ? "" : jsonObjectMgsInfo.get("CON_NO") + "");
|
|
String doctor=null == jsonObjectMgsInfo.get("CON_DOC") ? "" : jsonObjectMgsInfo.get("CON_DOC") + "";
|
|
String doctor=null == jsonObjectMgsInfo.get("CON_DOC") ? "" : jsonObjectMgsInfo.get("CON_DOC") + "";
|
|
wlyyOutpatientVO.setDoctor(doctor.trim());
|
|
|
|
|
|
|
|
|
|
//转化医生
|
|
|
|
String mappingCode = doctor.trim();
|
|
|
|
String doctorCode = "";
|
|
|
|
if(StringUtils.isNotBlank(mappingCode)){
|
|
|
|
List<DoctorMappingDO> mappingDOs =doctorMappingDao.findByOrgCodeAndMappingCode(orgCode,mappingCode);
|
|
|
|
if(mappingDOs!=null&&mappingDOs.size()>0){
|
|
|
|
doctorCode = mappingDOs.get(0).getDoctor();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
wlyyOutpatientVO.setDoctor(doctorCode);
|
|
wlyyOutpatientVO.setDoctorName(null == jsonObjectMgsInfo.get("CON_DOC_NAME") ? "" : jsonObjectMgsInfo.get("CON_DOC_NAME") + "");
|
|
wlyyOutpatientVO.setDoctorName(null == jsonObjectMgsInfo.get("CON_DOC_NAME") ? "" : jsonObjectMgsInfo.get("CON_DOC_NAME") + "");
|
|
|
|
|
|
wlyyOutpatientVO.setIdcard(null == jsonObjectMgsInfo.get("social_no") ? "" : jsonObjectMgsInfo.get("social_no") + "");
|
|
wlyyOutpatientVO.setIdcard(null == jsonObjectMgsInfo.get("social_no") ? "" : jsonObjectMgsInfo.get("social_no") + "");
|
|
wlyyOutpatientVO.setMjz(null == jsonObjectMgsInfo.get("MJZ") ? "" : jsonObjectMgsInfo.get("MJZ") + "");
|
|
wlyyOutpatientVO.setMjz(null == jsonObjectMgsInfo.get("MJZ") ? "" : jsonObjectMgsInfo.get("MJZ") + "");
|
|
String icds = null == jsonObjectMgsInfo.get("icd_name") ? "" : jsonObjectMgsInfo.get("icd_name") + "";
|
|
|
|
String[] icdcodeAndName = icds.split("&");
|
|
|
|
wlyyOutpatientVO.setIcd10(icdcodeAndName.length > 1 ? icdcodeAndName[1].toString() : "");
|
|
|
|
wlyyOutpatientVO.setIcd10Name(icdcodeAndName.length > 0 ? icdcodeAndName[0].toString() : "");
|
|
|
|
|
|
|
|
|
|
//主诊断 毒蛇咬伤&T63.001
|
|
|
|
String[] icdName = jsonObjectMgsInfo.get("icd_name").toString().split("&");
|
|
|
|
String[] diagTwo = jsonObjectMgsInfo.get("diag_two").toString().split("&");
|
|
|
|
String[] diagThree = jsonObjectMgsInfo.get("diag_three").toString().split("&");
|
|
|
|
String[] diagFour = jsonObjectMgsInfo.get("diag_four").toString().split("&");
|
|
|
|
String[] diagFive = jsonObjectMgsInfo.get("diag_five").toString().split("&");
|
|
|
|
|
|
|
|
String icdcodes = "";
|
|
|
|
String icdNames = "";
|
|
|
|
if(icdName.length>0){
|
|
|
|
icdcodes += icdName[1];
|
|
|
|
icdNames += icdName[0];
|
|
|
|
}
|
|
|
|
if(diagTwo.length>0){
|
|
|
|
icdcodes += ","+diagTwo[1];
|
|
|
|
icdNames += ","+diagTwo[0];
|
|
|
|
}
|
|
|
|
if(diagThree.length>0){
|
|
|
|
icdcodes += ","+diagThree[1];
|
|
|
|
icdNames += ","+diagThree[0];
|
|
|
|
}
|
|
|
|
if(diagFour.length>0){
|
|
|
|
icdcodes += ","+diagFour[1];
|
|
|
|
icdNames += ","+diagFour[0];
|
|
|
|
}
|
|
|
|
if(diagFive.length>0){
|
|
|
|
icdcodes += ","+diagFive[1];
|
|
|
|
icdNames += ","+diagFive[0];
|
|
|
|
}
|
|
|
|
|
|
|
|
// String icds = null == jsonObjectMgsInfo.get("icd_name") ? "" : jsonObjectMgsInfo.get("icd_name") + "";
|
|
|
|
// String[] icdcodeAndName = icds.split("&");
|
|
|
|
// wlyyOutpatientVO.setIcd10(icdcodeAndName.length > 1 ? icdcodeAndName[1].toString() : "");
|
|
|
|
// wlyyOutpatientVO.setIcd10Name(icdcodeAndName.length > 0 ? icdcodeAndName[0].toString() : "");
|
|
|
|
wlyyOutpatientVO.setIcd10(icdcodes);
|
|
|
|
wlyyOutpatientVO.setIcd10Name(icdNames);
|
|
|
|
|
|
String admDate = null == jsonObjectMgsInfo.get("ADM_DAT") ? "" : jsonObjectMgsInfo.get("ADM_DAT") + "";
|
|
String admDate = null == jsonObjectMgsInfo.get("ADM_DAT") ? "" : jsonObjectMgsInfo.get("ADM_DAT") + "";
|
|
String conDate = null == jsonObjectMgsInfo.get("CON_DATE") ? "" : jsonObjectMgsInfo.get("CON_DATE") + "";
|
|
String conDate = null == jsonObjectMgsInfo.get("CON_DATE") ? "" : jsonObjectMgsInfo.get("CON_DATE") + "";
|
|
wlyyOutpatientVO.setAdmDate(DateUtil.strToDate(admDate, DateUtil.YYYY_MM_DD_HH_MM_SS_));
|
|
wlyyOutpatientVO.setAdmDate(DateUtil.strToDate(admDate, DateUtil.YYYY_MM_DD_HH_MM_SS_));
|
|
@ -1405,7 +1451,7 @@ public class EntranceService {
|
|
if (!(null != doctorMappingDOS && doctorMappingDOS.size() > 0)) {
|
|
if (!(null != doctorMappingDOS && doctorMappingDOS.size() > 0)) {
|
|
DoctorMappingDO doctorMappingDO = new DoctorMappingDO();
|
|
DoctorMappingDO doctorMappingDO = new DoctorMappingDO();
|
|
doctorMappingDO.setDoctor(baseDoctorDO.getId());
|
|
doctorMappingDO.setDoctor(baseDoctorDO.getId());
|
|
doctorMappingDO.setDoctor_name(doctorName);
|
|
|
|
|
|
doctorMappingDO.setDoctorName(doctorName);
|
|
doctorMappingDO.setMappingCode(doctorCode);
|
|
doctorMappingDO.setMappingCode(doctorCode);
|
|
doctorMappingDO.setMappingName(doctorName);
|
|
doctorMappingDO.setMappingName(doctorName);
|
|
doctorMappingDO.setOrgCode("350211A1002");
|
|
doctorMappingDO.setOrgCode("350211A1002");
|