{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/predoc/json-schema/predoc-retrieval-status-resp-dto-schema.json",
  "title": "RetrievalStatusRespDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/predoc-retrieval-api-openapi.yml#/components/schemas/RetrievalStatusRespDto",
  "type": "object",
  "properties": {
    "retrievalId": {
      "type": "string",
      "description": "Manual retrieval identifier UUID.",
      "format": "uuid"
    },
    "partnerPatientId": {
      "type": "string",
      "description": "Partner patient ID that owns this retrieval.",
      "format": "uuid"
    },
    "requestId": {
      "type": "string",
      "description": "Predoc request identifier for the record request associated with this retrieval.",
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "description": "Current retrieval status."
    },
    "statusGroup": {
      "type": "string",
      "description": "Normalized retrieval status group."
    },
    "updatedAt": {
      "type": "string",
      "description": "Timestamp when the retrieval was last updated.",
      "format": "date-time"
    },
    "canClose": {
      "type": "boolean",
      "description": "Whether the retrieval can currently be closed."
    }
  },
  "required": [
    "retrievalId",
    "partnerPatientId",
    "requestId",
    "status",
    "statusGroup",
    "updatedAt",
    "canClose"
  ]
}