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

alibaba.alihealth.followup.record.state.get (查询随访任务状态)

查询随访任务状态

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
auth_token String 必须 58ce78f5-bda1-4c49-94ce-5e5680adffa2 权限票根
request1 FollowPatientRecordRequest 必须 入参
  • └ corp_id
  • Number
  • 必须
  • 5355289320225080
  • 集团id
  • └ patient_id
  • Number
  • 必须
  • 2332845085531901
  • 患者id
  • └ dept_id
  • Number
  • 必须
  • 8456545635218215
  • 治疗组id
  • └ doctor_id
  • Number
  • 可选
  • 334662351752251
  • 医生id

响应参数

名称 类型 示例值 描述
result MedicalUicResult 返回结果
  • └ success
  • Boolean
  • true
  • 是否成功
  • model
  • FollowPatientRecordDo
  • 返回数据
  • └ message
  • String
  • 已被随访
  • 随访任务提示
  • └ state
  • String
  • 随访任务状态
  • └ record_id
  • String
  • 随访任务id
  • └ msg_info
  • String
  • 服务失败
  • errMessage
  • └ msg_code
  • String
  • SERVICE_ERROR
  • errCode

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthFollowupRecordStateGetRequest req = new AlibabaAlihealthFollowupRecordStateGetRequest();
req.setAuthToken("58ce78f5-bda1-4c49-94ce-5e5680adffa2");
AlibabaAlihealthFollowupRecordStateGetRequest.FollowPatientRecordRequest obj1 = new AlibabaAlihealthFollowupRecordStateGetRequest.FollowPatientRecordRequest();
obj1.setCorpId(5355289320225080L);
obj1.setPatientId(2332845085531901L);
obj1.setDeptId(8456545635218215L);
obj1.setDoctorId(334662351752251L);
req.setRequest1(obj1);
AlibabaAlihealthFollowupRecordStateGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_followup_record_state_get_response>
    <result>
        <success>true</success>
        <model>
            <message>已被随访</message>
            <state></state>
            <record_id></record_id>
        </model>
        <msg_info>服务失败</msg_info>
        <msg_code>SERVICE_ERROR</msg_code>
    </result>
</alibaba_alihealth_followup_record_state_get_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

返回
顶部