{
  "x402Version": 2,
  "id": 38944,
  "slug": "38944",
  "resource": "https://api.magentlab.com/api/calc/promise",
  "description": "Psallidas 2018 Table 2A clinical PROMISE for malignant pleural effusion: chemo 0/4, radiotherapy 0/2, haemoglobin g/dL 0-4, WBC 10^9/L 0/2/4/7/10, CRP mg/L 0/3/5/8/11, ECOG 0-1=0 or 2-4=7, cancer mesothelioma 0 / other 4 / lung 5. Groups A 0-20 <25%, B 21-27, C 28-35, D >35 >=75% 3-month mortality. Not TIMP1. Not a treatment order.",
  "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": [
              {
                "cancer_type": "other",
                "chemotherapy": false,
                "crp_mg_l": 20,
                "ecog": 0,
                "haemoglobin_g_dl": 15,
                "radiotherapy": false,
                "wbc": 8
              },
              {
                "cancer_type": "other",
                "chemotherapy": false,
                "crp_mg_l": 20,
                "ecog": 0,
                "haemoglobin_g_dl": 15,
                "radiotherapy": false,
                "wbc": 8
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "cancer_type": "other",
                "chemotherapy": false,
                "citation": {
                  "authors": "Psallidas I, Kanellakis NI, Gerry S, et al.",
                  "doi": "10.1016/S1470-2045(18)30294-8",
                  "id": "psallidas-2018",
                  "pmid": "29908990",
                  "source": "Lancet Oncol. 2018;19(7):930-939",
                  "title": "Development and validation of response markers to predict survival and pleurodesis success in patients with malignant pleural effusion (PROMISE): a multicohort analysis"
                },
                "components": [
                  {
                    "factor": "chemotherapy",
                    "points": 0,
                    "present": false,
                    "value": false
                  },
                  {
                    "factor": "radiotherapy",
                    "points": 0,
                    "present": false,
                    "value": false
                  },
                  {
                    "factor": "haemoglobin",
                    "points": 1,
                    "present": true,
                    "value": 15
                  },
                  {
                    "factor": "wbc",
                    "points": 4,
                    "present": true,
                    "value": 8
                  },
                  {
                    "factor": "crp",
                    "points": 5,
                    "present": true,
                    "value": 20
                  },
                  {
                    "factor": "ecog",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "cancer_type",
                    "points": 4,
                    "present": true,
                    "value": "other"
                  }
                ],
                "crp_mg_l": 20,
                "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.",
                "ecog": 0,
                "formula": "promise",
                "formula_expression": "clinical PROMISE = previous_chemotherapy (no 0, yes 4) + previous_radiotherapy (no 0, yes 2) + haemoglobin_g_dl (≥16 → 0; 14 to <16 → 1; 12 to <14 → 2; 10 to <12 → 3; <10 → 4) + wbc_10e9_l (<4 → 0; 4 to <6.3 → 2; 6.3 to <10 → 4; 10 to <15.8 → 7; ≥15.8 → 10) + crp_mg_l (<3 → 0; 3 to <10 → 3; 10 to <32 → 5; 32 to <100 → 8; ≥100 → 11) + ECOG (0–1 → 0; 2–4 → 7) + cancer_type (mesothelioma → 0; other → 4; lung → 5); Psallidas 2018 Table 2A; groups A 0–20 <25% 3-month mortality, B 21–27 25% to <50%, C 28–35 50% to <75%, D >35 ≥75%",
                "group": "A",
                "haemoglobin_g_dl": 15,
                "max_score": 43,
                "radiotherapy": false,
                "score": 14,
                "three_month_mortality": "<25%",
                "wbc": 8
              },
              {
                "cancer_type": "other",
                "chemotherapy": false,
                "citation": {
                  "authors": "Psallidas I, Kanellakis NI, Gerry S, et al.",
                  "doi": "10.1016/S1470-2045(18)30294-8",
                  "id": "psallidas-2018",
                  "pmid": "29908990",
                  "source": "Lancet Oncol. 2018;19(7):930-939",
                  "title": "Development and validation of response markers to predict survival and pleurodesis success in patients with malignant pleural effusion (PROMISE): a multicohort analysis"
                },
                "components": [
                  {
                    "factor": "chemotherapy",
                    "points": 0,
                    "present": false,
                    "value": false
                  },
                  {
                    "factor": "radiotherapy",
                    "points": 0,
                    "present": false,
                    "value": false
                  },
                  {
                    "factor": "haemoglobin",
                    "points": 1,
                    "present": true,
                    "value": 15
                  },
                  {
                    "factor": "wbc",
                    "points": 4,
                    "present": true,
                    "value": 8
                  },
                  {
                    "factor": "crp",
                    "points": 5,
                    "present": true,
                    "value": 20
                  },
                  {
                    "factor": "ecog",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "cancer_type",
                    "points": 4,
                    "present": true,
                    "value": "other"
                  }
                ],
                "crp_mg_l": 20,
                "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.",
                "ecog": 0,
                "formula": "promise",
                "formula_expression": "clinical PROMISE = previous_chemotherapy (no 0, yes 4) + previous_radiotherapy (no 0, yes 2) + haemoglobin_g_dl (≥16 → 0; 14 to <16 → 1; 12 to <14 → 2; 10 to <12 → 3; <10 → 4) + wbc_10e9_l (<4 → 0; 4 to <6.3 → 2; 6.3 to <10 → 4; 10 to <15.8 → 7; ≥15.8 → 10) + crp_mg_l (<3 → 0; 3 to <10 → 3; 10 to <32 → 5; 32 to <100 → 8; ≥100 → 11) + ECOG (0–1 → 0; 2–4 → 7) + cancer_type (mesothelioma → 0; other → 4; lung → 5); Psallidas 2018 Table 2A; groups A 0–20 <25% 3-month mortality, B 21–27 25% to <50%, C 28–35 50% to <75%, D >35 ≥75%",
                "group": "A",
                "haemoglobin_g_dl": 15,
                "max_score": 43,
                "radiotherapy": false,
                "score": 14,
                "three_month_mortality": "<25%",
                "wbc": 8
              }
            ],
            "path": "/api/calc/promise"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "cancer_type": {
                          "description": "Psallidas 2018 Table 2A cancer type as assigned by the caller. mesothelioma scores 0; other scores 4; lung scores 5. magent does not assign cancer type from histology text.",
                          "enum": [
                            "mesothelioma",
                            "lung",
                            "other"
                          ],
                          "type": "string"
                        },
                        "chemotherapy": {
                          "description": "Previous chemotherapy as assigned by the caller (Psallidas 2018 Table 2A). true or false. true scores 4; false scores 0. Not a chemotherapy order. magent does not read a treatment history.",
                          "type": "boolean"
                        },
                        "crp_mg_l": {
                          "description": "Serum CRP in mg/L (0-500), not IU/L. Psallidas 2018 Table 2A: <3 scores 0; 3 to <10 scores 3; 10 to <32 scores 5; 32 to <100 scores 8; ≥100 scores 11. Caller-supplied; magent does not assay CRP or convert IU/L.",
                          "type": "number"
                        },
                        "ecog": {
                          "description": "Oken 1982 ECOG performance status 0-4 as assigned by the caller. Psallidas 2018 Table 2A: 0-1 scores 0; 2-4 scores 7. Grade 5 (dead) is not scored. magent does not observe the patient or convert Karnofsky.",
                          "type": "integer"
                        },
                        "haemoglobin_g_dl": {
                          "description": "Haemoglobin in g/dL (3-25). Psallidas 2018 Table 2A: ≥16 scores 0; 14 to <16 scores 1; 12 to <14 scores 2; 10 to <12 scores 3; <10 scores 4. Caller-supplied; magent does not assay haemoglobin.",
                          "type": "number"
                        },
                        "radiotherapy": {
                          "description": "Previous radiotherapy as assigned by the caller (Psallidas 2018 Table 2A). true or false. true scores 2; false scores 0. Not a radiotherapy order. magent does not read a treatment history.",
                          "type": "boolean"
                        },
                        "wbc": {
                          "description": "Serum white cell count as 10^9/L (0.1-80). Psallidas 2018 Table 2A: <4 scores 0; 4 to <6.3 scores 2; 6.3 to <10 scores 4; 10 to <15.8 scores 7; ≥15.8 scores 10. Caller-supplied; magent does not assay WBC.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "chemotherapy",
                        "radiotherapy",
                        "haemoglobin_g_dl",
                        "wbc",
                        "crp_mg_l",
                        "ecog",
                        "cancer_type"
                      ],
                      "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": [
    "promise",
    "pleural",
    "respiratory",
    "prognosis",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T11:36:31.892Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T11:36:31.768Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "cancer_type": "other",
                  "chemotherapy": false,
                  "crp_mg_l": 20,
                  "ecog": 0,
                  "haemoglobin_g_dl": 15,
                  "radiotherapy": false,
                  "wbc": 8
                },
                {
                  "cancer_type": "other",
                  "chemotherapy": false,
                  "crp_mg_l": 20,
                  "ecog": 0,
                  "haemoglobin_g_dl": 15,
                  "radiotherapy": false,
                  "wbc": 8
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "cancer_type": "other",
                  "chemotherapy": false,
                  "citation": {
                    "authors": "Psallidas I, Kanellakis NI, Gerry S, et al.",
                    "doi": "10.1016/S1470-2045(18)30294-8",
                    "id": "psallidas-2018",
                    "pmid": "29908990",
                    "source": "Lancet Oncol. 2018;19(7):930-939",
                    "title": "Development and validation of response markers to predict survival and pleurodesis success in patients with malignant pleural effusion (PROMISE): a multicohort analysis"
                  },
                  "components": [
                    {
                      "factor": "chemotherapy",
                      "points": 0,
                      "present": false,
                      "value": false
                    },
                    {
                      "factor": "radiotherapy",
                      "points": 0,
                      "present": false,
                      "value": false
                    },
                    {
                      "factor": "haemoglobin",
                      "points": 1,
                      "present": true,
                      "value": 15
                    },
                    {
                      "factor": "wbc",
                      "points": 4,
                      "present": true,
                      "value": 8
                    },
                    {
                      "factor": "crp",
                      "points": 5,
                      "present": true,
                      "value": 20
                    },
                    {
                      "factor": "ecog",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "cancer_type",
                      "points": 4,
                      "present": true,
                      "value": "other"
                    }
                  ],
                  "crp_mg_l": 20,
                  "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.",
                  "ecog": 0,
                  "formula": "promise",
                  "formula_expression": "clinical PROMISE = previous_chemotherapy (no 0, yes 4) + previous_radiotherapy (no 0, yes 2) + haemoglobin_g_dl (≥16 → 0; 14 to <16 → 1; 12 to <14 → 2; 10 to <12 → 3; <10 → 4) + wbc_10e9_l (<4 → 0; 4 to <6.3 → 2; 6.3 to <10 → 4; 10 to <15.8 → 7; ≥15.8 → 10) + crp_mg_l (<3 → 0; 3 to <10 → 3; 10 to <32 → 5; 32 to <100 → 8; ≥100 → 11) + ECOG (0–1 → 0; 2–4 → 7) + cancer_type (mesothelioma → 0; other → 4; lung → 5); Psallidas 2018 Table 2A; groups A 0–20 <25% 3-month mortality, B 21–27 25% to <50%, C 28–35 50% to <75%, D >35 ≥75%",
                  "group": "A",
                  "haemoglobin_g_dl": 15,
                  "max_score": 43,
                  "radiotherapy": false,
                  "score": 14,
                  "three_month_mortality": "<25%",
                  "wbc": 8
                },
                {
                  "cancer_type": "other",
                  "chemotherapy": false,
                  "citation": {
                    "authors": "Psallidas I, Kanellakis NI, Gerry S, et al.",
                    "doi": "10.1016/S1470-2045(18)30294-8",
                    "id": "psallidas-2018",
                    "pmid": "29908990",
                    "source": "Lancet Oncol. 2018;19(7):930-939",
                    "title": "Development and validation of response markers to predict survival and pleurodesis success in patients with malignant pleural effusion (PROMISE): a multicohort analysis"
                  },
                  "components": [
                    {
                      "factor": "chemotherapy",
                      "points": 0,
                      "present": false,
                      "value": false
                    },
                    {
                      "factor": "radiotherapy",
                      "points": 0,
                      "present": false,
                      "value": false
                    },
                    {
                      "factor": "haemoglobin",
                      "points": 1,
                      "present": true,
                      "value": 15
                    },
                    {
                      "factor": "wbc",
                      "points": 4,
                      "present": true,
                      "value": 8
                    },
                    {
                      "factor": "crp",
                      "points": 5,
                      "present": true,
                      "value": 20
                    },
                    {
                      "factor": "ecog",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "cancer_type",
                      "points": 4,
                      "present": true,
                      "value": "other"
                    }
                  ],
                  "crp_mg_l": 20,
                  "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.",
                  "ecog": 0,
                  "formula": "promise",
                  "formula_expression": "clinical PROMISE = previous_chemotherapy (no 0, yes 4) + previous_radiotherapy (no 0, yes 2) + haemoglobin_g_dl (≥16 → 0; 14 to <16 → 1; 12 to <14 → 2; 10 to <12 → 3; <10 → 4) + wbc_10e9_l (<4 → 0; 4 to <6.3 → 2; 6.3 to <10 → 4; 10 to <15.8 → 7; ≥15.8 → 10) + crp_mg_l (<3 → 0; 3 to <10 → 3; 10 to <32 → 5; 32 to <100 → 8; ≥100 → 11) + ECOG (0–1 → 0; 2–4 → 7) + cancer_type (mesothelioma → 0; other → 4; lung → 5); Psallidas 2018 Table 2A; groups A 0–20 <25% 3-month mortality, B 21–27 25% to <50%, C 28–35 50% to <75%, D >35 ≥75%",
                  "group": "A",
                  "haemoglobin_g_dl": 15,
                  "max_score": 43,
                  "radiotherapy": false,
                  "score": 14,
                  "three_month_mortality": "<25%",
                  "wbc": 8
                }
              ],
              "path": "/api/calc/promise"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "cancer_type": {
                            "description": "Psallidas 2018 Table 2A cancer type as assigned by the caller. mesothelioma scores 0; other scores 4; lung scores 5. magent does not assign cancer type from histology text.",
                            "enum": [
                              "mesothelioma",
                              "lung",
                              "other"
                            ],
                            "type": "string"
                          },
                          "chemotherapy": {
                            "description": "Previous chemotherapy as assigned by the caller (Psallidas 2018 Table 2A). true or false. true scores 4; false scores 0. Not a chemotherapy order. magent does not read a treatment history.",
                            "type": "boolean"
                          },
                          "crp_mg_l": {
                            "description": "Serum CRP in mg/L (0-500), not IU/L. Psallidas 2018 Table 2A: <3 scores 0; 3 to <10 scores 3; 10 to <32 scores 5; 32 to <100 scores 8; ≥100 scores 11. Caller-supplied; magent does not assay CRP or convert IU/L.",
                            "type": "number"
                          },
                          "ecog": {
                            "description": "Oken 1982 ECOG performance status 0-4 as assigned by the caller. Psallidas 2018 Table 2A: 0-1 scores 0; 2-4 scores 7. Grade 5 (dead) is not scored. magent does not observe the patient or convert Karnofsky.",
                            "type": "integer"
                          },
                          "haemoglobin_g_dl": {
                            "description": "Haemoglobin in g/dL (3-25). Psallidas 2018 Table 2A: ≥16 scores 0; 14 to <16 scores 1; 12 to <14 scores 2; 10 to <12 scores 3; <10 scores 4. Caller-supplied; magent does not assay haemoglobin.",
                            "type": "number"
                          },
                          "radiotherapy": {
                            "description": "Previous radiotherapy as assigned by the caller (Psallidas 2018 Table 2A). true or false. true scores 2; false scores 0. Not a radiotherapy order. magent does not read a treatment history.",
                            "type": "boolean"
                          },
                          "wbc": {
                            "description": "Serum white cell count as 10^9/L (0.1-80). Psallidas 2018 Table 2A: <4 scores 0; 4 to <6.3 scores 2; 6.3 to <10 scores 4; 10 to <15.8 scores 7; ≥15.8 scores 10. Caller-supplied; magent does not assay WBC.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "chemotherapy",
                          "radiotherapy",
                          "haemoglobin_g_dl",
                          "wbc",
                          "crp_mg_l",
                          "ecog",
                          "cancer_type"
                        ],
                        "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"
  }
}