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

alibaba.alihealth.drug.code.kyt.va.querycode (根据码查询码信息)

服务描述 此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息。 核查平台优先过滤非8开头的,长度非20位数字的码信息。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ref_ent_id String 必须 24123445 企业唯一标识(或appkey)
codes String [] 必须 87709840000000015538
  • 最大列表长度:1000
  • 码列表

    响应参数

    名称 类型 示例值 描述
    result ResultModel 最外层结果 最外层结果
    • models
    • CodeFullInfoDto []
    • 内层大对象
    • 内层大对象
    • code_status_type_d_t_o
    • CodeStatusTypeDto
    • 码对象
    • 码对象
    • └ code_status
    • String
    • I
    • 码状态(A:已激活;I:已核注;O:已核注;C:已注销;E:码不存在)
    • └ parent_code
    • String
    • 88003850100000131888
    • 当前码的父码
    • └ code
    • String
    • 88003850100000131888
    • 追溯码
    • p_user_ent_d_t_o
    • PUserEntDto
    • 企业信息对象
    • 企业信息对象
    • └ ref_ent_id
    • String
    • 12334
    • 企业id
    • └ ent_name
    • String
    • 企业名称
    • 企业名称
    • └ package_level
    • String
    • 2
    • 码包装层级
    • drug_ent_base_d_t_o
    • DrugEntBaseDto
    • 药品基本信息对象
    • 药品基本信息对象
    • └ physic_type_desc
    • String
    • 普通药品
    • 药品类型描述
    • └ physic_name
    • String
    • 葡萄糖氯化钠注射液
    • 药品名称
    • └ exprie
    • String
    • 12月
    • 有效期
    • └ drug_ent_base_info_id
    • String
    • 12345
    • 药品id
    • └ approval_licence_no
    • String
    • 国药准字
    • 批准文号
    • └ pkg_spec_crit
    • String
    • 100支/盒
    • 包装规格
    • └ prepn_spec
    • String
    • 500ml:葡萄糖25g,氯化纳4.5g(玻瓶)
    • 制剂规格
    • └ prepn_type_desc
    • String
    • 注射剂
    • 剂型描述
    • code_produce_info_d_t_o
    • CodeProduceInfoDto
    • 码生产信息对象
    • 码生产信息对象
    • produce_info_list
    • ProduceInfoDto []
    • 生产信息集合
    • 生产信息集合
    • └ produce_date_str
    • String
    • 2020-07-30
    • 生产日期
    • └ pkg_amount
    • String
    • 1
    • 最小包装数量
    • └ expire_date
    • String
    • 20200730
    • 有效期至
    • └ batch_no
    • String
    • 有效期等于2年显示
    • 批次号
    • └ msg_code
    • String
    • 1000
    • 消息码
    • └ msg_info
    • String
    • 查询成功
    • 消息提示内容
    • └ response_success
    • Boolean
    • true
    • 查询成功失败标记

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AlibabaAlihealthDrugCodeKytVaQuerycodeRequest req = new AlibabaAlihealthDrugCodeKytVaQuerycodeRequest();
    req.setRefEntId("24123445");
    req.setCodes("87709840000000015538");
    AlibabaAlihealthDrugCodeKytVaQuerycodeResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <alibaba_alihealth_drug_code_kyt_va_querycode_response>
        <result>
            <models>
                <code_full_info_dto>
                    <code_status_type_d_t_o>
                        <code_status>I</code_status>
                        <parent_code>88003850100000131888</parent_code>
                    </code_status_type_d_t_o>
                    <code>88003850100000131888</code>
                    <p_user_ent_d_t_o>
                        <ref_ent_id>12334</ref_ent_id>
                        <ent_name>企业名称</ent_name>
                    </p_user_ent_d_t_o>
                    <package_level>2</package_level>
                    <drug_ent_base_d_t_o>
                        <physic_type_desc>普通药品</physic_type_desc>
                        <physic_name>葡萄糖氯化钠注射液</physic_name>
                        <exprie>12月</exprie>
                        <drug_ent_base_info_id>12345</drug_ent_base_info_id>
                        <approval_licence_no>国药准字</approval_licence_no>
                        <pkg_spec_crit>100支/盒</pkg_spec_crit>
                        <prepn_spec>500ml:葡萄糖25g,氯化纳4.5g(玻瓶)</prepn_spec>
                        <prepn_type_desc>注射剂</prepn_type_desc>
                    </drug_ent_base_d_t_o>
                    <code_produce_info_d_t_o>
                        <produce_info_list>
                            <produce_info_dto>
                                <produce_date_str>2020-07-30</produce_date_str>
                                <pkg_amount>1</pkg_amount>
                                <expire_date>20200730</expire_date>
                                <batch_no>有效期等于2年显示</batch_no>
                            </produce_info_dto>
                        </produce_info_list>
                    </code_produce_info_d_t_o>
                </code_full_info_dto>
            </models>
            <msg_code>1000</msg_code>
            <msg_info>查询成功</msg_info>
            <response_success>true</response_success>
        </result>
    </alibaba_alihealth_drug_code_kyt_va_querycode_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

    返回
    顶部