CodeMD

CodeMD · GPT-Aktionen

Vector Search ICD10 API

API for searching ICD10 codes based on vector search.

  • GET /vectorSearchICD10.phpSearch ICD10 codes

    Returns ICD10 codes based on the search text.

Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "Vector Search ICD10 API",
    "version": "1.0.0",
    "description": "API for searching ICD10 codes based on vector search."
  },
  "servers": [
    {
      "url": "https://docbobtaylor.com/proxy"
    }
  ],
  "paths": {
    "/vectorSearchICD10.php": {
      "get": {
        "operationId": "ICD10search",
        "summary": "Search ICD10 codes",
        "description": "Returns ICD10 codes based on the search text.",
        "parameters": [
          {
            "name": "searchtext",
            "in": "query",
            "description": "Text to search for ICD10 codes",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful search",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "usage": {
                      "type": "object",
                      "properties": {
                        "embed_total_tokens": {
                          "type": "integer",
                          "example": 9
                        },
                        "read_units": {
                          "type": "integer",
                          "example": 1
                        },
                        "rerank_units": {
                          "type": "integer",
                          "example": 1
                        }
                      }
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "hits": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "_id": {
                                "type": "string",
                                "example": "E870"
                              },
                              "_score": {
                                "type": "number",
                                "format": "float",
                                "example": 0.0009399438858963549
                              },
                              "fields": {
                                "type": "object",
                                "properties": {
                                  "Description": {
                                    "type": "string",
                                    "example": "Hyperosmolality and hypernatremia"
                                  }
                                }
                              },
                              "code": {
                                "type": "string",
                                "example": "E87.0"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Unexpected error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "code": {
            "type": "integer",
            "format": "int32"
          }
        }
      }
    }
  }
}