|
@ -1223,10 +1223,17 @@ public class DoctorConsultController extends WeixinBaseController {
|
|
|
@ApiParam(name = "sessionId", value = "会话id", defaultValue = "")
|
|
|
@RequestParam(value = "sessionId", required = true) String sessionId,
|
|
|
@ApiParam(name = "businessType", value = "businessType", defaultValue = "1")
|
|
|
@RequestParam(value = "businessType", required = true) String businessType){
|
|
|
@RequestParam(value = "businessType", required = true) String businessType,
|
|
|
@ApiParam(name = "specialdoctor", value = "专科医生CODE", defaultValue = "")
|
|
|
@RequestParam(value = "specialdoctor", required = true) String specialdoctor,
|
|
|
@ApiParam(name = "familydoctor", value = "家庭医生CODE", defaultValue = "")
|
|
|
@RequestParam(value = "familydoctor", required = true) String familydoctor){
|
|
|
try {
|
|
|
String doctorCode = getUID();
|
|
|
Doctor doctor = doctorService.findDoctorByCode(doctorCode);
|
|
|
//判断居民家庭医生专科是否有共管关系
|
|
|
int count= consultTeamService.getSpecialDoctorFamilyDoctorPatientCount(patient,specialdoctor,familydoctor);
|
|
|
|
|
|
Patient p = patientService.findByCode(patient);
|
|
|
com.alibaba.fastjson.JSONObject content = new com.alibaba.fastjson.JSONObject();
|
|
|
content.put("name",p.getName());
|
|
@ -1234,6 +1241,7 @@ public class DoctorConsultController extends WeixinBaseController {
|
|
|
content.put("photo",p.getPhoto());
|
|
|
content.put("age",IdCardUtil.getAgeForIdcard(p.getIdcard()));
|
|
|
content.put("sex",IdCardUtil.getSexForIdcard(p.getIdcard()));
|
|
|
content.put("count",count);//大于0的就有共管关系
|
|
|
SignFamily signFamily = signFamilyDao.findByPatient(patient);
|
|
|
if(signFamily!=null){
|
|
|
content.put("hospitalName",signFamily.getHospitalName());
|