{
  "x402Version": 2,
  "id": 39331,
  "slug": "39331",
  "resource": "https://api.magentlab.com/api/calc/bars",
  "description": "Swift 2002 Behavioural Activity Rating Scale (BARS): caller-assigned integer 1-7 (difficult or unable to rouse; asleep but responds normally to verbal or physical contact; drowsy, appears sedated; quiet and awake, normal activity; signs of overt physical or verbal activity, calms with instructions; extremely or continuously active, not requiring restraint; violent, requires restraint). Returns score, max 7, and a stable label. Not RASS and not a diagnosis. magent does not observe the patient.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "bars": 4
              },
              {
                "bars": 4
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "bars": 4,
                "bars_label": "quiet_and_awake",
                "citation": {
                  "authors": "Swift RH, Harrigan EP, Cappelleri JC, Kramer D, Chandler LP",
                  "doi": "10.1016/s0022-3956(01)00052-8",
                  "id": "swift-2002",
                  "pmid": "11777497",
                  "source": "J Psychiatr Res. 2002;36(2):87-95",
                  "title": "Validation of the Behavioural Activity Rating Scale (BARS): a novel measure of activity in agitated patients"
                },
                "components": [
                  {
                    "factor": "bars",
                    "points": 4,
                    "present": true
                  }
                ],
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "formula": "bars",
                "formula_expression": "BARS = caller-assigned integer 1, 2, 3, 4, 5, 6, or 7 (Swift 2002); max 7",
                "max_score": 7,
                "score": 4
              },
              {
                "bars": 4,
                "bars_label": "quiet_and_awake",
                "citation": {
                  "authors": "Swift RH, Harrigan EP, Cappelleri JC, Kramer D, Chandler LP",
                  "doi": "10.1016/s0022-3956(01)00052-8",
                  "id": "swift-2002",
                  "pmid": "11777497",
                  "source": "J Psychiatr Res. 2002;36(2):87-95",
                  "title": "Validation of the Behavioural Activity Rating Scale (BARS): a novel measure of activity in agitated patients"
                },
                "components": [
                  {
                    "factor": "bars",
                    "points": 4,
                    "present": true
                  }
                ],
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "formula": "bars",
                "formula_expression": "BARS = caller-assigned integer 1, 2, 3, 4, 5, 6, or 7 (Swift 2002); max 7",
                "max_score": 7,
                "score": 4
              }
            ],
            "path": "/api/calc/bars"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "bars": {
                          "description": "Swift 2002 Behavioural Activity Rating Scale integer 1, 2, 3, 4, 5, 6, or 7 as assigned by the caller (1 difficult or unable to rouse; 2 asleep but responds normally to verbal or physical contact; 3 drowsy, appears sedated; 4 quiet and awake, normal level of activity; 5 signs of overt physical or verbal activity, calms with instructions; 6 extremely or continuously active, not requiring restraint; 7 violent, requires restraint). magent does not observe the patient.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "bars"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bars",
    "agitation",
    "activity",
    "emergency",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T23:06:56.526Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T23:06:56.282Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "bars": 4
                },
                {
                  "bars": 4
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "bars": 4,
                  "bars_label": "quiet_and_awake",
                  "citation": {
                    "authors": "Swift RH, Harrigan EP, Cappelleri JC, Kramer D, Chandler LP",
                    "doi": "10.1016/s0022-3956(01)00052-8",
                    "id": "swift-2002",
                    "pmid": "11777497",
                    "source": "J Psychiatr Res. 2002;36(2):87-95",
                    "title": "Validation of the Behavioural Activity Rating Scale (BARS): a novel measure of activity in agitated patients"
                  },
                  "components": [
                    {
                      "factor": "bars",
                      "points": 4,
                      "present": true
                    }
                  ],
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "formula": "bars",
                  "formula_expression": "BARS = caller-assigned integer 1, 2, 3, 4, 5, 6, or 7 (Swift 2002); max 7",
                  "max_score": 7,
                  "score": 4
                },
                {
                  "bars": 4,
                  "bars_label": "quiet_and_awake",
                  "citation": {
                    "authors": "Swift RH, Harrigan EP, Cappelleri JC, Kramer D, Chandler LP",
                    "doi": "10.1016/s0022-3956(01)00052-8",
                    "id": "swift-2002",
                    "pmid": "11777497",
                    "source": "J Psychiatr Res. 2002;36(2):87-95",
                    "title": "Validation of the Behavioural Activity Rating Scale (BARS): a novel measure of activity in agitated patients"
                  },
                  "components": [
                    {
                      "factor": "bars",
                      "points": 4,
                      "present": true
                    }
                  ],
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "formula": "bars",
                  "formula_expression": "BARS = caller-assigned integer 1, 2, 3, 4, 5, 6, or 7 (Swift 2002); max 7",
                  "max_score": 7,
                  "score": 4
                }
              ],
              "path": "/api/calc/bars"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "bars": {
                            "description": "Swift 2002 Behavioural Activity Rating Scale integer 1, 2, 3, 4, 5, 6, or 7 as assigned by the caller (1 difficult or unable to rouse; 2 asleep but responds normally to verbal or physical contact; 3 drowsy, appears sedated; 4 quiet and awake, normal level of activity; 5 signs of overt physical or verbal activity, calms with instructions; 6 extremely or continuously active, not requiring restraint; 7 violent, requires restraint). magent does not observe the patient.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "bars"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}