|
@ -2796,6 +2796,9 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
prescriptionDO.setDoctor(outpatientDO.getDoctor());
|
|
prescriptionDO.setDoctor(outpatientDO.getDoctor());
|
|
prescriptionDO.setDoctorName(outpatientDO.getDoctorName());
|
|
prescriptionDO.setDoctorName(outpatientDO.getDoctorName());
|
|
prescriptionDO.setPayStatus(0);
|
|
prescriptionDO.setPayStatus(0);
|
|
|
|
prescriptionDO.setIsDisease(isDisease);
|
|
|
|
prescriptionDO.setDiseaseCode(diseaseCode);
|
|
|
|
prescriptionDO.setDiseaseName(diseaseName);
|
|
if (wechatId.equalsIgnoreCase("xm_ykyy_wx")) {
|
|
if (wechatId.equalsIgnoreCase("xm_ykyy_wx")) {
|
|
prescriptionDO.setAdmNo(outpatientDO.getAdmNo());
|
|
prescriptionDO.setAdmNo(outpatientDO.getAdmNo());
|
|
}
|
|
}
|
|
@ -15221,7 +15224,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
return object;
|
|
return object;
|
|
}
|
|
}
|
|
}else {
|
|
}else {
|
|
if (outpatientDO.getIsDisease().equalsIgnoreCase("1")){
|
|
|
|
|
|
if (StringUtils.isNoneBlank(ylzMedicalRelationDO.getDiseaseCode())){
|
|
object.put("code","403");
|
|
object.put("code","403");
|
|
object.put("message","特殊病种已经结算过,请联系医院处理!");
|
|
object.put("message","特殊病种已经结算过,请联系医院处理!");
|
|
return object;
|
|
return object;
|
|
@ -15231,7 +15234,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
}
|
|
}
|
|
}else {
|
|
}else {
|
|
if (jsonObject.getString("flag").equalsIgnoreCase("50204")){
|
|
if (jsonObject.getString("flag").equalsIgnoreCase("50204")){
|
|
if (outpatientDO.getIsDisease().equalsIgnoreCase("1")){
|
|
|
|
|
|
if (StringUtils.isNoneBlank(ylzMedicalRelationDO.getDiseaseCode())){
|
|
object.put("code","403");
|
|
object.put("code","403");
|
|
object.put("message","特殊病种已经结算过,请联系医院处理!");
|
|
object.put("message","特殊病种已经结算过,请联系医院处理!");
|
|
return object;
|
|
return object;
|
|
@ -16682,12 +16685,17 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
* @param medicalState
|
|
* @param medicalState
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public WlyyOutpatientDO updateOutpatient(String outpatientId,String diseaseCode,String diseaseName,String medicalState,String isDisease){
|
|
|
|
|
|
public WlyyOutpatientDO updateOutpatient(String outpatientId,String prescriptionId,String diseaseCode,String diseaseName,String medicalState,String isDisease){
|
|
WlyyOutpatientDO outpatientDO = outpatientDao.findById(outpatientId);
|
|
WlyyOutpatientDO outpatientDO = outpatientDao.findById(outpatientId);
|
|
outpatientDO.setIsDisease(isDisease);
|
|
outpatientDO.setIsDisease(isDisease);
|
|
outpatientDO.setDiseaseCode(diseaseCode);
|
|
outpatientDO.setDiseaseCode(diseaseCode);
|
|
outpatientDO.setDiseaseName(diseaseName);
|
|
outpatientDO.setDiseaseName(diseaseName);
|
|
outpatientDO.setMedicalState(medicalState);
|
|
outpatientDO.setMedicalState(medicalState);
|
|
|
|
WlyyPrescriptionDO prescriptionDO = prescriptionDao.findOne(prescriptionId);
|
|
|
|
prescriptionDO.setIsDisease(isDisease);
|
|
|
|
prescriptionDO.setDiseaseCode(diseaseCode);
|
|
|
|
prescriptionDO.setDiseaseName(diseaseName);
|
|
|
|
prescriptionDao.save(prescriptionDO);
|
|
return outpatientDao.save(outpatientDO);
|
|
return outpatientDao.save(outpatientDO);
|
|
}
|
|
}
|
|
|
|
|