{
  "x402Version": 2,
  "id": 38972,
  "slug": "38972",
  "resource": "https://api.magentlab.com/api/calc/pecarn_cspine",
  "description": "PECARN pediatric C-spine (Leonard 2024). No age split. High (consider CT) if GCS 3-8 or AVPU U; abnormal airway, breathing, or circulation; or focal neurologic deficit. Else intermediate (consider x-rays) if neck pain; AMS GCS 9-14; substantial head or torso injury; or midline neck tenderness. Else low (consider clinical clearance). High-risk beats intermediate. Not NEXUS, Canadian C-spine, PECARN head, or PECARN IAI. Not a medical device. magent does not examine 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": [
              {
                "abnormal_airway_breathing_or_circulation": false,
                "altered_mental_status_gcs_9_to_14": false,
                "focal_neurologic_deficit": false,
                "gcs_3_to_8_or_avpu_u": false,
                "midline_neck_tenderness": false,
                "neck_pain": false,
                "substantial_head_injury": false,
                "substantial_torso_injury": false
              },
              {
                "abnormal_airway_breathing_or_circulation": false,
                "altered_mental_status_gcs_9_to_14": false,
                "focal_neurologic_deficit": false,
                "gcs_3_to_8_or_avpu_u": false,
                "midline_neck_tenderness": false,
                "neck_pain": false,
                "substantial_head_injury": false,
                "substantial_torso_injury": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Leonard JC, Harding M, Cook LJ, et al.",
                  "doi": "10.1016/S2352-4642(24)00104-4",
                  "id": "leonard-2024",
                  "pmid": "38843852",
                  "source": "Lancet Child Adolesc Health. 2024;8(7):482-490",
                  "title": "PECARN prediction rule for cervical spine imaging of children presenting to the emergency department with blunt trauma: a multicentre prospective observational study"
                },
                "consider_clinical_clearance": true,
                "consider_ct": false,
                "consider_xray": false,
                "criteria": [
                  {
                    "factor": "gcs_3_to_8_or_avpu_u",
                    "met": false
                  },
                  {
                    "factor": "abnormal_airway_breathing_or_circulation",
                    "met": false
                  },
                  {
                    "factor": "focal_neurologic_deficit",
                    "met": false
                  },
                  {
                    "factor": "neck_pain",
                    "met": false
                  },
                  {
                    "factor": "altered_mental_status_gcs_9_to_14",
                    "met": false
                  },
                  {
                    "factor": "substantial_head_injury",
                    "met": false
                  },
                  {
                    "factor": "substantial_torso_injury",
                    "met": false
                  },
                  {
                    "factor": "midline_neck_tenderness",
                    "met": false
                  }
                ],
                "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": "pecarn_cspine",
                "formula_expression": "high if any high-risk factor (gcs_3_to_8_or_avpu_u, abnormal_airway_breathing_or_circulation, or focal_neurologic_deficit), else intermediate if any CART non-negligible factor (neck_pain, altered_mental_status_gcs_9_to_14, substantial_head_injury, substantial_torso_injury, or midline_neck_tenderness), else low; high-risk beats intermediate; no age split (Leonard 2024)",
                "risk_tier": "low"
              },
              {
                "citation": {
                  "authors": "Leonard JC, Harding M, Cook LJ, et al.",
                  "doi": "10.1016/S2352-4642(24)00104-4",
                  "id": "leonard-2024",
                  "pmid": "38843852",
                  "source": "Lancet Child Adolesc Health. 2024;8(7):482-490",
                  "title": "PECARN prediction rule for cervical spine imaging of children presenting to the emergency department with blunt trauma: a multicentre prospective observational study"
                },
                "consider_clinical_clearance": true,
                "consider_ct": false,
                "consider_xray": false,
                "criteria": [
                  {
                    "factor": "gcs_3_to_8_or_avpu_u",
                    "met": false
                  },
                  {
                    "factor": "abnormal_airway_breathing_or_circulation",
                    "met": false
                  },
                  {
                    "factor": "focal_neurologic_deficit",
                    "met": false
                  },
                  {
                    "factor": "neck_pain",
                    "met": false
                  },
                  {
                    "factor": "altered_mental_status_gcs_9_to_14",
                    "met": false
                  },
                  {
                    "factor": "substantial_head_injury",
                    "met": false
                  },
                  {
                    "factor": "substantial_torso_injury",
                    "met": false
                  },
                  {
                    "factor": "midline_neck_tenderness",
                    "met": false
                  }
                ],
                "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": "pecarn_cspine",
                "formula_expression": "high if any high-risk factor (gcs_3_to_8_or_avpu_u, abnormal_airway_breathing_or_circulation, or focal_neurologic_deficit), else intermediate if any CART non-negligible factor (neck_pain, altered_mental_status_gcs_9_to_14, substantial_head_injury, substantial_torso_injury, or midline_neck_tenderness), else low; high-risk beats intermediate; no age split (Leonard 2024)",
                "risk_tier": "low"
              }
            ],
            "path": "/api/calc/pecarn_cspine"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "abnormal_airway_breathing_or_circulation": {
                          "description": "Abnormal airway, breathing, or circulation as assigned by the caller (Leonard 2024 high-risk). true or false. High-risk; consider CT when any high-risk factor is true. magent does not examine airway, breathing, or circulation.",
                          "type": "boolean"
                        },
                        "altered_mental_status_gcs_9_to_14": {
                          "description": "Altered mental status as GCS 9-14, AVPU V or P, or other AMS (not the high-risk U / GCS 3-8 flag) as assigned by the caller (Leonard 2024 CART non-negligible / intermediate). true or false. magent does not take a GCS integer or AVPU letter.",
                          "type": "boolean"
                        },
                        "focal_neurologic_deficit": {
                          "description": "Focal neurologic deficit (paresthesia, numbness, or weakness) as assigned by the caller (Leonard 2024 high-risk). true or false. High-risk; consider CT when any high-risk factor is true. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "gcs_3_to_8_or_avpu_u": {
                          "description": "GCS 3-8 or AVPU = U as assigned by the caller (Leonard 2024 high-risk; paper: factors associated with >10% CSI). true or false. High-risk; consider CT when any high-risk factor is true. This is not the intermediate GCS 9-14 / AVPU V or P / other AMS flag. magent does not take a GCS integer or AVPU letter.",
                          "type": "boolean"
                        },
                        "midline_neck_tenderness": {
                          "description": "Midline neck tenderness as assigned by the caller (Leonard 2024 CART non-negligible / intermediate). true or false. magent does not palpate the neck.",
                          "type": "boolean"
                        },
                        "neck_pain": {
                          "description": "Self-reported neck pain as assigned by the caller (Leonard 2024 CART non-negligible / intermediate). true or false. Consider x-rays when any intermediate factor is true and no high-risk factor is true. magent does not take a pain score.",
                          "type": "boolean"
                        },
                        "substantial_head_injury": {
                          "description": "Substantial head injury as assigned by the caller (Leonard 2024 CART non-negligible / intermediate). Paper: injuries warranting inpatient observation or surgical intervention (example: skull fracture). true or false. Caller assigns the boolean; magent does not interpret imaging.",
                          "type": "boolean"
                        },
                        "substantial_torso_injury": {
                          "description": "Substantial torso injury as assigned by the caller (Leonard 2024 CART non-negligible / intermediate). Paper: injuries warranting inpatient observation or surgical intervention (examples: pneumothorax; solid-organ injury; T/L/S spine fracture; pelvic fracture). true or false. Caller assigns the boolean; magent does not interpret imaging.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "gcs_3_to_8_or_avpu_u",
                        "abnormal_airway_breathing_or_circulation",
                        "focal_neurologic_deficit",
                        "neck_pain",
                        "altered_mental_status_gcs_9_to_14",
                        "substantial_head_injury",
                        "substantial_torso_injury",
                        "midline_neck_tenderness"
                      ],
                      "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": [
    "pecarn-cspine",
    "pediatric",
    "c-spine",
    "emergency",
    "trauma",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T10:51:29.961Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T10:51:29.832Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "abnormal_airway_breathing_or_circulation": false,
                  "altered_mental_status_gcs_9_to_14": false,
                  "focal_neurologic_deficit": false,
                  "gcs_3_to_8_or_avpu_u": false,
                  "midline_neck_tenderness": false,
                  "neck_pain": false,
                  "substantial_head_injury": false,
                  "substantial_torso_injury": false
                },
                {
                  "abnormal_airway_breathing_or_circulation": false,
                  "altered_mental_status_gcs_9_to_14": false,
                  "focal_neurologic_deficit": false,
                  "gcs_3_to_8_or_avpu_u": false,
                  "midline_neck_tenderness": false,
                  "neck_pain": false,
                  "substantial_head_injury": false,
                  "substantial_torso_injury": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Leonard JC, Harding M, Cook LJ, et al.",
                    "doi": "10.1016/S2352-4642(24)00104-4",
                    "id": "leonard-2024",
                    "pmid": "38843852",
                    "source": "Lancet Child Adolesc Health. 2024;8(7):482-490",
                    "title": "PECARN prediction rule for cervical spine imaging of children presenting to the emergency department with blunt trauma: a multicentre prospective observational study"
                  },
                  "consider_clinical_clearance": true,
                  "consider_ct": false,
                  "consider_xray": false,
                  "criteria": [
                    {
                      "factor": "gcs_3_to_8_or_avpu_u",
                      "met": false
                    },
                    {
                      "factor": "abnormal_airway_breathing_or_circulation",
                      "met": false
                    },
                    {
                      "factor": "focal_neurologic_deficit",
                      "met": false
                    },
                    {
                      "factor": "neck_pain",
                      "met": false
                    },
                    {
                      "factor": "altered_mental_status_gcs_9_to_14",
                      "met": false
                    },
                    {
                      "factor": "substantial_head_injury",
                      "met": false
                    },
                    {
                      "factor": "substantial_torso_injury",
                      "met": false
                    },
                    {
                      "factor": "midline_neck_tenderness",
                      "met": false
                    }
                  ],
                  "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": "pecarn_cspine",
                  "formula_expression": "high if any high-risk factor (gcs_3_to_8_or_avpu_u, abnormal_airway_breathing_or_circulation, or focal_neurologic_deficit), else intermediate if any CART non-negligible factor (neck_pain, altered_mental_status_gcs_9_to_14, substantial_head_injury, substantial_torso_injury, or midline_neck_tenderness), else low; high-risk beats intermediate; no age split (Leonard 2024)",
                  "risk_tier": "low"
                },
                {
                  "citation": {
                    "authors": "Leonard JC, Harding M, Cook LJ, et al.",
                    "doi": "10.1016/S2352-4642(24)00104-4",
                    "id": "leonard-2024",
                    "pmid": "38843852",
                    "source": "Lancet Child Adolesc Health. 2024;8(7):482-490",
                    "title": "PECARN prediction rule for cervical spine imaging of children presenting to the emergency department with blunt trauma: a multicentre prospective observational study"
                  },
                  "consider_clinical_clearance": true,
                  "consider_ct": false,
                  "consider_xray": false,
                  "criteria": [
                    {
                      "factor": "gcs_3_to_8_or_avpu_u",
                      "met": false
                    },
                    {
                      "factor": "abnormal_airway_breathing_or_circulation",
                      "met": false
                    },
                    {
                      "factor": "focal_neurologic_deficit",
                      "met": false
                    },
                    {
                      "factor": "neck_pain",
                      "met": false
                    },
                    {
                      "factor": "altered_mental_status_gcs_9_to_14",
                      "met": false
                    },
                    {
                      "factor": "substantial_head_injury",
                      "met": false
                    },
                    {
                      "factor": "substantial_torso_injury",
                      "met": false
                    },
                    {
                      "factor": "midline_neck_tenderness",
                      "met": false
                    }
                  ],
                  "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": "pecarn_cspine",
                  "formula_expression": "high if any high-risk factor (gcs_3_to_8_or_avpu_u, abnormal_airway_breathing_or_circulation, or focal_neurologic_deficit), else intermediate if any CART non-negligible factor (neck_pain, altered_mental_status_gcs_9_to_14, substantial_head_injury, substantial_torso_injury, or midline_neck_tenderness), else low; high-risk beats intermediate; no age split (Leonard 2024)",
                  "risk_tier": "low"
                }
              ],
              "path": "/api/calc/pecarn_cspine"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "abnormal_airway_breathing_or_circulation": {
                            "description": "Abnormal airway, breathing, or circulation as assigned by the caller (Leonard 2024 high-risk). true or false. High-risk; consider CT when any high-risk factor is true. magent does not examine airway, breathing, or circulation.",
                            "type": "boolean"
                          },
                          "altered_mental_status_gcs_9_to_14": {
                            "description": "Altered mental status as GCS 9-14, AVPU V or P, or other AMS (not the high-risk U / GCS 3-8 flag) as assigned by the caller (Leonard 2024 CART non-negligible / intermediate). true or false. magent does not take a GCS integer or AVPU letter.",
                            "type": "boolean"
                          },
                          "focal_neurologic_deficit": {
                            "description": "Focal neurologic deficit (paresthesia, numbness, or weakness) as assigned by the caller (Leonard 2024 high-risk). true or false. High-risk; consider CT when any high-risk factor is true. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "gcs_3_to_8_or_avpu_u": {
                            "description": "GCS 3-8 or AVPU = U as assigned by the caller (Leonard 2024 high-risk; paper: factors associated with >10% CSI). true or false. High-risk; consider CT when any high-risk factor is true. This is not the intermediate GCS 9-14 / AVPU V or P / other AMS flag. magent does not take a GCS integer or AVPU letter.",
                            "type": "boolean"
                          },
                          "midline_neck_tenderness": {
                            "description": "Midline neck tenderness as assigned by the caller (Leonard 2024 CART non-negligible / intermediate). true or false. magent does not palpate the neck.",
                            "type": "boolean"
                          },
                          "neck_pain": {
                            "description": "Self-reported neck pain as assigned by the caller (Leonard 2024 CART non-negligible / intermediate). true or false. Consider x-rays when any intermediate factor is true and no high-risk factor is true. magent does not take a pain score.",
                            "type": "boolean"
                          },
                          "substantial_head_injury": {
                            "description": "Substantial head injury as assigned by the caller (Leonard 2024 CART non-negligible / intermediate). Paper: injuries warranting inpatient observation or surgical intervention (example: skull fracture). true or false. Caller assigns the boolean; magent does not interpret imaging.",
                            "type": "boolean"
                          },
                          "substantial_torso_injury": {
                            "description": "Substantial torso injury as assigned by the caller (Leonard 2024 CART non-negligible / intermediate). Paper: injuries warranting inpatient observation or surgical intervention (examples: pneumothorax; solid-organ injury; T/L/S spine fracture; pelvic fracture). true or false. Caller assigns the boolean; magent does not interpret imaging.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "gcs_3_to_8_or_avpu_u",
                          "abnormal_airway_breathing_or_circulation",
                          "focal_neurologic_deficit",
                          "neck_pain",
                          "altered_mental_status_gcs_9_to_14",
                          "substantial_head_injury",
                          "substantial_torso_injury",
                          "midline_neck_tenderness"
                        ],
                        "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"
  }
}