|  | @ -19,6 +19,7 @@ import org.springframework.web.bind.annotation.*;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import java.util.ArrayList;
 | 
	
		
			
				|  |  | import java.util.List;
 | 
	
		
			
				|  |  | import java.util.UUID;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | /**
 | 
	
		
			
				|  |  |  * @author huangwenjie
 | 
	
	
		
			
				|  | @ -160,7 +161,44 @@ public class PatientConsultEndpoint extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  | 	                                               @ApiParam(name = "dept", value = "部门code")
 | 
	
		
			
				|  |  | 	                                               @RequestParam(value = "dept", required = false)String dept,
 | 
	
		
			
				|  |  | 	                                               @ApiParam(name = "diseaseKey", value = "疾病名称关键字")
 | 
	
		
			
				|  |  | 	                                               @RequestParam(value = "diseaseKey", required = false)String diseaseKey) {
 | 
	
		
			
				|  |  | 		return success(prescriptionService.findDoctorByHospitalAndDiseaseAndDept(orgCode,dept,diseaseKey));
 | 
	
		
			
				|  |  | 	                                               @RequestParam(value = "diseaseKey", required = false)String diseaseKey,
 | 
	
		
			
				|  |  |                                                    @ApiParam(name = "doctorNameKey", value = "医生名称关键字")
 | 
	
		
			
				|  |  | 	                                               @RequestParam(value = "doctorNameKey", required = false)String doctorNameKey) throws Exception{
 | 
	
		
			
				|  |  | 		return success(prescriptionService.findDoctorByHospitalAndDiseaseAndDept(orgCode,dept,diseaseKey,doctorNameKey));
 | 
	
		
			
				|  |  | 	}
 | 
	
		
			
				|  |  | 	
 | 
	
		
			
				|  |  | 	@GetMapping(value = BaseHospitalRequestMapping.Prescription.findHotDeptAndDiseaseDict)
 | 
	
		
			
				|  |  | 	@ApiOperation(value = "获取常见疾病和热门部门字典", notes = "获取常见疾病和热门部门字典")
 | 
	
		
			
				|  |  | 	public ListEnvelop findHotDeptAndDiseaseDict(@ApiParam(name = "dictName", value = "dictName")
 | 
	
		
			
				|  |  | 	                                             @RequestParam(value = "dictName", required = true,defaultValue = "ONLINE_HOSPITAL_DEPT_350211A1002")String dictName)throws Exception{
 | 
	
		
			
				|  |  | 		return success(prescriptionService.findHotDeptAndDiseaseDict(dictName));
 | 
	
		
			
				|  |  | 	}
 | 
	
		
			
				|  |  | 	@PostMapping(value = BaseHospitalRequestMapping.PatientIM.add)
 | 
	
		
			
				|  |  | 	@ApiOperation(value = "居民添加咨询接口", notes = "居民添加咨询接口")
 | 
	
		
			
				|  |  | 	public Envelop add(
 | 
	
		
			
				|  |  | 			@ApiParam(name = "patient", value = "居民CODE")
 | 
	
		
			
				|  |  | 			@RequestParam(value = "patient",required = false) String patient,
 | 
	
		
			
				|  |  | 			@ApiParam(name = "doctor", value = "医生CODE")
 | 
	
		
			
				|  |  | 			@RequestParam(value = "doctor",required = true) String doctor,
 | 
	
		
			
				|  |  | 			@ApiParam(name = "when", value = "发病时间")
 | 
	
		
			
				|  |  | 			@RequestParam(value = "when",required = true) String when,
 | 
	
		
			
				|  |  | 			@ApiParam(name = "symptoms", value = "主述")
 | 
	
		
			
				|  |  | 			@RequestParam(value = "symptoms",required = false) String symptoms,
 | 
	
		
			
				|  |  | 			@ApiParam(name = "images", value = "图片")
 | 
	
		
			
				|  |  | 			@RequestParam(value = "images",required = false) String images,
 | 
	
		
			
				|  |  | 			@ApiParam(name = "voice", value = "语音")
 | 
	
		
			
				|  |  | 			@RequestParam(value = "voice",required = false) String voice)throws Exception{
 | 
	
		
			
				|  |  | 		
 | 
	
		
			
				|  |  | 		System.out.println("symptoms="+symptoms);
 | 
	
		
			
				|  |  | 		
 | 
	
		
			
				|  |  | //		if (type == null) {
 | 
	
		
			
				|  |  | //			type = 1;
 | 
	
		
			
				|  |  | //		}
 | 
	
		
			
				|  |  | //		if (type != 1 && type != 2) {
 | 
	
		
			
				|  |  | //			return error(-1, "无效请求!");
 | 
	
		
			
				|  |  | //		}
 | 
	
		
			
				|  |  | 		
 | 
	
		
			
				|  |  | 			
 | 
	
		
			
				|  |  | 		return success("进入成功", UUID.randomUUID().toString().replaceAll("-",""));
 | 
	
		
			
				|  |  | 	}
 | 
	
		
			
				|  |  | }
 |