|
@ -368,26 +368,24 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
if (StringUtils.isBlank(patNo)) {
|
|
|
return null;
|
|
|
}
|
|
|
BasePatientDO patientDO = basePatientDao.findById(patient);
|
|
|
logger.info("findOutpatientList patNo " + patNo);
|
|
|
List<WlyyOutpatientVO> wlyyOutpatientVOList = entranceService.BS30025(patNo, null, startTime, endTime, demoFlag,ksdm);
|
|
|
/*if (StringUtils.isNoneBlank(ksdm)){
|
|
|
if (!ksdm.equalsIgnoreCase("1500010")){
|
|
|
List<WlyyOutpatientVO> wlyyOutpatientVOList1 = entranceService.BS30025(patNo, null, startTime, endTime, demoFlag,"1500010");
|
|
|
if (wlyyOutpatientVOList!=null&&wlyyOutpatientVOList.size()!=0){
|
|
|
if(wlyyOutpatientVOList1!=null&&wlyyOutpatientVOList1.size()!=0){
|
|
|
for (WlyyOutpatientVO wlyyOutpatientVO:wlyyOutpatientVOList1){
|
|
|
logger.info("==="+wlyyOutpatientVO);
|
|
|
if (wlyyOutpatientVO!=null){
|
|
|
wlyyOutpatientVOList.add(wlyyOutpatientVO);
|
|
|
}
|
|
|
}
|
|
|
List<WlyyOutpatientVO> wlyyOutpatientVOList1 = entranceService.BS10016(patientDO.getIdcard(), null, startTime, endTime, demoFlag,"1500010");
|
|
|
if (wlyyOutpatientVOList!=null&&wlyyOutpatientVOList.size()!=0){
|
|
|
if(wlyyOutpatientVOList1!=null&&wlyyOutpatientVOList1.size()!=0){
|
|
|
for (WlyyOutpatientVO wlyyOutpatientVO:wlyyOutpatientVOList1){
|
|
|
logger.info("==="+wlyyOutpatientVO);
|
|
|
if (wlyyOutpatientVO!=null){
|
|
|
wlyyOutpatientVOList.add(wlyyOutpatientVO);
|
|
|
}
|
|
|
}else {
|
|
|
wlyyOutpatientVOList = new ArrayList<>();
|
|
|
wlyyOutpatientVOList = wlyyOutpatientVOList1;
|
|
|
}
|
|
|
}
|
|
|
}*/
|
|
|
}else {
|
|
|
wlyyOutpatientVOList = new ArrayList<>();
|
|
|
wlyyOutpatientVOList = wlyyOutpatientVOList1;
|
|
|
}
|
|
|
|
|
|
return wlyyOutpatientVOList;
|
|
|
}
|
|
|
|
|
@ -621,6 +619,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
" o.consumer_mobile as \"consumerMobile\", "+
|
|
|
" o.disease_code as \"diseaseCode\", "+
|
|
|
" o.disease_name as \"diseaseName\", "+
|
|
|
" o.is_disease as \"isDisease\", "+
|
|
|
" o.fee as \"fee\", ";
|
|
|
if ("xm_ykyy_wx".equals(wechatId)) {
|
|
|
if (flag){
|
|
@ -747,6 +746,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
rs.put("birthday", DateUtil.dateToStr(basePatientDO.getBirthday(), "yyyy-MM-dd"));
|
|
|
rs.put("diseaseCode",outpatientDO.getDiseaseCode());
|
|
|
rs.put("diseaseName",outpatientDO.getDiseaseName());
|
|
|
rs.put("isDisease",outpatientDO.getIsDisease());
|
|
|
rs.put("inquirySign",outpatientDO.getInquirySign());
|
|
|
rs.put("visitType",outpatientDO.getVisitType());
|
|
|
rs.put("virusFlag",outpatientDO.getVirusFlag());
|
|
@ -2714,7 +2714,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
* @param diagnosisJson
|
|
|
* @return
|
|
|
*/
|
|
|
public Map<String, Object> makeDiagnosis(String outPatientId,String prescriptionId, String advice, String type, String infoJsons, String diagnosisJson, String inspectionJson, String emrJson,String hisId,String diseaseCode,String diseaseName) throws Exception {
|
|
|
public Map<String, Object> makeDiagnosis(String outPatientId,String prescriptionId, String advice, String type, String infoJsons, String diagnosisJson, String inspectionJson, String emrJson,String hisId,String diseaseCode,String diseaseName,String isDisease) throws Exception {
|
|
|
|
|
|
Map<String, Object> result = new HashedMap();
|
|
|
|
|
@ -2725,6 +2725,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
//设置特殊病种
|
|
|
outpatientDO.setDiseaseCode(diseaseCode);
|
|
|
outpatientDO.setDiseaseName(diseaseName);
|
|
|
outpatientDO.setIsDisease(isDisease);
|
|
|
|
|
|
//========================处方操作=============================================================
|
|
|
//创建处方记录
|
|
@ -15819,8 +15820,9 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
* @param medicalState
|
|
|
* @return
|
|
|
*/
|
|
|
public WlyyOutpatientDO updateOutpatient(String outpatientId,String diseaseCode,String diseaseName,String medicalState){
|
|
|
public WlyyOutpatientDO updateOutpatient(String outpatientId,String diseaseCode,String diseaseName,String medicalState,String isDisease){
|
|
|
WlyyOutpatientDO outpatientDO = outpatientDao.findById(outpatientId);
|
|
|
outpatientDO.setIsDisease(isDisease);
|
|
|
if (StringUtils.isNoneBlank(diseaseCode)){
|
|
|
outpatientDO.setDiseaseCode(diseaseCode);
|
|
|
outpatientDO.setDiseaseName(diseaseName);
|