{
  "x402Version": 2,
  "id": 39470,
  "slug": "39470",
  "resource": "https://api.magentlab.com/api/calc/phases",
  "description": "Greving 2014 PHASES 5-year rupture risk for an unruptured intracranial aneurysm. Caller assigns population (north_america_europe 0, japanese 3, finnish 5), hypertension (1), age >=70 (1), size mm (<7 0, 7.0-9.9 3, 10.0-19.9 6, >=20 10), earlier SAH (1), and site (ica 0, mca 2, aca_pcom_posterior 4). Returns points (max 22) and grouped 5-year risk percent. Not a treatment order or PHASES of care. magent does not assign ancestry or read imaging.",
  "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": 50,
                "aneurysm_mm": 5,
                "earlier_sah": false,
                "hypertension": false,
                "population": "north_america_europe",
                "site": "ica"
              },
              {
                "age": 50,
                "aneurysm_mm": 5,
                "earlier_sah": false,
                "hypertension": false,
                "population": "north_america_europe",
                "site": "ica"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 50,
                "aneurysm_mm": 5,
                "citation": {
                  "authors": "Greving JP, Wermer MJH, Brown RD Jr, et al.",
                  "doi": "10.1016/S1474-4422(13)70263-1",
                  "id": "greving-2014",
                  "pmid": "24290159",
                  "source": "Lancet Neurol. 2014;13(1):59-66",
                  "title": "Development of the PHASES score for prediction of risk of rupture of intracranial aneurysms: a pooled analysis of six prospective cohort studies"
                },
                "components": [
                  {
                    "factor": "population",
                    "points": 0,
                    "present": true,
                    "value": "north_america_europe"
                  },
                  {
                    "factor": "hypertension",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 50
                  },
                  {
                    "factor": "aneurysm_mm",
                    "points": 0,
                    "present": true,
                    "value": 5
                  },
                  {
                    "factor": "earlier_sah",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "site",
                    "points": 0,
                    "present": true,
                    "value": "ica"
                  }
                ],
                "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.",
                "five_year_rupture_risk_percent": 0.4,
                "formula": "phases",
                "formula_expression": "PHASES = population (north_america_europe 0, japanese 3, finnish 5) + hypertension 1 + age>=70 1 + size (<7.0 0, 7.0-9.9 3, 10.0-19.9 6, >=20.0 10) + earlier_sah 1 + site (ica 0, mca 2, aca_pcom_posterior 4); max 22",
                "max_score": 22,
                "population": "north_america_europe",
                "score": 0,
                "site": "ica"
              },
              {
                "age_years": 50,
                "aneurysm_mm": 5,
                "citation": {
                  "authors": "Greving JP, Wermer MJH, Brown RD Jr, et al.",
                  "doi": "10.1016/S1474-4422(13)70263-1",
                  "id": "greving-2014",
                  "pmid": "24290159",
                  "source": "Lancet Neurol. 2014;13(1):59-66",
                  "title": "Development of the PHASES score for prediction of risk of rupture of intracranial aneurysms: a pooled analysis of six prospective cohort studies"
                },
                "components": [
                  {
                    "factor": "population",
                    "points": 0,
                    "present": true,
                    "value": "north_america_europe"
                  },
                  {
                    "factor": "hypertension",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 50
                  },
                  {
                    "factor": "aneurysm_mm",
                    "points": 0,
                    "present": true,
                    "value": 5
                  },
                  {
                    "factor": "earlier_sah",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "site",
                    "points": 0,
                    "present": true,
                    "value": "ica"
                  }
                ],
                "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.",
                "five_year_rupture_risk_percent": 0.4,
                "formula": "phases",
                "formula_expression": "PHASES = population (north_america_europe 0, japanese 3, finnish 5) + hypertension 1 + age>=70 1 + size (<7.0 0, 7.0-9.9 3, 10.0-19.9 6, >=20.0 10) + earlier_sah 1 + site (ica 0, mca 2, aca_pcom_posterior 4); max 22",
                "max_score": 22,
                "population": "north_america_europe",
                "score": 0,
                "site": "ica"
              }
            ],
            "path": "/api/calc/phases"
          },
          "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). <70 scores 0; ≥70 scores 1 (Greving 2014).",
                          "type": "integer"
                        },
                        "aneurysm_mm": {
                          "description": "Caller-assigned maximum aneurysm diameter in millimetres (1.0-50.0). <7.0 scores 0; 7.0-9.9 scores 3; 10.0-19.9 scores 6; ≥20.0 scores 10. magent does not read imaging.",
                          "type": "number"
                        },
                        "earlier_sah": {
                          "description": "Earlier subarachnoid hemorrhage from another aneurysm (Greving 2014). true scores 1. Not a diagnosis of current rupture.",
                          "type": "boolean"
                        },
                        "hypertension": {
                          "description": "Caller-assigned history of hypertension (Greving 2014). true scores 1. magent does not take a blood-pressure reading.",
                          "type": "boolean"
                        },
                        "population": {
                          "description": "Caller-assigned Greving 2014 geographic study population: north_america_europe (0; North America and Europe other than Finland), japanese (3), or finnish (5). magent does not assign ancestry.",
                          "type": "string"
                        },
                        "site": {
                          "description": "Caller-assigned aneurysm site as grouped in Greving 2014: ica (0), mca (2), or aca_pcom_posterior (4; anterior cerebral, anterior communicating, posterior communicating, or posterior circulation). magent does not read imaging.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "population",
                        "hypertension",
                        "age",
                        "aneurysm_mm",
                        "earlier_sah",
                        "site"
                      ],
                      "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": [
    "phases",
    "aneurysm",
    "sah",
    "neurology",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T14:48:25.374Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T14:48:25.255Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 50,
                  "aneurysm_mm": 5,
                  "earlier_sah": false,
                  "hypertension": false,
                  "population": "north_america_europe",
                  "site": "ica"
                },
                {
                  "age": 50,
                  "aneurysm_mm": 5,
                  "earlier_sah": false,
                  "hypertension": false,
                  "population": "north_america_europe",
                  "site": "ica"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 50,
                  "aneurysm_mm": 5,
                  "citation": {
                    "authors": "Greving JP, Wermer MJH, Brown RD Jr, et al.",
                    "doi": "10.1016/S1474-4422(13)70263-1",
                    "id": "greving-2014",
                    "pmid": "24290159",
                    "source": "Lancet Neurol. 2014;13(1):59-66",
                    "title": "Development of the PHASES score for prediction of risk of rupture of intracranial aneurysms: a pooled analysis of six prospective cohort studies"
                  },
                  "components": [
                    {
                      "factor": "population",
                      "points": 0,
                      "present": true,
                      "value": "north_america_europe"
                    },
                    {
                      "factor": "hypertension",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 50
                    },
                    {
                      "factor": "aneurysm_mm",
                      "points": 0,
                      "present": true,
                      "value": 5
                    },
                    {
                      "factor": "earlier_sah",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "site",
                      "points": 0,
                      "present": true,
                      "value": "ica"
                    }
                  ],
                  "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.",
                  "five_year_rupture_risk_percent": 0.4,
                  "formula": "phases",
                  "formula_expression": "PHASES = population (north_america_europe 0, japanese 3, finnish 5) + hypertension 1 + age>=70 1 + size (<7.0 0, 7.0-9.9 3, 10.0-19.9 6, >=20.0 10) + earlier_sah 1 + site (ica 0, mca 2, aca_pcom_posterior 4); max 22",
                  "max_score": 22,
                  "population": "north_america_europe",
                  "score": 0,
                  "site": "ica"
                },
                {
                  "age_years": 50,
                  "aneurysm_mm": 5,
                  "citation": {
                    "authors": "Greving JP, Wermer MJH, Brown RD Jr, et al.",
                    "doi": "10.1016/S1474-4422(13)70263-1",
                    "id": "greving-2014",
                    "pmid": "24290159",
                    "source": "Lancet Neurol. 2014;13(1):59-66",
                    "title": "Development of the PHASES score for prediction of risk of rupture of intracranial aneurysms: a pooled analysis of six prospective cohort studies"
                  },
                  "components": [
                    {
                      "factor": "population",
                      "points": 0,
                      "present": true,
                      "value": "north_america_europe"
                    },
                    {
                      "factor": "hypertension",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 50
                    },
                    {
                      "factor": "aneurysm_mm",
                      "points": 0,
                      "present": true,
                      "value": 5
                    },
                    {
                      "factor": "earlier_sah",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "site",
                      "points": 0,
                      "present": true,
                      "value": "ica"
                    }
                  ],
                  "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.",
                  "five_year_rupture_risk_percent": 0.4,
                  "formula": "phases",
                  "formula_expression": "PHASES = population (north_america_europe 0, japanese 3, finnish 5) + hypertension 1 + age>=70 1 + size (<7.0 0, 7.0-9.9 3, 10.0-19.9 6, >=20.0 10) + earlier_sah 1 + site (ica 0, mca 2, aca_pcom_posterior 4); max 22",
                  "max_score": 22,
                  "population": "north_america_europe",
                  "score": 0,
                  "site": "ica"
                }
              ],
              "path": "/api/calc/phases"
            },
            "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). <70 scores 0; ≥70 scores 1 (Greving 2014).",
                            "type": "integer"
                          },
                          "aneurysm_mm": {
                            "description": "Caller-assigned maximum aneurysm diameter in millimetres (1.0-50.0). <7.0 scores 0; 7.0-9.9 scores 3; 10.0-19.9 scores 6; ≥20.0 scores 10. magent does not read imaging.",
                            "type": "number"
                          },
                          "earlier_sah": {
                            "description": "Earlier subarachnoid hemorrhage from another aneurysm (Greving 2014). true scores 1. Not a diagnosis of current rupture.",
                            "type": "boolean"
                          },
                          "hypertension": {
                            "description": "Caller-assigned history of hypertension (Greving 2014). true scores 1. magent does not take a blood-pressure reading.",
                            "type": "boolean"
                          },
                          "population": {
                            "description": "Caller-assigned Greving 2014 geographic study population: north_america_europe (0; North America and Europe other than Finland), japanese (3), or finnish (5). magent does not assign ancestry.",
                            "type": "string"
                          },
                          "site": {
                            "description": "Caller-assigned aneurysm site as grouped in Greving 2014: ica (0), mca (2), or aca_pcom_posterior (4; anterior cerebral, anterior communicating, posterior communicating, or posterior circulation). magent does not read imaging.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "population",
                          "hypertension",
                          "age",
                          "aneurysm_mm",
                          "earlier_sah",
                          "site"
                        ],
                        "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"
  }
}