文档中心 > API类目 > 阿里健康随访

alibaba.alihealth.followup.fetch (随访IM会话轮询)

随访IM发送轮询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
request1 ChickenIMDialogRequest 必须 服务入参
  • └ session_id
  • String
  • 必须
  • 77067d2fc70818d8e3be94143d9272ba
  • 会话ID
  • └ bterm_user_id
  • String
  • 可选
  • 2034131106552037
  • 医生ID
  • └ cterm_user_id
  • String
  • 可选
  • 5394977607673890
  • 就诊人ID
  • └ fetch_type
  • String
  • 可选
  • 1
  • 获取类型
  • └ last_time_stamp
  • String
  • 可选
  • 0
  • 上次时间戳
  • └ page_size
  • Number
  • 可选
  • 10
  • 获取数量
  • └ user_id
  • String
  • 可选
  • 2034131106552037
  • 医生自己的医生id
  • └ rs_type
  • String
  • 可选
  • 2
  • 1患者发2医生发
auth_token String 可选 9eae09db243df99bd67af033decfd257 token用于安全验证

响应参数

名称 类型 示例值 描述
result1 Result 接口返回model
  • └ success
  • Boolean
  • false
  • 是否成功
  • └ msg_code
  • String
  • 1
  • msgCode
  • └ msg_info
  • String
  • 1
  • msgInfo
  • dialog_list
  • Model []
  • 列表
  • 会话列表
  • └ content
  • String
  • {\"text\":\"abc\"}
  • 会话内容
  • └ content_type
  • String
  • 1
  • 内容格式
  • └ id
  • String
  • 1800000742465051
  • 会话ID
  • └ time_stamp
  • String
  • 1554692283655
  • 时间戳
  • └ rs_type
  • String
  • 1
  • 1患者发的2医生发的
  • dialog_content_v_o
  • DialogContentVo
  • 内容
  • 内容
  • └ text
  • String
  • abc
  • 内容文本
  • └ title
  • String
  • abc
  • 内容标题
  • └ radio
  • String
  • http://aaaaaaa.b
  • 音频url
  • └ pic
  • String
  • http://aaaaa.com
  • 图片url
  • └ thumbnail
  • String
  • http://aaaaa.com
  • 缩略图url
  • └ radio_time
  • String
  • 11
  • 音频长度
  • follow_up_medicine
  • FollowUpMedicineVo
  • 药品内容
  • 用药建议内容
  • └ rx_no
  • String
  • abd324f4aaadd98
  • 处方编号
  • └ create_date
  • String
  • 2019-09-09
  • 发送日期
  • └ rp
  • String
  • 三井双黄连
  • 药品描述
  • drug_list
  • Medicine []
  • 药品列表
  • 药品列表
  • └ drug_id
  • String
  • 1111
  • 药品id
  • └ drug_name
  • String
  • 感冒灵
  • 药品名称
  • └ prod_name
  • String
  • 复方氨酚颗粒
  • 商品名
  • └ spec
  • String
  • 10片/盒
  • 规格
  • └ price
  • String
  • 12.00
  • 价格
  • └ seq
  • String
  • 1
  • 序号
  • └ dose
  • String
  • 1
  • 用量
  • └ dose_unit
  • String
  • 用量单位
  • └ dose_usage
  • String
  • 口服
  • 用法
  • └ frequency
  • String
  • 1片/次
  • 频率
  • └ day
  • String
  • 3
  • 用药几天
  • └ total
  • String
  • 12
  • 总量
  • └ total_unit
  • String
  • 总量单位
  • └ note
  • String
  • 口服,饭后
  • 备注
  • follow_up_report
  • FollowUpReportVo
  • 1
  • 检查报告
  • └ report_type
  • String
  • 001
  • 检查类型
  • └ title
  • String
  • 验血报告
  • 报告名称
  • └ pic
  • String
  • http://aaaa
  • 报告图片地址
  • └ thumbnail
  • String
  • http://aaaaa
  • 图片缩略图
  • └ report_date_str
  • String
  • 2019-04-10
  • 检查日期
  • └ note
  • String
  • 备注
  • 备注
  • └ report_name
  • String
  • 血常规
  • 报告类型名称
  • extend_maps
  • Extendmaps
  • 扩展属性
  • 扩展属性
  • └ speaker_name
  • String
  • 王医生
  • 群聊实际发送人
  • └ speaker_image
  • String
  • http://aaaaa.com
  • 群聊实际发送人头像
  • └ speaker_title
  • String
  • 主任
  • 群聊实际发送人头衔
  • └ speaker_role
  • String
  • 组长
  • 群聊实际发送人角色
  • └ speaker_is_me
  • String
  • Y
  • 群聊实际发送人是否是自己
  • └ speaker_id
  • String
  • 2034131106552037
  • 群聊发送人的id
  • └ time
  • String
  • 13:30
  • 发送时间

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthFollowupFetchRequest req = new AlibabaAlihealthFollowupFetchRequest();
AlibabaAlihealthFollowupFetchRequest.ChickenIMDialogRequest obj1 = new AlibabaAlihealthFollowupFetchRequest.ChickenIMDialogRequest();
obj1.setSessionId("77067d2fc70818d8e3be94143d9272ba");
obj1.setBtermUserId("2034131106552037");
obj1.setCtermUserId("5394977607673890");
obj1.setFetchType("1");
obj1.setLastTimeStamp("0");
obj1.setPageSize(10L);
obj1.setUserId("2034131106552037");
obj1.setRsType("2");
req.setRequest1(obj1);
req.setAuthToken("9eae09db243df99bd67af033decfd257");
AlibabaAlihealthFollowupFetchResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_followup_fetch_response>
    <result1>
        <success>false</success>
        <msg_code>1</msg_code>
        <msg_info>1</msg_info>
        <dialog_list>
            <model>
                <content>{\&quot;text\&quot;:\&quot;abc\&quot;}</content>
                <content_type>1</content_type>
                <id>1800000742465051</id>
                <time_stamp>1554692283655</time_stamp>
                <rs_type>1</rs_type>
                <dialog_content_v_o>
                    <text>abc</text>
                    <title>abc</title>
                    <radio>http://aaaaaaa.b</radio>
                    <pic>http://aaaaa.com</pic>
                    <thumbnail>http://aaaaa.com</thumbnail>
                    <radio_time>11</radio_time>
                    <follow_up_medicine>
                        <rx_no>abd324f4aaadd98</rx_no>
                        <create_date>2019-09-09</create_date>
                        <rp>三井双黄连</rp>
                        <drug_list>
                            <medicine>
                                <drug_id>1111</drug_id>
                                <drug_name>感冒灵</drug_name>
                                <prod_name>复方氨酚颗粒</prod_name>
                                <spec>10片/盒</spec>
                                <price>12.00</price>
                                <seq>1</seq>
                                <dose>1</dose>
                                <dose_unit>片</dose_unit>
                                <dose_usage>口服</dose_usage>
                                <frequency>1片/次</frequency>
                                <day>3</day>
                                <total>12</total>
                                <total_unit>盒</total_unit>
                                <note>口服,饭后</note>
                            </medicine>
                        </drug_list>
                    </follow_up_medicine>
                    <follow_up_report>
                        <report_type>001</report_type>
                        <title>验血报告</title>
                        <pic>http://aaaa</pic>
                        <thumbnail>http://aaaaa</thumbnail>
                        <report_date_str>2019-04-10</report_date_str>
                        <note>备注</note>
                        <report_name>血常规</report_name>
                    </follow_up_report>
                </dialog_content_v_o>
                <extend_maps>
                    <speaker_name>王医生</speaker_name>
                    <speaker_image>http://aaaaa.com</speaker_image>
                    <speaker_title>主任</speaker_title>
                    <speaker_role>组长</speaker_role>
                    <speaker_is_me>Y</speaker_is_me>
                    <speaker_id>2034131106552037</speaker_id>
                </extend_maps>
                <time>13:30</time>
            </model>
        </dialog_list>
    </result1>
</alibaba_alihealth_followup_fetch_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部