{
  "x402Version": 2,
  "id": 39290,
  "slug": "39290",
  "resource": "https://api.magentlab.com/api/calc/bastion",
  "description": "Bastion classification of lower-limb IED injury (Jacobs 2014). Caller assigns class 1-5 as the most proximal extent. Returns the class description, associated-injury flags (segmental, intraperitoneal abdomen, genital/perineal, pelvic ring, upper limb), and tourniquet_effective (true for class 1-3, false for class 4-5). Not MESS, not ISS AIS, not a treatment protocol. Paper was not designed for mortality or transfusion rates. magent does not examine the casualty.",
  "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": [
              {
                "bastion_class": 1,
                "genital_perineal": false,
                "intraperitoneal_abdomen": false,
                "pelvic_ring": false,
                "segmental": false,
                "upper_limb": false
              },
              {
                "bastion_class": 1,
                "genital_perineal": false,
                "intraperitoneal_abdomen": false,
                "pelvic_ring": false,
                "segmental": false,
                "upper_limb": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "bastion_class": 1,
                "citation": {
                  "authors": "Jacobs N, Rourke K, Rutherford J, Hicks A, Smith SR, Templeton P, Adams SA, Jansen JO",
                  "doi": "10.1016/j.injury.2012.05.001",
                  "id": "jacobs-2014",
                  "pmid": "22613453",
                  "source": "Injury. 2014;45(9):1422-1428",
                  "title": "Lower limb injuries caused by improvised explosive devices: proposed 'Bastion classification' and prospective validation"
                },
                "components": [
                  {
                    "factor": "bastion_class",
                    "met": true,
                    "value": 1
                  },
                  {
                    "factor": "segmental",
                    "met": false
                  },
                  {
                    "factor": "intraperitoneal_abdomen",
                    "met": false
                  },
                  {
                    "factor": "genital_perineal",
                    "met": false
                  },
                  {
                    "factor": "pelvic_ring",
                    "met": false
                  },
                  {
                    "factor": "upper_limb",
                    "met": false
                  },
                  {
                    "factor": "tourniquet_effective",
                    "met": true
                  }
                ],
                "description": "Injury confined to the foot",
                "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": "bastion",
                "formula_expression": "Caller-assigned Bastion class 1-5 is the most proximal extent of the lower-limb blast injury; associated flags are segmental, intraperitoneal_abdomen, genital_perineal, pelvic_ring, and upper_limb; tourniquet_effective is true for class 1-3 and false for class 4-5 (Jacobs 2014)",
                "genital_perineal": false,
                "intraperitoneal_abdomen": false,
                "pelvic_ring": false,
                "segmental": false,
                "tourniquet_effective": true,
                "upper_limb": false
              },
              {
                "bastion_class": 1,
                "citation": {
                  "authors": "Jacobs N, Rourke K, Rutherford J, Hicks A, Smith SR, Templeton P, Adams SA, Jansen JO",
                  "doi": "10.1016/j.injury.2012.05.001",
                  "id": "jacobs-2014",
                  "pmid": "22613453",
                  "source": "Injury. 2014;45(9):1422-1428",
                  "title": "Lower limb injuries caused by improvised explosive devices: proposed 'Bastion classification' and prospective validation"
                },
                "components": [
                  {
                    "factor": "bastion_class",
                    "met": true,
                    "value": 1
                  },
                  {
                    "factor": "segmental",
                    "met": false
                  },
                  {
                    "factor": "intraperitoneal_abdomen",
                    "met": false
                  },
                  {
                    "factor": "genital_perineal",
                    "met": false
                  },
                  {
                    "factor": "pelvic_ring",
                    "met": false
                  },
                  {
                    "factor": "upper_limb",
                    "met": false
                  },
                  {
                    "factor": "tourniquet_effective",
                    "met": true
                  }
                ],
                "description": "Injury confined to the foot",
                "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": "bastion",
                "formula_expression": "Caller-assigned Bastion class 1-5 is the most proximal extent of the lower-limb blast injury; associated flags are segmental, intraperitoneal_abdomen, genital_perineal, pelvic_ring, and upper_limb; tourniquet_effective is true for class 1-3 and false for class 4-5 (Jacobs 2014)",
                "genital_perineal": false,
                "intraperitoneal_abdomen": false,
                "pelvic_ring": false,
                "segmental": false,
                "tourniquet_effective": true,
                "upper_limb": false
              }
            ],
            "path": "/api/calc/bastion"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "bastion_class": {
                          "description": "Bastion class 1-5 as assigned by the caller: most proximal extent of the lower-limb blast injury (1 injury confined to the foot; 2 lower leg, effective below-knee tourniquet; 3 proximal lower leg or thigh, effective above-knee tourniquet; 4 proximal thigh, tourniquet not effective; 5 any injury with buttock involvement). Jacobs 2014. magent does not examine the casualty.",
                          "type": "integer"
                        },
                        "genital_perineal": {
                          "description": "true when associated genital or perineal injury is present as assigned by the caller (Jacobs 2014). Required. magent does not examine the casualty.",
                          "type": "boolean"
                        },
                        "intraperitoneal_abdomen": {
                          "description": "true when associated intraperitoneal abdominal injury is present as assigned by the caller (Jacobs 2014). Required. magent does not examine the casualty.",
                          "type": "boolean"
                        },
                        "pelvic_ring": {
                          "description": "true when associated pelvic ring injury is present as assigned by the caller (Jacobs 2014). Required. magent does not examine the casualty.",
                          "type": "boolean"
                        },
                        "segmental": {
                          "description": "true when there is potentially viable tissue distal to the most proximal injury (Jacobs 2014: segmental injuries recognised as a distinct entity). Required. magent does not examine the casualty.",
                          "type": "boolean"
                        },
                        "upper_limb": {
                          "description": "true when associated upper-limb injury is present as assigned by the caller (Jacobs 2014). Required. magent does not examine the casualty.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "bastion_class",
                        "segmental",
                        "intraperitoneal_abdomen",
                        "genital_perineal",
                        "pelvic_ring",
                        "upper_limb"
                      ],
                      "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": [
    "bastion",
    "blast",
    "ied",
    "emergency",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T00:21:37.65Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T00:21:37.466Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "bastion_class": 1,
                  "genital_perineal": false,
                  "intraperitoneal_abdomen": false,
                  "pelvic_ring": false,
                  "segmental": false,
                  "upper_limb": false
                },
                {
                  "bastion_class": 1,
                  "genital_perineal": false,
                  "intraperitoneal_abdomen": false,
                  "pelvic_ring": false,
                  "segmental": false,
                  "upper_limb": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "bastion_class": 1,
                  "citation": {
                    "authors": "Jacobs N, Rourke K, Rutherford J, Hicks A, Smith SR, Templeton P, Adams SA, Jansen JO",
                    "doi": "10.1016/j.injury.2012.05.001",
                    "id": "jacobs-2014",
                    "pmid": "22613453",
                    "source": "Injury. 2014;45(9):1422-1428",
                    "title": "Lower limb injuries caused by improvised explosive devices: proposed 'Bastion classification' and prospective validation"
                  },
                  "components": [
                    {
                      "factor": "bastion_class",
                      "met": true,
                      "value": 1
                    },
                    {
                      "factor": "segmental",
                      "met": false
                    },
                    {
                      "factor": "intraperitoneal_abdomen",
                      "met": false
                    },
                    {
                      "factor": "genital_perineal",
                      "met": false
                    },
                    {
                      "factor": "pelvic_ring",
                      "met": false
                    },
                    {
                      "factor": "upper_limb",
                      "met": false
                    },
                    {
                      "factor": "tourniquet_effective",
                      "met": true
                    }
                  ],
                  "description": "Injury confined to the foot",
                  "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": "bastion",
                  "formula_expression": "Caller-assigned Bastion class 1-5 is the most proximal extent of the lower-limb blast injury; associated flags are segmental, intraperitoneal_abdomen, genital_perineal, pelvic_ring, and upper_limb; tourniquet_effective is true for class 1-3 and false for class 4-5 (Jacobs 2014)",
                  "genital_perineal": false,
                  "intraperitoneal_abdomen": false,
                  "pelvic_ring": false,
                  "segmental": false,
                  "tourniquet_effective": true,
                  "upper_limb": false
                },
                {
                  "bastion_class": 1,
                  "citation": {
                    "authors": "Jacobs N, Rourke K, Rutherford J, Hicks A, Smith SR, Templeton P, Adams SA, Jansen JO",
                    "doi": "10.1016/j.injury.2012.05.001",
                    "id": "jacobs-2014",
                    "pmid": "22613453",
                    "source": "Injury. 2014;45(9):1422-1428",
                    "title": "Lower limb injuries caused by improvised explosive devices: proposed 'Bastion classification' and prospective validation"
                  },
                  "components": [
                    {
                      "factor": "bastion_class",
                      "met": true,
                      "value": 1
                    },
                    {
                      "factor": "segmental",
                      "met": false
                    },
                    {
                      "factor": "intraperitoneal_abdomen",
                      "met": false
                    },
                    {
                      "factor": "genital_perineal",
                      "met": false
                    },
                    {
                      "factor": "pelvic_ring",
                      "met": false
                    },
                    {
                      "factor": "upper_limb",
                      "met": false
                    },
                    {
                      "factor": "tourniquet_effective",
                      "met": true
                    }
                  ],
                  "description": "Injury confined to the foot",
                  "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": "bastion",
                  "formula_expression": "Caller-assigned Bastion class 1-5 is the most proximal extent of the lower-limb blast injury; associated flags are segmental, intraperitoneal_abdomen, genital_perineal, pelvic_ring, and upper_limb; tourniquet_effective is true for class 1-3 and false for class 4-5 (Jacobs 2014)",
                  "genital_perineal": false,
                  "intraperitoneal_abdomen": false,
                  "pelvic_ring": false,
                  "segmental": false,
                  "tourniquet_effective": true,
                  "upper_limb": false
                }
              ],
              "path": "/api/calc/bastion"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "bastion_class": {
                            "description": "Bastion class 1-5 as assigned by the caller: most proximal extent of the lower-limb blast injury (1 injury confined to the foot; 2 lower leg, effective below-knee tourniquet; 3 proximal lower leg or thigh, effective above-knee tourniquet; 4 proximal thigh, tourniquet not effective; 5 any injury with buttock involvement). Jacobs 2014. magent does not examine the casualty.",
                            "type": "integer"
                          },
                          "genital_perineal": {
                            "description": "true when associated genital or perineal injury is present as assigned by the caller (Jacobs 2014). Required. magent does not examine the casualty.",
                            "type": "boolean"
                          },
                          "intraperitoneal_abdomen": {
                            "description": "true when associated intraperitoneal abdominal injury is present as assigned by the caller (Jacobs 2014). Required. magent does not examine the casualty.",
                            "type": "boolean"
                          },
                          "pelvic_ring": {
                            "description": "true when associated pelvic ring injury is present as assigned by the caller (Jacobs 2014). Required. magent does not examine the casualty.",
                            "type": "boolean"
                          },
                          "segmental": {
                            "description": "true when there is potentially viable tissue distal to the most proximal injury (Jacobs 2014: segmental injuries recognised as a distinct entity). Required. magent does not examine the casualty.",
                            "type": "boolean"
                          },
                          "upper_limb": {
                            "description": "true when associated upper-limb injury is present as assigned by the caller (Jacobs 2014). Required. magent does not examine the casualty.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "bastion_class",
                          "segmental",
                          "intraperitoneal_abdomen",
                          "genital_perineal",
                          "pelvic_ring",
                          "upper_limb"
                        ],
                        "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"
  }
}