{
  "x402Version": 2,
  "id": 38796,
  "slug": "38796",
  "resource": "https://api.magentlab.com/api/calc/sofa",
  "description": "SOFA (Sepsis-related Organ Failure Assessment) from Vincent 1996 Table 3: six organs 0-4, max 24, from PaO2/FiO2 with a ventilation gate, platelets, bilirubin, MAP and adrenergic agents, caller-assigned GCS, and creatinine or urine output. Deterministic published score with citation; not a Sepsis-3 diagnosis.",
  "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": [
              {
                "bilirubin_mg_dl": 0.8,
                "bilirubin_umol_l": 17.1,
                "creatinine_mg_dl": 1,
                "creatinine_umol_l": 88.42,
                "dobutamine": false,
                "dopamine_ug_kg_min": 0,
                "epinephrine_ug_kg_min": 0,
                "fio2": 0.21,
                "gcs": 15,
                "map_mm_hg": 80,
                "norepinephrine_ug_kg_min": 0,
                "pao2_mm_hg": 96,
                "platelets_10e9_l": 200,
                "urine_output_ml_day": 1500,
                "ventilated": false
              },
              {
                "bilirubin_mg_dl": 0.8,
                "bilirubin_umol_l": 17.1,
                "creatinine_mg_dl": 1,
                "creatinine_umol_l": 88.42,
                "dobutamine": false,
                "dopamine_ug_kg_min": 0,
                "epinephrine_ug_kg_min": 0,
                "fio2": 0.21,
                "gcs": 15,
                "map_mm_hg": 80,
                "norepinephrine_ug_kg_min": 0,
                "pao2_mm_hg": 96,
                "platelets_10e9_l": 200,
                "urine_output_ml_day": 1500,
                "ventilated": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Vincent JL, Moreno R, Takala J, Willatts S, De Mendonça A, Bruining H, Reinhart CK, Suter PM, Thijs LG",
                  "doi": "10.1007/BF01709751",
                  "id": "vincent-1996",
                  "source": "Intensive Care Med. 1996;22(7):707-710",
                  "title": "The SOFA (Sepsis-related Organ Failure Assessment) score to describe organ dysfunction/failure"
                },
                "components": [
                  {
                    "factor": "respiration",
                    "points": 0,
                    "present": false,
                    "value": 457.14285714285717
                  },
                  {
                    "factor": "coagulation",
                    "points": 0,
                    "present": false,
                    "value": 200
                  },
                  {
                    "factor": "liver",
                    "points": 0,
                    "present": false,
                    "value": 0.8
                  },
                  {
                    "factor": "cardiovascular",
                    "points": 0,
                    "present": false,
                    "value": 80
                  },
                  {
                    "factor": "cns",
                    "points": 0,
                    "present": false,
                    "value": 15
                  },
                  {
                    "factor": "renal",
                    "points": 0,
                    "present": false,
                    "value": 1
                  }
                ],
                "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": "sofa",
                "formula_expression": "SOFA = respiration + coagulation + liver + cardiovascular + cns + renal; each 0-4; max 24",
                "max_score": 24,
                "score": 0
              },
              {
                "citation": {
                  "authors": "Vincent JL, Moreno R, Takala J, Willatts S, De Mendonça A, Bruining H, Reinhart CK, Suter PM, Thijs LG",
                  "doi": "10.1007/BF01709751",
                  "id": "vincent-1996",
                  "source": "Intensive Care Med. 1996;22(7):707-710",
                  "title": "The SOFA (Sepsis-related Organ Failure Assessment) score to describe organ dysfunction/failure"
                },
                "components": [
                  {
                    "factor": "respiration",
                    "points": 0,
                    "present": false,
                    "value": 457.14285714285717
                  },
                  {
                    "factor": "coagulation",
                    "points": 0,
                    "present": false,
                    "value": 200
                  },
                  {
                    "factor": "liver",
                    "points": 0,
                    "present": false,
                    "value": 0.8
                  },
                  {
                    "factor": "cardiovascular",
                    "points": 0,
                    "present": false,
                    "value": 80
                  },
                  {
                    "factor": "cns",
                    "points": 0,
                    "present": false,
                    "value": 15
                  },
                  {
                    "factor": "renal",
                    "points": 0,
                    "present": false,
                    "value": 1
                  }
                ],
                "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": "sofa",
                "formula_expression": "SOFA = respiration + coagulation + liver + cardiovascular + cns + renal; each 0-4; max 24",
                "max_score": 24,
                "score": 0
              }
            ],
            "path": "/api/calc/sofa"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "bilirubin_mg_dl": {
                          "description": "Total bilirubin in mg/dL (0.1-40). Provide this or bilirubin_umol_l. <1.2 scores 0; 1.2-1.9 scores 1; 2.0-5.9 scores 2; 6.0-11.9 scores 3; >12.0 scores 4.",
                          "type": "number"
                        },
                        "bilirubin_umol_l": {
                          "description": "Total bilirubin in µmol/L. Converted as mg/dL = µmol/L / 17.1.",
                          "type": "number"
                        },
                        "creatinine_mg_dl": {
                          "description": "Creatinine in mg/dL (0.1-20). Provide this, creatinine_umol_l, or urine_output_ml_day. <1.2 scores 0; 1.2-1.9 scores 1; 2.0-3.4 scores 2; 3.5-4.9 scores 3; ≥5.0 scores 4.",
                          "type": "number"
                        },
                        "creatinine_umol_l": {
                          "description": "Creatinine in µmol/L. Converted as mg/dL = µmol/L / 88.42.",
                          "type": "number"
                        },
                        "dobutamine": {
                          "description": "Any dobutamine. true or false when provided; absent is false. true scores cardiovascular 2 unless a higher band applies.",
                          "type": "boolean"
                        },
                        "dopamine_ug_kg_min": {
                          "description": "Dopamine in µg/kg·min (0-50) when provided. Absent is 0. 0 < dose ≤5 scores 2; >5 scores 3; >15 scores 4.",
                          "type": "number"
                        },
                        "epinephrine_ug_kg_min": {
                          "description": "Epinephrine in µg/kg·min (0-2) when provided. Absent is 0. 0 < dose ≤0.1 scores 3; >0.1 scores 4.",
                          "type": "number"
                        },
                        "fio2": {
                          "description": "Inspired oxygen as a fraction (0.21-1.0), not a percent.",
                          "type": "number"
                        },
                        "gcs": {
                          "description": "Glasgow Coma Scale total as assigned by the caller (integer 3-15). 15 scores 0; 13-14 scores 1; 10-12 scores 2; 6-9 scores 3; <6 scores 4.",
                          "type": "integer"
                        },
                        "map_mm_hg": {
                          "description": "Mean arterial pressure in mm Hg (30-180). MAP <70 scores 1 unless a higher cardiovascular band applies.",
                          "type": "number"
                        },
                        "norepinephrine_ug_kg_min": {
                          "description": "Norepinephrine in µg/kg·min (0-2) when provided. Absent is 0. 0 < dose ≤0.1 scores 3; >0.1 scores 4.",
                          "type": "number"
                        },
                        "pao2_mm_hg": {
                          "description": "Arterial PaO2 in mm Hg (20-700). Respiration uses PaO2/FiO2: ≥400 scores 0; <400 scores 1; <300 scores 2; <200 with ventilation scores 3; <100 with ventilation scores 4.",
                          "type": "number"
                        },
                        "platelets_10e9_l": {
                          "description": "Platelets ×10^9/L, same as ×10^3/mm^3 (1-2000). ≥150 scores 0; <150 scores 1; <100 scores 2; <50 scores 3; <20 scores 4.",
                          "type": "number"
                        },
                        "urine_output_ml_day": {
                          "description": "Urine output in mL/day (0-20000) when provided. <200 scores 4; <500 scores 3; otherwise urine does not add 1-2. Renal is the max of creatinine and urine when both are given.",
                          "type": "number"
                        },
                        "ventilated": {
                          "description": "Respiratory support (Vincent 1996). true or false. Scores 3 and 4 require ventilation; unventilated PaO2/FiO2 <200 is capped at 2.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "pao2_mm_hg",
                        "fio2",
                        "ventilated",
                        "platelets_10e9_l",
                        "map_mm_hg",
                        "gcs"
                      ],
                      "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": [
    "sofa",
    "sepsis",
    "organ-failure",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T15:12:30.647Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T15:12:30.485Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "bilirubin_mg_dl": 0.8,
                  "bilirubin_umol_l": 17.1,
                  "creatinine_mg_dl": 1,
                  "creatinine_umol_l": 88.42,
                  "dobutamine": false,
                  "dopamine_ug_kg_min": 0,
                  "epinephrine_ug_kg_min": 0,
                  "fio2": 0.21,
                  "gcs": 15,
                  "map_mm_hg": 80,
                  "norepinephrine_ug_kg_min": 0,
                  "pao2_mm_hg": 96,
                  "platelets_10e9_l": 200,
                  "urine_output_ml_day": 1500,
                  "ventilated": false
                },
                {
                  "bilirubin_mg_dl": 0.8,
                  "bilirubin_umol_l": 17.1,
                  "creatinine_mg_dl": 1,
                  "creatinine_umol_l": 88.42,
                  "dobutamine": false,
                  "dopamine_ug_kg_min": 0,
                  "epinephrine_ug_kg_min": 0,
                  "fio2": 0.21,
                  "gcs": 15,
                  "map_mm_hg": 80,
                  "norepinephrine_ug_kg_min": 0,
                  "pao2_mm_hg": 96,
                  "platelets_10e9_l": 200,
                  "urine_output_ml_day": 1500,
                  "ventilated": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Vincent JL, Moreno R, Takala J, Willatts S, De Mendonça A, Bruining H, Reinhart CK, Suter PM, Thijs LG",
                    "doi": "10.1007/BF01709751",
                    "id": "vincent-1996",
                    "source": "Intensive Care Med. 1996;22(7):707-710",
                    "title": "The SOFA (Sepsis-related Organ Failure Assessment) score to describe organ dysfunction/failure"
                  },
                  "components": [
                    {
                      "factor": "respiration",
                      "points": 0,
                      "present": false,
                      "value": 457.14285714285717
                    },
                    {
                      "factor": "coagulation",
                      "points": 0,
                      "present": false,
                      "value": 200
                    },
                    {
                      "factor": "liver",
                      "points": 0,
                      "present": false,
                      "value": 0.8
                    },
                    {
                      "factor": "cardiovascular",
                      "points": 0,
                      "present": false,
                      "value": 80
                    },
                    {
                      "factor": "cns",
                      "points": 0,
                      "present": false,
                      "value": 15
                    },
                    {
                      "factor": "renal",
                      "points": 0,
                      "present": false,
                      "value": 1
                    }
                  ],
                  "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": "sofa",
                  "formula_expression": "SOFA = respiration + coagulation + liver + cardiovascular + cns + renal; each 0-4; max 24",
                  "max_score": 24,
                  "score": 0
                },
                {
                  "citation": {
                    "authors": "Vincent JL, Moreno R, Takala J, Willatts S, De Mendonça A, Bruining H, Reinhart CK, Suter PM, Thijs LG",
                    "doi": "10.1007/BF01709751",
                    "id": "vincent-1996",
                    "source": "Intensive Care Med. 1996;22(7):707-710",
                    "title": "The SOFA (Sepsis-related Organ Failure Assessment) score to describe organ dysfunction/failure"
                  },
                  "components": [
                    {
                      "factor": "respiration",
                      "points": 0,
                      "present": false,
                      "value": 457.14285714285717
                    },
                    {
                      "factor": "coagulation",
                      "points": 0,
                      "present": false,
                      "value": 200
                    },
                    {
                      "factor": "liver",
                      "points": 0,
                      "present": false,
                      "value": 0.8
                    },
                    {
                      "factor": "cardiovascular",
                      "points": 0,
                      "present": false,
                      "value": 80
                    },
                    {
                      "factor": "cns",
                      "points": 0,
                      "present": false,
                      "value": 15
                    },
                    {
                      "factor": "renal",
                      "points": 0,
                      "present": false,
                      "value": 1
                    }
                  ],
                  "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": "sofa",
                  "formula_expression": "SOFA = respiration + coagulation + liver + cardiovascular + cns + renal; each 0-4; max 24",
                  "max_score": 24,
                  "score": 0
                }
              ],
              "path": "/api/calc/sofa"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "bilirubin_mg_dl": {
                            "description": "Total bilirubin in mg/dL (0.1-40). Provide this or bilirubin_umol_l. <1.2 scores 0; 1.2-1.9 scores 1; 2.0-5.9 scores 2; 6.0-11.9 scores 3; >12.0 scores 4.",
                            "type": "number"
                          },
                          "bilirubin_umol_l": {
                            "description": "Total bilirubin in µmol/L. Converted as mg/dL = µmol/L / 17.1.",
                            "type": "number"
                          },
                          "creatinine_mg_dl": {
                            "description": "Creatinine in mg/dL (0.1-20). Provide this, creatinine_umol_l, or urine_output_ml_day. <1.2 scores 0; 1.2-1.9 scores 1; 2.0-3.4 scores 2; 3.5-4.9 scores 3; ≥5.0 scores 4.",
                            "type": "number"
                          },
                          "creatinine_umol_l": {
                            "description": "Creatinine in µmol/L. Converted as mg/dL = µmol/L / 88.42.",
                            "type": "number"
                          },
                          "dobutamine": {
                            "description": "Any dobutamine. true or false when provided; absent is false. true scores cardiovascular 2 unless a higher band applies.",
                            "type": "boolean"
                          },
                          "dopamine_ug_kg_min": {
                            "description": "Dopamine in µg/kg·min (0-50) when provided. Absent is 0. 0 < dose ≤5 scores 2; >5 scores 3; >15 scores 4.",
                            "type": "number"
                          },
                          "epinephrine_ug_kg_min": {
                            "description": "Epinephrine in µg/kg·min (0-2) when provided. Absent is 0. 0 < dose ≤0.1 scores 3; >0.1 scores 4.",
                            "type": "number"
                          },
                          "fio2": {
                            "description": "Inspired oxygen as a fraction (0.21-1.0), not a percent.",
                            "type": "number"
                          },
                          "gcs": {
                            "description": "Glasgow Coma Scale total as assigned by the caller (integer 3-15). 15 scores 0; 13-14 scores 1; 10-12 scores 2; 6-9 scores 3; <6 scores 4.",
                            "type": "integer"
                          },
                          "map_mm_hg": {
                            "description": "Mean arterial pressure in mm Hg (30-180). MAP <70 scores 1 unless a higher cardiovascular band applies.",
                            "type": "number"
                          },
                          "norepinephrine_ug_kg_min": {
                            "description": "Norepinephrine in µg/kg·min (0-2) when provided. Absent is 0. 0 < dose ≤0.1 scores 3; >0.1 scores 4.",
                            "type": "number"
                          },
                          "pao2_mm_hg": {
                            "description": "Arterial PaO2 in mm Hg (20-700). Respiration uses PaO2/FiO2: ≥400 scores 0; <400 scores 1; <300 scores 2; <200 with ventilation scores 3; <100 with ventilation scores 4.",
                            "type": "number"
                          },
                          "platelets_10e9_l": {
                            "description": "Platelets ×10^9/L, same as ×10^3/mm^3 (1-2000). ≥150 scores 0; <150 scores 1; <100 scores 2; <50 scores 3; <20 scores 4.",
                            "type": "number"
                          },
                          "urine_output_ml_day": {
                            "description": "Urine output in mL/day (0-20000) when provided. <200 scores 4; <500 scores 3; otherwise urine does not add 1-2. Renal is the max of creatinine and urine when both are given.",
                            "type": "number"
                          },
                          "ventilated": {
                            "description": "Respiratory support (Vincent 1996). true or false. Scores 3 and 4 require ventilation; unventilated PaO2/FiO2 <200 is capped at 2.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "pao2_mm_hg",
                          "fio2",
                          "ventilated",
                          "platelets_10e9_l",
                          "map_mm_hg",
                          "gcs"
                        ],
                        "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"
  }
}