---
title: "Post Preop Retier Compute"
method: POST
path: "/api/triage/preop-retier/compute"
tags: ["preop-retier"]
---

# Post Preop Retier Compute

`POST /api/triage/preop-retier/compute`

## Request

- Base URL: `https://app.archangelhealth.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.archangelhealth.ai/api/triage/preop-retier/compute`
- Auth: none declared

Stateless preview — no persistence, no events. Pass-4 PRD §3.2
treats `compute` as a clinical write surface so NP/PA is blocked.

## Headers

- `authorization` string, nullable

## Request body

- PreOpReTierInput: The full input the re-tier algorithm consumes — all five signal sources plus the initial-tier anchor (PRD §3).
  - `initial_tier` 'TIER_1' | 'TIER_2' | 'TIER_3', required
  - `initial_tier_was_hard_escalator` boolean, required
  - `hours_until_surgery` integer, required
  - `pam` PamResult: Output of `score_pam` (PRD §4.2). Stored on `PamAssessment` in v1+.
    - `raw_sum` integer, required
    - `items_scored` integer, required
    - `raw_average` number, required
    - `activation_score` number, required
    - `level` 'LOW' | 'MODERATE' | 'HIGH', required
    - `is_complete` boolean, required
    - `completed_at_hours` integer, nullable
  - `intake` IntakeState: Live state of the intake interview at re-tier compute time.
    - `status` 'NOT_REQUIRED' | 'NOT_STARTED' | 'STARTED' | 'COMPLETE'
    - `started_at_hours` integer, nullable
    - `completed_at_hours` integer, nullable
    - `disclosures` string[]
  - `surveys` SurveyWindowState[]
    - `window` 'T_96' | 'T_48' | 'T_24', required
    - `status` 'PENDING' | 'GREEN' | 'ORANGE' | 'RED' | 'MISSED'
    - `has_critical_red_flag` boolean
  - `video` VideoEngagement: Pre-op video engagement state (PRD §6.1).
    - `sessions` integer[]
  - `battle_card` BattleCardEngagement: Battle-card engagement state (PRD §6.2).
    - `views` integer[]
  - `teachback_completed` boolean
  - `teachback_failed_med_hold` boolean
  - `teachback_failed_fasting` boolean
  - `teachback_failed_critical` boolean
  - `teachback_not_completed_by_t24` boolean
  - `teachback_passed_all` boolean

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/archangelhealth/apis/archangel-health-surgical-patient-platform.md) - [All operations](https://skmtc.dev/archangelhealth/apis/archangel-health-surgical-patient-platform/llms.txt) - [OpenAPI document](https://skmtc.dev/archangelhealth/apis/archangel-health-surgical-patient-platform/revisions/3514f4e119da?raw)
