注意:以下文档只适用于TOP接口,请谨慎使用!

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

alibaba.alihealth.medical.doctor.sync (阿里健康预约挂号医生同步接口)

阿里健康预约挂号医生同步接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
save_request CommonRequest4Top 可选 接口入参
  • └ biz_content
  • String
  • 可选
  • { "info":[ { "hosNo":"125336754304601000", "deptNo":"125617814957521000", "doctorNo":"125619251378284000", "doctorName":"张三", "status":"ONLINE" } ] }
  • hosNo:渠道医院ID,deptNo:渠道科室ID,doctorNo:渠道医生ID,doctorName:医生姓名,status:状态

响应参数

名称 类型 示例值 描述
result ServiceResult alinkappserver系统返回的通用结果类
  • └ err_message
  • String
  • 系统服务异常,请稍后再试
  • errMessage
  • └ data
  • Number
  • 0
  • 返回数据对象
  • └ err_code
  • String
  • FAIL_BIZ_SERVICE_EXCEPTION
  • errCode
  • └ success
  • Boolean
  • false
  • success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthMedicalDoctorSyncRequest req = new AlibabaAlihealthMedicalDoctorSyncRequest();
AlibabaAlihealthMedicalDoctorSyncRequest.CommonRequest4Top obj1 = new AlibabaAlihealthMedicalDoctorSyncRequest.CommonRequest4Top();
obj1.setBizContent("{     \"info\":[         {             \"hosNo\":\"125336754304601000\",             \"deptNo\":\"125617814957521000\",             \"doctorNo\":\"125619251378284000\",             \"doctorName\":\"张三\",             \"status\":\"ONLINE\"         }     ] }");
req.setSaveRequest(obj1);
AlibabaAlihealthMedicalDoctorSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_medical_doctor_sync_response>
    <result>
        <err_message>系统服务异常,请稍后再试</err_message>
        <data>0</data>
        <err_code>FAIL_BIZ_SERVICE_EXCEPTION</err_code>
        <success>false</success>
    </result>
</alibaba_alihealth_medical_doctor_sync_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

返回
顶部