更新时间:2021-01-11 10:53
智能医疗药品归一
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
名称 | 位置 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|---|
Action | Query | String | 是 | GetMedicineChMedical | 系统规定参数。取值:GetMedicineChMedical。 |
ServiceCode | Body | String | 是 | alinlp | 固定值,只支持alinlp |
Name | Body | String | 是 | 妥布霉素滴眼液 | 待归一的药品名称 |
Factory | Body | String | 否 | 杭州民生药业有限公司 | 待归一的药品生产厂家 |
Specification | Body | String | 否 | 5ml:15mg | 待归一的药品规格 |
Unit | Body | String | 否 | 眼用制剂 | 待归一的药品剂型 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | FA53D08F-37D1-4D81-BEE7-41F24E825F60 | 唯一请求id,排查问题的依据 |
Data | String | { “result”:{“candidates”:[{“code”:”国药准字H20053591”,”factory”:”杭州民生药业有限公司”,”name”:”妥布霉素滴眼液”,”score”:”1.0000”,”specification”:”5ml:15mg”,”unit”:”眼用制剂”},{“code”:”国药准字H20083012”,”factory”:”杭州民生药业有限公司”,”name”:”妥布霉素地塞米松滴眼液”,”score”:”1.0000”,”specification”:”每5ml含妥布霉素15mg,地塞米松5mg”,”unit”:”眼用制剂”},{“code”:”国药准字H20054404”,”factory”:”杭州国光药业股份有限公司”,”name”:”妥布霉素滴眼液”,”score”:”0.8500”,”specification”:”5ml:15mg”,”unit”:”眼用制剂”}]},”success”:true } | Data中包含一个key为‘result’的dictionary/json串。‘result’中包含一个list,candidates:归一化结果的候选输出集合,其中每个元素是一个候选答案,按置信度分数顺序排列,最多3个list中包含一个dictionary,有如下key:code:国药准字name:归一后的药品名称factory:归一后的生产厂家specification:归一后的药品规格unit:归一后的药品剂型score:置信得分 |
请求示例
http(s)://[Endpoint]/?Action=GetMedicineChMedical
&ServiceCode=alinlp
&Name=妥布霉素滴眼液
&<公共请求参数>
正常返回示例
JSON
格式
{"RequestId":"FA53D08F-37D1-4D81-BEE7-41F24E825F60","Data":"{ \"result\":{\"candidates\":[{\"code\":\"国药准字H20053591\",\"factory\":\"杭州民生药业有限公司\",\"name\":\"妥布霉素滴眼液\",\"score\":\"1.0000\",\"specification\":\"5ml:15mg\",\"unit\":\"眼用制剂\"},{\"code\":\"国药准字H20083012\",\"factory\":\"杭州民生药业有限公司\",\"name\":\"妥布霉素地塞米松滴眼液\",\"score\":\"1.0000\",\"specification\":\"每5ml含妥布霉素15mg,地塞米松5mg\",\"unit\":\"眼用制剂\"},{\"code\":\"国药准字H20054404\",\"factory\":\"杭州国光药业股份有限公司\",\"name\":\"妥布霉素滴眼液\",\"score\":\"0.8500\",\"specification\":\"5ml:15mg\",\"unit\":\"眼用制剂\"}]},\"success\":true }"}
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | UserStatusInvalid | The user status is invalid. | 用户状态无效,未开通服务 |
403 | Forbidden.NoAuth | Failed to perform user authentication. | 用户鉴权失败 |
411 | FrameworkApiError | Framework API error. | 框架api错误 |
410 | FrameworkError | Framework internal server error. | 框架错误 |
412 | FrameworkFormatError | Framework request format error. | 框架请求格式错误 |
413 | FrameworkReturnError | Framework return type format error. | 框架返回格式错误 |
406 | TextCodingError | An encoding error occurred to the input text. | 输入文本编码错误 |
405 | TextLimitExceeded | The maximum length of the text is exceeded. | 文本长度超过限制 |
429 | Throttling.User | Flow control has been triggered. | 触发流控 |
500 | InternalError | A service error occurred. | 服务内部异常 |
401 | InvalidParameter | The parameter is invalid. | 参数无效 |
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交