文档中心 > API类目 > 阿里健康-本地医疗-通用预约服务

alibaba.alihealth.examination.lab.order.query (查询检测信息)

查询检测信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query_order_request QueryDoor2DoorOrderTopRequest 必须 入参
  • └ bar_code
  • String
  • 必须
  • TM0115028800
  • 样本条码

响应参数

名称 类型 示例值 描述
result Result 返回值
  • └ result_status
  • String
  • SUCCESS
  • SUCCESS:成功 FAIL:失败
  • └ result_code
  • String
  • PARAM_ERROR
  • 结果码
  • └ result_msg
  • String
  • 入参错误
  • 结果消息提示
  • data
  • HomeExaminationOrderResponse
  • data
  • └ hos_code
  • String
  • 101999
  • 实验室编码
  • └ bar_code
  • String
  • 101999040105
  • 条码
  • └ patient_name
  • String
  • 张三
  • 检测人姓名
  • └ sex
  • String
  • 1
  • 0 男 1 女
  • └ birthday
  • String
  • 1994-06-14
  • 生日
  • └ age
  • String
  • 23
  • 年龄
  • └ id_type
  • String
  • 1
  • 证件类型 1 身份证
  • └ id_no
  • String
  • 330101******1123
  • 证件号码
  • └ phone
  • String
  • 130****8888
  • 手机号
  • └ order_time
  • String
  • 2022-04-01 01:49:25
  • 下单时间
  • └ sample_time
  • String
  • 2022-04-01 02:49:25
  • 采样时间

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthExaminationLabOrderQueryRequest req = new AlibabaAlihealthExaminationLabOrderQueryRequest();
AlibabaAlihealthExaminationLabOrderQueryRequest.QueryDoor2DoorOrderTopRequest obj1 = new AlibabaAlihealthExaminationLabOrderQueryRequest.QueryDoor2DoorOrderTopRequest();
obj1.setBarCode("TM0115028800");
req.setQueryOrderRequest(obj1);
AlibabaAlihealthExaminationLabOrderQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_examination_lab_order_query_response>
    <result>
        <result_status>SUCCESS</result_status>
        <result_code>PARAM_ERROR</result_code>
        <result_msg>入参错误</result_msg>
        <data>
            <hos_code>101999</hos_code>
            <bar_code>101999040105</bar_code>
            <patient_name>张三</patient_name>
            <sex>1</sex>
            <birthday>1994-06-14</birthday>
            <age>23</age>
            <id_type>1</id_type>
            <id_no>330101******1123</id_no>
            <phone>130****8888</phone>
            <order_time>2022-04-01 01:49:25</order_time>
            <sample_time>2022-04-01 02:49:25</sample_time>
        </data>
    </result>
</alibaba_alihealth_examination_lab_order_query_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

返回
顶部