{
  "x402Version": 2,
  "id": 38859,
  "slug": "38859",
  "resource": "https://api.magentlab.com/api/calc/rip",
  "description": "Hevesi 2019 Recurrent Instability of the Patella (RIP) after first-time dislocation. Age <25 scores 2; skeletal immaturity / open physes 1; trochlear dysplasia Dejour A–D (caller-assigned present) 1; TT-TG/PL ratio ≥0.5 scores 1. Max 5. Bands 0–1 low, 2–3 intermediate, 4+ high (10-year recurrent instability 0.0%, 30.6%, 79.2%). Not a surgical order. Not Balcarek 2013 or later PIP models. magent does not read radiographs.",
  "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,
                "skeletal_immature": false,
                "trochlear_dysplasia": false,
                "tt_tg_pl_ratio": 0.3
              },
              {
                "age": 40,
                "skeletal_immature": false,
                "trochlear_dysplasia": false,
                "tt_tg_pl_ratio": 0.3
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age": 40,
                "citation": {
                  "authors": "Hevesi M, Heidenreich MJ, Camp CL, Hewett TE, Stuart MJ, Dahm DL, Krych AJ",
                  "doi": "10.1016/j.arthro.2018.09.017",
                  "id": "hevesi-2019",
                  "pmid": "30612768",
                  "source": "Arthroscopy. 2019;35(3):953-960",
                  "title": "The Recurrent Instability of the Patella Score: A Statistically Based Model for Prediction of Long-Term Recurrence Risk After First-Time Dislocation"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 40
                  },
                  {
                    "factor": "skeletal_immature",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "trochlear_dysplasia",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "tt_tg_pl_ratio",
                    "points": 0,
                    "present": false,
                    "value": 0.3
                  }
                ],
                "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": "rip",
                "formula_expression": "RIP = age_points (<25 → 2, ≥25 → 0) + skeletal_immature 1 + trochlear_dysplasia 1 + (tt_tg_pl_ratio ≥ 0.5 → 1); Hevesi 2019; max 5; risk 0-1 low, 2-3 intermediate, 4+ high (10-year recurrent instability 0.0% / 30.6% / 79.2%)",
                "max_score": 5,
                "risk": "low",
                "score": 0,
                "skeletal_immature": false,
                "trochlear_dysplasia": false,
                "tt_tg_pl_ratio": 0.3
              },
              {
                "age": 40,
                "citation": {
                  "authors": "Hevesi M, Heidenreich MJ, Camp CL, Hewett TE, Stuart MJ, Dahm DL, Krych AJ",
                  "doi": "10.1016/j.arthro.2018.09.017",
                  "id": "hevesi-2019",
                  "pmid": "30612768",
                  "source": "Arthroscopy. 2019;35(3):953-960",
                  "title": "The Recurrent Instability of the Patella Score: A Statistically Based Model for Prediction of Long-Term Recurrence Risk After First-Time Dislocation"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 40
                  },
                  {
                    "factor": "skeletal_immature",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "trochlear_dysplasia",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "tt_tg_pl_ratio",
                    "points": 0,
                    "present": false,
                    "value": 0.3
                  }
                ],
                "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": "rip",
                "formula_expression": "RIP = age_points (<25 → 2, ≥25 → 0) + skeletal_immature 1 + trochlear_dysplasia 1 + (tt_tg_pl_ratio ≥ 0.5 → 1); Hevesi 2019; max 5; risk 0-1 low, 2-3 intermediate, 4+ high (10-year recurrent instability 0.0% / 30.6% / 79.2%)",
                "max_score": 5,
                "risk": "low",
                "score": 0,
                "skeletal_immature": false,
                "trochlear_dysplasia": false,
                "tt_tg_pl_ratio": 0.3
              }
            ],
            "path": "/api/calc/rip"
          },
          "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 8-80; magent clamp, not a published range). Hevesi 2019: age <25 → 2 points; age ≥25 → 0. magent does not assign age.",
                          "type": "integer"
                        },
                        "skeletal_immature": {
                          "description": "Caller-assigned skeletal immaturity / open physes (Hevesi 2019). true scores 1. magent does not read radiographs or assign physeal status. true or false.",
                          "type": "boolean"
                        },
                        "trochlear_dysplasia": {
                          "description": "Caller-assigned trochlear dysplasia Dejour A–D present (Hevesi 2019). true scores 1. magent does not grade trochlea or read radiographs. true or false.",
                          "type": "boolean"
                        },
                        "tt_tg_pl_ratio": {
                          "description": "Caller-assigned tibial tubercle–trochlear groove / patellar length (TT-TG/PL) ratio (Hevesi 2019). ≥0.5 inclusive scores 1. Magent clamp 0.1-2.0, not a published range. magent does not measure TT-TG or patellar length.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "age",
                        "skeletal_immature",
                        "trochlear_dysplasia",
                        "tt_tg_pl_ratio"
                      ],
                      "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": [
    "rip",
    "patella",
    "dislocation",
    "emergency",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T12:42:08.389Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T12:42:08.256Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 40,
                  "skeletal_immature": false,
                  "trochlear_dysplasia": false,
                  "tt_tg_pl_ratio": 0.3
                },
                {
                  "age": 40,
                  "skeletal_immature": false,
                  "trochlear_dysplasia": false,
                  "tt_tg_pl_ratio": 0.3
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age": 40,
                  "citation": {
                    "authors": "Hevesi M, Heidenreich MJ, Camp CL, Hewett TE, Stuart MJ, Dahm DL, Krych AJ",
                    "doi": "10.1016/j.arthro.2018.09.017",
                    "id": "hevesi-2019",
                    "pmid": "30612768",
                    "source": "Arthroscopy. 2019;35(3):953-960",
                    "title": "The Recurrent Instability of the Patella Score: A Statistically Based Model for Prediction of Long-Term Recurrence Risk After First-Time Dislocation"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 40
                    },
                    {
                      "factor": "skeletal_immature",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "trochlear_dysplasia",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "tt_tg_pl_ratio",
                      "points": 0,
                      "present": false,
                      "value": 0.3
                    }
                  ],
                  "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": "rip",
                  "formula_expression": "RIP = age_points (<25 → 2, ≥25 → 0) + skeletal_immature 1 + trochlear_dysplasia 1 + (tt_tg_pl_ratio ≥ 0.5 → 1); Hevesi 2019; max 5; risk 0-1 low, 2-3 intermediate, 4+ high (10-year recurrent instability 0.0% / 30.6% / 79.2%)",
                  "max_score": 5,
                  "risk": "low",
                  "score": 0,
                  "skeletal_immature": false,
                  "trochlear_dysplasia": false,
                  "tt_tg_pl_ratio": 0.3
                },
                {
                  "age": 40,
                  "citation": {
                    "authors": "Hevesi M, Heidenreich MJ, Camp CL, Hewett TE, Stuart MJ, Dahm DL, Krych AJ",
                    "doi": "10.1016/j.arthro.2018.09.017",
                    "id": "hevesi-2019",
                    "pmid": "30612768",
                    "source": "Arthroscopy. 2019;35(3):953-960",
                    "title": "The Recurrent Instability of the Patella Score: A Statistically Based Model for Prediction of Long-Term Recurrence Risk After First-Time Dislocation"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 40
                    },
                    {
                      "factor": "skeletal_immature",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "trochlear_dysplasia",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "tt_tg_pl_ratio",
                      "points": 0,
                      "present": false,
                      "value": 0.3
                    }
                  ],
                  "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": "rip",
                  "formula_expression": "RIP = age_points (<25 → 2, ≥25 → 0) + skeletal_immature 1 + trochlear_dysplasia 1 + (tt_tg_pl_ratio ≥ 0.5 → 1); Hevesi 2019; max 5; risk 0-1 low, 2-3 intermediate, 4+ high (10-year recurrent instability 0.0% / 30.6% / 79.2%)",
                  "max_score": 5,
                  "risk": "low",
                  "score": 0,
                  "skeletal_immature": false,
                  "trochlear_dysplasia": false,
                  "tt_tg_pl_ratio": 0.3
                }
              ],
              "path": "/api/calc/rip"
            },
            "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 8-80; magent clamp, not a published range). Hevesi 2019: age <25 → 2 points; age ≥25 → 0. magent does not assign age.",
                            "type": "integer"
                          },
                          "skeletal_immature": {
                            "description": "Caller-assigned skeletal immaturity / open physes (Hevesi 2019). true scores 1. magent does not read radiographs or assign physeal status. true or false.",
                            "type": "boolean"
                          },
                          "trochlear_dysplasia": {
                            "description": "Caller-assigned trochlear dysplasia Dejour A–D present (Hevesi 2019). true scores 1. magent does not grade trochlea or read radiographs. true or false.",
                            "type": "boolean"
                          },
                          "tt_tg_pl_ratio": {
                            "description": "Caller-assigned tibial tubercle–trochlear groove / patellar length (TT-TG/PL) ratio (Hevesi 2019). ≥0.5 inclusive scores 1. Magent clamp 0.1-2.0, not a published range. magent does not measure TT-TG or patellar length.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "age",
                          "skeletal_immature",
                          "trochlear_dysplasia",
                          "tt_tg_pl_ratio"
                        ],
                        "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"
  }
}