> ## Documentation Index
> Fetch the complete documentation index at: https://developer.eka.care/llms.txt
> Use this file to discover all available pages before exploring further.

# Search Symptoms and Diagnoses

> This endpoint returns comprehensive information about medical symptoms and diagnoses from the Eka medical database based on search query.

The API provides detailed symptom and diagnosis information including ICD-10 codes, common names, and medical terminology for healthcare professionals and applications.



## OpenAPI

````yaml get /medical-db/v1/sym-and-diag
openapi: 3.1.0
info:
  title: Eka Care Drugs and Labs API
  description: >-
    API for searching pharmaceutical drugs and laboratory tests from Eka medical
    database
  version: 1.0.0
  contact:
    name: Eka Care Support
    url: https://eka.care/
    email: support@eka.care
servers:
  - url: https://api.dev.eka.care
    description: Development Server
  - url: https://api.eka.care
    description: Production Server
security:
  - BearerAuth: []
tags:
  - name: drugs
  - name: labs
  - name: symptoms
  - name: diagnoses
paths:
  /medical-db/v1/sym-and-diag:
    get:
      tags:
        - symptoms
        - diagnoses
      summary: Search Symptoms and Diagnoses
      description: >-
        This endpoint returns comprehensive information about medical symptoms
        and diagnoses from the Eka medical database based on search query.


        The API provides detailed symptom and diagnosis information including
        ICD-10 codes, common names, and medical terminology for healthcare
        professionals and applications.
      parameters:
        - name: q
          in: query
          schema:
            type: string
            description: Search query string for symptoms or diagnoses
            title: Query
          required: true
          description: Search query string for symptoms or diagnoses
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 10
            description: Maximum number of results to return
            title: Limit
          required: false
          description: Maximum number of results to return
        - name: s_type
          in: query
          schema:
            type: string
            enum:
              - symptom
              - diagnosis
            default: all
            description: >-
              Type of search to perform - symptom for symptoms only, diagnosis
              for diagnoses only, all for both
            title: Search Type
          required: false
          description: >-
            Type of search to perform - symptom for symptoms only, diagnosis for
            diagnoses only, all for both
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SymptomsAndDiagnosesResponse.a9993e3'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericErr.82b01e4'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SymptomsAndDiagnosesResponse.a9993e3'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericErr.82b01e4'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericErr.82b01e4'
components:
  schemas:
    SymptomsAndDiagnosesResponse.a9993e3:
      properties:
        symptoms:
          items:
            $ref: '#/components/schemas/Symptom.b6c8896'
          title: Symptoms
          type: array
          description: Array of symptom objects matching the search criteria
        diagnoses:
          items:
            $ref: '#/components/schemas/Diagnosis.e57b7a5'
          title: Diagnoses
          type: array
          description: Array of diagnosis objects matching the search criteria
      required:
        - symptoms
        - diagnoses
      title: SymptomsAndDiagnosesResponse
      type: object
    GenericErr.82b01e4:
      properties:
        error:
          title: Error
          type: string
          description: Error message describing what went wrong
        code:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: Code
          description: HTTP status code or internal error code
        details:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Details
          description: Additional error details for debugging
      required:
        - error
      title: GenericErr
      type: object
    Symptom.b6c8896:
      properties:
        id:
          type: string
          title: ID
          description: Unique identifier for the symptom
        name:
          type: string
          title: Name
          description: Medical name of the symptom
        common_name:
          type: string
          title: Common Name
          description: Commonly used name for the symptom that patients understand
      required:
        - id
        - name
        - common_name
      title: Symptom
      type: object
    Diagnosis.e57b7a5:
      properties:
        id:
          type: string
          title: ID
          description: Unique identifier for the diagnosis
        name:
          type: string
          title: Name
          description: Medical name of the diagnosis
        common_name:
          type: string
          title: Common Name
          description: Commonly used name for the diagnosis that patients understand
        icd10_code:
          type: string
          title: ICD-10 Code
          description: International Classification of Diseases 10th Revision code
        icd10_name:
          type: string
          title: ICD-10 Name
          description: Official ICD-10 description of the diagnosis
      required:
        - id
        - name
        - common_name
        - icd10_code
        - icd10_name
      title: Diagnosis
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Enter JWT token for authentication

````