|
@ -5919,6 +5919,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
"outpatient.mobile AS \"outpatient_mobile\"," +
|
|
|
"room.consult_type AS \"consult_type\"," + condition +
|
|
|
"room.reservation_type AS \"reservation_type\"," +
|
|
|
"outpatient.patient_name AS \"outPatientName\"," +
|
|
|
"outpatient.patient AS \"outPatient\"," +
|
|
|
"outpatient.disease_img AS \"disease_img\"," +
|
|
|
"outpatient.description AS \"description\"," +
|
|
|
"outpatient.origin_con_no AS \"origin_con_no\"," +
|
|
@ -5964,6 +5966,20 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
String idcard = (String) outpatient.get("idcard");
|
|
|
String patient_id = (String) outpatient.get("patient_id");
|
|
|
outpatient.put("age", DateUtil.getAgeForIdcard(idcard));
|
|
|
int patientAge = 0;
|
|
|
int patientSex = 3;
|
|
|
if (null!=outpatient.get("outPatient")){
|
|
|
BasePatientDO basePatientDO = basePatientDao.findById(outpatient.get("outPatient").toString());
|
|
|
if (null!=basePatientDO){
|
|
|
if (StringUtils.isNotBlank(basePatientDO.getIdcard())){
|
|
|
patientAge = DateUtil.getAgeForIdcard(basePatientDO.getIdcard());
|
|
|
outpatient.put("patientAge", DateUtil.getAgeForIdcard(basePatientDO.getIdcard()));
|
|
|
patientSex =basePatientDO.getSex();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
outpatient.put("patientAge", patientAge);
|
|
|
outpatient.put("patientSex", patientSex);
|
|
|
|
|
|
String group_date = (String) outpatient.get("group_date");
|
|
|
|
|
@ -7658,6 +7674,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
free = res.getString("@total_charge");
|
|
|
}
|
|
|
ylzPayService.msgPush("01", cardNo, "01", patientDO.getMobile(), "00", userNo, userName, idcard, voucherNo, applyDepaName, applyDoctorName, recipeTime, free, "1");
|
|
|
}else {
|
|
|
throw new Exception(map.get("mes").toString());
|
|
|
}
|
|
|
//sendHisDiagnosis(jsonData, outpatientDO, wlyyPrescriptionDO);
|
|
|
|