{
  "x402Version": 2,
  "id": 39286,
  "slug": "39286",
  "resource": "https://api.magentlab.com/api/calc/berlin_ards",
  "description": "Berlin Definition of ARDS (Ranieri 2012). berlin_ards iff clinical box (onset within 1 week, bilateral opacities not fully explained, origin not fully HF or fluid) and severity mild, moderate, or severe. Severe: PF<=100 with PEEP>=5. Moderate: 100<PF<=200 with PEEP>=5. Mild: 200<PF<=300 with PEEP or CPAP>=5. Caller assigns flags and pf_ratio. magent does not read radiographs or echo, diagnose ARDS, or set ventilator mode. Not AECC 1994, not Kigali, not the oxygenation index.",
  "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": [
              {
                "bilateral_opacities_not_fully_explained": true,
                "cpap_ge_5": false,
                "onset_within_1_week": true,
                "origin_not_fully_hf_or_fluid": true,
                "peep_ge_5": true,
                "pf_ratio": 90
              },
              {
                "bilateral_opacities_not_fully_explained": true,
                "cpap_ge_5": false,
                "onset_within_1_week": true,
                "origin_not_fully_hf_or_fluid": true,
                "peep_ge_5": true,
                "pf_ratio": 90
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "berlin_ards": true,
                "citation": {
                  "authors": "The ARDS Definition Task Force; Ranieri VM, Rubenfeld GD, Thompson BT, Ferguson ND, Caldwell E, Fan E, Camporota L, Slutsky AS",
                  "doi": "10.1001/jama.2012.5669",
                  "id": "ranieri-2012",
                  "pmid": "22797452",
                  "source": "JAMA. 2012;307(23):2526-2533",
                  "title": "Acute respiratory distress syndrome: the Berlin Definition"
                },
                "clinical_box": true,
                "criteria": [
                  {
                    "factor": "onset_within_1_week",
                    "met": true
                  },
                  {
                    "factor": "bilateral_opacities_not_fully_explained",
                    "met": true
                  },
                  {
                    "factor": "origin_not_fully_hf_or_fluid",
                    "met": true
                  },
                  {
                    "factor": "clinical_box",
                    "met": true
                  },
                  {
                    "factor": "peep_ge_5",
                    "met": true
                  },
                  {
                    "factor": "cpap_ge_5",
                    "met": false
                  },
                  {
                    "factor": "severe",
                    "met": true,
                    "value": 90
                  },
                  {
                    "factor": "moderate",
                    "met": false,
                    "value": 90
                  },
                  {
                    "factor": "mild",
                    "met": false,
                    "value": 90
                  }
                ],
                "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": "berlin_ards",
                "formula_expression": "clinical_box iff onset_within_1_week and bilateral_opacities_not_fully_explained and origin_not_fully_hf_or_fluid; severe iff clinical_box and pf_ratio <= 100 and peep_ge_5; moderate iff clinical_box and 100 < pf_ratio <= 200 and peep_ge_5; mild iff clinical_box and 200 < pf_ratio <= 300 and (peep_ge_5 or cpap_ge_5); berlin_ards iff severity is mild, moderate, or severe; else none (Ranieri 2012 Berlin Definition)",
                "pf_ratio": 90,
                "severity": "severe"
              },
              {
                "berlin_ards": true,
                "citation": {
                  "authors": "The ARDS Definition Task Force; Ranieri VM, Rubenfeld GD, Thompson BT, Ferguson ND, Caldwell E, Fan E, Camporota L, Slutsky AS",
                  "doi": "10.1001/jama.2012.5669",
                  "id": "ranieri-2012",
                  "pmid": "22797452",
                  "source": "JAMA. 2012;307(23):2526-2533",
                  "title": "Acute respiratory distress syndrome: the Berlin Definition"
                },
                "clinical_box": true,
                "criteria": [
                  {
                    "factor": "onset_within_1_week",
                    "met": true
                  },
                  {
                    "factor": "bilateral_opacities_not_fully_explained",
                    "met": true
                  },
                  {
                    "factor": "origin_not_fully_hf_or_fluid",
                    "met": true
                  },
                  {
                    "factor": "clinical_box",
                    "met": true
                  },
                  {
                    "factor": "peep_ge_5",
                    "met": true
                  },
                  {
                    "factor": "cpap_ge_5",
                    "met": false
                  },
                  {
                    "factor": "severe",
                    "met": true,
                    "value": 90
                  },
                  {
                    "factor": "moderate",
                    "met": false,
                    "value": 90
                  },
                  {
                    "factor": "mild",
                    "met": false,
                    "value": 90
                  }
                ],
                "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": "berlin_ards",
                "formula_expression": "clinical_box iff onset_within_1_week and bilateral_opacities_not_fully_explained and origin_not_fully_hf_or_fluid; severe iff clinical_box and pf_ratio <= 100 and peep_ge_5; moderate iff clinical_box and 100 < pf_ratio <= 200 and peep_ge_5; mild iff clinical_box and 200 < pf_ratio <= 300 and (peep_ge_5 or cpap_ge_5); berlin_ards iff severity is mild, moderate, or severe; else none (Ranieri 2012 Berlin Definition)",
                "pf_ratio": 90,
                "severity": "severe"
              }
            ],
            "path": "/api/calc/berlin_ards"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "bilateral_opacities_not_fully_explained": {
                          "description": "Bilateral opacities not fully explained by effusions, lobar/lung collapse, or nodules (Ranieri 2012). true or false as assigned by the caller. magent does not read radiographs.",
                          "type": "boolean"
                        },
                        "cpap_ge_5": {
                          "description": "CPAP >= 5 cm H2O as assigned by the caller (counts for mild only; CPAP without PEEP is not moderate or severe). magent does not set ventilator mode.",
                          "type": "boolean"
                        },
                        "onset_within_1_week": {
                          "description": "Onset within 1 week of a known clinical insult or new or worsening respiratory symptoms (Ranieri 2012). true or false as assigned by the caller. magent does not take a history.",
                          "type": "boolean"
                        },
                        "origin_not_fully_hf_or_fluid": {
                          "description": "Respiratory failure not fully explained by cardiac failure or fluid overload (Ranieri 2012). true or false as assigned by the caller. magent does not read echocardiography.",
                          "type": "boolean"
                        },
                        "peep_ge_5": {
                          "description": "PEEP >= 5 cm H2O as assigned by the caller (required for moderate and severe; either PEEP or CPAP for mild). magent does not set ventilator mode.",
                          "type": "boolean"
                        },
                        "pf_ratio": {
                          "description": "PaO2/FiO2 ratio in mm Hg (20-800). Caller-supplied; magent does not recompute from PaO2 and FiO2.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "onset_within_1_week",
                        "bilateral_opacities_not_fully_explained",
                        "origin_not_fully_hf_or_fluid",
                        "peep_ge_5",
                        "cpap_ge_5",
                        "pf_ratio"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "berlin-ards",
    "ards",
    "respiratory",
    "oxygenation",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T00:26:26.421Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T00:26:26.304Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "bilateral_opacities_not_fully_explained": true,
                  "cpap_ge_5": false,
                  "onset_within_1_week": true,
                  "origin_not_fully_hf_or_fluid": true,
                  "peep_ge_5": true,
                  "pf_ratio": 90
                },
                {
                  "bilateral_opacities_not_fully_explained": true,
                  "cpap_ge_5": false,
                  "onset_within_1_week": true,
                  "origin_not_fully_hf_or_fluid": true,
                  "peep_ge_5": true,
                  "pf_ratio": 90
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "berlin_ards": true,
                  "citation": {
                    "authors": "The ARDS Definition Task Force; Ranieri VM, Rubenfeld GD, Thompson BT, Ferguson ND, Caldwell E, Fan E, Camporota L, Slutsky AS",
                    "doi": "10.1001/jama.2012.5669",
                    "id": "ranieri-2012",
                    "pmid": "22797452",
                    "source": "JAMA. 2012;307(23):2526-2533",
                    "title": "Acute respiratory distress syndrome: the Berlin Definition"
                  },
                  "clinical_box": true,
                  "criteria": [
                    {
                      "factor": "onset_within_1_week",
                      "met": true
                    },
                    {
                      "factor": "bilateral_opacities_not_fully_explained",
                      "met": true
                    },
                    {
                      "factor": "origin_not_fully_hf_or_fluid",
                      "met": true
                    },
                    {
                      "factor": "clinical_box",
                      "met": true
                    },
                    {
                      "factor": "peep_ge_5",
                      "met": true
                    },
                    {
                      "factor": "cpap_ge_5",
                      "met": false
                    },
                    {
                      "factor": "severe",
                      "met": true,
                      "value": 90
                    },
                    {
                      "factor": "moderate",
                      "met": false,
                      "value": 90
                    },
                    {
                      "factor": "mild",
                      "met": false,
                      "value": 90
                    }
                  ],
                  "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": "berlin_ards",
                  "formula_expression": "clinical_box iff onset_within_1_week and bilateral_opacities_not_fully_explained and origin_not_fully_hf_or_fluid; severe iff clinical_box and pf_ratio <= 100 and peep_ge_5; moderate iff clinical_box and 100 < pf_ratio <= 200 and peep_ge_5; mild iff clinical_box and 200 < pf_ratio <= 300 and (peep_ge_5 or cpap_ge_5); berlin_ards iff severity is mild, moderate, or severe; else none (Ranieri 2012 Berlin Definition)",
                  "pf_ratio": 90,
                  "severity": "severe"
                },
                {
                  "berlin_ards": true,
                  "citation": {
                    "authors": "The ARDS Definition Task Force; Ranieri VM, Rubenfeld GD, Thompson BT, Ferguson ND, Caldwell E, Fan E, Camporota L, Slutsky AS",
                    "doi": "10.1001/jama.2012.5669",
                    "id": "ranieri-2012",
                    "pmid": "22797452",
                    "source": "JAMA. 2012;307(23):2526-2533",
                    "title": "Acute respiratory distress syndrome: the Berlin Definition"
                  },
                  "clinical_box": true,
                  "criteria": [
                    {
                      "factor": "onset_within_1_week",
                      "met": true
                    },
                    {
                      "factor": "bilateral_opacities_not_fully_explained",
                      "met": true
                    },
                    {
                      "factor": "origin_not_fully_hf_or_fluid",
                      "met": true
                    },
                    {
                      "factor": "clinical_box",
                      "met": true
                    },
                    {
                      "factor": "peep_ge_5",
                      "met": true
                    },
                    {
                      "factor": "cpap_ge_5",
                      "met": false
                    },
                    {
                      "factor": "severe",
                      "met": true,
                      "value": 90
                    },
                    {
                      "factor": "moderate",
                      "met": false,
                      "value": 90
                    },
                    {
                      "factor": "mild",
                      "met": false,
                      "value": 90
                    }
                  ],
                  "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": "berlin_ards",
                  "formula_expression": "clinical_box iff onset_within_1_week and bilateral_opacities_not_fully_explained and origin_not_fully_hf_or_fluid; severe iff clinical_box and pf_ratio <= 100 and peep_ge_5; moderate iff clinical_box and 100 < pf_ratio <= 200 and peep_ge_5; mild iff clinical_box and 200 < pf_ratio <= 300 and (peep_ge_5 or cpap_ge_5); berlin_ards iff severity is mild, moderate, or severe; else none (Ranieri 2012 Berlin Definition)",
                  "pf_ratio": 90,
                  "severity": "severe"
                }
              ],
              "path": "/api/calc/berlin_ards"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "bilateral_opacities_not_fully_explained": {
                            "description": "Bilateral opacities not fully explained by effusions, lobar/lung collapse, or nodules (Ranieri 2012). true or false as assigned by the caller. magent does not read radiographs.",
                            "type": "boolean"
                          },
                          "cpap_ge_5": {
                            "description": "CPAP >= 5 cm H2O as assigned by the caller (counts for mild only; CPAP without PEEP is not moderate or severe). magent does not set ventilator mode.",
                            "type": "boolean"
                          },
                          "onset_within_1_week": {
                            "description": "Onset within 1 week of a known clinical insult or new or worsening respiratory symptoms (Ranieri 2012). true or false as assigned by the caller. magent does not take a history.",
                            "type": "boolean"
                          },
                          "origin_not_fully_hf_or_fluid": {
                            "description": "Respiratory failure not fully explained by cardiac failure or fluid overload (Ranieri 2012). true or false as assigned by the caller. magent does not read echocardiography.",
                            "type": "boolean"
                          },
                          "peep_ge_5": {
                            "description": "PEEP >= 5 cm H2O as assigned by the caller (required for moderate and severe; either PEEP or CPAP for mild). magent does not set ventilator mode.",
                            "type": "boolean"
                          },
                          "pf_ratio": {
                            "description": "PaO2/FiO2 ratio in mm Hg (20-800). Caller-supplied; magent does not recompute from PaO2 and FiO2.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "onset_within_1_week",
                          "bilateral_opacities_not_fully_explained",
                          "origin_not_fully_hf_or_fluid",
                          "peep_ge_5",
                          "cpap_ge_5",
                          "pf_ratio"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}