|
@ -2,8 +2,10 @@ package com.yihu.jw.hospital.endpoint.consult;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yihu.jw.entity.base.patient.BasePatientDO;
|
|
|
import com.yihu.jw.hospital.prescription.service.PrescriptionService;
|
|
|
import com.yihu.jw.im.service.ImService;
|
|
|
import com.yihu.jw.patient.service.BasePatientService;
|
|
|
import com.yihu.jw.restmodel.im.ConsultVO;
|
|
|
import com.yihu.jw.restmodel.web.Envelop;
|
|
|
import com.yihu.jw.restmodel.web.ListEnvelop;
|
|
@ -35,6 +37,9 @@ public class PatientConsultEndpoint extends EnvelopRestEndpoint {
|
|
|
@Autowired
|
|
|
private PrescriptionService prescriptionService;
|
|
|
|
|
|
@Autowired
|
|
|
private BasePatientService basePatientService;
|
|
|
|
|
|
@GetMapping(value = BaseHospitalRequestMapping.PatientIM.records)
|
|
|
@ApiOperation(value = "患者咨询记录查询")
|
|
|
public ListEnvelop records(
|
|
@ -70,6 +75,12 @@ public class PatientConsultEndpoint extends EnvelopRestEndpoint {
|
|
|
json.put("czrq", DateUtil.dateToStrLong(consult.getCzrq()));
|
|
|
//是否评价
|
|
|
json.put("evaluate", consult.getEvaluate());
|
|
|
//医生头像
|
|
|
json.put("doctorPhoto", consult.getDoctorphoto());
|
|
|
//医生职称
|
|
|
json.put("jobTitleName", consult.getJobTitleName());
|
|
|
//医生名称
|
|
|
json.put("doctorName", consult.getDoctorName());
|
|
|
|
|
|
array.add(json);
|
|
|
}
|
|
@ -201,4 +212,13 @@ public class PatientConsultEndpoint extends EnvelopRestEndpoint {
|
|
|
|
|
|
return success("进入成功", UUID.randomUUID().toString().replaceAll("-",""));
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = BaseHospitalRequestMapping.PatientIM.patientInfo)
|
|
|
@ApiOperation(value = "根据居民ID获取居民详情信息", notes = "根据居民ID获取居民详情信息")
|
|
|
public Envelop patientInfo(
|
|
|
@ApiParam(name = "patient", value = "居民CODE")
|
|
|
@RequestParam(value = "patient",required = false) String patient) throws Exception {
|
|
|
BasePatientDO result = basePatientService.findByIdAndDel(patient);
|
|
|
return success(result);
|
|
|
}
|
|
|
}
|