{
  "x402Version": 2,
  "id": 39309,
  "slug": "39309",
  "resource": "https://api.magentlab.com/api/calc/apfel",
  "description": "Apfel 1999 simplified PONV risk score. Four caller-assigned predictors, 1 each, max 4: female sex, history of motion sickness or PONV, nonsmoking, postoperative opioids. Male and smokers score 0 on those items. Returns the integer score as bands 0-4. Apfel 1999 reported incidences by score; this tool returns the integer score without those percents. Not a medical device, not a prophylaxis order, not a diagnosis of PONV. Caller assigns history and opioid plan; magent does not take an anesthetic.",
  "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": [
              {
                "history_motion_sickness_or_ponv": false,
                "nonsmoker": false,
                "postoperative_opioids": false,
                "sex": "male"
              },
              {
                "history_motion_sickness_or_ponv": false,
                "nonsmoker": false,
                "postoperative_opioids": false,
                "sex": "male"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "band": "0",
                "citation": {
                  "authors": "Apfel CC, Läärä E, Koivuranta M, Greim CA, Roewer N",
                  "doi": "10.1097/00000542-199909000-00022",
                  "id": "apfel-1999",
                  "pmid": "10485781",
                  "source": "Anesthesiology. 1999;91(3):693-700",
                  "title": "A simplified risk score for predicting postoperative nausea and vomiting: conclusions from cross-validations between two centers."
                },
                "components": [
                  {
                    "factor": "female",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "history_motion_sickness_or_ponv",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "nonsmoker",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "postoperative_opioids",
                    "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": "apfel",
                "formula_expression": "Apfel = female + history_motion_sickness_or_ponv + nonsmoker + postoperative_opioids; each 1 if true; max 4",
                "max_score": 4,
                "score": 0,
                "sex": "male"
              },
              {
                "band": "0",
                "citation": {
                  "authors": "Apfel CC, Läärä E, Koivuranta M, Greim CA, Roewer N",
                  "doi": "10.1097/00000542-199909000-00022",
                  "id": "apfel-1999",
                  "pmid": "10485781",
                  "source": "Anesthesiology. 1999;91(3):693-700",
                  "title": "A simplified risk score for predicting postoperative nausea and vomiting: conclusions from cross-validations between two centers."
                },
                "components": [
                  {
                    "factor": "female",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "history_motion_sickness_or_ponv",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "nonsmoker",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "postoperative_opioids",
                    "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": "apfel",
                "formula_expression": "Apfel = female + history_motion_sickness_or_ponv + nonsmoker + postoperative_opioids; each 1 if true; max 4",
                "max_score": 4,
                "score": 0,
                "sex": "male"
              }
            ],
            "path": "/api/calc/apfel"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "history_motion_sickness_or_ponv": {
                          "description": "History of motion sickness or postoperative nausea and vomiting (Apfel 1999). true or false as assigned by the caller. 1 point if true.",
                          "type": "boolean"
                        },
                        "nonsmoker": {
                          "description": "Nonsmoking status (Apfel 1999). true scores 1. Smokers (false) score 0. Assigned by the caller.",
                          "type": "boolean"
                        },
                        "postoperative_opioids": {
                          "description": "Postoperative opioids planned or given (Apfel 1999). true or false as assigned by the caller. 1 point if true. magent does not take an anesthetic.",
                          "type": "boolean"
                        },
                        "sex": {
                          "description": "female or male (Apfel 1999). Female scores 1. Male scores 0. Assigned by the caller.",
                          "enum": [
                            "female",
                            "male"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "sex",
                        "history_motion_sickness_or_ponv",
                        "nonsmoker",
                        "postoperative_opioids"
                      ],
                      "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": [
    "apfel",
    "ponv",
    "nausea",
    "anesthesia",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T23:41:01.98Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T23:41:01.821Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "history_motion_sickness_or_ponv": false,
                  "nonsmoker": false,
                  "postoperative_opioids": false,
                  "sex": "male"
                },
                {
                  "history_motion_sickness_or_ponv": false,
                  "nonsmoker": false,
                  "postoperative_opioids": false,
                  "sex": "male"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "band": "0",
                  "citation": {
                    "authors": "Apfel CC, Läärä E, Koivuranta M, Greim CA, Roewer N",
                    "doi": "10.1097/00000542-199909000-00022",
                    "id": "apfel-1999",
                    "pmid": "10485781",
                    "source": "Anesthesiology. 1999;91(3):693-700",
                    "title": "A simplified risk score for predicting postoperative nausea and vomiting: conclusions from cross-validations between two centers."
                  },
                  "components": [
                    {
                      "factor": "female",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "history_motion_sickness_or_ponv",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "nonsmoker",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "postoperative_opioids",
                      "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": "apfel",
                  "formula_expression": "Apfel = female + history_motion_sickness_or_ponv + nonsmoker + postoperative_opioids; each 1 if true; max 4",
                  "max_score": 4,
                  "score": 0,
                  "sex": "male"
                },
                {
                  "band": "0",
                  "citation": {
                    "authors": "Apfel CC, Läärä E, Koivuranta M, Greim CA, Roewer N",
                    "doi": "10.1097/00000542-199909000-00022",
                    "id": "apfel-1999",
                    "pmid": "10485781",
                    "source": "Anesthesiology. 1999;91(3):693-700",
                    "title": "A simplified risk score for predicting postoperative nausea and vomiting: conclusions from cross-validations between two centers."
                  },
                  "components": [
                    {
                      "factor": "female",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "history_motion_sickness_or_ponv",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "nonsmoker",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "postoperative_opioids",
                      "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": "apfel",
                  "formula_expression": "Apfel = female + history_motion_sickness_or_ponv + nonsmoker + postoperative_opioids; each 1 if true; max 4",
                  "max_score": 4,
                  "score": 0,
                  "sex": "male"
                }
              ],
              "path": "/api/calc/apfel"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "history_motion_sickness_or_ponv": {
                            "description": "History of motion sickness or postoperative nausea and vomiting (Apfel 1999). true or false as assigned by the caller. 1 point if true.",
                            "type": "boolean"
                          },
                          "nonsmoker": {
                            "description": "Nonsmoking status (Apfel 1999). true scores 1. Smokers (false) score 0. Assigned by the caller.",
                            "type": "boolean"
                          },
                          "postoperative_opioids": {
                            "description": "Postoperative opioids planned or given (Apfel 1999). true or false as assigned by the caller. 1 point if true. magent does not take an anesthetic.",
                            "type": "boolean"
                          },
                          "sex": {
                            "description": "female or male (Apfel 1999). Female scores 1. Male scores 0. Assigned by the caller.",
                            "enum": [
                              "female",
                              "male"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "sex",
                          "history_motion_sickness_or_ponv",
                          "nonsmoker",
                          "postoperative_opioids"
                        ],
                        "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"
  }
}