{
  "x402Version": 2,
  "id": 39208,
  "slug": "39208",
  "resource": "https://api.magentlab.com/api/calc/dhrs",
  "description": "Haukoos 2012 Table 2 FULL Denver HIV score (not abbreviated). Age bands, sex, ethnicity, and five caller-assigned flags (sm vi rai idu pht). Range -14 to 81. Caller-assigned. Not a diagnosis.",
  "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": [
              {
                "age": 20,
                "ethnicity": "white",
                "idu": false,
                "pht": false,
                "rai": false,
                "sex": "female",
                "sm": false,
                "vi": false
              },
              {
                "age": 20,
                "ethnicity": "white",
                "idu": false,
                "pht": false,
                "rai": false,
                "sex": "female",
                "sm": false,
                "vi": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 20,
                "band": "very_low",
                "citation": {
                  "authors": "Haukoos JS, Lyons MS, Lindsell CJ, Hopkins E, Bender B, Rothman RE, Hsieh YH, MacLaren LA, Thrun MW, Sasson C, Byyny RL",
                  "doi": "10.1093/aje/kwr389",
                  "id": "haukoos-2012-denver-hiv",
                  "pmid": "22425121",
                  "source": "Am J Epidemiol. 2012;175(8):838-846",
                  "title": "Derivation and Validation of the Denver Human Immunodeficiency Virus (HIV) Risk Score for Targeted HIV Screening"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 20
                  },
                  {
                    "factor": "sex",
                    "points": 0,
                    "present": false,
                    "value": "female"
                  },
                  {
                    "factor": "ethnicity",
                    "points": 0,
                    "present": false,
                    "value": "white"
                  },
                  {
                    "factor": "sm",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "vi",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "rai",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "idu",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "pht",
                    "points": 0,
                    "present": false
                  }
                ],
                "derivation_hiv_percent": 0.12,
                "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.",
                "ethnicity": "white",
                "formula": "denver_hiv",
                "formula_expression": "Denver HIV (Haukoos 2012 Table 2 FULL pruned) = age (<22 or >60 0; 22-25 or 55-60 4; 26-32 or 47-54 10; 33-46 12) + sex (female 0, male 21) + ethnicity (black 9, hispanic 3, white 0, other 0) + sex_with_male 22 + vaginal_intercourse -10 + receptive_anal_intercourse 8 + injection_drug_use 9 + past_hiv_testing -4; flags independent, not mutually exclusive; range -14 to 81; <20 very_low derivation 0.12%, 20-29 low 0.24%, 30-39 moderate 0.67%, 40-49 high 2.28%, >=50 very_high 5.66%",
                "idu": false,
                "max_score": 81,
                "min_score": -14,
                "pht": false,
                "rai": false,
                "score": 0,
                "sex": "female",
                "sm": false,
                "vi": false
              },
              {
                "age_years": 20,
                "band": "very_low",
                "citation": {
                  "authors": "Haukoos JS, Lyons MS, Lindsell CJ, Hopkins E, Bender B, Rothman RE, Hsieh YH, MacLaren LA, Thrun MW, Sasson C, Byyny RL",
                  "doi": "10.1093/aje/kwr389",
                  "id": "haukoos-2012-denver-hiv",
                  "pmid": "22425121",
                  "source": "Am J Epidemiol. 2012;175(8):838-846",
                  "title": "Derivation and Validation of the Denver Human Immunodeficiency Virus (HIV) Risk Score for Targeted HIV Screening"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 20
                  },
                  {
                    "factor": "sex",
                    "points": 0,
                    "present": false,
                    "value": "female"
                  },
                  {
                    "factor": "ethnicity",
                    "points": 0,
                    "present": false,
                    "value": "white"
                  },
                  {
                    "factor": "sm",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "vi",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "rai",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "idu",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "pht",
                    "points": 0,
                    "present": false
                  }
                ],
                "derivation_hiv_percent": 0.12,
                "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.",
                "ethnicity": "white",
                "formula": "denver_hiv",
                "formula_expression": "Denver HIV (Haukoos 2012 Table 2 FULL pruned) = age (<22 or >60 0; 22-25 or 55-60 4; 26-32 or 47-54 10; 33-46 12) + sex (female 0, male 21) + ethnicity (black 9, hispanic 3, white 0, other 0) + sex_with_male 22 + vaginal_intercourse -10 + receptive_anal_intercourse 8 + injection_drug_use 9 + past_hiv_testing -4; flags independent, not mutually exclusive; range -14 to 81; <20 very_low derivation 0.12%, 20-29 low 0.24%, 30-39 moderate 0.67%, 40-49 high 2.28%, >=50 very_high 5.66%",
                "idu": false,
                "max_score": 81,
                "min_score": -14,
                "pht": false,
                "rai": false,
                "score": 0,
                "sex": "female",
                "sm": false,
                "vi": false
              }
            ],
            "path": "/api/calc/dhrs"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "age": {
                          "description": "Age in years (integer 18-120). Haukoos 2012 Table 2: <22 or >60 scores 0; 22-25 or 55-60 scores 4; 26-32 or 47-54 scores 10; 33-46 scores 12. Caller-assigned.",
                          "type": "integer"
                        },
                        "ethnicity": {
                          "description": "Caller-assigned ethnicity as used in Haukoos 2012 Table 2 (not param race). black scores 9; hispanic scores 3; white scores 0; other scores 0 (paper: American Indian or Alaska Native, Native Hawaiian, or non-Hawaiian Pacific Islander). magent does not assign race or ethnicity.",
                          "enum": [
                            "black",
                            "hispanic",
                            "white",
                            "other"
                          ],
                          "type": "string"
                        },
                        "idu": {
                          "description": "Haukoos 2012 Table 2 item idu. Caller-assigned boolean. +9 if true. Magent docs map this to the paper's injection-drug-use coefficient.",
                          "type": "boolean"
                        },
                        "pht": {
                          "description": "Haukoos 2012 Table 2 item pht. Caller-assigned boolean. -4 if true. Magent docs map this to the paper's past-HIV-testing coefficient.",
                          "type": "boolean"
                        },
                        "rai": {
                          "description": "Haukoos 2012 Table 2 item rai. Caller-assigned boolean. +8 if true. Do not drop this item. Magent docs map this to the paper's receptive-anal-intercourse coefficient.",
                          "type": "boolean"
                        },
                        "sex": {
                          "description": "female or male as assigned by the caller (Haukoos 2012 Table 2 gender). female scores 0; male scores 21.",
                          "enum": [
                            "female",
                            "male"
                          ],
                          "type": "string"
                        },
                        "sm": {
                          "description": "Haukoos 2012 Table 2 item sm. Caller-assigned boolean. +22 if true. Magent docs map this to the paper's sex-with-a-male coefficient; magent does not take a sexual history.",
                          "type": "boolean"
                        },
                        "vi": {
                          "description": "Haukoos 2012 Table 2 item vi. Caller-assigned boolean. -10 if true. Do not drop this item. Magent docs map this to the paper's vaginal-intercourse coefficient.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "age",
                        "sex",
                        "ethnicity",
                        "sm",
                        "vi",
                        "rai",
                        "idu",
                        "pht"
                      ],
                      "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": [
    "hiv-screening",
    "infection",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T02:46:10.389Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T02:46:10.257Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 20,
                  "ethnicity": "white",
                  "idu": false,
                  "pht": false,
                  "rai": false,
                  "sex": "female",
                  "sm": false,
                  "vi": false
                },
                {
                  "age": 20,
                  "ethnicity": "white",
                  "idu": false,
                  "pht": false,
                  "rai": false,
                  "sex": "female",
                  "sm": false,
                  "vi": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 20,
                  "band": "very_low",
                  "citation": {
                    "authors": "Haukoos JS, Lyons MS, Lindsell CJ, Hopkins E, Bender B, Rothman RE, Hsieh YH, MacLaren LA, Thrun MW, Sasson C, Byyny RL",
                    "doi": "10.1093/aje/kwr389",
                    "id": "haukoos-2012-denver-hiv",
                    "pmid": "22425121",
                    "source": "Am J Epidemiol. 2012;175(8):838-846",
                    "title": "Derivation and Validation of the Denver Human Immunodeficiency Virus (HIV) Risk Score for Targeted HIV Screening"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 20
                    },
                    {
                      "factor": "sex",
                      "points": 0,
                      "present": false,
                      "value": "female"
                    },
                    {
                      "factor": "ethnicity",
                      "points": 0,
                      "present": false,
                      "value": "white"
                    },
                    {
                      "factor": "sm",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "vi",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "rai",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "idu",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "pht",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "derivation_hiv_percent": 0.12,
                  "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.",
                  "ethnicity": "white",
                  "formula": "denver_hiv",
                  "formula_expression": "Denver HIV (Haukoos 2012 Table 2 FULL pruned) = age (<22 or >60 0; 22-25 or 55-60 4; 26-32 or 47-54 10; 33-46 12) + sex (female 0, male 21) + ethnicity (black 9, hispanic 3, white 0, other 0) + sex_with_male 22 + vaginal_intercourse -10 + receptive_anal_intercourse 8 + injection_drug_use 9 + past_hiv_testing -4; flags independent, not mutually exclusive; range -14 to 81; <20 very_low derivation 0.12%, 20-29 low 0.24%, 30-39 moderate 0.67%, 40-49 high 2.28%, >=50 very_high 5.66%",
                  "idu": false,
                  "max_score": 81,
                  "min_score": -14,
                  "pht": false,
                  "rai": false,
                  "score": 0,
                  "sex": "female",
                  "sm": false,
                  "vi": false
                },
                {
                  "age_years": 20,
                  "band": "very_low",
                  "citation": {
                    "authors": "Haukoos JS, Lyons MS, Lindsell CJ, Hopkins E, Bender B, Rothman RE, Hsieh YH, MacLaren LA, Thrun MW, Sasson C, Byyny RL",
                    "doi": "10.1093/aje/kwr389",
                    "id": "haukoos-2012-denver-hiv",
                    "pmid": "22425121",
                    "source": "Am J Epidemiol. 2012;175(8):838-846",
                    "title": "Derivation and Validation of the Denver Human Immunodeficiency Virus (HIV) Risk Score for Targeted HIV Screening"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 20
                    },
                    {
                      "factor": "sex",
                      "points": 0,
                      "present": false,
                      "value": "female"
                    },
                    {
                      "factor": "ethnicity",
                      "points": 0,
                      "present": false,
                      "value": "white"
                    },
                    {
                      "factor": "sm",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "vi",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "rai",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "idu",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "pht",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "derivation_hiv_percent": 0.12,
                  "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.",
                  "ethnicity": "white",
                  "formula": "denver_hiv",
                  "formula_expression": "Denver HIV (Haukoos 2012 Table 2 FULL pruned) = age (<22 or >60 0; 22-25 or 55-60 4; 26-32 or 47-54 10; 33-46 12) + sex (female 0, male 21) + ethnicity (black 9, hispanic 3, white 0, other 0) + sex_with_male 22 + vaginal_intercourse -10 + receptive_anal_intercourse 8 + injection_drug_use 9 + past_hiv_testing -4; flags independent, not mutually exclusive; range -14 to 81; <20 very_low derivation 0.12%, 20-29 low 0.24%, 30-39 moderate 0.67%, 40-49 high 2.28%, >=50 very_high 5.66%",
                  "idu": false,
                  "max_score": 81,
                  "min_score": -14,
                  "pht": false,
                  "rai": false,
                  "score": 0,
                  "sex": "female",
                  "sm": false,
                  "vi": false
                }
              ],
              "path": "/api/calc/dhrs"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "age": {
                            "description": "Age in years (integer 18-120). Haukoos 2012 Table 2: <22 or >60 scores 0; 22-25 or 55-60 scores 4; 26-32 or 47-54 scores 10; 33-46 scores 12. Caller-assigned.",
                            "type": "integer"
                          },
                          "ethnicity": {
                            "description": "Caller-assigned ethnicity as used in Haukoos 2012 Table 2 (not param race). black scores 9; hispanic scores 3; white scores 0; other scores 0 (paper: American Indian or Alaska Native, Native Hawaiian, or non-Hawaiian Pacific Islander). magent does not assign race or ethnicity.",
                            "enum": [
                              "black",
                              "hispanic",
                              "white",
                              "other"
                            ],
                            "type": "string"
                          },
                          "idu": {
                            "description": "Haukoos 2012 Table 2 item idu. Caller-assigned boolean. +9 if true. Magent docs map this to the paper's injection-drug-use coefficient.",
                            "type": "boolean"
                          },
                          "pht": {
                            "description": "Haukoos 2012 Table 2 item pht. Caller-assigned boolean. -4 if true. Magent docs map this to the paper's past-HIV-testing coefficient.",
                            "type": "boolean"
                          },
                          "rai": {
                            "description": "Haukoos 2012 Table 2 item rai. Caller-assigned boolean. +8 if true. Do not drop this item. Magent docs map this to the paper's receptive-anal-intercourse coefficient.",
                            "type": "boolean"
                          },
                          "sex": {
                            "description": "female or male as assigned by the caller (Haukoos 2012 Table 2 gender). female scores 0; male scores 21.",
                            "enum": [
                              "female",
                              "male"
                            ],
                            "type": "string"
                          },
                          "sm": {
                            "description": "Haukoos 2012 Table 2 item sm. Caller-assigned boolean. +22 if true. Magent docs map this to the paper's sex-with-a-male coefficient; magent does not take a sexual history.",
                            "type": "boolean"
                          },
                          "vi": {
                            "description": "Haukoos 2012 Table 2 item vi. Caller-assigned boolean. -10 if true. Do not drop this item. Magent docs map this to the paper's vaginal-intercourse coefficient.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "age",
                          "sex",
                          "ethnicity",
                          "sm",
                          "vi",
                          "rai",
                          "idu",
                          "pht"
                        ],
                        "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"
  }
}