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

# Patient Uuid Analysis

> Return aggregated analysis of `UseCaseActionLog` grouped by unique patient UUID.

Steps:
- Resolve teamId from requester.
- Find `UseCaseGroupRunLog` for teamId (+optional assistant_id) whose execution_date is in [start, end].
- Collect distinct run_ids; fetch corresponding `UseCaseActionLog` documents for this team (+assistant_id).
- Group logs by `payload.patient_uuid` and build an analysis dict similar in shape to `/[integration]/get-records`.



## OpenAPI

````yaml https://api-qa.interactly.ai/api-docs/integrations/api.json get /integrations/public/v1/cadence/patient-uuid-analysis
openapi: 3.1.0
info:
  title: Interactly API
  description: API for building interactly.ai services
  version: 1.1.0
  contact:
    name: Interactly
    url: https://interactly.ai
    email: developers@interactly.ai
servers:
  - url: https://api-qa.interactly.ai
    description: API Server
security: []
paths:
  /integrations/public/v1/cadence/patient-uuid-analysis:
    get:
      tags:
        - Cadence Public
        - integrations_cadence_public
      summary: Patient Uuid Analysis
      description: >-
        Return aggregated analysis of `UseCaseActionLog` grouped by unique
        patient UUID.


        Steps:

        - Resolve teamId from requester.

        - Find `UseCaseGroupRunLog` for teamId (+optional assistant_id) whose
        execution_date is in [start, end].

        - Collect distinct run_ids; fetch corresponding `UseCaseActionLog`
        documents for this team (+assistant_id).

        - Group logs by `payload.patient_uuid` and build an analysis dict
        similar in shape to `/[integration]/get-records`.
      operationId: >-
        integrations_service_patient_uuid_analysis_public_v1_cadence_patient_uuid_analysis_get
      parameters:
        - name: assistant_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Optional assistant id to scope analysis
            title: Assistant Id
          description: Optional assistant id to scope analysis
        - name: start
          in: query
          required: true
          schema:
            type: string
            description: Start date (YYYY-MM-DD) for execution_date filter
            title: Start
          description: Start date (YYYY-MM-DD) for execution_date filter
        - name: end
          in: query
          required: true
          schema:
            type: string
            description: End date (YYYY-MM-DD) for execution_date filter (inclusive)
            title: End
          description: End date (YYYY-MM-DD) for execution_date filter (inclusive)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - bearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: Bearer
      type: http
      description: >-
        Retrieve your API Key from [Dashboard API Keys
        Section](https://dashboard-qa.interactly.ai/api-keys).

````