|
@ -72,20 +72,22 @@ public class DataGeneratorService extends BaseJpaService<InternetUpErrorLogDO, I
|
|
|
|
|
|
BasePatientDO patientDO = basePatientDao.findById(patientMappingDO.getPatient());
|
|
|
|
|
|
//1.生成门诊记录
|
|
|
WlyyOutpatientDO wlyyOutpatientDO = getOutPatient(patientDO,doctorDO,hospitalDO,date);
|
|
|
if(patientDO!=null){
|
|
|
//1.生成门诊记录
|
|
|
WlyyOutpatientDO wlyyOutpatientDO = getOutPatient(patientDO,doctorDO,hospitalDO,date);
|
|
|
|
|
|
//2.生成处方记录
|
|
|
WlyyPrescriptionDO prescriptionDO = getPrescription(wlyyOutpatientDO,date);
|
|
|
//2.生成处方记录
|
|
|
WlyyPrescriptionDO prescriptionDO = getPrescription(wlyyOutpatientDO,date);
|
|
|
|
|
|
//3.生成药品
|
|
|
getPreInfo(prescriptionDO,date);
|
|
|
//3.生成药品
|
|
|
getPreInfo(prescriptionDO,date);
|
|
|
|
|
|
//4.生成检查检验
|
|
|
getInspection(prescriptionDO,date);
|
|
|
//4.生成检查检验
|
|
|
getInspection(prescriptionDO,date);
|
|
|
|
|
|
//5.门诊预约
|
|
|
getRegisterDO(wlyyOutpatientDO,date);
|
|
|
//5.门诊预约
|
|
|
getRegisterDO(wlyyOutpatientDO,date);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return "success";
|