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

alibaba.alihealth.outflow.prescription.hospital.verify (处方同步至医院返回校验结果)

处方同步至医院返回校验结果

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
update_request PrescriptionOutflowUpdateRequest 可选 入参对象
  • └ rx_no
  • String
  • 可选
  • 1234567
  • 处方号(非空)
  • └ sync_his_result
  • Boolean
  • 可选
  • true
  • 同步his结果(非空)
  • └ sync_his_err_msg
  • String
  • 可选
  • 同步his失败
  • 同步his错误信息(可空)

响应参数

名称 类型 示例值 描述
service_result ServiceResult ServiceResult
  • └ data
  • String
  • true
  • 返回数据对象
  • └ success
  • Boolean
  • true
  • success
  • └ err_code
  • String
  • 40001
  • 错误码
  • └ err_message
  • String
  • 参数为空
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthOutflowPrescriptionHospitalVerifyRequest req = new AlibabaAlihealthOutflowPrescriptionHospitalVerifyRequest();
AlibabaAlihealthOutflowPrescriptionHospitalVerifyRequest.PrescriptionOutflowUpdateRequest obj1 = new AlibabaAlihealthOutflowPrescriptionHospitalVerifyRequest.PrescriptionOutflowUpdateRequest();
obj1.setRxNo("1234567");
obj1.setSyncHisResult(true);
obj1.setSyncHisErrMsg("同步his失败");
req.setUpdateRequest(obj1);
AlibabaAlihealthOutflowPrescriptionHospitalVerifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_outflow_prescription_hospital_verify_response>
    <service_result>
        <data>true</data>
        <success>true</success>
        <err_code>40001</err_code>
        <err_message>参数为空</err_message>
    </service_result>
</alibaba_alihealth_outflow_prescription_hospital_verify_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

返回
顶部