{
  "contractVersion": "harness.catalyst-notebook.http-exchange.v1",
  "request": {
    "method": "POST",
    "path": "/v1/catalyst/workbench/versions/cc635f9b-7a9c-4b4f-a6a3-0bf2c742ba21/execute",
    "body": {
      "contractVersion": "catalyst.workbench.execute.request.v1",
      "versionId": "cc635f9b-7a9c-4b4f-a6a3-0bf2c742ba21",
      "queryDigest": "fd774c2250223a39d4f5e39e17ebf2633be7ac38dc836e87f94ef4ee578c9874",
      "idempotencyKey": "harness-notebook-721ac207-972f-4c34-83de-6ac625f33a07"
    }
  },
  "response": {
    "httpStatus": 200,
    "body": {
      "contractVersion": "catalyst.workbench.execution.v1",
      "queryDigest": "fd774c2250223a39d4f5e39e17ebf2633be7ac38dc836e87f94ef4ee578c9874",
      "idempotencyKey": "harness-notebook-721ac207-972f-4c34-83de-6ac625f33a07",
      "validationStatus": "valid",
      "query": {
        "sql": "SELECT encounter_type, COUNT(*) AS count FROM analytics.hiv_visit_fact_v1 GROUP BY encounter_type",
        "parameters": []
      },
      "statementTimeoutMs": 10000,
      "maxRows": 100,
      "replayed": false,
      "status": "succeeded",
      "result": {
        "columns": [
          {
            "ordinal": 0,
            "name": "encounter_type",
            "databaseType": "text",
            "typeOid": 25,
            "logicalType": "string"
          },
          {
            "ordinal": 1,
            "name": "count",
            "databaseType": "int8",
            "typeOid": 20,
            "logicalType": "integer"
          }
        ],
        "rows": [
          [
            {
              "type": "string",
              "value": "Vitals"
            },
            {
              "type": "integer",
              "value": 4
            }
          ],
          [
            {
              "type": "string",
              "value": "Adult Visit"
            },
            {
              "type": "integer",
              "value": 13369
            }
          ],
          [
            {
              "type": "string",
              "value": "Group Session"
            },
            {
              "type": "integer",
              "value": 2
            }
          ],
          [
            {
              "type": "string",
              "value": "Lab Results"
            },
            {
              "type": "integer",
              "value": 2
            }
          ],
          [
            {
              "type": "string",
              "value": "Attachment Upload"
            },
            {
              "type": "integer",
              "value": 6
            }
          ],
          [
            {
              "type": "string",
              "value": "Home Visit"
            },
            {
              "type": "integer",
              "value": 2
            }
          ],
          [
            {
              "type": "string",
              "value": "Consultation"
            },
            {
              "type": "integer",
              "value": 2
            }
          ],
          [
            {
              "type": "string",
              "value": "Facility Visit"
            },
            {
              "type": "integer",
              "value": 938
            }
          ],
          [
            {
              "type": "string",
              "value": "OPD Visit"
            },
            {
              "type": "integer",
              "value": 13310
            }
          ],
          [
            {
              "type": "string",
              "value": "Check In"
            },
            {
              "type": "integer",
              "value": 941
            }
          ],
          [
            {
              "type": "string",
              "value": "Visit Note"
            },
            {
              "type": "integer",
              "value": 4
            }
          ]
        ],
        "rowCount": {
          "returned": 11,
          "truncated": false,
          "truncationReason": null
        },
        "warnings": []
      },
      "durationMs": 53,
      "executionId": "6538d6bd-7b6b-4189-8fde-d030c4ecb811",
      "sessionId": "bf85ac3a-7a0f-4966-8dfb-242b5e85018c",
      "versionId": "cc635f9b-7a9c-4b4f-a6a3-0bf2c742ba21",
      "ordinal": 2,
      "completedAt": "2026-08-25T00:41:16.418316Z"
    }
  },
  "elapsedMs": 76
}
