{
  "x402Version": 2,
  "id": 39498,
  "slug": "39498",
  "resource": "https://api.magentlab.com/api/calc/prs",
  "description": "Lipsett 2022 Pneumonia Risk Score for children 3 months to 18 years: logistic probability of radiographic pneumonia from age, triage oxygen saturation, fever, rales, and wheeze, plus the published supplement integer score 1–6. Caller-assigned findings. Not a diagnosis, not a CXR order, and not adult CURB-65.",
  "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": [
              {
                "age_years": 2,
                "fever": false,
                "rales": false,
                "spo2_percent": 99,
                "wheeze": false
              },
              {
                "age_years": 2,
                "fever": false,
                "rales": false,
                "spo2_percent": 99,
                "wheeze": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 2,
                "citation": {
                  "authors": "Lipsett SC, Hirsch AW, Monuteaux MC, Bachur RG, Neuman MI",
                  "doi": "10.1097/INF.0000000000003361",
                  "id": "lipsett-2022",
                  "pmid": "34694254",
                  "source": "Pediatr Infect Dis J. 2022;41(1):24-30",
                  "title": "Development of the Novel Pneumonia Risk Score to Predict Radiographic Pneumonia in Children"
                },
                "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.",
                "fever": false,
                "formula": "prs",
                "formula_expression": "logit = 18.05624 + 0.098308*age_years + 1.144985*fever + (-0.21636)*spo2_percent + 0.407494*rales + (-0.907087)*wheeze (Lipsett 2022 SDC INF/E552; flags 1 if true else 0); probability_percent = 100 * exp(logit) / (1 + exp(logit)) from the unrounded logit, 2 decimals; score 1 if p < 0.05, 2 if p < 0.11, 3 if p < 0.21, 4 if p < 0.51, 5 if p < 0.75, else 6 (SDC wrote >=0.76 after <0.75; magent closes that hole at 0.75)",
                "logit": -3.1668,
                "max_score": 6,
                "probability_percent": 4.04,
                "rales": false,
                "score": 1,
                "spo2_percent": 99,
                "wheeze": false
              },
              {
                "age_years": 2,
                "citation": {
                  "authors": "Lipsett SC, Hirsch AW, Monuteaux MC, Bachur RG, Neuman MI",
                  "doi": "10.1097/INF.0000000000003361",
                  "id": "lipsett-2022",
                  "pmid": "34694254",
                  "source": "Pediatr Infect Dis J. 2022;41(1):24-30",
                  "title": "Development of the Novel Pneumonia Risk Score to Predict Radiographic Pneumonia in Children"
                },
                "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.",
                "fever": false,
                "formula": "prs",
                "formula_expression": "logit = 18.05624 + 0.098308*age_years + 1.144985*fever + (-0.21636)*spo2_percent + 0.407494*rales + (-0.907087)*wheeze (Lipsett 2022 SDC INF/E552; flags 1 if true else 0); probability_percent = 100 * exp(logit) / (1 + exp(logit)) from the unrounded logit, 2 decimals; score 1 if p < 0.05, 2 if p < 0.11, 3 if p < 0.21, 4 if p < 0.51, 5 if p < 0.75, else 6 (SDC wrote >=0.76 after <0.75; magent closes that hole at 0.75)",
                "logit": -3.1668,
                "max_score": 6,
                "probability_percent": 4.04,
                "rales": false,
                "score": 1,
                "spo2_percent": 99,
                "wheeze": false
              }
            ],
            "path": "/api/calc/prs"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "age_years": {
                          "description": "Age in years, continuous (0.25-18). Lipsett 2022 enrolled children 3 months to 18 years. Not adult Params.age.",
                          "type": "number"
                        },
                        "fever": {
                          "description": "Fever at home or in the ED (Lipsett 2022 SDC: >38°C). true or false. Caller-assigned.",
                          "type": "boolean"
                        },
                        "rales": {
                          "description": "Rales / crackles on exam as assigned by the caller (Lipsett 2022). true or false. magent does not auscultate.",
                          "type": "boolean"
                        },
                        "spo2_percent": {
                          "description": "Triage / first oxygen saturation percent (50-100). Caller-assigned. magent does not measure saturation.",
                          "type": "number"
                        },
                        "wheeze": {
                          "description": "Wheeze on exam as assigned by the caller (Lipsett 2022). true or false. magent does not auscultate.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "age_years",
                        "spo2_percent",
                        "fever",
                        "rales",
                        "wheeze"
                      ],
                      "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": [
    "prs",
    "pneumonia",
    "pediatric",
    "radiograph",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T14:15:57.533Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T14:15:57.4Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age_years": 2,
                  "fever": false,
                  "rales": false,
                  "spo2_percent": 99,
                  "wheeze": false
                },
                {
                  "age_years": 2,
                  "fever": false,
                  "rales": false,
                  "spo2_percent": 99,
                  "wheeze": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 2,
                  "citation": {
                    "authors": "Lipsett SC, Hirsch AW, Monuteaux MC, Bachur RG, Neuman MI",
                    "doi": "10.1097/INF.0000000000003361",
                    "id": "lipsett-2022",
                    "pmid": "34694254",
                    "source": "Pediatr Infect Dis J. 2022;41(1):24-30",
                    "title": "Development of the Novel Pneumonia Risk Score to Predict Radiographic Pneumonia in Children"
                  },
                  "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.",
                  "fever": false,
                  "formula": "prs",
                  "formula_expression": "logit = 18.05624 + 0.098308*age_years + 1.144985*fever + (-0.21636)*spo2_percent + 0.407494*rales + (-0.907087)*wheeze (Lipsett 2022 SDC INF/E552; flags 1 if true else 0); probability_percent = 100 * exp(logit) / (1 + exp(logit)) from the unrounded logit, 2 decimals; score 1 if p < 0.05, 2 if p < 0.11, 3 if p < 0.21, 4 if p < 0.51, 5 if p < 0.75, else 6 (SDC wrote >=0.76 after <0.75; magent closes that hole at 0.75)",
                  "logit": -3.1668,
                  "max_score": 6,
                  "probability_percent": 4.04,
                  "rales": false,
                  "score": 1,
                  "spo2_percent": 99,
                  "wheeze": false
                },
                {
                  "age_years": 2,
                  "citation": {
                    "authors": "Lipsett SC, Hirsch AW, Monuteaux MC, Bachur RG, Neuman MI",
                    "doi": "10.1097/INF.0000000000003361",
                    "id": "lipsett-2022",
                    "pmid": "34694254",
                    "source": "Pediatr Infect Dis J. 2022;41(1):24-30",
                    "title": "Development of the Novel Pneumonia Risk Score to Predict Radiographic Pneumonia in Children"
                  },
                  "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.",
                  "fever": false,
                  "formula": "prs",
                  "formula_expression": "logit = 18.05624 + 0.098308*age_years + 1.144985*fever + (-0.21636)*spo2_percent + 0.407494*rales + (-0.907087)*wheeze (Lipsett 2022 SDC INF/E552; flags 1 if true else 0); probability_percent = 100 * exp(logit) / (1 + exp(logit)) from the unrounded logit, 2 decimals; score 1 if p < 0.05, 2 if p < 0.11, 3 if p < 0.21, 4 if p < 0.51, 5 if p < 0.75, else 6 (SDC wrote >=0.76 after <0.75; magent closes that hole at 0.75)",
                  "logit": -3.1668,
                  "max_score": 6,
                  "probability_percent": 4.04,
                  "rales": false,
                  "score": 1,
                  "spo2_percent": 99,
                  "wheeze": false
                }
              ],
              "path": "/api/calc/prs"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "age_years": {
                            "description": "Age in years, continuous (0.25-18). Lipsett 2022 enrolled children 3 months to 18 years. Not adult Params.age.",
                            "type": "number"
                          },
                          "fever": {
                            "description": "Fever at home or in the ED (Lipsett 2022 SDC: >38°C). true or false. Caller-assigned.",
                            "type": "boolean"
                          },
                          "rales": {
                            "description": "Rales / crackles on exam as assigned by the caller (Lipsett 2022). true or false. magent does not auscultate.",
                            "type": "boolean"
                          },
                          "spo2_percent": {
                            "description": "Triage / first oxygen saturation percent (50-100). Caller-assigned. magent does not measure saturation.",
                            "type": "number"
                          },
                          "wheeze": {
                            "description": "Wheeze on exam as assigned by the caller (Lipsett 2022). true or false. magent does not auscultate.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "age_years",
                          "spo2_percent",
                          "fever",
                          "rales",
                          "wheeze"
                        ],
                        "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"
  }
}