{
  "openapi": "3.0.3",
  "info": {
    "title": "常见疾病查询",
    "description": "极全的疾病大全，收集了数万种常见疾病，任何常见疾病都可查询。涵盖数万种常见疾病，无论是医生还是患者，都可以轻松查询到所需的信息。无论是疾病症状、诊断方法、治疗方案还是预防措施，我们的常见疾病大全都能为您提供详尽的参考。让健康无忧，疾病信息触手可及。",
    "termsOfService": "https://www.showapi.com/helpcenter/view#/4019/2",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://route.showapi.com"
    }
  ],
  "paths": {
    "/546-3": {
      "x-pointCode": 3,
      "x-mode": "mapping",
      "x-read-timeout": 30,
      "x-connect-timeout": 30,
      "post": {
        "summary": "取得疾病明细",
        "description": "根据疾病ID，查询疾病的详细信息，旨在为医疗机构、医务人员和患者等人士提供诊断和治疗参考依据。",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "ret_code": {
                              "type": "string",
                              "description": "0为成功，其他失败"
                            },
                            "item": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "疾病id"
                                  },
                                  "summary": {
                                    "type": "string",
                                    "description": "描述"
                                  },
                                  "typeName": {
                                    "type": "string",
                                    "description": "科目名称"
                                  },
                                  "typeId": {
                                    "type": "string",
                                    "description": "科室id"
                                  },
                                  "subTypeId": {
                                    "type": "string",
                                    "description": "子科室id"
                                  },
                                  "subTypeName": {
                                    "type": "string",
                                    "description": "子科室名称"
                                  },
                                  "name": {
                                    "type": "string",
                                    "description": "疾病名称"
                                  },
                                  "tagList": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "description": "标签名"
                                        },
                                        "content": {
                                          "type": "string",
                                          "description": "标签内容"
                                        }
                                      }
                                    },
                                    "description": "标签"
                                  },
                                  "alias": {
                                    "type": "string",
                                    "description": "别名"
                                  }
                                }
                              },
                              "description": "疾病数据结构"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "546_3_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "疾病id，此id从【关键字查询疾病】中获取"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        }
      }
    },
    "/546-2": {
      "x-pointCode": 2,
      "x-mode": "mapping",
      "x-read-timeout": 30,
      "x-connect-timeout": 30,
      "post": {
        "summary": "关键字查询疾病",
        "description": "根据关键字,查询某个分类下,疾病基本信息的列表。",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "ret_code": {
                              "type": "string",
                              "description": "0为成功，其他失败"
                            },
                            "contentlist": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "疾病id"
                                  },
                                  "summary": {
                                    "type": "string",
                                    "description": "描述"
                                  },
                                  "typeName": {
                                    "type": "string",
                                    "description": "科目名称"
                                  },
                                  "typeId": {
                                    "type": "string",
                                    "description": "科室id"
                                  },
                                  "subTypeId": {
                                    "type": "string",
                                    "description": "子科室id"
                                  },
                                  "subTypeName": {
                                    "type": "string",
                                    "description": "子科室名称"
                                  },
                                  "name": {
                                    "type": "string",
                                    "description": "疾病名称"
                                  }
                                }
                              },
                              "description": "疾病列表"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "546_2_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "typeId": {
                    "type": "string",
                    "description": "一级科目id"
                  },
                  "subTypeId": {
                    "type": "string",
                    "description": "二级科目id"
                  },
                  "key": {
                    "type": "string",
                    "description": "关键词"
                  },
                  "page": {
                    "type": "string",
                    "description": "第几页，每页最多20条"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/546-1": {
      "x-pointCode": 1,
      "x-mode": "mapping",
      "x-read-timeout": 30,
      "x-connect-timeout": 30,
      "post": {
        "summary": "查询疾病科目",
        "description": "通过我们的API接口，您可以方便地查询到各种疾病的类别信息。",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "ret_code": {
                              "type": "number"
                            },
                            "list": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "typeName": {
                                    "type": "string",
                                    "description": "科目名称"
                                  },
                                  "subList": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "subName": {
                                          "type": "string",
                                          "description": "子科目名称"
                                        },
                                        "subId": {
                                          "type": "string",
                                          "description": "子科目id"
                                        }
                                      }
                                    },
                                    "description": "子科目"
                                  },
                                  "typeId": {
                                    "type": "string",
                                    "description": "科目id"
                                  }
                                }
                              },
                              "description": "科目列表"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "546_1_POST",
        "parameters": []
      }
    }
  },
  "components": {
    "securitySchemes": {
      "AppKeyAuth": {
        "type": "apiKey",
        "in": "query",
        "name": "appKey",
        "description": "从 ShowAPI 控制台获取的 appKey，管理地址：https://www.showapi.com/console#/myApp"
      }
    },
    "schemas": {
      "ShowapiResEnvelope": {
        "type": "object",
        "description": "ShowAPI 统一返回包裹（业务数据位于 showapi_res_body）",
        "properties": {
          "showapi_res_code": {
            "type": "integer",
            "description": "API 返回的状态码"
          },
          "showapi_res_error": {
            "type": "string",
            "description": "API 返回的错误信息"
          },
          "showapi_res_id": {
            "type": "string",
            "description": "API 请求的唯一标识"
          },
          "showapi_fee_num": {
            "type": "integer",
            "description": "API 调用计费次数"
          }
        }
      }
    }
  },
  "security": [
    {
      "AppKeyAuth": []
    }
  ],
  "externalDocs": {
    "url": "https://www.showapi.com/apiGateway/view/546?tab=book"
  },
  "x-apiCode": "546",
  "x-is-own": false,
  "x-is-op": true
}