Forta Health Treatment Plan API

The treatment_plan API from Forta Health — 63 operation(s) for treatment_plan.

OpenAPI Specification

forta-health-treatment-plan-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fast Treatment Plan API
  version: 0.1.0
tags:
- name: treatment_plan
paths:
  /api/v1/treatment_plans/:
    post:
      tags:
      - treatment_plan
      summary: Create Treatment Plan
      operationId: create_treatment_plan_api_v1_treatment_plans__post
      security:
      - HTTPBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TreatmentPlanCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TreatmentPlanResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - treatment_plan
      summary: Read Treatment Plans
      description: "Get list of treatment plans by client ID with optional activation logs.\n\nArgs:\n\
        \    client_id: Optional client ID to filter treatment plans\n    action_required: Filter for\
        \ treatment plans requiring action\n    client_clinical_status: Filter by client clinical status\n\
        \    status: Filter by treatment plan status\n    expand: Optional sub-resources to include in\
        \ response\n    with_activation_logs: Include full activation log history for each treatment plan\n\
        \nReturns:\n    List of treatment plans with optional activation logs"
      operationId: read_treatment_plans_api_v1_treatment_plans__get
      security:
      - HTTPBearer: []
      parameters:
      - name: client_id
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: Client Id
      - name: action_required
        in: query
        required: false
        schema:
          anyOf:
          - type: boolean
          - type: 'null'
          default: false
          title: Action Required
      - name: client_clinical_status
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: string
          - type: 'null'
          title: Client Clinical Status
      - name: expand
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              $ref: '#/components/schemas/TreatmentPlanSubResource'
          - type: 'null'
          title: Expand
      - name: with_activation_logs
        in: query
        required: false
        schema:
          anyOf:
          - type: boolean
          - type: 'null'
          default: false
          title: With Activation Logs
      - name: status
        in: query
        required: false
        schema:
          title: Status
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TreatmentPlanDetailedResponse'
                title: Response Read Treatment Plans Api V1 Treatment Plans  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/treatment_plans/prior_authorizations/:
    get:
      tags:
      - treatment_plan
      summary: Get Prior Authorizations
      operationId: get_prior_authorizations_api_v1_treatment_plans_prior_authorizations__get
      security:
      - HTTPBearer: []
      parameters:
      - name: pa_expires_within_days
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: Pa Expires Within Days
      - name: client_id
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: Client Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PriorAuthorizationResponse'
                title: Response Get Prior Authorizations Api V1 Treatment Plans Prior Authorizations  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/treatment_plans/{treatment_plan_id}/:
    patch:
      tags:
      - treatment_plan
      summary: Patch Treatment Plan
      operationId: patch_treatment_plan_api_v1_treatment_plans__treatment_plan_id___patch
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TreatmentPlanPatch'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TreatmentPlanResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - treatment_plan
      summary: Read Treatment Plan By Id
      operationId: read_treatment_plan_by_id_api_v1_treatment_plans__treatment_plan_id___get
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      - name: expand
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              $ref: '#/components/schemas/TreatmentPlanSubResource'
          - type: 'null'
          title: Expand
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TreatmentPlanDetailedResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - treatment_plan
      summary: Delete Treatment Plan
      operationId: delete_treatment_plan_api_v1_treatment_plans__treatment_plan_id___delete
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/treatment_plans/{treatment_plan_id}/stop/:
    put:
      tags:
      - treatment_plan
      summary: Stop Treatment Plan
      operationId: stop_treatment_plan_api_v1_treatment_plans__treatment_plan_id__stop__put
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TreatmentPlanStop'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TreatmentPlanStopResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/treatment_plans/{treatment_plan_id}/pdf_regenerate/:
    put:
      tags:
      - treatment_plan
      summary: Queue To Regenerate Treatment Plan Pdf
      operationId: queue_to_regenerate_treatment_plan_pdf_api_v1_treatment_plans__treatment_plan_id__pdf_regenerate__put
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/treatment_plans/{treatment_plan_id}/goals/:
    post:
      tags:
      - treatment_plan
      summary: Create Goal
      operationId: create_goal_api_v1_treatment_plans__treatment_plan_id__goals__post
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
              - $ref: '#/components/schemas/CaregiverGoalCreate'
              - $ref: '#/components/schemas/SkillAcquisitionGoalCreate'
              - $ref: '#/components/schemas/BehaviorReductionGoalCreate'
              discriminator:
                propertyName: goal_type
                mapping:
                  caregiver: '#/components/schemas/CaregiverGoalCreate'
                  skill_acquisition: '#/components/schemas/SkillAcquisitionGoalCreate'
                  behavior_reduction: '#/components/schemas/BehaviorReductionGoalCreate'
              title: Goal Create
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoalResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - treatment_plan
      summary: Read All Goals
      operationId: read_all_goals_api_v1_treatment_plans__treatment_plan_id__goals__get
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      - name: date
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Date
      - name: include_pending
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Include Pending
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GoalResponse'
                title: Response Read All Goals Api V1 Treatment Plans  Treatment Plan Id  Goals  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/treatment_plans/{treatment_plan_id}/medications/:
    post:
      tags:
      - treatment_plan
      summary: Create Medication
      operationId: create_medication_api_v1_treatment_plans__treatment_plan_id__medications__post
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MedicationCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MedicationResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - treatment_plan
      summary: Read All Medications
      operationId: read_all_medications_api_v1_treatment_plans__treatment_plan_id__medications__get
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MedicationResponse'
                title: Response Read All Medications Api V1 Treatment Plans  Treatment Plan Id  Medications  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/treatment_plans/{treatment_plan_id}/goals/{goal_id}/:
    patch:
      tags:
      - treatment_plan
      summary: Patch Goal
      operationId: patch_goal_api_v1_treatment_plans__treatment_plan_id__goals__goal_id___patch
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      - name: goal_id
        in: path
        required: true
        schema:
          type: integer
          title: Goal Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
              - $ref: '#/components/schemas/CaregiverGoalCreate'
              - $ref: '#/components/schemas/SkillAcquisitionGoalCreate'
              - $ref: '#/components/schemas/BehaviorReductionGoalCreate'
              discriminator:
                propertyName: goal_type
                mapping:
                  caregiver: '#/components/schemas/CaregiverGoalCreate'
                  skill_acquisition: '#/components/schemas/SkillAcquisitionGoalCreate'
                  behavior_reduction: '#/components/schemas/BehaviorReductionGoalCreate'
              title: Goal Patch
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoalResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - treatment_plan
      summary: Delete Goal
      operationId: delete_goal_api_v1_treatment_plans__treatment_plan_id__goals__goal_id___delete
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      - name: goal_id
        in: path
        required: true
        schema:
          type: integer
          title: Goal Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/treatment_plans/{treatment_plan_id}/medications/{medication_id}/:
    get:
      tags:
      - treatment_plan
      summary: Read Medication
      operationId: read_medication_api_v1_treatment_plans__treatment_plan_id__medications__medication_id___get
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      - name: medication_id
        in: path
        required: true
        schema:
          type: integer
          title: Medication Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/MedicationResponse'
                - type: object
                  additionalProperties: true
                title: Response Read Medication Api V1 Treatment Plans  Treatment Plan Id  Medications  Medication
                  Id   Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - treatment_plan
      summary: Patch Medication
      operationId: patch_medication_api_v1_treatment_plans__treatment_plan_id__medications__medication_id___patch
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      - name: medication_id
        in: path
        required: true
        schema:
          type: integer
          title: Medication Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MedicationCreate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MedicationResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - treatment_plan
      summary: Delete Medication
      operationId: delete_medication_api_v1_treatment_plans__treatment_plan_id__medications__medication_id___delete
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      - name: medication_id
        in: path
        required: true
        schema:
          type: integer
          title: Medication Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/treatment_plans/{treatment_plan_id}/goals/{goal_id}/targets/:
    post:
      tags:
      - treatment_plan
      summary: Create Target
      operationId: create_target_api_v1_treatment_plans__treatment_plan_id__goals__goal_id__targets__post
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      - name: goal_id
        in: path
        required: true
        schema:
          type: integer
          title: Goal Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TargetCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DetailedTargetResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/treatment_plans/{treatment_plan_id}/goals/{goal_id}/targets/{target_id}/:
    patch:
      tags:
      - treatment_plan
      summary: Patch Target
      operationId: patch_target_api_v1_treatment_plans__treatment_plan_id__goals__goal_id__targets__target_id___patch
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      - name: goal_id
        in: path
        required: true
        schema:
          type: integer
          title: Goal Id
      - name: target_id
        in: path
        required: true
        schema:
          type: integer
          title: Target Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TargetCreate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DetailedTargetResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - treatment_plan
      summary: Delete Target
      operationId: delete_target_api_v1_treatment_plans__treatment_plan_id__goals__goal_id__targets__target_id___delete
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      - name: goal_id
        in: path
        required: true
        schema:
          type: integer
          title: Goal Id
      - name: target_id
        in: path
        required: true
        schema:
          type: integer
          title: Target Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/treatment_plans/{treatment_plan_id}/goals/{goal_id}/targets/{target_id}/change_stage/:
    put:
      tags:
      - treatment_plan
      summary: Change Target Stage
      operationId: change_target_stage_api_v1_treatment_plans__treatment_plan_id__goals__goal_id__targets__target_id__change_stage__put
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      - name: goal_id
        in: path
        required: true
        schema:
          type: integer
          title: Goal Id
      - name: target_id
        in: path
        required: true
        schema:
          type: integer
          title: Target Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TargetStageChange'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DetailedTargetResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - treatment_plan
      summary: Delete Last Target Stage Change
      operationId: delete_last_target_stage_change_api_v1_treatment_plans__treatment_plan_id__goals__goal_id__targets__target_id__change_stage__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      - name: goal_id
        in: path
        required: true
        schema:
          type: integer
          title: Goal Id
      - name: target_id
        in: path
        required: true
        schema:
          type: integer
          title: Target Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DetailedTargetResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - treatment_plan
      summary: Update Last Target Stage Change
      operationId: update_last_target_stage_change_api_v1_treatment_plans__treatment_plan_id__goals__goal_id__targets__target_id__change_stage__patch
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      - name: goal_id
        in: path
        required: true
        schema:
          type: integer
          title: Goal Id
      - name: target_id
        in: path
        required: true
        schema:
          type: integer
          title: Target Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTargetStageChange'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DetailedTargetResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/treatment_plans/{treatment_plan_id}/goals/{goal_id}/targets/bulk_change_stage/:
    put:
      tags:
      - treatment_plan
      summary: Change Target Stage In Bulk
      operationId: change_target_stage_in_bulk_api_v1_treatment_plans__treatment_plan_id__goals__goal_id__targets_bulk_change_stage__put
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      - name: goal_id
        in: path
        required: true
        schema:
          type: integer
          title: Goal Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkTargetStageChange'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoalResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/treatment_plans/{treatment_plan_id}/assessments/:
    post:
      tags:
      - treatment_plan
      summary: Create Assessment
      operationId: create_assessment_api_v1_treatment_plans__treatment_plan_id__assessments__post
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssessmentCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssessmentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - treatment_plan
      summary: Read Assessment
      operationId: read_assessment_api_v1_treatment_plans__treatment_plan_id__assessments__get
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/AssessmentResponse'
                - type: object
                  additionalProperties: true
                title: Response Read Assessment Api V1 Treatment Plans  Treatment Plan Id  Assessments  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/treatment_plans/{treatment_plan_id}/assessments/{assessment_id}/:
    patch:
      tags:
      - treatment_plan
      summary: Patch Assessment
      operationId: patch_assessment_api_v1_treatment_plans__treatment_plan_id__assessments__assessment_id___patch
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      - name: assessment_id
        in: path
        required: true
        schema:
          type: integer
          title: Assessment Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssessmentCreate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssessmentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - treatment_plan
      summary: Delete Assessment
      operationId: delete_assessment_api_v1_treatment_plans__treatment_plan_id__assessments__assessment_id___delete
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      - name: assessment_id
        in: path
        required: true
        schema:
          type: integer
          title: Assessment Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/treatment_plans/{treatment_plan_id}/assessments/{assessment_id}/tools/:
    post:
      tags:
      - treatment_plan
      summary: Create Assessment Tool
      operationId: create_assessment_tool_api_v1_treatment_plans__treatment_plan_id__assessments__assessment_id__tools__post
      security:
      - HTTPBearer: []
      parameters:
      - name: treatment_plan_id
        in: path
        required: true
        schema:
          type: integer
          title: Treatment Plan Id
      - name: assessment_id
        in: path
        required: true
     

# --- truncated at 32 KB (236 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/forta-health/refs/heads/main/openapi/forta-health-treatment-plan-api-openapi.yml