|
@ -0,0 +1,70 @@
|
|
|
package com.yihu.jw.patient.service;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
import com.yihu.jw.entity.base.patient.BasePatientDO;
|
|
|
import com.yihu.jw.entity.base.patient.PatientMedicareCardDO;
|
|
|
import com.yihu.jw.entity.hospital.prescription.WlyyInspectionDO;
|
|
|
import com.yihu.jw.entity.hospital.prescription.WlyyOutpatientDO;
|
|
|
import com.yihu.jw.entity.hospital.prescription.WlyyPrescriptionInfoDO;
|
|
|
import com.yihu.jw.entity.patient.BasePatientDischargeRecord;
|
|
|
import com.yihu.jw.healthCare.service.HealthCareNewService;
|
|
|
import com.yihu.jw.healthCare.service.HealthCareService;
|
|
|
import com.yihu.jw.hospital.prescription.dao.OutpatientDao;
|
|
|
import com.yihu.jw.hospital.prescription.dao.PrescriptionDao;
|
|
|
import com.yihu.jw.hospital.prescription.dao.PrescriptionInfoDao;
|
|
|
import com.yihu.jw.hospital.prescription.dao.WlyyInspectionDao;
|
|
|
import com.yihu.jw.hospital.ykyy.service.YkyyService;
|
|
|
import com.yihu.jw.patient.dao.BasePatientDao;
|
|
|
import com.yihu.jw.patient.dao.BasePatientDischargeRecordDao;
|
|
|
import com.yihu.jw.patient.dao.BasePatientGroupDao;
|
|
|
import com.yihu.jw.patient.dao.BasePatientGroupDictDao;
|
|
|
import com.yihu.jw.patient.util.ConstantUtils;
|
|
|
import com.yihu.jw.restmodel.hospital.prescription.WlyyInspectionVO;
|
|
|
import com.yihu.jw.restmodel.hospital.prescription.WlyyPrescriptionInfoVO;
|
|
|
import com.yihu.jw.restmodel.hospital.prescription.WlyyPrescriptionVO;
|
|
|
import com.yihu.jw.restmodel.web.MixEnvelop;
|
|
|
import com.yihu.jw.restmodel.web.PageEnvelop;
|
|
|
import com.yihu.jw.rm.iot.IotRequestMapping;
|
|
|
import com.yihu.jw.sms.dao.HospitalSysDictDao;
|
|
|
import com.yihu.jw.util.common.IdCardUtil;
|
|
|
import com.yihu.jw.utils.hibernate.HibenateUtils;
|
|
|
import com.yihu.mysql.query.BaseJpaService;
|
|
|
import com.yihu.utils.security.MD5;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.checkerframework.checker.units.qual.A;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.data.repository.CrudRepository;
|
|
|
import org.springframework.jdbc.core.BeanPropertyRowMapper;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
import java.util.*;
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
* 患者出院记录service
|
|
|
*
|
|
|
*/
|
|
|
@Service
|
|
|
public class BasePatientDischargeRecordService<T, R extends CrudRepository> extends BaseJpaService<BasePatientDischargeRecord, BasePatientDischargeRecordDao> {
|
|
|
private static final Logger logger = LoggerFactory.getLogger(BasePatientDischargeRecordService.class);
|
|
|
|
|
|
@Autowired
|
|
|
private BasePatientDischargeRecordDao patientDischargeRecordDao;
|
|
|
|
|
|
public BasePatientDischargeRecord pushPatientInfos(String idcard,String content){
|
|
|
BasePatientDischargeRecord patientDischargeRecord = new BasePatientDischargeRecord();
|
|
|
patientDischargeRecord.setIdcard(idcard);
|
|
|
patientDischargeRecord.setContent(content);
|
|
|
patientDischargeRecord.setCreateTime(new Date());
|
|
|
return patientDischargeRecordDao.save(patientDischargeRecord);
|
|
|
}
|
|
|
}
|