{
  "x402Version": 2,
  "id": 39298,
  "slug": "39298",
  "resource": "https://api.magentlab.com/api/calc/asthma_api",
  "description": "Asthma Predictive Index (Castro-Rodriguez 2000, Tucson Children's Respiratory Study). Stringent positive if early frequent wheeze (parent frequency scale > 3) plus 1+ major or 2+ minor criteria. Loose positive if any early wheeze plus the same risk factors. Majors: parental MD asthma, MD eczema. Minors: MD allergic rhinitis, wheezing apart from colds, circulating eosinophils >4% of WBC (caller-assigned). Not mAPI. Not an asthma diagnosis. magent does not examine the child. Not a medical device.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "eosinophilia_gt_4pct": false,
                "md_allergic_rhinitis": false,
                "md_eczema": false,
                "parental_md_asthma": false,
                "wheeze": "none",
                "wheezing_apart_from_colds": false
              },
              {
                "eosinophilia_gt_4pct": false,
                "md_allergic_rhinitis": false,
                "md_eczema": false,
                "parental_md_asthma": false,
                "wheeze": "none",
                "wheezing_apart_from_colds": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Castro-Rodríguez JA, Holberg CJ, Wright AL, Martinez FD",
                  "doi": "10.1164/ajrccm.162.4.9912111",
                  "id": "castro-rodriguez-2000",
                  "pmid": "11029352",
                  "source": "Am J Respir Crit Care Med. 2000;162(4 Pt 1):1403-1406",
                  "title": "A clinical index to define risk of asthma in young children with recurrent wheezing"
                },
                "criteria": [
                  {
                    "factor": "parental_md_asthma",
                    "met": false
                  },
                  {
                    "factor": "md_eczema",
                    "met": false
                  },
                  {
                    "factor": "md_allergic_rhinitis",
                    "met": false
                  },
                  {
                    "factor": "wheezing_apart_from_colds",
                    "met": false
                  },
                  {
                    "factor": "eosinophilia_gt_4pct",
                    "met": false
                  }
                ],
                "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": "asthma_api",
                "formula_expression": "stringent_positive iff wheeze is frequent and (major_count >= 1 or minor_count >= 2); loose_positive iff wheeze is any or frequent and the same risk factors; majors parental_md_asthma and md_eczema; minors md_allergic_rhinitis, wheezing_apart_from_colds, eosinophilia_gt_4pct (Castro-Rodriguez 2000 Table 1)",
                "loose_positive": false,
                "major_count": 0,
                "minor_count": 0,
                "risk_factors_met": false,
                "stringent_positive": false,
                "wheeze": "none"
              },
              {
                "citation": {
                  "authors": "Castro-Rodríguez JA, Holberg CJ, Wright AL, Martinez FD",
                  "doi": "10.1164/ajrccm.162.4.9912111",
                  "id": "castro-rodriguez-2000",
                  "pmid": "11029352",
                  "source": "Am J Respir Crit Care Med. 2000;162(4 Pt 1):1403-1406",
                  "title": "A clinical index to define risk of asthma in young children with recurrent wheezing"
                },
                "criteria": [
                  {
                    "factor": "parental_md_asthma",
                    "met": false
                  },
                  {
                    "factor": "md_eczema",
                    "met": false
                  },
                  {
                    "factor": "md_allergic_rhinitis",
                    "met": false
                  },
                  {
                    "factor": "wheezing_apart_from_colds",
                    "met": false
                  },
                  {
                    "factor": "eosinophilia_gt_4pct",
                    "met": false
                  }
                ],
                "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": "asthma_api",
                "formula_expression": "stringent_positive iff wheeze is frequent and (major_count >= 1 or minor_count >= 2); loose_positive iff wheeze is any or frequent and the same risk factors; majors parental_md_asthma and md_eczema; minors md_allergic_rhinitis, wheezing_apart_from_colds, eosinophilia_gt_4pct (Castro-Rodriguez 2000 Table 1)",
                "loose_positive": false,
                "major_count": 0,
                "minor_count": 0,
                "risk_factors_met": false,
                "stringent_positive": false,
                "wheeze": "none"
              }
            ],
            "path": "/api/calc/asthma_api"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "eosinophilia_gt_4pct": {
                          "description": "Circulating eosinophils >4% of WBC as assigned by the caller (Castro-Rodriguez 2000 Table 1). true or false. Minor criterion. magent does not take an eosinophil percent and does not interpret a CBC.",
                          "type": "boolean"
                        },
                        "md_allergic_rhinitis": {
                          "description": "Physician-diagnosed allergic rhinitis as assigned by the caller. true or false. Minor criterion (Castro-Rodriguez 2000 Table 1). magent does not examine the child.",
                          "type": "boolean"
                        },
                        "md_eczema": {
                          "description": "Physician-diagnosed eczema as assigned by the caller. true or false. Major criterion (Castro-Rodriguez 2000 Table 1). magent does not examine the child.",
                          "type": "boolean"
                        },
                        "parental_md_asthma": {
                          "description": "Parental physician-diagnosed asthma as assigned by the caller. true or false. Major criterion (Castro-Rodriguez 2000 Table 1). magent does not take a family history.",
                          "type": "boolean"
                        },
                        "wheeze": {
                          "description": "Early-wheeze class from Castro-Rodriguez 2000. none = not an early wheezer; any = early wheezer (chest ever sounded wheezy in the first 3 years); frequent = early frequent wheezer (parent frequency scale > 3). Loose index requires any or frequent. Stringent index requires frequent.",
                          "enum": [
                            "none",
                            "any",
                            "frequent"
                          ],
                          "type": "string"
                        },
                        "wheezing_apart_from_colds": {
                          "description": "Wheezing apart from colds as assigned by the caller. true or false. Minor criterion (Castro-Rodriguez 2000 Table 1). magent does not auscultate.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "wheeze",
                        "parental_md_asthma",
                        "md_eczema",
                        "md_allergic_rhinitis",
                        "wheezing_apart_from_colds",
                        "eosinophilia_gt_4pct"
                      ],
                      "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": [
    "asthma-api",
    "pediatric-wheeze",
    "respiratory",
    "predictive-index",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T00:00:51.413Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T00:00:51.295Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "eosinophilia_gt_4pct": false,
                  "md_allergic_rhinitis": false,
                  "md_eczema": false,
                  "parental_md_asthma": false,
                  "wheeze": "none",
                  "wheezing_apart_from_colds": false
                },
                {
                  "eosinophilia_gt_4pct": false,
                  "md_allergic_rhinitis": false,
                  "md_eczema": false,
                  "parental_md_asthma": false,
                  "wheeze": "none",
                  "wheezing_apart_from_colds": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Castro-Rodríguez JA, Holberg CJ, Wright AL, Martinez FD",
                    "doi": "10.1164/ajrccm.162.4.9912111",
                    "id": "castro-rodriguez-2000",
                    "pmid": "11029352",
                    "source": "Am J Respir Crit Care Med. 2000;162(4 Pt 1):1403-1406",
                    "title": "A clinical index to define risk of asthma in young children with recurrent wheezing"
                  },
                  "criteria": [
                    {
                      "factor": "parental_md_asthma",
                      "met": false
                    },
                    {
                      "factor": "md_eczema",
                      "met": false
                    },
                    {
                      "factor": "md_allergic_rhinitis",
                      "met": false
                    },
                    {
                      "factor": "wheezing_apart_from_colds",
                      "met": false
                    },
                    {
                      "factor": "eosinophilia_gt_4pct",
                      "met": false
                    }
                  ],
                  "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": "asthma_api",
                  "formula_expression": "stringent_positive iff wheeze is frequent and (major_count >= 1 or minor_count >= 2); loose_positive iff wheeze is any or frequent and the same risk factors; majors parental_md_asthma and md_eczema; minors md_allergic_rhinitis, wheezing_apart_from_colds, eosinophilia_gt_4pct (Castro-Rodriguez 2000 Table 1)",
                  "loose_positive": false,
                  "major_count": 0,
                  "minor_count": 0,
                  "risk_factors_met": false,
                  "stringent_positive": false,
                  "wheeze": "none"
                },
                {
                  "citation": {
                    "authors": "Castro-Rodríguez JA, Holberg CJ, Wright AL, Martinez FD",
                    "doi": "10.1164/ajrccm.162.4.9912111",
                    "id": "castro-rodriguez-2000",
                    "pmid": "11029352",
                    "source": "Am J Respir Crit Care Med. 2000;162(4 Pt 1):1403-1406",
                    "title": "A clinical index to define risk of asthma in young children with recurrent wheezing"
                  },
                  "criteria": [
                    {
                      "factor": "parental_md_asthma",
                      "met": false
                    },
                    {
                      "factor": "md_eczema",
                      "met": false
                    },
                    {
                      "factor": "md_allergic_rhinitis",
                      "met": false
                    },
                    {
                      "factor": "wheezing_apart_from_colds",
                      "met": false
                    },
                    {
                      "factor": "eosinophilia_gt_4pct",
                      "met": false
                    }
                  ],
                  "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": "asthma_api",
                  "formula_expression": "stringent_positive iff wheeze is frequent and (major_count >= 1 or minor_count >= 2); loose_positive iff wheeze is any or frequent and the same risk factors; majors parental_md_asthma and md_eczema; minors md_allergic_rhinitis, wheezing_apart_from_colds, eosinophilia_gt_4pct (Castro-Rodriguez 2000 Table 1)",
                  "loose_positive": false,
                  "major_count": 0,
                  "minor_count": 0,
                  "risk_factors_met": false,
                  "stringent_positive": false,
                  "wheeze": "none"
                }
              ],
              "path": "/api/calc/asthma_api"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "eosinophilia_gt_4pct": {
                            "description": "Circulating eosinophils >4% of WBC as assigned by the caller (Castro-Rodriguez 2000 Table 1). true or false. Minor criterion. magent does not take an eosinophil percent and does not interpret a CBC.",
                            "type": "boolean"
                          },
                          "md_allergic_rhinitis": {
                            "description": "Physician-diagnosed allergic rhinitis as assigned by the caller. true or false. Minor criterion (Castro-Rodriguez 2000 Table 1). magent does not examine the child.",
                            "type": "boolean"
                          },
                          "md_eczema": {
                            "description": "Physician-diagnosed eczema as assigned by the caller. true or false. Major criterion (Castro-Rodriguez 2000 Table 1). magent does not examine the child.",
                            "type": "boolean"
                          },
                          "parental_md_asthma": {
                            "description": "Parental physician-diagnosed asthma as assigned by the caller. true or false. Major criterion (Castro-Rodriguez 2000 Table 1). magent does not take a family history.",
                            "type": "boolean"
                          },
                          "wheeze": {
                            "description": "Early-wheeze class from Castro-Rodriguez 2000. none = not an early wheezer; any = early wheezer (chest ever sounded wheezy in the first 3 years); frequent = early frequent wheezer (parent frequency scale > 3). Loose index requires any or frequent. Stringent index requires frequent.",
                            "enum": [
                              "none",
                              "any",
                              "frequent"
                            ],
                            "type": "string"
                          },
                          "wheezing_apart_from_colds": {
                            "description": "Wheezing apart from colds as assigned by the caller. true or false. Minor criterion (Castro-Rodriguez 2000 Table 1). magent does not auscultate.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "wheeze",
                          "parental_md_asthma",
                          "md_eczema",
                          "md_allergic_rhinitis",
                          "wheezing_apart_from_colds",
                          "eosinophilia_gt_4pct"
                        ],
                        "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"
  }
}