{
  "x402Version": 2,
  "id": 39055,
  "slug": "39055",
  "resource": "https://api.magentlab.com/api/calc/liu_respiratory",
  "description": "Liu 2004 respiratory clinical score: four caller-assigned 0-3 domains — respiratory_rate (age-banded Table 1 ordinal, not raw breaths/min), retractions, dyspnea, and auscultation. magent sums only (max 12) and does not count breaths or auscultate. Score only; Liu 2004 does not print mild/moderate/severe total-score cutoffs. Not a diagnosis or treatment order. Not PRAM. Not Westley 1978 croup.",
  "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": [
              {
                "auscultation": 0,
                "dyspnea": 0,
                "respiratory_rate": 0,
                "retractions": 0
              },
              {
                "auscultation": 0,
                "dyspnea": 0,
                "respiratory_rate": 0,
                "retractions": 0
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "auscultation": 0,
                "citation": {
                  "authors": "Liu LL, Gallaher MM, Davis RL, Rutter CM, Lewis TC, Marcuse EK",
                  "doi": "10.1002/ppul.10425",
                  "id": "liu-2004",
                  "source": "Pediatr Pulmonol. 2004;37(3):243-248",
                  "title": "Use of a respiratory clinical score among different providers"
                },
                "components": [
                  {
                    "factor": "respiratory_rate",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "retractions",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "dyspnea",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "auscultation",
                    "points": 0,
                    "present": true,
                    "value": 0
                  }
                ],
                "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.",
                "dyspnea": 0,
                "formula": "liu_respiratory",
                "formula_expression": "Liu = respiratory_rate + retractions + dyspnea + auscultation; each caller-assigned 0-3; max 12",
                "max_score": 12,
                "respiratory_rate": 0,
                "retractions": 0,
                "score": 0
              },
              {
                "auscultation": 0,
                "citation": {
                  "authors": "Liu LL, Gallaher MM, Davis RL, Rutter CM, Lewis TC, Marcuse EK",
                  "doi": "10.1002/ppul.10425",
                  "id": "liu-2004",
                  "source": "Pediatr Pulmonol. 2004;37(3):243-248",
                  "title": "Use of a respiratory clinical score among different providers"
                },
                "components": [
                  {
                    "factor": "respiratory_rate",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "retractions",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "dyspnea",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "auscultation",
                    "points": 0,
                    "present": true,
                    "value": 0
                  }
                ],
                "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.",
                "dyspnea": 0,
                "formula": "liu_respiratory",
                "formula_expression": "Liu = respiratory_rate + retractions + dyspnea + auscultation; each caller-assigned 0-3; max 12",
                "max_score": 12,
                "respiratory_rate": 0,
                "retractions": 0,
                "score": 0
              }
            ],
            "path": "/api/calc/liu_respiratory"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "auscultation": {
                          "description": "Caller-assigned Liu 2004 auscultation (integer 0-3): 0 normal breathing, no wheezing; 1 end-expiratory wheeze only; 2 expiratory wheeze only (greater than end-expiratory); 3 inspiratory and expiratory wheeze or diminished breath sounds or both. magent does not auscultate.",
                          "type": "integer"
                        },
                        "dyspnea": {
                          "description": "Caller-assigned Liu 2004 dyspnea (integer 0-3). 0-2 years: 0 normal feeding, vocalizations and activity; 1 one of difficulty feeding, decreased vocalization or agitated; 2 two of those; 3 stops feeding, no vocalization, drowsy or confused. 2-4 years: 0 normal feeding, vocalizations and activity; 1 one of decreased appetite, increased coughing after play, hyperactivity; 2 two of those; 3 stops eating or drinking, stops playing, or drowsy and confused. >4 years: 0 counts to ≥10 in one breath; 1 counts to 7-9; 2 counts to 4-6; 3 counts to ≤3. magent does not examine the patient.",
                          "type": "integer"
                        },
                        "respiratory_rate": {
                          "description": "Caller-assigned Liu 2004 respiratory-rate points (integer 0-3), not raw breaths/min. Table 1 age bands for 1/2/3: <2 months ≤60 / 61-69 / ≥70; 2-12 months ≤50 / 51-59 / ≥60; 1-2 years ≤40 / 41-44 / ≥45; 2-3 years ≤34 / 35-39 / ≥40; 4-5 years ≤30 / 31-35 / ≥36; 6-12 years ≤26 / 27-30 / ≥31; >12 years ≤23 / 24-27 / ≥28. 0 is the 0-point ordinal. magent does not count breaths.",
                          "type": "integer"
                        },
                        "retractions": {
                          "description": "Caller-assigned Liu 2004 retractions (integer 0-3): 0 none; 1 subcostal or intercostal; 2 two of subcostal, intercostal, substernal or nasal flaring (infant); 3 three of subcostal, intercostal, substernal, infraclavicular or nasal flaring/head bobbing (infant). magent does not examine the patient.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "respiratory_rate",
                        "retractions",
                        "dyspnea",
                        "auscultation"
                      ],
                      "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": [
    "liu",
    "respiratory",
    "asthma",
    "pediatric",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T07:46:35.856Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T07:46:35.719Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "auscultation": 0,
                  "dyspnea": 0,
                  "respiratory_rate": 0,
                  "retractions": 0
                },
                {
                  "auscultation": 0,
                  "dyspnea": 0,
                  "respiratory_rate": 0,
                  "retractions": 0
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "auscultation": 0,
                  "citation": {
                    "authors": "Liu LL, Gallaher MM, Davis RL, Rutter CM, Lewis TC, Marcuse EK",
                    "doi": "10.1002/ppul.10425",
                    "id": "liu-2004",
                    "source": "Pediatr Pulmonol. 2004;37(3):243-248",
                    "title": "Use of a respiratory clinical score among different providers"
                  },
                  "components": [
                    {
                      "factor": "respiratory_rate",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "retractions",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "dyspnea",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "auscultation",
                      "points": 0,
                      "present": true,
                      "value": 0
                    }
                  ],
                  "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.",
                  "dyspnea": 0,
                  "formula": "liu_respiratory",
                  "formula_expression": "Liu = respiratory_rate + retractions + dyspnea + auscultation; each caller-assigned 0-3; max 12",
                  "max_score": 12,
                  "respiratory_rate": 0,
                  "retractions": 0,
                  "score": 0
                },
                {
                  "auscultation": 0,
                  "citation": {
                    "authors": "Liu LL, Gallaher MM, Davis RL, Rutter CM, Lewis TC, Marcuse EK",
                    "doi": "10.1002/ppul.10425",
                    "id": "liu-2004",
                    "source": "Pediatr Pulmonol. 2004;37(3):243-248",
                    "title": "Use of a respiratory clinical score among different providers"
                  },
                  "components": [
                    {
                      "factor": "respiratory_rate",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "retractions",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "dyspnea",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "auscultation",
                      "points": 0,
                      "present": true,
                      "value": 0
                    }
                  ],
                  "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.",
                  "dyspnea": 0,
                  "formula": "liu_respiratory",
                  "formula_expression": "Liu = respiratory_rate + retractions + dyspnea + auscultation; each caller-assigned 0-3; max 12",
                  "max_score": 12,
                  "respiratory_rate": 0,
                  "retractions": 0,
                  "score": 0
                }
              ],
              "path": "/api/calc/liu_respiratory"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "auscultation": {
                            "description": "Caller-assigned Liu 2004 auscultation (integer 0-3): 0 normal breathing, no wheezing; 1 end-expiratory wheeze only; 2 expiratory wheeze only (greater than end-expiratory); 3 inspiratory and expiratory wheeze or diminished breath sounds or both. magent does not auscultate.",
                            "type": "integer"
                          },
                          "dyspnea": {
                            "description": "Caller-assigned Liu 2004 dyspnea (integer 0-3). 0-2 years: 0 normal feeding, vocalizations and activity; 1 one of difficulty feeding, decreased vocalization or agitated; 2 two of those; 3 stops feeding, no vocalization, drowsy or confused. 2-4 years: 0 normal feeding, vocalizations and activity; 1 one of decreased appetite, increased coughing after play, hyperactivity; 2 two of those; 3 stops eating or drinking, stops playing, or drowsy and confused. >4 years: 0 counts to ≥10 in one breath; 1 counts to 7-9; 2 counts to 4-6; 3 counts to ≤3. magent does not examine the patient.",
                            "type": "integer"
                          },
                          "respiratory_rate": {
                            "description": "Caller-assigned Liu 2004 respiratory-rate points (integer 0-3), not raw breaths/min. Table 1 age bands for 1/2/3: <2 months ≤60 / 61-69 / ≥70; 2-12 months ≤50 / 51-59 / ≥60; 1-2 years ≤40 / 41-44 / ≥45; 2-3 years ≤34 / 35-39 / ≥40; 4-5 years ≤30 / 31-35 / ≥36; 6-12 years ≤26 / 27-30 / ≥31; >12 years ≤23 / 24-27 / ≥28. 0 is the 0-point ordinal. magent does not count breaths.",
                            "type": "integer"
                          },
                          "retractions": {
                            "description": "Caller-assigned Liu 2004 retractions (integer 0-3): 0 none; 1 subcostal or intercostal; 2 two of subcostal, intercostal, substernal or nasal flaring (infant); 3 three of subcostal, intercostal, substernal, infraclavicular or nasal flaring/head bobbing (infant). magent does not examine the patient.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "respiratory_rate",
                          "retractions",
                          "dyspnea",
                          "auscultation"
                        ],
                        "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"
  }
}