{
  "x402Version": 2,
  "id": 39497,
  "slug": "39497",
  "resource": "https://api.magentlab.com/api/calc/cpis",
  "description": "Pugin 1991 clinical pulmonary infection score (CPIS, max 12) from temperature, leukocytes and band forms, tracheal secretions, PaO2/FiO2 with ARDS, chest radiograph, and tracheal-aspirate culture. Band CPIS>6 follows the 1991 derivation correlation. Not a VAP diagnosis or Singh modified CPIS.",
  "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": [
              {
                "ards": false,
                "bands_ge_50": false,
                "chest_radiograph": "none",
                "culture": "none",
                "pf_ratio": 300,
                "temperature_c": 37,
                "tracheal_secretions": "none",
                "wbc_k_ul": 8
              },
              {
                "ards": false,
                "bands_ge_50": false,
                "chest_radiograph": "none",
                "culture": "none",
                "pf_ratio": 300,
                "temperature_c": 37,
                "tracheal_secretions": "none",
                "wbc_k_ul": 8
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "ards": false,
                "bands_ge_50": false,
                "chest_radiograph": "none",
                "citation": {
                  "authors": "Pugin J, Auckenthaler R, Mili N, Janssens JP, Lew PD, Suter PM",
                  "doi": "10.1164/ajrccm/143.5_Pt_1.1121",
                  "id": "pugin-1991",
                  "pmid": "2024824",
                  "source": "Am Rev Respir Dis. 1991;143(5 Pt 1):1121-1129",
                  "title": "Diagnosis of ventilator-associated pneumonia by bacteriologic analysis of bronchoscopic and nonbronchoscopic \"blind\" bronchoalveolar lavage fluid"
                },
                "components": [
                  {
                    "factor": "temperature_c",
                    "points": 0,
                    "present": false,
                    "value": 37
                  },
                  {
                    "factor": "leukocytes",
                    "points": 0,
                    "present": false,
                    "value": {
                      "bands_ge_50": false,
                      "wbc_k_ul": 8
                    }
                  },
                  {
                    "factor": "tracheal_secretions",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "oxygenation",
                    "points": 0,
                    "present": false,
                    "value": {
                      "ards": false,
                      "pf_ratio": 300
                    }
                  },
                  {
                    "factor": "chest_radiograph",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "culture",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  }
                ],
                "cpis_band": "le_6",
                "culture": "none",
                "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": "cpis",
                "formula_expression": "CPIS = temperature(36.5-38.4→0, 38.5-38.9→1, ≥39 or ≤36→2) + leukocytes(4.0-11.0→0, <4.0 or >11.0→1, +1 if abnormal and bands_ge_50) + tracheal_secretions(none→0, nonpurulent→1, purulent→2) + oxygenation(pf_ratio>240 or ards→0, pf_ratio≤240 and not ards→2) + chest_radiograph(none→0, diffuse→1, localized→2) + culture(none→0, pathogen→1, pathogen_and_gram→2); Pugin 1991; max 12; CPIS>6 suggests pulmonary infection in that derivation",
                "max_score": 12,
                "pf_ratio": 300,
                "score": 0,
                "temperature_c": 37,
                "tracheal_secretions": "none",
                "wbc_k_ul": 8
              },
              {
                "ards": false,
                "bands_ge_50": false,
                "chest_radiograph": "none",
                "citation": {
                  "authors": "Pugin J, Auckenthaler R, Mili N, Janssens JP, Lew PD, Suter PM",
                  "doi": "10.1164/ajrccm/143.5_Pt_1.1121",
                  "id": "pugin-1991",
                  "pmid": "2024824",
                  "source": "Am Rev Respir Dis. 1991;143(5 Pt 1):1121-1129",
                  "title": "Diagnosis of ventilator-associated pneumonia by bacteriologic analysis of bronchoscopic and nonbronchoscopic \"blind\" bronchoalveolar lavage fluid"
                },
                "components": [
                  {
                    "factor": "temperature_c",
                    "points": 0,
                    "present": false,
                    "value": 37
                  },
                  {
                    "factor": "leukocytes",
                    "points": 0,
                    "present": false,
                    "value": {
                      "bands_ge_50": false,
                      "wbc_k_ul": 8
                    }
                  },
                  {
                    "factor": "tracheal_secretions",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "oxygenation",
                    "points": 0,
                    "present": false,
                    "value": {
                      "ards": false,
                      "pf_ratio": 300
                    }
                  },
                  {
                    "factor": "chest_radiograph",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "culture",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  }
                ],
                "cpis_band": "le_6",
                "culture": "none",
                "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": "cpis",
                "formula_expression": "CPIS = temperature(36.5-38.4→0, 38.5-38.9→1, ≥39 or ≤36→2) + leukocytes(4.0-11.0→0, <4.0 or >11.0→1, +1 if abnormal and bands_ge_50) + tracheal_secretions(none→0, nonpurulent→1, purulent→2) + oxygenation(pf_ratio>240 or ards→0, pf_ratio≤240 and not ards→2) + chest_radiograph(none→0, diffuse→1, localized→2) + culture(none→0, pathogen→1, pathogen_and_gram→2); Pugin 1991; max 12; CPIS>6 suggests pulmonary infection in that derivation",
                "max_score": 12,
                "pf_ratio": 300,
                "score": 0,
                "temperature_c": 37,
                "tracheal_secretions": "none",
                "wbc_k_ul": 8
              }
            ],
            "path": "/api/calc/cpis"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "ards": {
                          "description": "Caller-assigned ARDS. true scores 0 for oxygenation even when pf_ratio ≤240. true or false.",
                          "type": "boolean"
                        },
                        "bands_ge_50": {
                          "description": "Caller-assigned ≥50% band forms (Pugin 1991). true adds 1 only when WBC is already <4.0 or >11.0. true or false.",
                          "type": "boolean"
                        },
                        "chest_radiograph": {
                          "description": "Caller-assigned chest radiograph. none scores 0; diffuse scores 1; localized scores 2. magent does not read the radiograph.",
                          "enum": [
                            "none",
                            "diffuse",
                            "localized"
                          ],
                          "type": "string"
                        },
                        "culture": {
                          "description": "Caller-assigned tracheal-aspirate culture. none scores 0; pathogen (moderate/heavy pathogenic growth) scores 1; pathogen_and_gram (same pathogen on Gram stain) scores 2. magent does not read Gram stains.",
                          "enum": [
                            "none",
                            "pathogen",
                            "pathogen_and_gram"
                          ],
                          "type": "string"
                        },
                        "pf_ratio": {
                          "description": "PaO2/FiO2 in mm Hg (20-800). >240 or ards=true scores 0; ≤240 and ards=false scores 2 (Pugin 1991).",
                          "type": "number"
                        },
                        "temperature_c": {
                          "description": "Temperature in °C (30.0-45.0). 36.5-38.4 scores 0; 38.5-38.9 scores 1; ≥39.0 or ≤36.0 scores 2 (Pugin 1991).",
                          "type": "number"
                        },
                        "tracheal_secretions": {
                          "description": "Caller-assigned tracheal secretions. none scores 0; nonpurulent scores 1; purulent scores 2 (Pugin 1991).",
                          "enum": [
                            "none",
                            "nonpurulent",
                            "purulent"
                          ],
                          "type": "string"
                        },
                        "wbc_k_ul": {
                          "description": "WBC in 10^3/mm^3 (same as 10^3/µL or 10^9/L). Range 0.01-500. 4.0-11.0 scores 0; <4.0 or >11.0 scores 1. Abnormal WBC plus bands_ge_50 scores 2 for this domain.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "temperature_c",
                        "wbc_k_ul",
                        "bands_ge_50",
                        "tracheal_secretions",
                        "pf_ratio",
                        "ards",
                        "chest_radiograph",
                        "culture"
                      ],
                      "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": [
    "cpis",
    "vap",
    "pneumonia",
    "pugin",
    "infection",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T14:16:04.566Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T14:16:04.424Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "ards": false,
                  "bands_ge_50": false,
                  "chest_radiograph": "none",
                  "culture": "none",
                  "pf_ratio": 300,
                  "temperature_c": 37,
                  "tracheal_secretions": "none",
                  "wbc_k_ul": 8
                },
                {
                  "ards": false,
                  "bands_ge_50": false,
                  "chest_radiograph": "none",
                  "culture": "none",
                  "pf_ratio": 300,
                  "temperature_c": 37,
                  "tracheal_secretions": "none",
                  "wbc_k_ul": 8
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "ards": false,
                  "bands_ge_50": false,
                  "chest_radiograph": "none",
                  "citation": {
                    "authors": "Pugin J, Auckenthaler R, Mili N, Janssens JP, Lew PD, Suter PM",
                    "doi": "10.1164/ajrccm/143.5_Pt_1.1121",
                    "id": "pugin-1991",
                    "pmid": "2024824",
                    "source": "Am Rev Respir Dis. 1991;143(5 Pt 1):1121-1129",
                    "title": "Diagnosis of ventilator-associated pneumonia by bacteriologic analysis of bronchoscopic and nonbronchoscopic \"blind\" bronchoalveolar lavage fluid"
                  },
                  "components": [
                    {
                      "factor": "temperature_c",
                      "points": 0,
                      "present": false,
                      "value": 37
                    },
                    {
                      "factor": "leukocytes",
                      "points": 0,
                      "present": false,
                      "value": {
                        "bands_ge_50": false,
                        "wbc_k_ul": 8
                      }
                    },
                    {
                      "factor": "tracheal_secretions",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "oxygenation",
                      "points": 0,
                      "present": false,
                      "value": {
                        "ards": false,
                        "pf_ratio": 300
                      }
                    },
                    {
                      "factor": "chest_radiograph",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "culture",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    }
                  ],
                  "cpis_band": "le_6",
                  "culture": "none",
                  "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": "cpis",
                  "formula_expression": "CPIS = temperature(36.5-38.4→0, 38.5-38.9→1, ≥39 or ≤36→2) + leukocytes(4.0-11.0→0, <4.0 or >11.0→1, +1 if abnormal and bands_ge_50) + tracheal_secretions(none→0, nonpurulent→1, purulent→2) + oxygenation(pf_ratio>240 or ards→0, pf_ratio≤240 and not ards→2) + chest_radiograph(none→0, diffuse→1, localized→2) + culture(none→0, pathogen→1, pathogen_and_gram→2); Pugin 1991; max 12; CPIS>6 suggests pulmonary infection in that derivation",
                  "max_score": 12,
                  "pf_ratio": 300,
                  "score": 0,
                  "temperature_c": 37,
                  "tracheal_secretions": "none",
                  "wbc_k_ul": 8
                },
                {
                  "ards": false,
                  "bands_ge_50": false,
                  "chest_radiograph": "none",
                  "citation": {
                    "authors": "Pugin J, Auckenthaler R, Mili N, Janssens JP, Lew PD, Suter PM",
                    "doi": "10.1164/ajrccm/143.5_Pt_1.1121",
                    "id": "pugin-1991",
                    "pmid": "2024824",
                    "source": "Am Rev Respir Dis. 1991;143(5 Pt 1):1121-1129",
                    "title": "Diagnosis of ventilator-associated pneumonia by bacteriologic analysis of bronchoscopic and nonbronchoscopic \"blind\" bronchoalveolar lavage fluid"
                  },
                  "components": [
                    {
                      "factor": "temperature_c",
                      "points": 0,
                      "present": false,
                      "value": 37
                    },
                    {
                      "factor": "leukocytes",
                      "points": 0,
                      "present": false,
                      "value": {
                        "bands_ge_50": false,
                        "wbc_k_ul": 8
                      }
                    },
                    {
                      "factor": "tracheal_secretions",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "oxygenation",
                      "points": 0,
                      "present": false,
                      "value": {
                        "ards": false,
                        "pf_ratio": 300
                      }
                    },
                    {
                      "factor": "chest_radiograph",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "culture",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    }
                  ],
                  "cpis_band": "le_6",
                  "culture": "none",
                  "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": "cpis",
                  "formula_expression": "CPIS = temperature(36.5-38.4→0, 38.5-38.9→1, ≥39 or ≤36→2) + leukocytes(4.0-11.0→0, <4.0 or >11.0→1, +1 if abnormal and bands_ge_50) + tracheal_secretions(none→0, nonpurulent→1, purulent→2) + oxygenation(pf_ratio>240 or ards→0, pf_ratio≤240 and not ards→2) + chest_radiograph(none→0, diffuse→1, localized→2) + culture(none→0, pathogen→1, pathogen_and_gram→2); Pugin 1991; max 12; CPIS>6 suggests pulmonary infection in that derivation",
                  "max_score": 12,
                  "pf_ratio": 300,
                  "score": 0,
                  "temperature_c": 37,
                  "tracheal_secretions": "none",
                  "wbc_k_ul": 8
                }
              ],
              "path": "/api/calc/cpis"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "ards": {
                            "description": "Caller-assigned ARDS. true scores 0 for oxygenation even when pf_ratio ≤240. true or false.",
                            "type": "boolean"
                          },
                          "bands_ge_50": {
                            "description": "Caller-assigned ≥50% band forms (Pugin 1991). true adds 1 only when WBC is already <4.0 or >11.0. true or false.",
                            "type": "boolean"
                          },
                          "chest_radiograph": {
                            "description": "Caller-assigned chest radiograph. none scores 0; diffuse scores 1; localized scores 2. magent does not read the radiograph.",
                            "enum": [
                              "none",
                              "diffuse",
                              "localized"
                            ],
                            "type": "string"
                          },
                          "culture": {
                            "description": "Caller-assigned tracheal-aspirate culture. none scores 0; pathogen (moderate/heavy pathogenic growth) scores 1; pathogen_and_gram (same pathogen on Gram stain) scores 2. magent does not read Gram stains.",
                            "enum": [
                              "none",
                              "pathogen",
                              "pathogen_and_gram"
                            ],
                            "type": "string"
                          },
                          "pf_ratio": {
                            "description": "PaO2/FiO2 in mm Hg (20-800). >240 or ards=true scores 0; ≤240 and ards=false scores 2 (Pugin 1991).",
                            "type": "number"
                          },
                          "temperature_c": {
                            "description": "Temperature in °C (30.0-45.0). 36.5-38.4 scores 0; 38.5-38.9 scores 1; ≥39.0 or ≤36.0 scores 2 (Pugin 1991).",
                            "type": "number"
                          },
                          "tracheal_secretions": {
                            "description": "Caller-assigned tracheal secretions. none scores 0; nonpurulent scores 1; purulent scores 2 (Pugin 1991).",
                            "enum": [
                              "none",
                              "nonpurulent",
                              "purulent"
                            ],
                            "type": "string"
                          },
                          "wbc_k_ul": {
                            "description": "WBC in 10^3/mm^3 (same as 10^3/µL or 10^9/L). Range 0.01-500. 4.0-11.0 scores 0; <4.0 or >11.0 scores 1. Abnormal WBC plus bands_ge_50 scores 2 for this domain.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "temperature_c",
                          "wbc_k_ul",
                          "bands_ge_50",
                          "tracheal_secretions",
                          "pf_ratio",
                          "ards",
                          "chest_radiograph",
                          "culture"
                        ],
                        "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"
  }
}