{
  "x402Version": 2,
  "id": 39259,
  "slug": "39259",
  "resource": "https://api.magentlab.com/api/calc/cart",
  "description": "CART integer score from Churpek 2012 Table 3 (beta x 9): maximum respiratory rate, maximum heart rate, minimum diastolic BP, and age, summed to 0-57. magent does not measure vitals; the caller assigns the numbers. Deterministic published arithmetic with citation; not a cardiac-arrest diagnosis and not an RRT order. Does not return risk-band percents.",
  "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": [
              {
                "age": 40,
                "diastolic_mm_hg": 80,
                "heart_rate_bpm": 80,
                "respiratory_rate": 20
              },
              {
                "age": 40,
                "diastolic_mm_hg": 80,
                "heart_rate_bpm": 80,
                "respiratory_rate": 20
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age": 40,
                "citation": {
                  "authors": "Churpek MM, Yuen TC, Park SY, Meltzer DO, Hall JB, Edelson DP",
                  "doi": "10.1097/CCM.0b013e318250aa5a",
                  "id": "churpek-2012",
                  "pmid": "22584764",
                  "source": "Crit Care Med. 2012;40(7):2102-2108",
                  "title": "Derivation of a Cardiac Arrest Prediction Model Using Ward Vital Signs"
                },
                "components": [
                  {
                    "factor": "respiratory_rate",
                    "points": 0,
                    "present": false,
                    "value": 20
                  },
                  {
                    "factor": "heart_rate_bpm",
                    "points": 0,
                    "present": false,
                    "value": 80
                  },
                  {
                    "factor": "diastolic_mm_hg",
                    "points": 0,
                    "present": false,
                    "value": 80
                  },
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 40
                  }
                ],
                "diastolic_mm_hg": 80,
                "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": "cart",
                "formula_expression": "CART = rr_points + hr_points + dbp_points + age_points; Churpek 2012 Table 3 integer score (beta x 9); max 57",
                "heart_rate_bpm": 80,
                "max_score": 57,
                "respiratory_rate": 20,
                "score": 0
              },
              {
                "age": 40,
                "citation": {
                  "authors": "Churpek MM, Yuen TC, Park SY, Meltzer DO, Hall JB, Edelson DP",
                  "doi": "10.1097/CCM.0b013e318250aa5a",
                  "id": "churpek-2012",
                  "pmid": "22584764",
                  "source": "Crit Care Med. 2012;40(7):2102-2108",
                  "title": "Derivation of a Cardiac Arrest Prediction Model Using Ward Vital Signs"
                },
                "components": [
                  {
                    "factor": "respiratory_rate",
                    "points": 0,
                    "present": false,
                    "value": 20
                  },
                  {
                    "factor": "heart_rate_bpm",
                    "points": 0,
                    "present": false,
                    "value": 80
                  },
                  {
                    "factor": "diastolic_mm_hg",
                    "points": 0,
                    "present": false,
                    "value": 80
                  },
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 40
                  }
                ],
                "diastolic_mm_hg": 80,
                "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": "cart",
                "formula_expression": "CART = rr_points + hr_points + dbp_points + age_points; Churpek 2012 Table 3 integer score (beta x 9); max 57",
                "heart_rate_bpm": 80,
                "max_score": 57,
                "respiratory_rate": 20,
                "score": 0
              }
            ],
            "path": "/api/calc/cart"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "age": {
                          "description": "Age in years (integer 18-120). Churpek 2012 Table 3: <55 → 0, 55-69 → 4, >69 → 9. magent does not assign age.",
                          "type": "integer"
                        },
                        "diastolic_mm_hg": {
                          "description": "Minimum diastolic blood pressure in mm Hg (integer 20-160). Churpek 2012 Table 3: >49 → 0, 40-49 → 4, 35-39 → 6, <35 → 13. magent does not measure vitals; the caller assigns the number.",
                          "type": "integer"
                        },
                        "heart_rate_bpm": {
                          "description": "Maximum heart rate in beats/min (integer 30-220). Churpek 2012 Table 3: <110 → 0, 110-139 → 4, >139 → 13. magent does not measure vitals; the caller assigns the number.",
                          "type": "integer"
                        },
                        "respiratory_rate": {
                          "description": "Maximum respiratory rate in breaths/min (integer 0-80). Churpek 2012 Table 3: <21 → 0, 21-23 → 8, 24-25 → 12, 26-29 → 15, >29 → 22. magent does not measure vitals; the caller assigns the number.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "respiratory_rate",
                        "heart_rate_bpm",
                        "diastolic_mm_hg",
                        "age"
                      ],
                      "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": [
    "cart",
    "cardiac-arrest",
    "emergency",
    "early-warning",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T01:16:02.055Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T01:16:01.929Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 40,
                  "diastolic_mm_hg": 80,
                  "heart_rate_bpm": 80,
                  "respiratory_rate": 20
                },
                {
                  "age": 40,
                  "diastolic_mm_hg": 80,
                  "heart_rate_bpm": 80,
                  "respiratory_rate": 20
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age": 40,
                  "citation": {
                    "authors": "Churpek MM, Yuen TC, Park SY, Meltzer DO, Hall JB, Edelson DP",
                    "doi": "10.1097/CCM.0b013e318250aa5a",
                    "id": "churpek-2012",
                    "pmid": "22584764",
                    "source": "Crit Care Med. 2012;40(7):2102-2108",
                    "title": "Derivation of a Cardiac Arrest Prediction Model Using Ward Vital Signs"
                  },
                  "components": [
                    {
                      "factor": "respiratory_rate",
                      "points": 0,
                      "present": false,
                      "value": 20
                    },
                    {
                      "factor": "heart_rate_bpm",
                      "points": 0,
                      "present": false,
                      "value": 80
                    },
                    {
                      "factor": "diastolic_mm_hg",
                      "points": 0,
                      "present": false,
                      "value": 80
                    },
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 40
                    }
                  ],
                  "diastolic_mm_hg": 80,
                  "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": "cart",
                  "formula_expression": "CART = rr_points + hr_points + dbp_points + age_points; Churpek 2012 Table 3 integer score (beta x 9); max 57",
                  "heart_rate_bpm": 80,
                  "max_score": 57,
                  "respiratory_rate": 20,
                  "score": 0
                },
                {
                  "age": 40,
                  "citation": {
                    "authors": "Churpek MM, Yuen TC, Park SY, Meltzer DO, Hall JB, Edelson DP",
                    "doi": "10.1097/CCM.0b013e318250aa5a",
                    "id": "churpek-2012",
                    "pmid": "22584764",
                    "source": "Crit Care Med. 2012;40(7):2102-2108",
                    "title": "Derivation of a Cardiac Arrest Prediction Model Using Ward Vital Signs"
                  },
                  "components": [
                    {
                      "factor": "respiratory_rate",
                      "points": 0,
                      "present": false,
                      "value": 20
                    },
                    {
                      "factor": "heart_rate_bpm",
                      "points": 0,
                      "present": false,
                      "value": 80
                    },
                    {
                      "factor": "diastolic_mm_hg",
                      "points": 0,
                      "present": false,
                      "value": 80
                    },
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 40
                    }
                  ],
                  "diastolic_mm_hg": 80,
                  "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": "cart",
                  "formula_expression": "CART = rr_points + hr_points + dbp_points + age_points; Churpek 2012 Table 3 integer score (beta x 9); max 57",
                  "heart_rate_bpm": 80,
                  "max_score": 57,
                  "respiratory_rate": 20,
                  "score": 0
                }
              ],
              "path": "/api/calc/cart"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "age": {
                            "description": "Age in years (integer 18-120). Churpek 2012 Table 3: <55 → 0, 55-69 → 4, >69 → 9. magent does not assign age.",
                            "type": "integer"
                          },
                          "diastolic_mm_hg": {
                            "description": "Minimum diastolic blood pressure in mm Hg (integer 20-160). Churpek 2012 Table 3: >49 → 0, 40-49 → 4, 35-39 → 6, <35 → 13. magent does not measure vitals; the caller assigns the number.",
                            "type": "integer"
                          },
                          "heart_rate_bpm": {
                            "description": "Maximum heart rate in beats/min (integer 30-220). Churpek 2012 Table 3: <110 → 0, 110-139 → 4, >139 → 13. magent does not measure vitals; the caller assigns the number.",
                            "type": "integer"
                          },
                          "respiratory_rate": {
                            "description": "Maximum respiratory rate in breaths/min (integer 0-80). Churpek 2012 Table 3: <21 → 0, 21-23 → 8, 24-25 → 12, 26-29 → 15, >29 → 22. magent does not measure vitals; the caller assigns the number.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "respiratory_rate",
                          "heart_rate_bpm",
                          "diastolic_mm_hg",
                          "age"
                        ],
                        "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"
  }
}