{
  "x402Version": 2,
  "id": 38956,
  "slug": "38956",
  "resource": "https://api.magentlab.com/api/calc/piama",
  "description": "Caudri 2009 PIAMA Table III decimal clinical prediction score (max 55.1). Male 4.6, post-term 7.3, medium/low parental education 4.2, parental inhaled medication 7.7, wheezing none/1–3/≥4 → 0/4.2/9.1, wheeze or dyspnea apart from colds 7.1, serious infections none/1–2/≥3 → 0/4.6/6.9, eczema with rash 8.2. Score <10 ~3% asthma at 7–8 years; ≥30 ~42%. Not a 0–18 integer port, API, or mAPI. Not a diagnosis. magent does not examine the child.",
  "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": [
              {
                "eczema_with_rash": false,
                "medium_low_parental_education": false,
                "parental_inhaled_medication": false,
                "postterm_delivery": false,
                "serious_infections": "none",
                "sex": "female",
                "wheeze_dyspnea_apart_from_colds": false,
                "wheezing": "none"
              },
              {
                "eczema_with_rash": false,
                "medium_low_parental_education": false,
                "parental_inhaled_medication": false,
                "postterm_delivery": false,
                "serious_infections": "none",
                "sex": "female",
                "wheeze_dyspnea_apart_from_colds": false,
                "wheezing": "none"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "below_10": true,
                "citation": {
                  "authors": "Caudri D, Wijga A, Schipper CMA, Hoekstra M, Postma DS, Koppelman GH, Brunekreef B, Smit HA, de Jongste JC",
                  "doi": "10.1016/j.jaci.2009.06.045",
                  "id": "caudri-2009",
                  "pmid": "19665765",
                  "source": "J Allergy Clin Immunol. 2009;124(5):903-910",
                  "title": "Predicting the long-term prognosis of children with symptoms suggestive of asthma at preschool age"
                },
                "components": [
                  {
                    "factor": "male",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "postterm_delivery",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "medium_low_parental_education",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "parental_inhaled_medication",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "wheezing",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "wheeze_dyspnea_apart_from_colds",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "serious_infections",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "eczema_with_rash",
                    "points": 0,
                    "present": 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": "piama",
                "formula_expression": "piama = 4.6*male + 7.3*postterm_delivery + 4.2*medium_low_parental_education + 7.7*parental_inhaled_medication + wheezing(none 0, 1_to_3 4.2, ge_4 9.1) + 7.1*wheeze_dyspnea_apart_from_colds + serious_infections(none 0, 1_to_2 4.6, ge_3 6.9) + 8.2*eczema_with_rash; Caudri 2009 Table III; max 55.1; below_10 iff score < 10 (~3% asthma at 7-8 years); ge_30 iff score ≥ 30 (~42% risk)",
                "ge_30": false,
                "max_score": 55.1,
                "score": 0
              },
              {
                "below_10": true,
                "citation": {
                  "authors": "Caudri D, Wijga A, Schipper CMA, Hoekstra M, Postma DS, Koppelman GH, Brunekreef B, Smit HA, de Jongste JC",
                  "doi": "10.1016/j.jaci.2009.06.045",
                  "id": "caudri-2009",
                  "pmid": "19665765",
                  "source": "J Allergy Clin Immunol. 2009;124(5):903-910",
                  "title": "Predicting the long-term prognosis of children with symptoms suggestive of asthma at preschool age"
                },
                "components": [
                  {
                    "factor": "male",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "postterm_delivery",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "medium_low_parental_education",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "parental_inhaled_medication",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "wheezing",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "wheeze_dyspnea_apart_from_colds",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "serious_infections",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "eczema_with_rash",
                    "points": 0,
                    "present": 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": "piama",
                "formula_expression": "piama = 4.6*male + 7.3*postterm_delivery + 4.2*medium_low_parental_education + 7.7*parental_inhaled_medication + wheezing(none 0, 1_to_3 4.2, ge_4 9.1) + 7.1*wheeze_dyspnea_apart_from_colds + serious_infections(none 0, 1_to_2 4.6, ge_3 6.9) + 8.2*eczema_with_rash; Caudri 2009 Table III; max 55.1; below_10 iff score < 10 (~3% asthma at 7-8 years); ge_30 iff score ≥ 30 (~42% risk)",
                "ge_30": false,
                "max_score": 55.1,
                "score": 0
              }
            ],
            "path": "/api/calc/piama"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "eczema_with_rash": {
                          "description": "Doctor's diagnosis of eczema AND eczematous rash present, as assigned by the caller (Caudri 2009 Table III). true scores 8.2. magent does not examine the child.",
                          "type": "boolean"
                        },
                        "medium_low_parental_education": {
                          "description": "Medium or low education in at least one parent as assigned by the caller (Caudri 2009 Table III). true scores 4.2. magent does not take a parental education history.",
                          "type": "boolean"
                        },
                        "parental_inhaled_medication": {
                          "description": "Inhalation medication by at least one parent as assigned by the caller (Caudri 2009 Table III). true scores 7.7. magent does not take a family medication history.",
                          "type": "boolean"
                        },
                        "postterm_delivery": {
                          "description": "Post-term delivery as assigned by the caller (Caudri 2009 Table III). true scores 7.3. magent does not take an obstetric history.",
                          "type": "boolean"
                        },
                        "serious_infections": {
                          "description": "Serious respiratory or ear/nose/throat infections per year (Caudri 2009 Table III). none scores 0; 1_to_2 (1–2 times/year) scores 4.6; ge_3 (≥3 times/year) scores 6.9. Mutually exclusive. magent does not diagnose infection.",
                          "enum": [
                            "none",
                            "1_to_2",
                            "ge_3"
                          ],
                          "type": "string"
                        },
                        "sex": {
                          "description": "Caller-assigned sex (Caudri 2009 Table III). male scores 4.6; female scores 0. magent does not assign sex.",
                          "enum": [
                            "female",
                            "male"
                          ],
                          "type": "string"
                        },
                        "wheeze_dyspnea_apart_from_colds": {
                          "description": "Wheeze or dyspnea apart from colds as assigned by the caller (Caudri 2009 Table III). true scores 7.1. PIAMA collected this only at ages 3–4 and treated younger children as negative by default; the caller assigns the boolean. magent does not take numeric age and does not auto-override.",
                          "type": "boolean"
                        },
                        "wheezing": {
                          "description": "Wheezing frequency in the last year (Caudri 2009 Table III). none scores 0; 1_to_3 (infrequent, 1–3 times/year) scores 4.2; ge_4 (frequent, ≥4 times/year) scores 9.1. Mutually exclusive. magent does not auscultate.",
                          "enum": [
                            "none",
                            "1_to_3",
                            "ge_4"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "sex",
                        "postterm_delivery",
                        "medium_low_parental_education",
                        "parental_inhaled_medication",
                        "wheezing",
                        "wheeze_dyspnea_apart_from_colds",
                        "serious_infections",
                        "eczema_with_rash"
                      ],
                      "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": [
    "piama",
    "preschool-asthma",
    "respiratory",
    "wheeze",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T11:17:25.039Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T11:17:24.899Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "eczema_with_rash": false,
                  "medium_low_parental_education": false,
                  "parental_inhaled_medication": false,
                  "postterm_delivery": false,
                  "serious_infections": "none",
                  "sex": "female",
                  "wheeze_dyspnea_apart_from_colds": false,
                  "wheezing": "none"
                },
                {
                  "eczema_with_rash": false,
                  "medium_low_parental_education": false,
                  "parental_inhaled_medication": false,
                  "postterm_delivery": false,
                  "serious_infections": "none",
                  "sex": "female",
                  "wheeze_dyspnea_apart_from_colds": false,
                  "wheezing": "none"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "below_10": true,
                  "citation": {
                    "authors": "Caudri D, Wijga A, Schipper CMA, Hoekstra M, Postma DS, Koppelman GH, Brunekreef B, Smit HA, de Jongste JC",
                    "doi": "10.1016/j.jaci.2009.06.045",
                    "id": "caudri-2009",
                    "pmid": "19665765",
                    "source": "J Allergy Clin Immunol. 2009;124(5):903-910",
                    "title": "Predicting the long-term prognosis of children with symptoms suggestive of asthma at preschool age"
                  },
                  "components": [
                    {
                      "factor": "male",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "postterm_delivery",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "medium_low_parental_education",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "parental_inhaled_medication",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "wheezing",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "wheeze_dyspnea_apart_from_colds",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "serious_infections",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "eczema_with_rash",
                      "points": 0,
                      "present": 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": "piama",
                  "formula_expression": "piama = 4.6*male + 7.3*postterm_delivery + 4.2*medium_low_parental_education + 7.7*parental_inhaled_medication + wheezing(none 0, 1_to_3 4.2, ge_4 9.1) + 7.1*wheeze_dyspnea_apart_from_colds + serious_infections(none 0, 1_to_2 4.6, ge_3 6.9) + 8.2*eczema_with_rash; Caudri 2009 Table III; max 55.1; below_10 iff score < 10 (~3% asthma at 7-8 years); ge_30 iff score ≥ 30 (~42% risk)",
                  "ge_30": false,
                  "max_score": 55.1,
                  "score": 0
                },
                {
                  "below_10": true,
                  "citation": {
                    "authors": "Caudri D, Wijga A, Schipper CMA, Hoekstra M, Postma DS, Koppelman GH, Brunekreef B, Smit HA, de Jongste JC",
                    "doi": "10.1016/j.jaci.2009.06.045",
                    "id": "caudri-2009",
                    "pmid": "19665765",
                    "source": "J Allergy Clin Immunol. 2009;124(5):903-910",
                    "title": "Predicting the long-term prognosis of children with symptoms suggestive of asthma at preschool age"
                  },
                  "components": [
                    {
                      "factor": "male",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "postterm_delivery",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "medium_low_parental_education",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "parental_inhaled_medication",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "wheezing",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "wheeze_dyspnea_apart_from_colds",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "serious_infections",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "eczema_with_rash",
                      "points": 0,
                      "present": 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": "piama",
                  "formula_expression": "piama = 4.6*male + 7.3*postterm_delivery + 4.2*medium_low_parental_education + 7.7*parental_inhaled_medication + wheezing(none 0, 1_to_3 4.2, ge_4 9.1) + 7.1*wheeze_dyspnea_apart_from_colds + serious_infections(none 0, 1_to_2 4.6, ge_3 6.9) + 8.2*eczema_with_rash; Caudri 2009 Table III; max 55.1; below_10 iff score < 10 (~3% asthma at 7-8 years); ge_30 iff score ≥ 30 (~42% risk)",
                  "ge_30": false,
                  "max_score": 55.1,
                  "score": 0
                }
              ],
              "path": "/api/calc/piama"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "eczema_with_rash": {
                            "description": "Doctor's diagnosis of eczema AND eczematous rash present, as assigned by the caller (Caudri 2009 Table III). true scores 8.2. magent does not examine the child.",
                            "type": "boolean"
                          },
                          "medium_low_parental_education": {
                            "description": "Medium or low education in at least one parent as assigned by the caller (Caudri 2009 Table III). true scores 4.2. magent does not take a parental education history.",
                            "type": "boolean"
                          },
                          "parental_inhaled_medication": {
                            "description": "Inhalation medication by at least one parent as assigned by the caller (Caudri 2009 Table III). true scores 7.7. magent does not take a family medication history.",
                            "type": "boolean"
                          },
                          "postterm_delivery": {
                            "description": "Post-term delivery as assigned by the caller (Caudri 2009 Table III). true scores 7.3. magent does not take an obstetric history.",
                            "type": "boolean"
                          },
                          "serious_infections": {
                            "description": "Serious respiratory or ear/nose/throat infections per year (Caudri 2009 Table III). none scores 0; 1_to_2 (1–2 times/year) scores 4.6; ge_3 (≥3 times/year) scores 6.9. Mutually exclusive. magent does not diagnose infection.",
                            "enum": [
                              "none",
                              "1_to_2",
                              "ge_3"
                            ],
                            "type": "string"
                          },
                          "sex": {
                            "description": "Caller-assigned sex (Caudri 2009 Table III). male scores 4.6; female scores 0. magent does not assign sex.",
                            "enum": [
                              "female",
                              "male"
                            ],
                            "type": "string"
                          },
                          "wheeze_dyspnea_apart_from_colds": {
                            "description": "Wheeze or dyspnea apart from colds as assigned by the caller (Caudri 2009 Table III). true scores 7.1. PIAMA collected this only at ages 3–4 and treated younger children as negative by default; the caller assigns the boolean. magent does not take numeric age and does not auto-override.",
                            "type": "boolean"
                          },
                          "wheezing": {
                            "description": "Wheezing frequency in the last year (Caudri 2009 Table III). none scores 0; 1_to_3 (infrequent, 1–3 times/year) scores 4.2; ge_4 (frequent, ≥4 times/year) scores 9.1. Mutually exclusive. magent does not auscultate.",
                            "enum": [
                              "none",
                              "1_to_3",
                              "ge_4"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "sex",
                          "postterm_delivery",
                          "medium_low_parental_education",
                          "parental_inhaled_medication",
                          "wheezing",
                          "wheeze_dyspnea_apart_from_colds",
                          "serious_infections",
                          "eczema_with_rash"
                        ],
                        "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"
  }
}