文档中心 > API类目 > 阿里健康三方机构

alibaba.alihealth.medical.order.query (三方机构查询订单详情接口)

查询订单详情,包括评价

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
request_info OrderQueryRequestDTO 必须 请求入参
  • └ order_id
  • String
  • 必须
  • 1001
  • 订单ID
  • └ hospital_id
  • String
  • 必须
  • 1001
  • 互联网医院编码

响应参数

名称 类型 示例值 描述
service_result ServiceResult alinkappserver系统返回的通用结果类
  • data
  • OrderDetailDTO
  • 返回数据对象
  • └ item_type
  • String
  • 图文咨询
  • 商品类型
  • └ close_account_time
  • String
  • 20200711
  • 结算日期,格式必须为:20200711
  • └ label_names
  • String
  • 服务态度良好,很有用
  • 短评标签名字, 使用英文逗号分隔
  • └ diagnosing_time
  • Date
  • 2020-07-11 12:00:00
  • 订单接诊时间
  • └ order_id
  • String
  • 1001
  • 订单id
  • └ patient_id
  • String
  • 18364000356039856
  • 就诊人UUID,最长64个字符
  • └ order_create_time
  • Date
  • 2020-07-11 12:00:00
  • 订单下单时间
  • └ order_status
  • String
  • DIAGNOSED
  • 订单状态:WAIT_DIAGNOSE, DIAGNOSING, REFUNDED, DIAGNOSED, THIRD_SELLER_PAID
  • medical_info
  • MedicalInfoDTO
  • xxx
  • 就诊人信息串
  • └ past_history_details
  • String []
  • 风湿
  • 既往史详情
  • └ city
  • String
  • 杭州
  • 城市
  • └ disease_pictures
  • String []
  • xxx
  • 疾病照片、检查单
  • └ allergies_details
  • String []
  • 香蕉过敏
  • 过敏史详情
  • └ chief_complaint
  • String
  • 肚子痛
  • 主诉
  • └ abnormal_liver_function_detail
  • String
  • aaa
  • 肝功能异常详情
  • └ abnormal_renal_function_detail
  • String
  • aaa
  • 肾功能异常详情
  • └ has_allergies_history
  • Boolean
  • false
  • 是否有过敏史
  • └ is_pregnant
  • Boolean
  • false
  • 是否(备孕/妊娠/哺乳期)
  • └ present_illness_history
  • String
  • 风湿
  • 现病史
  • └ family_history_details
  • String []
  • 风湿
  • 家族史详情
  • └ past_history_description
  • String
  • aaa
  • 既往史描述
  • └ sex
  • String
  • 性别
  • └ is_liver_function_abnormal
  • Boolean
  • false
  • 是否肝功能异常
  • └ expected_confinement_date
  • String
  • 2020-07-11
  • 预产期,如果妊娠则需要填写预产期
  • └ family_history_description
  • String
  • aaa
  • 家族史描述
  • └ allergies_description
  • String
  • aaa
  • 过敏史描述
  • └ is_renal_function_abnormal
  • Boolean
  • false
  • 是否肾功能异常
  • └ diagnosed_diseases
  • String []
  • 痛风
  • 已确诊的疾病
  • └ pregnant_type
  • String
  • 备孕
  • 备孕/妊娠/哺乳
  • └ has_family_history
  • Boolean
  • false
  • 是否有家族史
  • └ age
  • String
  • 312
  • 月龄,单位为“个月”
  • └ has_past_history
  • Boolean
  • false
  • 是否有既往史
  • └ score
  • Number
  • 5
  • 评价综合得分:取值 1 - 5
  • └ item_id
  • String
  • 580631427013
  • 商品id
  • └ doctor_name
  • String
  • 郭靖
  • 医生名字
  • └ review_create_time
  • Date
  • 2020-07-11 12:00:00
  • 评价时间
  • └ total_fee
  • String
  • 5
  • 商品总价,单位为元
  • └ doctor_id
  • String
  • 364642123123
  • 医生UUID
  • └ order_finish_time
  • Date
  • 2020-07-11 12:00:00
  • 订单终止时间
  • └ comment
  • String
  • 感谢医生
  • 评价内容
  • └ session_id
  • String
  • 1001
  • 会话id
  • └ err_code
  • String
  • demo
  • errCode
  • └ success
  • Boolean
  • true
  • 请求是否成功
  • └ err_message
  • String
  • demo
  • errMessage

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthMedicalOrderQueryRequest req = new AlibabaAlihealthMedicalOrderQueryRequest();
AlibabaAlihealthMedicalOrderQueryRequest.OrderQueryRequestDTO obj1 = new AlibabaAlihealthMedicalOrderQueryRequest.OrderQueryRequestDTO();
obj1.setOrderId("1001");
obj1.setHospitalId("1001");
req.setRequestInfo(obj1);
AlibabaAlihealthMedicalOrderQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_medical_order_query_response>
    <service_result>
        <data>
            <item_type>图文咨询</item_type>
            <close_account_time>20200711</close_account_time>
            <label_names>服务态度良好,很有用</label_names>
            <diagnosing_time>2020-07-11 12:00:00</diagnosing_time>
            <order_id>1001</order_id>
            <patient_id>18364000356039856</patient_id>
            <order_create_time>2020-07-11 12:00:00</order_create_time>
            <order_status>DIAGNOSED</order_status>
            <medical_info>
                <past_history_details>
                    <string>风湿</string>
                </past_history_details>
                <city>杭州</city>
                <disease_pictures>
                    <string>xxx</string>
                </disease_pictures>
                <allergies_details>
                    <string>香蕉过敏</string>
                </allergies_details>
                <chief_complaint>肚子痛</chief_complaint>
                <abnormal_liver_function_detail>aaa</abnormal_liver_function_detail>
                <abnormal_renal_function_detail>aaa</abnormal_renal_function_detail>
                <has_allergies_history>false</has_allergies_history>
                <is_pregnant>false</is_pregnant>
                <present_illness_history>风湿</present_illness_history>
                <family_history_details>
                    <string>风湿</string>
                </family_history_details>
                <past_history_description>aaa</past_history_description>
                <sex>男</sex>
                <is_liver_function_abnormal>false</is_liver_function_abnormal>
                <expected_confinement_date>2020-07-11</expected_confinement_date>
                <family_history_description>aaa</family_history_description>
                <allergies_description>aaa</allergies_description>
                <is_renal_function_abnormal>false</is_renal_function_abnormal>
                <diagnosed_diseases>
                    <string>痛风</string>
                </diagnosed_diseases>
                <pregnant_type>备孕</pregnant_type>
                <has_family_history>false</has_family_history>
                <age>312</age>
                <has_past_history>false</has_past_history>
            </medical_info>
            <score>5</score>
            <item_id>580631427013</item_id>
            <doctor_name>郭靖</doctor_name>
            <review_create_time>2020-07-11 12:00:00</review_create_time>
            <total_fee>5</total_fee>
            <doctor_id>364642123123</doctor_id>
            <order_finish_time>2020-07-11 12:00:00</order_finish_time>
            <comment>感谢医生</comment>
            <session_id>1001</session_id>
        </data>
        <err_code>demo</err_code>
        <success>true</success>
        <err_message>demo</err_message>
    </service_result>
</alibaba_alihealth_medical_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

返回
顶部