{
  "x402Version": 2,
  "id": 38754,
  "slug": "38754",
  "resource": "https://api.magentlab.com/api/calc/wound_class",
  "description": "CDC/HICPAC surgical wound classification Class I-IV as assigned by the caller (Mangram 1999 Table 7). Returns wound_class, class_label (e.g. I/Clean), and the published Table 7 description. magent does not inspect the wound. Not SSI percentage rates (not in Table 7). Not a diagnosis of infection. Not antimicrobial prophylaxis selection. Not a medical device.",
  "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": [
              {
                "wound_class": 1
              },
              {
                "wound_class": 1
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Mangram AJ, Horan TC, Pearson ML, Silver LC, Jarvis WR, Hospital Infection Control Practices Advisory Committee",
                  "doi": "10.1086/501620",
                  "id": "mangram-1999",
                  "pmid": "10219875",
                  "source": "Infect Control Hosp Epidemiol. 1999;20(4):250-278",
                  "title": "Guideline for Prevention of Surgical Site Infection, 1999"
                },
                "class_label": "I/Clean",
                "components": [
                  {
                    "factor": "class_i_clean",
                    "met": true
                  },
                  {
                    "factor": "class_ii_clean_contaminated",
                    "met": false
                  },
                  {
                    "factor": "class_iii_contaminated",
                    "met": false
                  },
                  {
                    "factor": "class_iv_dirty",
                    "met": false
                  }
                ],
                "description": "An uninfected operative wound in which no inflammation is encountered and the respiratory, alimentary, genital, or uninfected urinary tract is not entered. In addition, clean wounds are primarily closed and, if necessary, drained with closed drainage. Operative incisional wounds that follow nonpenetrating (blunt) trauma should be included in this category if they meet the criteria.",
                "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": "wound_class",
                "formula_expression": "wound_class in {1, 2, 3, 4} as assigned by the caller (Mangram 1999 CDC/HICPAC Table 7 Class I-IV). magent does not inspect the wound. Not SSI rates. Not AMP selection.",
                "wound_class": 1
              },
              {
                "citation": {
                  "authors": "Mangram AJ, Horan TC, Pearson ML, Silver LC, Jarvis WR, Hospital Infection Control Practices Advisory Committee",
                  "doi": "10.1086/501620",
                  "id": "mangram-1999",
                  "pmid": "10219875",
                  "source": "Infect Control Hosp Epidemiol. 1999;20(4):250-278",
                  "title": "Guideline for Prevention of Surgical Site Infection, 1999"
                },
                "class_label": "I/Clean",
                "components": [
                  {
                    "factor": "class_i_clean",
                    "met": true
                  },
                  {
                    "factor": "class_ii_clean_contaminated",
                    "met": false
                  },
                  {
                    "factor": "class_iii_contaminated",
                    "met": false
                  },
                  {
                    "factor": "class_iv_dirty",
                    "met": false
                  }
                ],
                "description": "An uninfected operative wound in which no inflammation is encountered and the respiratory, alimentary, genital, or uninfected urinary tract is not entered. In addition, clean wounds are primarily closed and, if necessary, drained with closed drainage. Operative incisional wounds that follow nonpenetrating (blunt) trauma should be included in this category if they meet the criteria.",
                "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": "wound_class",
                "formula_expression": "wound_class in {1, 2, 3, 4} as assigned by the caller (Mangram 1999 CDC/HICPAC Table 7 Class I-IV). magent does not inspect the wound. Not SSI rates. Not AMP selection.",
                "wound_class": 1
              }
            ],
            "path": "/api/calc/wound_class"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "wound_class": {
                          "description": "CDC/HICPAC surgical wound class 1-4 as assigned by the caller (Mangram 1999 Table 7: 1 Class I/Clean, uninfected operative wound, no inflammation, respiratory/alimentary/genital/uninfected urinary tract not entered; 2 Class II/Clean-Contaminated, those tracts entered under controlled conditions without unusual contamination; 3 Class III/Contaminated, open fresh accidental wounds, major break in technique, GI spillage, or acute nonpurulent inflammation; 4 Class IV/Dirty-Infected, old traumatic wounds with retained devitalized tissue, existing clinical infection, or perforated viscera). Integer 1-4 only; reject 0, 5, 1.5, and roman I. magent does not inspect the wound. Not SSI rates. Not AMP selection.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "wound_class"
                      ],
                      "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": [
    "wound-class",
    "ssi",
    "infection",
    "surgical",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T08:56:47.538Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T08:56:47.233Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "wound_class": 1
                },
                {
                  "wound_class": 1
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Mangram AJ, Horan TC, Pearson ML, Silver LC, Jarvis WR, Hospital Infection Control Practices Advisory Committee",
                    "doi": "10.1086/501620",
                    "id": "mangram-1999",
                    "pmid": "10219875",
                    "source": "Infect Control Hosp Epidemiol. 1999;20(4):250-278",
                    "title": "Guideline for Prevention of Surgical Site Infection, 1999"
                  },
                  "class_label": "I/Clean",
                  "components": [
                    {
                      "factor": "class_i_clean",
                      "met": true
                    },
                    {
                      "factor": "class_ii_clean_contaminated",
                      "met": false
                    },
                    {
                      "factor": "class_iii_contaminated",
                      "met": false
                    },
                    {
                      "factor": "class_iv_dirty",
                      "met": false
                    }
                  ],
                  "description": "An uninfected operative wound in which no inflammation is encountered and the respiratory, alimentary, genital, or uninfected urinary tract is not entered. In addition, clean wounds are primarily closed and, if necessary, drained with closed drainage. Operative incisional wounds that follow nonpenetrating (blunt) trauma should be included in this category if they meet the criteria.",
                  "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": "wound_class",
                  "formula_expression": "wound_class in {1, 2, 3, 4} as assigned by the caller (Mangram 1999 CDC/HICPAC Table 7 Class I-IV). magent does not inspect the wound. Not SSI rates. Not AMP selection.",
                  "wound_class": 1
                },
                {
                  "citation": {
                    "authors": "Mangram AJ, Horan TC, Pearson ML, Silver LC, Jarvis WR, Hospital Infection Control Practices Advisory Committee",
                    "doi": "10.1086/501620",
                    "id": "mangram-1999",
                    "pmid": "10219875",
                    "source": "Infect Control Hosp Epidemiol. 1999;20(4):250-278",
                    "title": "Guideline for Prevention of Surgical Site Infection, 1999"
                  },
                  "class_label": "I/Clean",
                  "components": [
                    {
                      "factor": "class_i_clean",
                      "met": true
                    },
                    {
                      "factor": "class_ii_clean_contaminated",
                      "met": false
                    },
                    {
                      "factor": "class_iii_contaminated",
                      "met": false
                    },
                    {
                      "factor": "class_iv_dirty",
                      "met": false
                    }
                  ],
                  "description": "An uninfected operative wound in which no inflammation is encountered and the respiratory, alimentary, genital, or uninfected urinary tract is not entered. In addition, clean wounds are primarily closed and, if necessary, drained with closed drainage. Operative incisional wounds that follow nonpenetrating (blunt) trauma should be included in this category if they meet the criteria.",
                  "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": "wound_class",
                  "formula_expression": "wound_class in {1, 2, 3, 4} as assigned by the caller (Mangram 1999 CDC/HICPAC Table 7 Class I-IV). magent does not inspect the wound. Not SSI rates. Not AMP selection.",
                  "wound_class": 1
                }
              ],
              "path": "/api/calc/wound_class"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "wound_class": {
                            "description": "CDC/HICPAC surgical wound class 1-4 as assigned by the caller (Mangram 1999 Table 7: 1 Class I/Clean, uninfected operative wound, no inflammation, respiratory/alimentary/genital/uninfected urinary tract not entered; 2 Class II/Clean-Contaminated, those tracts entered under controlled conditions without unusual contamination; 3 Class III/Contaminated, open fresh accidental wounds, major break in technique, GI spillage, or acute nonpurulent inflammation; 4 Class IV/Dirty-Infected, old traumatic wounds with retained devitalized tissue, existing clinical infection, or perforated viscera). Integer 1-4 only; reject 0, 5, 1.5, and roman I. magent does not inspect the wound. Not SSI rates. Not AMP selection.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "wound_class"
                        ],
                        "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"
  }
}