{
  "x402Version": 2,
  "id": 39244,
  "slug": "39244",
  "resource": "https://api.magentlab.com/api/calc/cheops",
  "description": "McGrath 1985 CHEOPS from six caller-assigned observational categories (cry 1-3; facial 0-2; child_verbal 0-2; torso, touch, and legs 1-2). magent sums only (published range 4-13) and does not observe the child. No invented analgesic cutoffs. Not a pain diagnosis or analgesic order. Not FLACC. Not BOPS.",
  "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": [
              {
                "child_verbal": 0,
                "cry": 1,
                "facial": 0,
                "legs": 1,
                "torso": 1,
                "touch": 1
              },
              {
                "child_verbal": 0,
                "cry": 1,
                "facial": 0,
                "legs": 1,
                "torso": 1,
                "touch": 1
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "child_verbal": 0,
                "citation": {
                  "authors": "McGrath PJ, Johnson G, Goodman JT, Schillinger J, Dunn J, Chapman J",
                  "doi": "10.1016/0304-3959(84)90167-2",
                  "id": "mcgrath-1985",
                  "source": "In: Fields HL, ed. Advances in Pain Research and Therapy. Vol 9. New York: Raven Press; 1985:395-402",
                  "title": "CHEOPS: a behavioral scale for rating postoperative pain in children"
                },
                "components": [
                  {
                    "factor": "cry",
                    "points": 1,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "facial",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "child_verbal",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "torso",
                    "points": 1,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "touch",
                    "points": 1,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "legs",
                    "points": 1,
                    "present": true,
                    "value": 1
                  }
                ],
                "cry": 1,
                "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.",
                "facial": 0,
                "formula": "cheops",
                "formula_expression": "CHEOPS = cry + facial + child_verbal + torso + touch + legs; McGrath 1985 published integers; min 4, max 13",
                "legs": 1,
                "max_score": 13,
                "score": 4,
                "torso": 1,
                "touch": 1
              },
              {
                "child_verbal": 0,
                "citation": {
                  "authors": "McGrath PJ, Johnson G, Goodman JT, Schillinger J, Dunn J, Chapman J",
                  "doi": "10.1016/0304-3959(84)90167-2",
                  "id": "mcgrath-1985",
                  "source": "In: Fields HL, ed. Advances in Pain Research and Therapy. Vol 9. New York: Raven Press; 1985:395-402",
                  "title": "CHEOPS: a behavioral scale for rating postoperative pain in children"
                },
                "components": [
                  {
                    "factor": "cry",
                    "points": 1,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "facial",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "child_verbal",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "torso",
                    "points": 1,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "touch",
                    "points": 1,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "legs",
                    "points": 1,
                    "present": true,
                    "value": 1
                  }
                ],
                "cry": 1,
                "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.",
                "facial": 0,
                "formula": "cheops",
                "formula_expression": "CHEOPS = cry + facial + child_verbal + torso + touch + legs; McGrath 1985 published integers; min 4, max 13",
                "legs": 1,
                "max_score": 13,
                "score": 4,
                "torso": 1,
                "touch": 1
              }
            ],
            "path": "/api/calc/cheops"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "child_verbal": {
                          "description": "Caller-assigned McGrath 1985 CHEOPS child verbal (integer 0-2): 0 positive statements; 1 none or other non-pain complaints; 2 pain complaints (both-complaints also 2; there is no published 3). magent does not observe the child.",
                          "type": "integer"
                        },
                        "cry": {
                          "description": "Caller-assigned McGrath 1985 CHEOPS cry (integer 1-3; 0 is not published): 1 no crying; 2 moaning or crying; 3 scream. magent does not observe the child.",
                          "type": "integer"
                        },
                        "facial": {
                          "description": "Caller-assigned McGrath 1985 CHEOPS facial (integer 0-2): 0 smiling; 1 composed/neutral; 2 grimace. magent does not observe the child.",
                          "type": "integer"
                        },
                        "legs": {
                          "description": "Caller-assigned McGrath 1985 CHEOPS legs (integer 1-2; 0 is not published): 1 neutral; 2 squirm/kicking, drawn up/tense, standing, or restrained. magent does not observe the child.",
                          "type": "integer"
                        },
                        "torso": {
                          "description": "Caller-assigned McGrath 1985 CHEOPS torso (integer 1-2; 0 is not published): 1 neutral/resting; 2 shifting, tense, shivering, upright, or restrained. magent does not observe the child.",
                          "type": "integer"
                        },
                        "touch": {
                          "description": "Caller-assigned McGrath 1985 CHEOPS touch (integer 1-2; 0 is not published): 1 not touching wound; 2 reaching, touching, grabbing, or arms restrained. magent does not observe the child.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "cry",
                        "facial",
                        "child_verbal",
                        "torso",
                        "touch",
                        "legs"
                      ],
                      "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": [
    "cheops",
    "pain",
    "pediatric",
    "emergency",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T01:46:15.067Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T01:46:14.884Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "child_verbal": 0,
                  "cry": 1,
                  "facial": 0,
                  "legs": 1,
                  "torso": 1,
                  "touch": 1
                },
                {
                  "child_verbal": 0,
                  "cry": 1,
                  "facial": 0,
                  "legs": 1,
                  "torso": 1,
                  "touch": 1
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "child_verbal": 0,
                  "citation": {
                    "authors": "McGrath PJ, Johnson G, Goodman JT, Schillinger J, Dunn J, Chapman J",
                    "doi": "10.1016/0304-3959(84)90167-2",
                    "id": "mcgrath-1985",
                    "source": "In: Fields HL, ed. Advances in Pain Research and Therapy. Vol 9. New York: Raven Press; 1985:395-402",
                    "title": "CHEOPS: a behavioral scale for rating postoperative pain in children"
                  },
                  "components": [
                    {
                      "factor": "cry",
                      "points": 1,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "facial",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "child_verbal",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "torso",
                      "points": 1,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "touch",
                      "points": 1,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "legs",
                      "points": 1,
                      "present": true,
                      "value": 1
                    }
                  ],
                  "cry": 1,
                  "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.",
                  "facial": 0,
                  "formula": "cheops",
                  "formula_expression": "CHEOPS = cry + facial + child_verbal + torso + touch + legs; McGrath 1985 published integers; min 4, max 13",
                  "legs": 1,
                  "max_score": 13,
                  "score": 4,
                  "torso": 1,
                  "touch": 1
                },
                {
                  "child_verbal": 0,
                  "citation": {
                    "authors": "McGrath PJ, Johnson G, Goodman JT, Schillinger J, Dunn J, Chapman J",
                    "doi": "10.1016/0304-3959(84)90167-2",
                    "id": "mcgrath-1985",
                    "source": "In: Fields HL, ed. Advances in Pain Research and Therapy. Vol 9. New York: Raven Press; 1985:395-402",
                    "title": "CHEOPS: a behavioral scale for rating postoperative pain in children"
                  },
                  "components": [
                    {
                      "factor": "cry",
                      "points": 1,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "facial",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "child_verbal",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "torso",
                      "points": 1,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "touch",
                      "points": 1,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "legs",
                      "points": 1,
                      "present": true,
                      "value": 1
                    }
                  ],
                  "cry": 1,
                  "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.",
                  "facial": 0,
                  "formula": "cheops",
                  "formula_expression": "CHEOPS = cry + facial + child_verbal + torso + touch + legs; McGrath 1985 published integers; min 4, max 13",
                  "legs": 1,
                  "max_score": 13,
                  "score": 4,
                  "torso": 1,
                  "touch": 1
                }
              ],
              "path": "/api/calc/cheops"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "child_verbal": {
                            "description": "Caller-assigned McGrath 1985 CHEOPS child verbal (integer 0-2): 0 positive statements; 1 none or other non-pain complaints; 2 pain complaints (both-complaints also 2; there is no published 3). magent does not observe the child.",
                            "type": "integer"
                          },
                          "cry": {
                            "description": "Caller-assigned McGrath 1985 CHEOPS cry (integer 1-3; 0 is not published): 1 no crying; 2 moaning or crying; 3 scream. magent does not observe the child.",
                            "type": "integer"
                          },
                          "facial": {
                            "description": "Caller-assigned McGrath 1985 CHEOPS facial (integer 0-2): 0 smiling; 1 composed/neutral; 2 grimace. magent does not observe the child.",
                            "type": "integer"
                          },
                          "legs": {
                            "description": "Caller-assigned McGrath 1985 CHEOPS legs (integer 1-2; 0 is not published): 1 neutral; 2 squirm/kicking, drawn up/tense, standing, or restrained. magent does not observe the child.",
                            "type": "integer"
                          },
                          "torso": {
                            "description": "Caller-assigned McGrath 1985 CHEOPS torso (integer 1-2; 0 is not published): 1 neutral/resting; 2 shifting, tense, shivering, upright, or restrained. magent does not observe the child.",
                            "type": "integer"
                          },
                          "touch": {
                            "description": "Caller-assigned McGrath 1985 CHEOPS touch (integer 1-2; 0 is not published): 1 not touching wound; 2 reaching, touching, grabbing, or arms restrained. magent does not observe the child.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "cry",
                          "facial",
                          "child_verbal",
                          "torso",
                          "touch",
                          "legs"
                        ],
                        "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"
  }
}