{
  "x402Version": 2,
  "id": 39082,
  "slug": "39082",
  "resource": "https://api.magentlab.com/api/calc/pen_fast",
  "description": "Trubiano 2020 PEN-FAST for patients who already report a penicillin allergy. Three caller-assigned flags: allergy event 5 or fewer years ago (2), anaphylaxis/angioedema or potential SCAR as one criterion (2), treatment required (1). Max 5. Risk: 0 very_low, 1–2 low, 3 moderate, 4–5 high. low_risk_for_testing iff score < 3. Not an allergy diagnosis or delabeling order. magent does not take an allergy history.",
  "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": [
              {
                "anaphylaxis_angioedema_or_scar": false,
                "five_or_fewer_years_ago": false,
                "treatment_required": false
              },
              {
                "anaphylaxis_angioedema_or_scar": false,
                "five_or_fewer_years_ago": false,
                "treatment_required": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Trubiano JA, Vogrin S, Chua KYL, et al.",
                  "doi": "10.1001/jamainternmed.2020.0403",
                  "id": "trubiano-2020",
                  "pmid": "32176248",
                  "source": "JAMA Intern Med. 2020;180(5):745-752",
                  "title": "Development and Validation of a Penicillin Allergy Clinical Decision Rule"
                },
                "components": [
                  {
                    "factor": "five_or_fewer_years_ago",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "anaphylaxis_angioedema_or_scar",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "treatment_required",
                    "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": "pen_fast",
                "formula_expression": "PEN-FAST = five_or_fewer_years_ago (true 2) + anaphylaxis_angioedema_or_scar (true 2) + treatment_required (true 1); Trubiano 2020; max 5; 0 very_low, 1-2 low, 3 moderate, 4-5 high; low_risk_for_testing iff score < 3",
                "low_risk_for_testing": true,
                "max_score": 5,
                "risk": "very_low",
                "score": 0
              },
              {
                "citation": {
                  "authors": "Trubiano JA, Vogrin S, Chua KYL, et al.",
                  "doi": "10.1001/jamainternmed.2020.0403",
                  "id": "trubiano-2020",
                  "pmid": "32176248",
                  "source": "JAMA Intern Med. 2020;180(5):745-752",
                  "title": "Development and Validation of a Penicillin Allergy Clinical Decision Rule"
                },
                "components": [
                  {
                    "factor": "five_or_fewer_years_ago",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "anaphylaxis_angioedema_or_scar",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "treatment_required",
                    "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": "pen_fast",
                "formula_expression": "PEN-FAST = five_or_fewer_years_ago (true 2) + anaphylaxis_angioedema_or_scar (true 2) + treatment_required (true 1); Trubiano 2020; max 5; 0 very_low, 1-2 low, 3 moderate, 4-5 high; low_risk_for_testing iff score < 3",
                "low_risk_for_testing": true,
                "max_score": 5,
                "risk": "very_low",
                "score": 0
              }
            ],
            "path": "/api/calc/pen_fast"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "anaphylaxis_angioedema_or_scar": {
                          "description": "Anaphylaxis/angioedema or potential SCAR as one 2-point criterion (Trubiano 2020). true scores 2; do not add both phenotypes separately. magent does not take an allergy history.",
                          "type": "boolean"
                        },
                        "five_or_fewer_years_ago": {
                          "description": "Allergy event 5 or fewer years ago as assigned by the caller (Trubiano 2020). true scores 2. magent does not take an allergy history.",
                          "type": "boolean"
                        },
                        "treatment_required": {
                          "description": "Treatment required for the allergy episode as assigned by the caller (Trubiano 2020). true scores 1. magent does not take an allergy history.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "five_or_fewer_years_ago",
                        "anaphylaxis_angioedema_or_scar",
                        "treatment_required"
                      ],
                      "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": [
    "pen-fast",
    "penicillin-allergy",
    "infection",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T06:56:29.409Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T06:56:29.174Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "anaphylaxis_angioedema_or_scar": false,
                  "five_or_fewer_years_ago": false,
                  "treatment_required": false
                },
                {
                  "anaphylaxis_angioedema_or_scar": false,
                  "five_or_fewer_years_ago": false,
                  "treatment_required": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Trubiano JA, Vogrin S, Chua KYL, et al.",
                    "doi": "10.1001/jamainternmed.2020.0403",
                    "id": "trubiano-2020",
                    "pmid": "32176248",
                    "source": "JAMA Intern Med. 2020;180(5):745-752",
                    "title": "Development and Validation of a Penicillin Allergy Clinical Decision Rule"
                  },
                  "components": [
                    {
                      "factor": "five_or_fewer_years_ago",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "anaphylaxis_angioedema_or_scar",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "treatment_required",
                      "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": "pen_fast",
                  "formula_expression": "PEN-FAST = five_or_fewer_years_ago (true 2) + anaphylaxis_angioedema_or_scar (true 2) + treatment_required (true 1); Trubiano 2020; max 5; 0 very_low, 1-2 low, 3 moderate, 4-5 high; low_risk_for_testing iff score < 3",
                  "low_risk_for_testing": true,
                  "max_score": 5,
                  "risk": "very_low",
                  "score": 0
                },
                {
                  "citation": {
                    "authors": "Trubiano JA, Vogrin S, Chua KYL, et al.",
                    "doi": "10.1001/jamainternmed.2020.0403",
                    "id": "trubiano-2020",
                    "pmid": "32176248",
                    "source": "JAMA Intern Med. 2020;180(5):745-752",
                    "title": "Development and Validation of a Penicillin Allergy Clinical Decision Rule"
                  },
                  "components": [
                    {
                      "factor": "five_or_fewer_years_ago",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "anaphylaxis_angioedema_or_scar",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "treatment_required",
                      "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": "pen_fast",
                  "formula_expression": "PEN-FAST = five_or_fewer_years_ago (true 2) + anaphylaxis_angioedema_or_scar (true 2) + treatment_required (true 1); Trubiano 2020; max 5; 0 very_low, 1-2 low, 3 moderate, 4-5 high; low_risk_for_testing iff score < 3",
                  "low_risk_for_testing": true,
                  "max_score": 5,
                  "risk": "very_low",
                  "score": 0
                }
              ],
              "path": "/api/calc/pen_fast"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "anaphylaxis_angioedema_or_scar": {
                            "description": "Anaphylaxis/angioedema or potential SCAR as one 2-point criterion (Trubiano 2020). true scores 2; do not add both phenotypes separately. magent does not take an allergy history.",
                            "type": "boolean"
                          },
                          "five_or_fewer_years_ago": {
                            "description": "Allergy event 5 or fewer years ago as assigned by the caller (Trubiano 2020). true scores 2. magent does not take an allergy history.",
                            "type": "boolean"
                          },
                          "treatment_required": {
                            "description": "Treatment required for the allergy episode as assigned by the caller (Trubiano 2020). true scores 1. magent does not take an allergy history.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "five_or_fewer_years_ago",
                          "anaphylaxis_angioedema_or_scar",
                          "treatment_required"
                        ],
                        "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"
  }
}