|
@ -15,6 +15,7 @@ import com.yihu.wlyy.service.app.consult.ConsultTeamService;
|
|
|
import com.yihu.wlyy.service.common.account.PatientService;
|
|
|
import com.yihu.wlyy.util.DateUtil;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.json.JSONArray;
|
|
|
import org.json.JSONObject;
|
|
@ -31,7 +32,7 @@ import com.yihu.wlyy.service.common.account.DoctorService;
|
|
|
import com.yihu.wlyy.web.BaseController;
|
|
|
|
|
|
@Controller
|
|
|
@RequestMapping(value = "/doctor/talkgroup", produces = MediaType.APPLICATION_JSON_UTF8_VALUE,method = {RequestMethod.GET,RequestMethod.POST})
|
|
|
@RequestMapping(value = "/doctor/talkgroup", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
|
|
|
@Api(description = "医生端-讨论组")
|
|
|
public class DoctorDiscussionGroupController extends BaseController {
|
|
|
// 医生服务类
|
|
@ -59,7 +60,8 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param patientInclude 病人是否加入讨论组 不传默认不加入患者
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/create", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ApiOperation("医生创建讨论组")
|
|
|
@RequestMapping(value = "/create", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ObserverRequired
|
|
|
public String createTalkGroup(
|
|
@ -219,6 +221,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param patientInclude 患者是否加入
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation("创建讨论组")
|
|
|
@RequestMapping(value = "/create/members", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
@ObserverRequired
|
|
@ -376,6 +379,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param cosnult
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation("获取查询对应的求助")
|
|
|
@RequestMapping(value = "/group/consult", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getConsultTalkGroup(@RequestParam(required = true) String cosnult) {
|
|
@ -395,6 +399,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param cosnult
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation("获取查询对应的求助")
|
|
|
@RequestMapping(value = "/group/patient_consult", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getPatientConsultTalkGroup(@RequestParam(required = true) String cosnult) {
|
|
@ -412,6 +417,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation("获取常用医生")
|
|
|
@RequestMapping(value = "/common_doctors", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getCommonDoctors() {
|
|
@ -434,7 +440,8 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param doctorType 医生类型
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "addmember", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ApiOperation("添加讨论组成员")
|
|
|
@RequestMapping(value = "addmember", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ObserverRequired
|
|
|
public String addTalkMember(
|
|
@ -499,6 +506,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param members 讨论组成员[{"doctor":"xxx","doctorName":"xxx","doctorType":1}]
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation("添加成员")
|
|
|
@RequestMapping(value = "/addmembers", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
@ObserverRequired
|
|
@ -576,6 +584,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param memberCode 讨论组成员标识
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation("移除讨论组成员")
|
|
|
@RequestMapping(value = "removemember", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
@ObserverRequired
|
|
@ -597,6 +606,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param members
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation("移除成员")
|
|
|
@RequestMapping(value = "/removemembers", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
@ObserverRequired
|
|
@ -618,6 +628,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation("获取医生讨论组")
|
|
|
@RequestMapping(value = "mytalkgroups", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getMyTalkGroup(
|
|
@ -664,6 +675,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param groups
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation("查询讨论组签约量")
|
|
|
@RequestMapping(value = "/group_sign", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getMyTalkGroupSign(String groups) {
|
|
@ -682,6 +694,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param groupCode
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation("根据讨论组查找咨询code")
|
|
|
@RequestMapping(value = "/getConsultByGroupCode", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getConsultByGroupCode(@RequestParam(required = false) String groupCode, @RequestParam(required = false) String consultCode) {
|
|
@ -749,6 +762,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation("获取讨论组成员列表")
|
|
|
@RequestMapping(value = "groupmembers", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getTalkGroupMembers(@RequestParam(required = true) String groupCode) {
|
|
@ -792,6 +806,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param patient
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation("获取医生针对某个患者讨论组历史记录")
|
|
|
@RequestMapping(value = "histories", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getTalkGroupHistory(@RequestParam(required = true) String patient) {
|
|
@ -809,6 +824,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param member
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation("查找与当前医生相关成员的讨论组")
|
|
|
@RequestMapping(value = "related", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getTalkGroupRelated(@RequestParam(required = true) String member, @RequestParam(required = false) String groupType) {
|
|
@ -845,6 +861,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation("查询医生讨论组数量")
|
|
|
@RequestMapping(value = "count", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getMyTalkGroupCount() {
|