{
  "x402Version": 2,
  "id": 39545,
  "slug": "39545",
  "resource": "https://api.magentlab.com/api/calc/sofa_2",
  "description": "Ranzani 2025 SOFA-2 from six organs 0-4 (brain, respiratory, cardiovascular, liver, kidney, hemostasis), max 24. Maps PaO2/FiO2 or SpO2/FiO2 with NIV/ECMO, MAP and vasopressor dose bands, caller-assigned GCS and delirium-drug flag, bilirubin, platelets, creatinine or urine rate, and RRT. Not Vincent 1996 SOFA and not a 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": [
              {
                "advanced_ventilatory_support": false,
                "bilirubin_mg_dl": 0.8,
                "bilirubin_umol_l": 13.7,
                "creatinine_mg_dl": 1,
                "creatinine_umol_l": 88,
                "delirium_drugs": false,
                "dopamine_ug_kg_min": 0,
                "ecmo": false,
                "epinephrine_ug_kg_min": 0,
                "fio2": 0.21,
                "gcs": 15,
                "map_mm_hg": 80,
                "mechanical_circulatory_support": false,
                "norepinephrine_ug_kg_min": 0,
                "oliguria_hours": 8,
                "other_vasopressor_or_inotrope": false,
                "pao2_mm_hg": 96,
                "platelets_10e9_l": 200,
                "rrt": false,
                "spo2": 96,
                "urine_output_ml_kg_h": 1,
                "vasoactive_unavailable": false,
                "ventilatory_support_unavailable": false
              },
              {
                "advanced_ventilatory_support": false,
                "bilirubin_mg_dl": 0.8,
                "bilirubin_umol_l": 13.7,
                "creatinine_mg_dl": 1,
                "creatinine_umol_l": 88,
                "delirium_drugs": false,
                "dopamine_ug_kg_min": 0,
                "ecmo": false,
                "epinephrine_ug_kg_min": 0,
                "fio2": 0.21,
                "gcs": 15,
                "map_mm_hg": 80,
                "mechanical_circulatory_support": false,
                "norepinephrine_ug_kg_min": 0,
                "oliguria_hours": 8,
                "other_vasopressor_or_inotrope": false,
                "pao2_mm_hg": 96,
                "platelets_10e9_l": 200,
                "rrt": false,
                "spo2": 96,
                "urine_output_ml_kg_h": 1,
                "vasoactive_unavailable": false,
                "ventilatory_support_unavailable": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Ranzani OT, Singer M, Salluh JIF, Shankar-Hari M, Pilcher D, Berger-Estilita J, Coopersmith CM, Juffermans NP, Laffey J, Reinikainen M, Serpa Neto A, Tavares M, Timsit JF, Arias Lopez MDP, Arulkumaran N, Aryal D, Azoulay E, Celi LA, Chaudhuri D, De Lange D, De Waele J, Dos Santos CC, Du B, Einav S, Engelbrecht T, Fazla F, Ferrer R, Finazzi S, Fujii T, Gershengorn HB, Greene JD, Haniffa R, Hao S, Hasan MS, Hollenberg S, Ippolito M, Jung C, Kirov M, Kobari S, Lakbar I, Lipman J, Liu V, Liu X, Lobo SM, Magatti D, Martin GS, Metnitz B, Metnitz P, Myatra SN, Oczkowski S, Paiva JA, Paruk F, Pekkarinen PT, Piquilloud L, Pölkki A, Prescott HC, Reintam Blaser A, Rezende E, Robba C, Rochwerg B, Ruckly S, Samei R, Schenck EJ, Secombe P, Sendagire C, Siaw-Frimpong M, Simpkin AJ, Soares M, Summers C, Szczeklik W, Takala J, Tanaka S, Tricella G, Vincent JL, Wendon J, Zampieri FG, Rhodes A, Moreno R",
                  "doi": "10.1001/jama.2025.20516",
                  "id": "ranzani-2025",
                  "pmid": "41159833",
                  "source": "JAMA. 2025 (SOFA-2)",
                  "title": "Development and Validation of the Sequential Organ Failure Assessment (SOFA)-2 Score"
                },
                "components": [
                  {
                    "factor": "brain",
                    "points": 0,
                    "present": false,
                    "value": 15
                  },
                  {
                    "factor": "respiratory",
                    "points": 0,
                    "present": false,
                    "value": 457.14285714285717
                  },
                  {
                    "factor": "cardiovascular",
                    "points": 0,
                    "present": false,
                    "value": 80
                  },
                  {
                    "factor": "liver",
                    "points": 0,
                    "present": false,
                    "value": 0.8
                  },
                  {
                    "factor": "kidney",
                    "points": 0,
                    "present": false,
                    "value": {
                      "creatinine": {
                        "mg_dl": 1
                      },
                      "rrt": false,
                      "urine": null
                    }
                  },
                  {
                    "factor": "hemostasis",
                    "points": 0,
                    "present": false,
                    "value": 200
                  }
                ],
                "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_2",
                "formula_expression": "SOFA-2 = brain + respiratory + cardiovascular + liver + kidney + hemostasis; each 0-4; max 24",
                "max_score": 24,
                "score": 0
              },
              {
                "citation": {
                  "authors": "Ranzani OT, Singer M, Salluh JIF, Shankar-Hari M, Pilcher D, Berger-Estilita J, Coopersmith CM, Juffermans NP, Laffey J, Reinikainen M, Serpa Neto A, Tavares M, Timsit JF, Arias Lopez MDP, Arulkumaran N, Aryal D, Azoulay E, Celi LA, Chaudhuri D, De Lange D, De Waele J, Dos Santos CC, Du B, Einav S, Engelbrecht T, Fazla F, Ferrer R, Finazzi S, Fujii T, Gershengorn HB, Greene JD, Haniffa R, Hao S, Hasan MS, Hollenberg S, Ippolito M, Jung C, Kirov M, Kobari S, Lakbar I, Lipman J, Liu V, Liu X, Lobo SM, Magatti D, Martin GS, Metnitz B, Metnitz P, Myatra SN, Oczkowski S, Paiva JA, Paruk F, Pekkarinen PT, Piquilloud L, Pölkki A, Prescott HC, Reintam Blaser A, Rezende E, Robba C, Rochwerg B, Ruckly S, Samei R, Schenck EJ, Secombe P, Sendagire C, Siaw-Frimpong M, Simpkin AJ, Soares M, Summers C, Szczeklik W, Takala J, Tanaka S, Tricella G, Vincent JL, Wendon J, Zampieri FG, Rhodes A, Moreno R",
                  "doi": "10.1001/jama.2025.20516",
                  "id": "ranzani-2025",
                  "pmid": "41159833",
                  "source": "JAMA. 2025 (SOFA-2)",
                  "title": "Development and Validation of the Sequential Organ Failure Assessment (SOFA)-2 Score"
                },
                "components": [
                  {
                    "factor": "brain",
                    "points": 0,
                    "present": false,
                    "value": 15
                  },
                  {
                    "factor": "respiratory",
                    "points": 0,
                    "present": false,
                    "value": 457.14285714285717
                  },
                  {
                    "factor": "cardiovascular",
                    "points": 0,
                    "present": false,
                    "value": 80
                  },
                  {
                    "factor": "liver",
                    "points": 0,
                    "present": false,
                    "value": 0.8
                  },
                  {
                    "factor": "kidney",
                    "points": 0,
                    "present": false,
                    "value": {
                      "creatinine": {
                        "mg_dl": 1
                      },
                      "rrt": false,
                      "urine": null
                    }
                  },
                  {
                    "factor": "hemostasis",
                    "points": 0,
                    "present": false,
                    "value": 200
                  }
                ],
                "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_2",
                "formula_expression": "SOFA-2 = brain + respiratory + cardiovascular + liver + kidney + hemostasis; each 0-4; max 24",
                "max_score": 24,
                "score": 0
              }
            ],
            "path": "/api/calc/sofa_2"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "advanced_ventilatory_support": {
                          "description": "High-flow nasal cannula, CPAP, bilevel positive airway pressure, noninvasive ventilation, invasive mechanical ventilation, or long-term home ventilation (Ranzani 2025). true or false. Respiratory scores 3 and 4 require this, ventilatory_support_unavailable, or respiratory ECMO.",
                          "type": "boolean"
                        },
                        "bilirubin_mg_dl": {
                          "description": "Total bilirubin in mg/dL (0.1-40). Provide this or bilirubin_umol_l. ≤1.20 scores 0; ≤3.0 scores 1; ≤6.0 scores 2; ≤12.0 scores 3; >12.0 scores 4.",
                          "type": "number"
                        },
                        "bilirubin_umol_l": {
                          "description": "Total bilirubin in µmol/L (2-684). ≤20.6 scores 0; ≤51.3 scores 1; ≤102.6 scores 2; ≤205 scores 3; >205 scores 4.",
                          "type": "number"
                        },
                        "creatinine_mg_dl": {
                          "description": "Creatinine in mg/dL (0.1-20). Provide this, creatinine_umol_l, or rrt=true. ≤1.20 scores 0; ≤2.0 scores 1; ≤3.50 scores 2; >3.50 scores 3. Kidney is the max of creatinine, urine, and RRT.",
                          "type": "number"
                        },
                        "creatinine_umol_l": {
                          "description": "Creatinine in µmol/L (9-1768). ≤110 scores 0; ≤170 scores 1; ≤300 scores 2; >300 scores 3.",
                          "type": "number"
                        },
                        "delirium_drugs": {
                          "description": "Drugs given to treat delirium (Ranzani 2025). true or false when provided; absent is false. true scores brain at least 1 even if GCS is 15.",
                          "type": "boolean"
                        },
                        "dopamine_ug_kg_min": {
                          "description": "Dopamine in µg/kg·min (0-80) when provided. Absent is 0. As a single vasopressor: ≤20 scores 2; >20 to 40 scores 3; >40 scores 4. With norepinephrine, epinephrine, or another agent it counts as an other vasopressor or inotrope.",
                          "type": "number"
                        },
                        "ecmo": {
                          "description": "Respiratory ECMO of any form. true or false when provided; absent is false. true scores respiratory 4 regardless of PaO2/FiO2 or SpO2/FiO2 and does not by itself score cardiovascular points.",
                          "type": "boolean"
                        },
                        "epinephrine_ug_kg_min": {
                          "description": "Epinephrine in µg/kg·min (0-10) when provided. Absent is 0. Added to norepinephrine for the published dose bands.",
                          "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), including last pre-sedation GCS or the motor scale when the three-domain GCS cannot be evaluated. 15 scores 0; 13-14 scores 1; 9-12 scores 2; 6-8 scores 3; 3-5 scores 4. magent does not examine the patient.",
                          "type": "integer"
                        },
                        "map_mm_hg": {
                          "description": "Mean arterial pressure in mm Hg (20-180). MAP <70 with no vasopressor or inotrope scores 1 unless a higher cardiovascular band applies. When vasoactive_unavailable is true, MAP ≥70 scores 0; 60-69 scores 1; 50-59 scores 2; 40-49 scores 3; <40 scores 4.",
                          "type": "number"
                        },
                        "mechanical_circulatory_support": {
                          "description": "Mechanical circulatory support (veno-arterial ECMO, intra-aortic balloon pump, left ventricular assist device, or microaxial flow pump). true or false when provided; absent is false. true scores cardiovascular 4.",
                          "type": "boolean"
                        },
                        "norepinephrine_ug_kg_min": {
                          "description": "Norepinephrine as the base in µg/kg·min (0-10) when provided. Absent is 0. Summed with epinephrine: >0 to ≤0.2 scores 2; >0.2 to ≤0.4 scores 3; >0.4 scores 4. Low-dose plus any other vasopressor or inotrope scores 3; medium-dose plus any other, or mechanical circulatory support, scores 4.",
                          "type": "number"
                        },
                        "oliguria_hours": {
                          "description": "Hours at the reported urine_output_ml_kg_h (0-72). Required when urine_output_ml_kg_h is provided.",
                          "type": "number"
                        },
                        "other_vasopressor_or_inotrope": {
                          "description": "Any other vasopressor or inotrope (Ranzani 2025). true or false when provided; absent is false. Any dose scores cardiovascular 2 unless a higher norepinephrine/epinephrine or mechanical band applies.",
                          "type": "boolean"
                        },
                        "pao2_mm_hg": {
                          "description": "Arterial PaO2 in mm Hg (20-700). Provide this with fio2, or spo2 with fio2 when PaO2 is unavailable. PaO2/FiO2 >300 scores 0; ≤300 scores 1; ≤225 scores 2; ≤150 with advanced ventilatory support scores 3; ≤75 with advanced ventilatory support scores 4. Respiratory ECMO scores 4 regardless of the ratio.",
                          "type": "number"
                        },
                        "platelets_10e9_l": {
                          "description": "Platelets ×10^9/L, same as ×10^3/μL (1-2000). >150 scores 0; ≤150 scores 1; ≤100 scores 2; ≤80 scores 3; ≤50 scores 4.",
                          "type": "number"
                        },
                        "rrt": {
                          "description": "Receiving renal replacement therapy or fulfilling published RRT criteria, including chronic use (Ranzani 2025). true or false when provided; absent is false. true scores kidney 4. Non-renal RRT is not scored; the caller assigns this flag.",
                          "type": "boolean"
                        },
                        "spo2": {
                          "description": "Pulse-oximetry SpO2 as a percent (50-97.9). Used with fio2 only when pao2_mm_hg is absent and SpO2 is <98 (Ranzani 2025). SpO2/FiO2 >300 scores 0; ≤300 scores 1; ≤250 scores 2; ≤200 with advanced ventilatory support scores 3; ≤120 with advanced ventilatory support or ECMO scores 4.",
                          "type": "number"
                        },
                        "urine_output_ml_kg_h": {
                          "description": "Urine output in mL/kg/h (0-20) when provided. Provide oliguria_hours with this. <0.5 for 6-12 h scores 1; <0.5 for ≥12 h scores 2; <0.3 for ≥24 h or anuria (0 mL) for ≥12 h scores 3.",
                          "type": "number"
                        },
                        "vasoactive_unavailable": {
                          "description": "Vasoactive drugs unavailable or precluded by a ceiling of treatment (Ranzani 2025). true or false when provided; absent is false. When true, cardiovascular points use the MAP-only cutoffs unless mechanical_circulatory_support is true.",
                          "type": "boolean"
                        },
                        "ventilatory_support_unavailable": {
                          "description": "Advanced ventilatory support not available or precluded by a ceiling of treatment (Ranzani 2025). true or false when provided; absent is false. When true, oxygenation ratios may score 3 or 4 without advanced_ventilatory_support.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "fio2",
                        "advanced_ventilatory_support",
                        "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-2",
    "sepsis",
    "organ-failure",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T14:12:44.021Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-12T14:12:43.879Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "advanced_ventilatory_support": false,
                  "bilirubin_mg_dl": 0.8,
                  "bilirubin_umol_l": 13.7,
                  "creatinine_mg_dl": 1,
                  "creatinine_umol_l": 88,
                  "delirium_drugs": false,
                  "dopamine_ug_kg_min": 0,
                  "ecmo": false,
                  "epinephrine_ug_kg_min": 0,
                  "fio2": 0.21,
                  "gcs": 15,
                  "map_mm_hg": 80,
                  "mechanical_circulatory_support": false,
                  "norepinephrine_ug_kg_min": 0,
                  "oliguria_hours": 8,
                  "other_vasopressor_or_inotrope": false,
                  "pao2_mm_hg": 96,
                  "platelets_10e9_l": 200,
                  "rrt": false,
                  "spo2": 96,
                  "urine_output_ml_kg_h": 1,
                  "vasoactive_unavailable": false,
                  "ventilatory_support_unavailable": false
                },
                {
                  "advanced_ventilatory_support": false,
                  "bilirubin_mg_dl": 0.8,
                  "bilirubin_umol_l": 13.7,
                  "creatinine_mg_dl": 1,
                  "creatinine_umol_l": 88,
                  "delirium_drugs": false,
                  "dopamine_ug_kg_min": 0,
                  "ecmo": false,
                  "epinephrine_ug_kg_min": 0,
                  "fio2": 0.21,
                  "gcs": 15,
                  "map_mm_hg": 80,
                  "mechanical_circulatory_support": false,
                  "norepinephrine_ug_kg_min": 0,
                  "oliguria_hours": 8,
                  "other_vasopressor_or_inotrope": false,
                  "pao2_mm_hg": 96,
                  "platelets_10e9_l": 200,
                  "rrt": false,
                  "spo2": 96,
                  "urine_output_ml_kg_h": 1,
                  "vasoactive_unavailable": false,
                  "ventilatory_support_unavailable": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Ranzani OT, Singer M, Salluh JIF, Shankar-Hari M, Pilcher D, Berger-Estilita J, Coopersmith CM, Juffermans NP, Laffey J, Reinikainen M, Serpa Neto A, Tavares M, Timsit JF, Arias Lopez MDP, Arulkumaran N, Aryal D, Azoulay E, Celi LA, Chaudhuri D, De Lange D, De Waele J, Dos Santos CC, Du B, Einav S, Engelbrecht T, Fazla F, Ferrer R, Finazzi S, Fujii T, Gershengorn HB, Greene JD, Haniffa R, Hao S, Hasan MS, Hollenberg S, Ippolito M, Jung C, Kirov M, Kobari S, Lakbar I, Lipman J, Liu V, Liu X, Lobo SM, Magatti D, Martin GS, Metnitz B, Metnitz P, Myatra SN, Oczkowski S, Paiva JA, Paruk F, Pekkarinen PT, Piquilloud L, Pölkki A, Prescott HC, Reintam Blaser A, Rezende E, Robba C, Rochwerg B, Ruckly S, Samei R, Schenck EJ, Secombe P, Sendagire C, Siaw-Frimpong M, Simpkin AJ, Soares M, Summers C, Szczeklik W, Takala J, Tanaka S, Tricella G, Vincent JL, Wendon J, Zampieri FG, Rhodes A, Moreno R",
                    "doi": "10.1001/jama.2025.20516",
                    "id": "ranzani-2025",
                    "pmid": "41159833",
                    "source": "JAMA. 2025 (SOFA-2)",
                    "title": "Development and Validation of the Sequential Organ Failure Assessment (SOFA)-2 Score"
                  },
                  "components": [
                    {
                      "factor": "brain",
                      "points": 0,
                      "present": false,
                      "value": 15
                    },
                    {
                      "factor": "respiratory",
                      "points": 0,
                      "present": false,
                      "value": 457.14285714285717
                    },
                    {
                      "factor": "cardiovascular",
                      "points": 0,
                      "present": false,
                      "value": 80
                    },
                    {
                      "factor": "liver",
                      "points": 0,
                      "present": false,
                      "value": 0.8
                    },
                    {
                      "factor": "kidney",
                      "points": 0,
                      "present": false,
                      "value": {
                        "creatinine": {
                          "mg_dl": 1
                        },
                        "rrt": false,
                        "urine": null
                      }
                    },
                    {
                      "factor": "hemostasis",
                      "points": 0,
                      "present": false,
                      "value": 200
                    }
                  ],
                  "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_2",
                  "formula_expression": "SOFA-2 = brain + respiratory + cardiovascular + liver + kidney + hemostasis; each 0-4; max 24",
                  "max_score": 24,
                  "score": 0
                },
                {
                  "citation": {
                    "authors": "Ranzani OT, Singer M, Salluh JIF, Shankar-Hari M, Pilcher D, Berger-Estilita J, Coopersmith CM, Juffermans NP, Laffey J, Reinikainen M, Serpa Neto A, Tavares M, Timsit JF, Arias Lopez MDP, Arulkumaran N, Aryal D, Azoulay E, Celi LA, Chaudhuri D, De Lange D, De Waele J, Dos Santos CC, Du B, Einav S, Engelbrecht T, Fazla F, Ferrer R, Finazzi S, Fujii T, Gershengorn HB, Greene JD, Haniffa R, Hao S, Hasan MS, Hollenberg S, Ippolito M, Jung C, Kirov M, Kobari S, Lakbar I, Lipman J, Liu V, Liu X, Lobo SM, Magatti D, Martin GS, Metnitz B, Metnitz P, Myatra SN, Oczkowski S, Paiva JA, Paruk F, Pekkarinen PT, Piquilloud L, Pölkki A, Prescott HC, Reintam Blaser A, Rezende E, Robba C, Rochwerg B, Ruckly S, Samei R, Schenck EJ, Secombe P, Sendagire C, Siaw-Frimpong M, Simpkin AJ, Soares M, Summers C, Szczeklik W, Takala J, Tanaka S, Tricella G, Vincent JL, Wendon J, Zampieri FG, Rhodes A, Moreno R",
                    "doi": "10.1001/jama.2025.20516",
                    "id": "ranzani-2025",
                    "pmid": "41159833",
                    "source": "JAMA. 2025 (SOFA-2)",
                    "title": "Development and Validation of the Sequential Organ Failure Assessment (SOFA)-2 Score"
                  },
                  "components": [
                    {
                      "factor": "brain",
                      "points": 0,
                      "present": false,
                      "value": 15
                    },
                    {
                      "factor": "respiratory",
                      "points": 0,
                      "present": false,
                      "value": 457.14285714285717
                    },
                    {
                      "factor": "cardiovascular",
                      "points": 0,
                      "present": false,
                      "value": 80
                    },
                    {
                      "factor": "liver",
                      "points": 0,
                      "present": false,
                      "value": 0.8
                    },
                    {
                      "factor": "kidney",
                      "points": 0,
                      "present": false,
                      "value": {
                        "creatinine": {
                          "mg_dl": 1
                        },
                        "rrt": false,
                        "urine": null
                      }
                    },
                    {
                      "factor": "hemostasis",
                      "points": 0,
                      "present": false,
                      "value": 200
                    }
                  ],
                  "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_2",
                  "formula_expression": "SOFA-2 = brain + respiratory + cardiovascular + liver + kidney + hemostasis; each 0-4; max 24",
                  "max_score": 24,
                  "score": 0
                }
              ],
              "path": "/api/calc/sofa_2"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "advanced_ventilatory_support": {
                            "description": "High-flow nasal cannula, CPAP, bilevel positive airway pressure, noninvasive ventilation, invasive mechanical ventilation, or long-term home ventilation (Ranzani 2025). true or false. Respiratory scores 3 and 4 require this, ventilatory_support_unavailable, or respiratory ECMO.",
                            "type": "boolean"
                          },
                          "bilirubin_mg_dl": {
                            "description": "Total bilirubin in mg/dL (0.1-40). Provide this or bilirubin_umol_l. ≤1.20 scores 0; ≤3.0 scores 1; ≤6.0 scores 2; ≤12.0 scores 3; >12.0 scores 4.",
                            "type": "number"
                          },
                          "bilirubin_umol_l": {
                            "description": "Total bilirubin in µmol/L (2-684). ≤20.6 scores 0; ≤51.3 scores 1; ≤102.6 scores 2; ≤205 scores 3; >205 scores 4.",
                            "type": "number"
                          },
                          "creatinine_mg_dl": {
                            "description": "Creatinine in mg/dL (0.1-20). Provide this, creatinine_umol_l, or rrt=true. ≤1.20 scores 0; ≤2.0 scores 1; ≤3.50 scores 2; >3.50 scores 3. Kidney is the max of creatinine, urine, and RRT.",
                            "type": "number"
                          },
                          "creatinine_umol_l": {
                            "description": "Creatinine in µmol/L (9-1768). ≤110 scores 0; ≤170 scores 1; ≤300 scores 2; >300 scores 3.",
                            "type": "number"
                          },
                          "delirium_drugs": {
                            "description": "Drugs given to treat delirium (Ranzani 2025). true or false when provided; absent is false. true scores brain at least 1 even if GCS is 15.",
                            "type": "boolean"
                          },
                          "dopamine_ug_kg_min": {
                            "description": "Dopamine in µg/kg·min (0-80) when provided. Absent is 0. As a single vasopressor: ≤20 scores 2; >20 to 40 scores 3; >40 scores 4. With norepinephrine, epinephrine, or another agent it counts as an other vasopressor or inotrope.",
                            "type": "number"
                          },
                          "ecmo": {
                            "description": "Respiratory ECMO of any form. true or false when provided; absent is false. true scores respiratory 4 regardless of PaO2/FiO2 or SpO2/FiO2 and does not by itself score cardiovascular points.",
                            "type": "boolean"
                          },
                          "epinephrine_ug_kg_min": {
                            "description": "Epinephrine in µg/kg·min (0-10) when provided. Absent is 0. Added to norepinephrine for the published dose bands.",
                            "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), including last pre-sedation GCS or the motor scale when the three-domain GCS cannot be evaluated. 15 scores 0; 13-14 scores 1; 9-12 scores 2; 6-8 scores 3; 3-5 scores 4. magent does not examine the patient.",
                            "type": "integer"
                          },
                          "map_mm_hg": {
                            "description": "Mean arterial pressure in mm Hg (20-180). MAP <70 with no vasopressor or inotrope scores 1 unless a higher cardiovascular band applies. When vasoactive_unavailable is true, MAP ≥70 scores 0; 60-69 scores 1; 50-59 scores 2; 40-49 scores 3; <40 scores 4.",
                            "type": "number"
                          },
                          "mechanical_circulatory_support": {
                            "description": "Mechanical circulatory support (veno-arterial ECMO, intra-aortic balloon pump, left ventricular assist device, or microaxial flow pump). true or false when provided; absent is false. true scores cardiovascular 4.",
                            "type": "boolean"
                          },
                          "norepinephrine_ug_kg_min": {
                            "description": "Norepinephrine as the base in µg/kg·min (0-10) when provided. Absent is 0. Summed with epinephrine: >0 to ≤0.2 scores 2; >0.2 to ≤0.4 scores 3; >0.4 scores 4. Low-dose plus any other vasopressor or inotrope scores 3; medium-dose plus any other, or mechanical circulatory support, scores 4.",
                            "type": "number"
                          },
                          "oliguria_hours": {
                            "description": "Hours at the reported urine_output_ml_kg_h (0-72). Required when urine_output_ml_kg_h is provided.",
                            "type": "number"
                          },
                          "other_vasopressor_or_inotrope": {
                            "description": "Any other vasopressor or inotrope (Ranzani 2025). true or false when provided; absent is false. Any dose scores cardiovascular 2 unless a higher norepinephrine/epinephrine or mechanical band applies.",
                            "type": "boolean"
                          },
                          "pao2_mm_hg": {
                            "description": "Arterial PaO2 in mm Hg (20-700). Provide this with fio2, or spo2 with fio2 when PaO2 is unavailable. PaO2/FiO2 >300 scores 0; ≤300 scores 1; ≤225 scores 2; ≤150 with advanced ventilatory support scores 3; ≤75 with advanced ventilatory support scores 4. Respiratory ECMO scores 4 regardless of the ratio.",
                            "type": "number"
                          },
                          "platelets_10e9_l": {
                            "description": "Platelets ×10^9/L, same as ×10^3/μL (1-2000). >150 scores 0; ≤150 scores 1; ≤100 scores 2; ≤80 scores 3; ≤50 scores 4.",
                            "type": "number"
                          },
                          "rrt": {
                            "description": "Receiving renal replacement therapy or fulfilling published RRT criteria, including chronic use (Ranzani 2025). true or false when provided; absent is false. true scores kidney 4. Non-renal RRT is not scored; the caller assigns this flag.",
                            "type": "boolean"
                          },
                          "spo2": {
                            "description": "Pulse-oximetry SpO2 as a percent (50-97.9). Used with fio2 only when pao2_mm_hg is absent and SpO2 is <98 (Ranzani 2025). SpO2/FiO2 >300 scores 0; ≤300 scores 1; ≤250 scores 2; ≤200 with advanced ventilatory support scores 3; ≤120 with advanced ventilatory support or ECMO scores 4.",
                            "type": "number"
                          },
                          "urine_output_ml_kg_h": {
                            "description": "Urine output in mL/kg/h (0-20) when provided. Provide oliguria_hours with this. <0.5 for 6-12 h scores 1; <0.5 for ≥12 h scores 2; <0.3 for ≥24 h or anuria (0 mL) for ≥12 h scores 3.",
                            "type": "number"
                          },
                          "vasoactive_unavailable": {
                            "description": "Vasoactive drugs unavailable or precluded by a ceiling of treatment (Ranzani 2025). true or false when provided; absent is false. When true, cardiovascular points use the MAP-only cutoffs unless mechanical_circulatory_support is true.",
                            "type": "boolean"
                          },
                          "ventilatory_support_unavailable": {
                            "description": "Advanced ventilatory support not available or precluded by a ceiling of treatment (Ranzani 2025). true or false when provided; absent is false. When true, oxygenation ratios may score 3 or 4 without advanced_ventilatory_support.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "fio2",
                          "advanced_ventilatory_support",
                          "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"
  }
}