|
@ -2807,7 +2807,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
* @param diagnosisJson
|
|
|
* @return
|
|
|
*/
|
|
|
public Map<String, Object> makeDiagnosis(String outPatientId,String prescriptionId, String advice, String type, String infoJsons, String diagnosisJson, String inspectionJson, String emrJson,String hisId) throws Exception {
|
|
|
public Map<String, Object> makeDiagnosis(String outPatientId,String prescriptionId, String advice, String type, String infoJsons, String diagnosisJson, String inspectionJson, String emrJson,String hisId,String diseaseCode,String diseaseName,String isDisease) throws Exception {
|
|
|
|
|
|
Map<String, Object> result = new HashedMap();
|
|
|
|
|
@ -2815,6 +2815,11 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
WlyyOutpatientDO outpatientDO = outpatientDao.findById(outPatientId).orElse(null);
|
|
|
//设置医嘱
|
|
|
outpatientDO.setAdvice(advice);
|
|
|
//设置特殊病种
|
|
|
outpatientDO.setDiseaseCode(diseaseCode);
|
|
|
outpatientDO.setDiseaseName(diseaseName);
|
|
|
outpatientDO.setIsDisease(isDisease);
|
|
|
|
|
|
|
|
|
//========================处方操作=============================================================
|
|
|
//创建处方记录
|
|
@ -2824,6 +2829,9 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
if(StringUtils.isNotBlank(prescriptionId)){
|
|
|
wlyyPrescriptionDO1 = prescriptionDao.findListById(prescriptionId);
|
|
|
prescriptionDO =wlyyPrescriptionDO1.get(0);
|
|
|
prescriptionDO.setIsDisease(isDisease);
|
|
|
prescriptionDO.setDiseaseCode(diseaseCode);
|
|
|
prescriptionDO.setDiseaseName(diseaseName);
|
|
|
}else{
|
|
|
if (StringUtils.isNotBlank(hisId)){
|
|
|
prescriptionDO.setHisId(hisId);
|
|
@ -2842,6 +2850,9 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
prescriptionDO.setDoctor(outpatientDO.getDoctor());
|
|
|
prescriptionDO.setDoctorName(outpatientDO.getDoctorName());
|
|
|
prescriptionDO.setPayStatus(0);
|
|
|
prescriptionDO.setIsDisease(isDisease);
|
|
|
prescriptionDO.setDiseaseCode(diseaseCode);
|
|
|
prescriptionDO.setDiseaseName(diseaseName);
|
|
|
if (wechatId.equalsIgnoreCase("xm_ykyy_wx")) {
|
|
|
prescriptionDO.setAdmNo(outpatientDO.getAdmNo());
|
|
|
}
|
|
@ -6369,6 +6380,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
"room.patient_name AS \"name\"," +
|
|
|
"outpatient.patient_name AS \"outPatientName\"," +
|
|
|
"outpatient.patient AS \"outPatient\"," +
|
|
|
"outpatient.card_no AS \"cardNo\"," +
|
|
|
"patient.sex AS \"sex\"," +
|
|
|
"patient.idcard AS \"idcard\"," +
|
|
|
"patient.photo AS \"photo\"," +
|