|
@ -7874,11 +7874,11 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
JSONObject data = new JSONObject();
|
|
|
Integer age = 0;
|
|
|
String gender = "";
|
|
|
if (StringUtils.isNoneBlank(prescriptionDO.getIdcard())) {
|
|
|
age = IdCardUtil.getAgeForIdcard(prescriptionDO.getIdcard());
|
|
|
BasePatientDO patientDO = basePatientDao.findById(prescriptionDO.getPatientCode());
|
|
|
if (null!=patientDO&&StringUtils.isNotBlank(patientDO.getIdcard())) {
|
|
|
age = IdCardUtil.getAgeForIdcard(patientDO.getIdcard());
|
|
|
gender = IdCardUtil.getSexForIdcard(prescriptionDO.getIdcard());
|
|
|
}
|
|
|
BasePatientDO patientDO = basePatientDao.findById(prescriptionDO.getPatientCode());
|
|
|
data.put("name", prescriptionDO.getPatientName());
|
|
|
data.put("age", age);
|
|
|
data.put("gender", gender);
|