LOINC Whisperer

LOINC Whisperer · GPT-Aktionen

Vector Search API

API for searching vectors related to food allergies.

  • GET /vectorSearch.phpSearch for matching LOINC codes using vector embeddings search
Ursprüngliches API-Schema
{
  "openapi": "3.0.0",
  "info": {
    "title": "Vector Search API",
    "version": "1.0.0",
    "description": "API for searching vectors related to food allergies."
  },
  "servers": [
    {
      "url": "https://docbobtaylor.com/proxy",
      "description": "Main API server"
    }
  ],
  "paths": {
    "/vectorSearch.php": {
      "get": {
        "summary": "Search for matching LOINC codes using vector embeddings search",
        "operationId": "loincVectorSearch",
        "tags": [
          "Search"
        ],
        "parameters": [
          {
            "name": "searchtext",
            "in": "query",
            "required": true,
            "description": "Text to search for",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "SearchResponse": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {}
          },
          "matches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Match"
            }
          }
        }
      },
      "Match": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "score": {
            "type": "number",
            "format": "float"
          },
          "values": {
            "type": "array",
            "items": {}
          },
          "metadata": {
            "$ref": "#/components/schemas/Metadata"
          }
        }
      },
      "Metadata": {
        "type": "object",
        "properties": {
          "LONG_COMMON_NAME": {
            "type": "string"
          },
          "CLASS": {
            "type": "string"
          },
          "COMMON_ORDER_RANK": {
            "type": "string"
          },
          "COMMON_TEST_RANK": {
            "type": "string"
          },
          "COMPONENT": {
            "type": "string"
          },
          "EXAMPLE_UCUM_UNITS": {
            "type": "string"
          },
          "METHOD_TYP": {
            "type": "string"
          },
          "ORDER_OBS": {
            "type": "string"
          },
          "PROPERTY": {
            "type": "string"
          },
          "SCALE_TYP": {
            "type": "string"
          },
          "SYSTEM": {
            "type": "string"
          },
          "TIME_ASPCT": {
            "type": "string"
          }
        }
      }
    }
  }
}