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

# Get exam by ID

> Returns the details of a specific exam, including the processed content with structured results.



## OpenAPI

````yaml docs/en/openapi.yaml get /exams/{EXAM_ID}
openapi: 3.1.0
info:
  title: DAAI - APIS
  version: 1.0.0
servers:
  - url: https://apim.doctorassistant.ai/api/sandbox
security:
  - ApiKeyAuth: []
tags:
  - name: Consultations
  - name: Exams
  - name: Summaries
paths:
  /exams/{EXAM_ID}:
    get:
      tags:
        - Exams
      summary: Get exam by ID
      description: >-
        Returns the details of a specific exam, including the processed content
        with structured results.
      parameters:
        - name: EXAM_ID
          in: path
          required: true
          schema:
            type: string
          description: Unique exam ID
          example: rnq71oedacu1ieqmpc80yu3x
        - name: x-daai-professional-id
          in: header
          required: true
          schema:
            type: string
          description: Professional ID responsible for processing the exams
      responses:
        '200':
          description: Exam found successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Unique exam ID
                    example: rnq71oedacu1ieqmpc80yu3x
                  status:
                    type: string
                    description: Processing status
                    enum:
                      - pending
                      - in-progress
                      - completed
                      - failed
                    example: completed
                  metadata:
                    type: object
                    description: Exam metadata as sent in the request
                    example:
                      patient_id: '123456'
                      exam_type: blood_test
                  content:
                    type: object
                    description: >
                      Processed exam content with flexible structure. The schema
                      varies by exam type and may include:

                      - `date`: Exam date

                      - `tests`: Array with test results

                      - `exam_type`: Type of exam

                      - `patient_name`: Patient name

                      - Other fields specific to the exam type
                    properties:
                      date:
                        type: object
                        description: Exam date
                        properties:
                          title:
                            type: string
                            example: Exam Date
                          content:
                            type: string
                            example: 11/24/2017
                      tests:
                        type: object
                        description: Test results
                        properties:
                          title:
                            type: string
                            example: Test Results
                          content:
                            type: array
                            items:
                              type: object
                              properties:
                                test_name:
                                  type: object
                                  properties:
                                    title:
                                      type: string
                                      example: Test Name
                                    content:
                                      type: string
                                      example: Red Blood Cells
                                result:
                                  type: object
                                  properties:
                                    title:
                                      type: string
                                      example: Result
                                    content:
                                      type: string
                                      example: 4.24 million/mm3
                                numeric_result:
                                  type: object
                                  properties:
                                    title:
                                      type: string
                                      example: Numeric Result
                                    content:
                                      type: string
                                      example: 4.24 million/mm3
                                reference_value:
                                  type: object
                                  properties:
                                    title:
                                      type: string
                                      example: Reference Value
                                    content:
                                      type: array
                                      items:
                                        type: string
                                      example:
                                        - 3.90 to 5.03 million/mm3
                                is_normal:
                                  type: object
                                  properties:
                                    title:
                                      type: string
                                      example: Within reference range
                                    content:
                                      type: boolean
                                      example: true
                      exam_type:
                        type: object
                        description: Type of exam
                        properties:
                          title:
                            type: string
                            example: Exam Type
                          content:
                            type: string
                            example: Clinical Laboratory Test
                      patient_name:
                        type: object
                        description: Patient name
                        properties:
                          title:
                            type: string
                            example: Patient Name
                          content:
                            type: string
                            example: JOHN DOE
                    additionalProperties: true
                required:
                  - id
                  - status
                  - metadata
                  - content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Unauthorized
                  statusCode:
                    type: integer
                    example: 401
                required:
                  - message
                  - statusCode
        '404':
          description: Exam not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message
                    example: Exam not found
                  error:
                    type: string
                    description: Error type
                    example: Not Found
                  statusCode:
                    type: integer
                    description: HTTP status code
                    example: 404
                required:
                  - message
                  - error
                  - statusCode
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-daai-api-key
      description: API key for authentication

````