文档中心 > API类目 > 体检机构API

alibaba.alihealth.examination.todoor.serviceinfo.sync (上门检测服务信息同步)

isv同步上门检测服务信息给健康

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
uniq_reserve_code String 必须 rew4 服务商预约凭证
medical_practitioner_info MedicalPractitionerInfo 必须 从业者信息
  • └ gender
  • String
  • 可选
  • FEMALE
  • 性别(MALE-男;FEMALE-女;)
  • └ phone
  • String
  • 可选
  • 186xxxx7777
  • 从业者手机号
  • └ outer_practitioner_id
  • String
  • 必须
  • 123
  • 外部系统从业者id
  • └ name
  • String
  • 可选
  • 张护士
  • 从业者姓名
  • └ certifications_url
  • String
  • 可选
  • http://www.xxxxx
  • 从业者资质证书图片链接
  • └ practice_agency_name
  • String
  • 可选
  • 杭州xxx医院
  • 执业机构名称
  • └ practice_agency_province
  • String
  • 可选
  • 杭州
  • 执业机构所在省份
  • └ practice_agency_province_code
  • String
  • 可选
  • 330100
  • 执业机构所在省份Code
event_occur_time String 可选 2020-11-11 11:11:11 事件发生时间
event String 必须 PRACTITONER_HOME 事件(ASSIGNED_PRACTITONER:已分配医护人员、PRACTITONER_GO_OUT:医护人员已出发、PRACTITONER_HOME:医护人员已到家、PRACTITONER_CHECKED:医护人员检查完成)、CHANGE_PRACTITONER(变更医护人员)
reserve_number String 必须 1234r 健康预约凭证

响应参数

名称 类型 示例值 描述
result ServiceResult alinkappserver系统返回的通用结果类
  • └ eagle_eye_trace_id
  • String
  • 追踪id
  • data
  • Data
  • {"msg":"xxx","responseCode":"xxx"}
  • 返回数据对象
  • └ response_code
  • String
  • 结果
  • └ msg
  • String
  • 结果
  • 结果
  • └ success
  • Boolean
  • false
  • success
  • └ err_code
  • String
  • errCode
  • └ err_message
  • String
  • errMessage

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthExaminationTodoorServiceinfoSyncRequest req = new AlibabaAlihealthExaminationTodoorServiceinfoSyncRequest();
req.setUniqReserveCode("rew4");
AlibabaAlihealthExaminationTodoorServiceinfoSyncRequest.MedicalPractitionerInfo obj1 = new AlibabaAlihealthExaminationTodoorServiceinfoSyncRequest.MedicalPractitionerInfo();
obj1.setGender("FEMALE");
obj1.setPhone("186xxxx7777");
obj1.setOuterPractitionerId("123");
obj1.setName("张护士");
obj1.setCertificationsUrl("http://www.xxxxx");
obj1.setPracticeAgencyName("杭州xxx医院");
obj1.setPracticeAgencyProvince("杭州");
obj1.setPracticeAgencyProvinceCode("330100");
req.setMedicalPractitionerInfo(obj1);
req.setEventOccurTime("2020-11-11 11:11:11");
req.setEvent("PRACTITONER_HOME");
req.setReserveNumber("1234r");
AlibabaAlihealthExaminationTodoorServiceinfoSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_examination_todoor_serviceinfo_sync_response>
    <result>
        <eagle_eye_trace_id></eagle_eye_trace_id>
        <data>
            <response_code></response_code>
            <msg>结果</msg>
        </data>
        <success>false</success>
        <err_code></err_code>
        <err_message></err_message>
    </result>
</alibaba_alihealth_examination_todoor_serviceinfo_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

返回
顶部