{
  "x402Version": 2,
  "id": 38929,
  "slug": "38929",
  "resource": "https://api.magentlab.com/api/calc/rasp",
  "description": "Vertesi 2003 RASP multiplies exclusive source (A), inoculum type (B), and transmission (C) to Z, then total_risk = (1/Z) × volume (D). Table 2: <1/1000 definitely indicated; 1/1000–1/10 000 recommended but optional; 1/10 001–1/100 000 optional but not recommended; >1/100 000 not indicated. Average Canadian community prevalence is baked into the scores. Caller-assigned tokens. Not a PEP order. magent does not interpret the source patient.",
  "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": [
              {
                "inoculum_type": "fresh_blood",
                "inoculum_volume": "small_small_bore_lt_22g",
                "source_population": "known_hiv_asymptomatic",
                "transmission": "deep_transcutaneous_visible_bleeding"
              },
              {
                "inoculum_type": "fresh_blood",
                "inoculum_volume": "small_small_bore_lt_22g",
                "source_population": "known_hiv_asymptomatic",
                "transmission": "deep_transcutaneous_visible_bleeding"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "basic_risk": 0.001,
                "citation": {
                  "authors": "Vertesi L",
                  "doi": "10.1017/S1481803500008113",
                  "id": "vertesi-2003",
                  "pmid": "12630044",
                  "source": "CJEM. 2003;5(1):46-48",
                  "title": "Risk Assessment Stratification Protocol (RASP) to help patients decide on the use of postexposure prophylaxis for HIV exposure"
                },
                "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": "rasp",
                "formula_expression": "Z = A * B * C; basic_risk = 1/Z; total_risk = basic_risk * D; Vertesi 2003 Figure 1 exclusive A source, B inoculum, C transmission, D volume; Table 2 <1/1000 definitely indicated; 1/1000-1/10 000 recommended but optional; 1/10 001-1/100 000 optional but not recommended; >1/100 000 not indicated",
                "inoculum_type": "fresh_blood",
                "inoculum_type_score": 1,
                "inoculum_volume": "small_small_bore_lt_22g",
                "risk_level": "definitely_indicated",
                "risk_one_in": 333,
                "source_population": "known_hiv_asymptomatic",
                "source_score": 10,
                "suggested_treatment": "Definitely indicated",
                "total_risk": 0.003,
                "transmission": "deep_transcutaneous_visible_bleeding",
                "transmission_score": 100,
                "volume_modifier": 3,
                "z": 1000
              },
              {
                "basic_risk": 0.001,
                "citation": {
                  "authors": "Vertesi L",
                  "doi": "10.1017/S1481803500008113",
                  "id": "vertesi-2003",
                  "pmid": "12630044",
                  "source": "CJEM. 2003;5(1):46-48",
                  "title": "Risk Assessment Stratification Protocol (RASP) to help patients decide on the use of postexposure prophylaxis for HIV exposure"
                },
                "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": "rasp",
                "formula_expression": "Z = A * B * C; basic_risk = 1/Z; total_risk = basic_risk * D; Vertesi 2003 Figure 1 exclusive A source, B inoculum, C transmission, D volume; Table 2 <1/1000 definitely indicated; 1/1000-1/10 000 recommended but optional; 1/10 001-1/100 000 optional but not recommended; >1/100 000 not indicated",
                "inoculum_type": "fresh_blood",
                "inoculum_type_score": 1,
                "inoculum_volume": "small_small_bore_lt_22g",
                "risk_level": "definitely_indicated",
                "risk_one_in": 333,
                "source_population": "known_hiv_asymptomatic",
                "source_score": 10,
                "suggested_treatment": "Definitely indicated",
                "total_risk": 0.003,
                "transmission": "deep_transcutaneous_visible_bleeding",
                "transmission_score": 100,
                "volume_modifier": 3,
                "z": 1000
              }
            ],
            "path": "/api/calc/rasp"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "inoculum_type": {
                          "description": "Vertesi 2003 Step B inoculum type as assigned by the caller (exclusive). fresh_blood scores 1; body_fluids_at_risk scores 10 (semen); dried_old_blood scores 100; low_risk_secretions scores 1000 (tears, saliva, urine). magent does not classify the specimen.",
                          "enum": [
                            "fresh_blood",
                            "body_fluids_at_risk",
                            "dried_old_blood",
                            "low_risk_secretions"
                          ],
                          "type": "string"
                        },
                        "inoculum_volume": {
                          "description": "Vertesi 2003 Step D volume modifier as assigned by the caller (exclusive). massive_transfusion scores 100; measurable_gt_1_ml scores 10; moderate_large_bore_gt_22g scores 5; small_small_bore_lt_22g scores 3; trace_surface scores 1 (suture needle). 22 g exactly is not a published token. magent does not measure volume.",
                          "enum": [
                            "massive_transfusion",
                            "measurable_gt_1_ml",
                            "moderate_large_bore_gt_22g",
                            "small_small_bore_lt_22g",
                            "trace_surface"
                          ],
                          "type": "string"
                        },
                        "source_population": {
                          "description": "Vertesi 2003 Step A source population as assigned by the caller (exclusive). known_hiv_acute_aids scores 1 (acute AIDS illness); known_hiv_asymptomatic scores 10; unknown_hiv_high_risk scores 100; unknown_hiv_low_risk scores 1000. magent does not interpret the source patient.",
                          "enum": [
                            "known_hiv_acute_aids",
                            "known_hiv_asymptomatic",
                            "unknown_hiv_high_risk",
                            "unknown_hiv_low_risk"
                          ],
                          "type": "string"
                        },
                        "transmission": {
                          "description": "Vertesi 2003 Step C method of transmission as assigned by the caller (exclusive). intravenous scores 1; deep_intramuscular scores 10; deep_transcutaneous_visible_bleeding scores 100; superficial_transcutaneous_no_bleeding scores 200; mucosal_contact scores 500; intact_skin scores 1000. magent does not examine the wound.",
                          "enum": [
                            "intravenous",
                            "deep_intramuscular",
                            "deep_transcutaneous_visible_bleeding",
                            "superficial_transcutaneous_no_bleeding",
                            "mucosal_contact",
                            "intact_skin"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "source_population",
                        "inoculum_type",
                        "transmission",
                        "inoculum_volume"
                      ],
                      "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": [
    "rasp",
    "hiv",
    "exposure",
    "needle-stick",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T12:01:59.721Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T12:01:59.592Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "inoculum_type": "fresh_blood",
                  "inoculum_volume": "small_small_bore_lt_22g",
                  "source_population": "known_hiv_asymptomatic",
                  "transmission": "deep_transcutaneous_visible_bleeding"
                },
                {
                  "inoculum_type": "fresh_blood",
                  "inoculum_volume": "small_small_bore_lt_22g",
                  "source_population": "known_hiv_asymptomatic",
                  "transmission": "deep_transcutaneous_visible_bleeding"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "basic_risk": 0.001,
                  "citation": {
                    "authors": "Vertesi L",
                    "doi": "10.1017/S1481803500008113",
                    "id": "vertesi-2003",
                    "pmid": "12630044",
                    "source": "CJEM. 2003;5(1):46-48",
                    "title": "Risk Assessment Stratification Protocol (RASP) to help patients decide on the use of postexposure prophylaxis for HIV exposure"
                  },
                  "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": "rasp",
                  "formula_expression": "Z = A * B * C; basic_risk = 1/Z; total_risk = basic_risk * D; Vertesi 2003 Figure 1 exclusive A source, B inoculum, C transmission, D volume; Table 2 <1/1000 definitely indicated; 1/1000-1/10 000 recommended but optional; 1/10 001-1/100 000 optional but not recommended; >1/100 000 not indicated",
                  "inoculum_type": "fresh_blood",
                  "inoculum_type_score": 1,
                  "inoculum_volume": "small_small_bore_lt_22g",
                  "risk_level": "definitely_indicated",
                  "risk_one_in": 333,
                  "source_population": "known_hiv_asymptomatic",
                  "source_score": 10,
                  "suggested_treatment": "Definitely indicated",
                  "total_risk": 0.003,
                  "transmission": "deep_transcutaneous_visible_bleeding",
                  "transmission_score": 100,
                  "volume_modifier": 3,
                  "z": 1000
                },
                {
                  "basic_risk": 0.001,
                  "citation": {
                    "authors": "Vertesi L",
                    "doi": "10.1017/S1481803500008113",
                    "id": "vertesi-2003",
                    "pmid": "12630044",
                    "source": "CJEM. 2003;5(1):46-48",
                    "title": "Risk Assessment Stratification Protocol (RASP) to help patients decide on the use of postexposure prophylaxis for HIV exposure"
                  },
                  "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": "rasp",
                  "formula_expression": "Z = A * B * C; basic_risk = 1/Z; total_risk = basic_risk * D; Vertesi 2003 Figure 1 exclusive A source, B inoculum, C transmission, D volume; Table 2 <1/1000 definitely indicated; 1/1000-1/10 000 recommended but optional; 1/10 001-1/100 000 optional but not recommended; >1/100 000 not indicated",
                  "inoculum_type": "fresh_blood",
                  "inoculum_type_score": 1,
                  "inoculum_volume": "small_small_bore_lt_22g",
                  "risk_level": "definitely_indicated",
                  "risk_one_in": 333,
                  "source_population": "known_hiv_asymptomatic",
                  "source_score": 10,
                  "suggested_treatment": "Definitely indicated",
                  "total_risk": 0.003,
                  "transmission": "deep_transcutaneous_visible_bleeding",
                  "transmission_score": 100,
                  "volume_modifier": 3,
                  "z": 1000
                }
              ],
              "path": "/api/calc/rasp"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "inoculum_type": {
                            "description": "Vertesi 2003 Step B inoculum type as assigned by the caller (exclusive). fresh_blood scores 1; body_fluids_at_risk scores 10 (semen); dried_old_blood scores 100; low_risk_secretions scores 1000 (tears, saliva, urine). magent does not classify the specimen.",
                            "enum": [
                              "fresh_blood",
                              "body_fluids_at_risk",
                              "dried_old_blood",
                              "low_risk_secretions"
                            ],
                            "type": "string"
                          },
                          "inoculum_volume": {
                            "description": "Vertesi 2003 Step D volume modifier as assigned by the caller (exclusive). massive_transfusion scores 100; measurable_gt_1_ml scores 10; moderate_large_bore_gt_22g scores 5; small_small_bore_lt_22g scores 3; trace_surface scores 1 (suture needle). 22 g exactly is not a published token. magent does not measure volume.",
                            "enum": [
                              "massive_transfusion",
                              "measurable_gt_1_ml",
                              "moderate_large_bore_gt_22g",
                              "small_small_bore_lt_22g",
                              "trace_surface"
                            ],
                            "type": "string"
                          },
                          "source_population": {
                            "description": "Vertesi 2003 Step A source population as assigned by the caller (exclusive). known_hiv_acute_aids scores 1 (acute AIDS illness); known_hiv_asymptomatic scores 10; unknown_hiv_high_risk scores 100; unknown_hiv_low_risk scores 1000. magent does not interpret the source patient.",
                            "enum": [
                              "known_hiv_acute_aids",
                              "known_hiv_asymptomatic",
                              "unknown_hiv_high_risk",
                              "unknown_hiv_low_risk"
                            ],
                            "type": "string"
                          },
                          "transmission": {
                            "description": "Vertesi 2003 Step C method of transmission as assigned by the caller (exclusive). intravenous scores 1; deep_intramuscular scores 10; deep_transcutaneous_visible_bleeding scores 100; superficial_transcutaneous_no_bleeding scores 200; mucosal_contact scores 500; intact_skin scores 1000. magent does not examine the wound.",
                            "enum": [
                              "intravenous",
                              "deep_intramuscular",
                              "deep_transcutaneous_visible_bleeding",
                              "superficial_transcutaneous_no_bleeding",
                              "mucosal_contact",
                              "intact_skin"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "source_population",
                          "inoculum_type",
                          "transmission",
                          "inoculum_volume"
                        ],
                        "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"
  }
}