import { REQUEST_CONFIG } from '@/config'; import { request, handle } from '@kasite/uni-app-base'; /** * 首页 热点资讯 * @param ChannelId String 渠道ID * @param eqTitle String 资讯标题 */ export const articleTypeListUrl = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/article/type/List/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 首页 置顶文章 * @param ChannelId String 渠道ID * @param PSize String 分页大小 * @param RootTypeId String 资讯类型ID */ export const topArticleListUrl = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/article/mgr/TopArticleInfoList/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 主动式服务-获取患者最新一条主动式服务消息 * @param OrgId String 机构ID * @param MemberId String 就诊人ID * @param cardEncryptionStore String 就诊卡加密存储 * @param memberEncryptionStore String 就诊人加密存储 * @param ChannelId String 渠道ID */ export const getMemberLastMsg = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/active/form/GetMemberLastMsg/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 咨询查询历史医生 * @param HosId String 机构ID * @param HasSch String 是否查询his,0:本地,1:his * @param QueryLocal String * @param MemberIds String 就诊人ID */ export const queryHistoryBaseDoctor = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/QueryHistoryBaseDoctor/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 搜索医生/科室 * @param HosId String 机构ID * @param SearchLike String 搜索关键词 * @param QueryLocal String 1 * @param UseBaseInfo String 是否使用基础信息 * @param ExcludeOneLv String 是否过滤一级科室 */ export const searchClinicDeptAndDoctor = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/yy/precise/SearchClinicDeptAndDoctor/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 搜索科室 */ export const queryDeptList_V2 = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/basic/DeptApi/QueryDeptList_V2/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 咨询搜索科室 医生 */ export const queryDoctorList_V2 = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/basic/DoctorApi/QueryDoctorList_V2/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 获取信用授权数据 * @param MemberId String 就诊人ID * @param AccountSn String */ export const queryMemberHeaderInfo = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryMemberHeaderInfo/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 设置是否可退费 * @param MemberId String 就诊人ID * @param AutoRefundMark String 自动退费标记 0:否 1:是 */ export const saveAutoRefundMark = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/SaveAutoRefundMark/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 授权亲友数 列表 */ export const queryAuthUserMemberList = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryAuthUserMemberList/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; // ======================================= 互联网医院 ========================================== /** * 查询推荐科室 * @param HosId String 机构ID * @param IsRcmd String 是否推荐 1:是 */ export const queryConsultDeptList = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultDoc/QueryConsultDeptList/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询推荐医生 * @param HosId String 机构ID * @param IsRcmd String 是否推荐 1:是 */ export const queryRcmdConsultDoctorList = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultDoc/QueryRcmdConsultDoctorList/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询关注医生 * @param resourceType String 资源类型 1:医生 */ export const queryUserCollect = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/user/collect/QueryUserCollect/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询代办消息 * @param OpenId String 用户OpenId * @param BusinessId String 业务ID * @param BacklogType String 代办类型 1咨询申请2咨询消息3随访消息4医患申请5日程计划 * @param ReadState String 阅读状态 1未读 2已读 * @param UserType String 用户类型 1.就诊人,2.医生 * @param IsGroup String 是否分组 1:是 */ export const queryBackLogMsg = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/msg/BackLog/QueryBackLogMsg/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 获取专家介绍列表 (根据doctorUid查询对应医生) * @param DoctorUid String 医生UID,多个用逗号分隔 */ export const queryBDoctorList = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/basic/DoctorApi/QueryBDoctorList/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 获取咨询记录 * @param ConsultStartDate String 咨询开始日期 * @param ConsultEndDate String 咨询结束日期 * @param ConsultStatus String 咨询状态 16:已预约视频问诊 */ export const queryConsultWaterList = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/cons/Consult/QueryConsultWaterList/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 获取文章列表 * @param TypeClass Number 类型 0 新闻动态;1 通知公告;2 健康宣教;3 就诊指南;4 住院需知 62 首页banner * @param Status Number 状态 1已发布 * @param Type Number 类型 1链接 */ export const queryArticleList = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/basic/BasicApi/QueryArticleList/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询咨询医生组 * @param IsMemberCollect Number 是否会员关注 1:是 */ export const queryConsultDoctorGroup = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultDoctorGroup/QueryConsultDoctorGroup/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 数据埋点(互联网) * @param Type Number 类型 26:患者端 27:医生端 28:患者端添加就诊人 */ export const saveConsultVisit = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultStatsNew/SaveConsultVisit/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; // ======================================= 互联网医院 ==========================================