{
  "x402Version": 2,
  "id": 39101,
  "slug": "39101",
  "resource": "https://api.magentlab.com/api/calc/hiri_msm",
  "description": "Smith 2012 seven-item HIV incidence risk index for MSM. Age 18-28=8, 29-40=5, 41-48=2, >=49=0; male partners 0-5=0, 6-10=4, >=11=7; HIV-positive partners 0=0, 1=4, >=2=8; unprotected receptive anal 0=0, >=1=10; insertive anal with HIV-positive partner 0-4=0, >=5=6; poppers 3; amphetamines 5. Range 0-47; at_or_above_10 when score >=10. Caller-assigned. Not a diagnosis or PrEP 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": [
              {
                "age": 55,
                "amphetamines_6mo": false,
                "hiv_positive_male_partners_6mo": 0,
                "insertive_anal_hiv_positive_6mo": 0,
                "male_sex_partners_6mo": 0,
                "poppers_6mo": false,
                "unprotected_receptive_anal_6mo": 0
              },
              {
                "age": 55,
                "amphetamines_6mo": false,
                "hiv_positive_male_partners_6mo": 0,
                "insertive_anal_hiv_positive_6mo": 0,
                "male_sex_partners_6mo": 0,
                "poppers_6mo": false,
                "unprotected_receptive_anal_6mo": 0
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 55,
                "at_or_above_10": false,
                "citation": {
                  "authors": "Smith DK, Pals SL, Herbst JH, Shinde S, Carey JW",
                  "doi": "10.1097/QAI.0b013e318256b2f6",
                  "id": "smith-dk-2012",
                  "pmid": "22487585",
                  "source": "J Acquir Immune Defic Syndr. 2012;60(4):421-427",
                  "title": "Development of a Clinical Screening Index Predictive of Incident HIV Infection Among Men Who Have Sex With Men in the United States"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 55
                  },
                  {
                    "factor": "male_sex_partners_6mo",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "hiv_positive_male_partners_6mo",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "unprotected_receptive_anal_6mo",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "insertive_anal_hiv_positive_6mo",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "poppers_6mo",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "amphetamines_6mo",
                    "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": "hiri_msm",
                "formula_expression": "HIRI-MSM = age + male_sex_partners_6mo + hiv_positive_male_partners_6mo + unprotected_receptive_anal_6mo + insertive_anal_hiv_positive_6mo + poppers_6mo + amphetamines_6mo; age 18-28 -> 8, 29-40 -> 5, 41-48 -> 2, >=49 -> 0; male partners 0-5 -> 0, 6-10 -> 4, >=11 -> 7; HIV-positive partners 0 -> 0, 1 -> 4, >=2 -> 8; unprotected receptive anal 0 -> 0, >=1 -> 10; insertive anal with HIV-positive partner 0-4 -> 0, >=5 -> 6; poppers true -> 3; amphetamines true -> 5; max 47; at_or_above_10 iff score>=10",
                "hiv_positive_male_partners_6mo": 0,
                "insertive_anal_hiv_positive_6mo": 0,
                "male_sex_partners_6mo": 0,
                "max_score": 47,
                "score": 0,
                "unprotected_receptive_anal_6mo": 0
              },
              {
                "age_years": 55,
                "at_or_above_10": false,
                "citation": {
                  "authors": "Smith DK, Pals SL, Herbst JH, Shinde S, Carey JW",
                  "doi": "10.1097/QAI.0b013e318256b2f6",
                  "id": "smith-dk-2012",
                  "pmid": "22487585",
                  "source": "J Acquir Immune Defic Syndr. 2012;60(4):421-427",
                  "title": "Development of a Clinical Screening Index Predictive of Incident HIV Infection Among Men Who Have Sex With Men in the United States"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 55
                  },
                  {
                    "factor": "male_sex_partners_6mo",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "hiv_positive_male_partners_6mo",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "unprotected_receptive_anal_6mo",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "insertive_anal_hiv_positive_6mo",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "poppers_6mo",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "amphetamines_6mo",
                    "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": "hiri_msm",
                "formula_expression": "HIRI-MSM = age + male_sex_partners_6mo + hiv_positive_male_partners_6mo + unprotected_receptive_anal_6mo + insertive_anal_hiv_positive_6mo + poppers_6mo + amphetamines_6mo; age 18-28 -> 8, 29-40 -> 5, 41-48 -> 2, >=49 -> 0; male partners 0-5 -> 0, 6-10 -> 4, >=11 -> 7; HIV-positive partners 0 -> 0, 1 -> 4, >=2 -> 8; unprotected receptive anal 0 -> 0, >=1 -> 10; insertive anal with HIV-positive partner 0-4 -> 0, >=5 -> 6; poppers true -> 3; amphetamines true -> 5; max 47; at_or_above_10 iff score>=10",
                "hiv_positive_male_partners_6mo": 0,
                "insertive_anal_hiv_positive_6mo": 0,
                "male_sex_partners_6mo": 0,
                "max_score": 47,
                "score": 0,
                "unprotected_receptive_anal_6mo": 0
              }
            ],
            "path": "/api/calc/hiri_msm"
          },
          "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 (18-120). Smith 2012: 18-28 scores 8; 29-40 scores 5; 41-48 scores 2; ≥49 scores 0. Caller-assigned. magent does not take a sexual history.",
                          "type": "integer"
                        },
                        "amphetamines_6mo": {
                          "description": "Caller-assigned amphetamine use in the prior 6 months (Smith 2012). true or false. magent does not take a substance-use history.",
                          "type": "boolean"
                        },
                        "hiv_positive_male_partners_6mo": {
                          "description": "Caller-assigned number of HIV-positive male sex partners in the prior 6 months (0-500). Smith 2012: 0 scores 0; 1 scores 4; ≥2 scores 8. Do not drop this item.",
                          "type": "integer"
                        },
                        "insertive_anal_hiv_positive_6mo": {
                          "description": "Caller-assigned times the person had insertive anal sex with an HIV-positive male partner in the prior 6 months (0-500). Smith 2012: 0-4 scores 0; ≥5 scores 6.",
                          "type": "integer"
                        },
                        "male_sex_partners_6mo": {
                          "description": "Caller-assigned number of male sex partners in the prior 6 months (0-500). Smith 2012: 0-5 scores 0; 6-10 scores 4; ≥11 scores 7.",
                          "type": "integer"
                        },
                        "poppers_6mo": {
                          "description": "Caller-assigned popper (amyl nitrate) use in the prior 6 months (Smith 2012). true or false. magent does not take a substance-use history.",
                          "type": "boolean"
                        },
                        "unprotected_receptive_anal_6mo": {
                          "description": "Caller-assigned times the person had unprotected receptive anal sex with a male partner of any HIV status in the prior 6 months (0-500). Smith 2012: 0 scores 0; ≥1 scores 10.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "age",
                        "male_sex_partners_6mo",
                        "hiv_positive_male_partners_6mo",
                        "unprotected_receptive_anal_6mo",
                        "insertive_anal_hiv_positive_6mo",
                        "poppers_6mo",
                        "amphetamines_6mo"
                      ],
                      "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": [
    "hiri-msm",
    "hiv-risk",
    "msm",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T06:17:23.649Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T06:17:23.353Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 55,
                  "amphetamines_6mo": false,
                  "hiv_positive_male_partners_6mo": 0,
                  "insertive_anal_hiv_positive_6mo": 0,
                  "male_sex_partners_6mo": 0,
                  "poppers_6mo": false,
                  "unprotected_receptive_anal_6mo": 0
                },
                {
                  "age": 55,
                  "amphetamines_6mo": false,
                  "hiv_positive_male_partners_6mo": 0,
                  "insertive_anal_hiv_positive_6mo": 0,
                  "male_sex_partners_6mo": 0,
                  "poppers_6mo": false,
                  "unprotected_receptive_anal_6mo": 0
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 55,
                  "at_or_above_10": false,
                  "citation": {
                    "authors": "Smith DK, Pals SL, Herbst JH, Shinde S, Carey JW",
                    "doi": "10.1097/QAI.0b013e318256b2f6",
                    "id": "smith-dk-2012",
                    "pmid": "22487585",
                    "source": "J Acquir Immune Defic Syndr. 2012;60(4):421-427",
                    "title": "Development of a Clinical Screening Index Predictive of Incident HIV Infection Among Men Who Have Sex With Men in the United States"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 55
                    },
                    {
                      "factor": "male_sex_partners_6mo",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "hiv_positive_male_partners_6mo",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "unprotected_receptive_anal_6mo",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "insertive_anal_hiv_positive_6mo",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "poppers_6mo",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "amphetamines_6mo",
                      "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": "hiri_msm",
                  "formula_expression": "HIRI-MSM = age + male_sex_partners_6mo + hiv_positive_male_partners_6mo + unprotected_receptive_anal_6mo + insertive_anal_hiv_positive_6mo + poppers_6mo + amphetamines_6mo; age 18-28 -> 8, 29-40 -> 5, 41-48 -> 2, >=49 -> 0; male partners 0-5 -> 0, 6-10 -> 4, >=11 -> 7; HIV-positive partners 0 -> 0, 1 -> 4, >=2 -> 8; unprotected receptive anal 0 -> 0, >=1 -> 10; insertive anal with HIV-positive partner 0-4 -> 0, >=5 -> 6; poppers true -> 3; amphetamines true -> 5; max 47; at_or_above_10 iff score>=10",
                  "hiv_positive_male_partners_6mo": 0,
                  "insertive_anal_hiv_positive_6mo": 0,
                  "male_sex_partners_6mo": 0,
                  "max_score": 47,
                  "score": 0,
                  "unprotected_receptive_anal_6mo": 0
                },
                {
                  "age_years": 55,
                  "at_or_above_10": false,
                  "citation": {
                    "authors": "Smith DK, Pals SL, Herbst JH, Shinde S, Carey JW",
                    "doi": "10.1097/QAI.0b013e318256b2f6",
                    "id": "smith-dk-2012",
                    "pmid": "22487585",
                    "source": "J Acquir Immune Defic Syndr. 2012;60(4):421-427",
                    "title": "Development of a Clinical Screening Index Predictive of Incident HIV Infection Among Men Who Have Sex With Men in the United States"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 55
                    },
                    {
                      "factor": "male_sex_partners_6mo",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "hiv_positive_male_partners_6mo",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "unprotected_receptive_anal_6mo",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "insertive_anal_hiv_positive_6mo",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "poppers_6mo",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "amphetamines_6mo",
                      "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": "hiri_msm",
                  "formula_expression": "HIRI-MSM = age + male_sex_partners_6mo + hiv_positive_male_partners_6mo + unprotected_receptive_anal_6mo + insertive_anal_hiv_positive_6mo + poppers_6mo + amphetamines_6mo; age 18-28 -> 8, 29-40 -> 5, 41-48 -> 2, >=49 -> 0; male partners 0-5 -> 0, 6-10 -> 4, >=11 -> 7; HIV-positive partners 0 -> 0, 1 -> 4, >=2 -> 8; unprotected receptive anal 0 -> 0, >=1 -> 10; insertive anal with HIV-positive partner 0-4 -> 0, >=5 -> 6; poppers true -> 3; amphetamines true -> 5; max 47; at_or_above_10 iff score>=10",
                  "hiv_positive_male_partners_6mo": 0,
                  "insertive_anal_hiv_positive_6mo": 0,
                  "male_sex_partners_6mo": 0,
                  "max_score": 47,
                  "score": 0,
                  "unprotected_receptive_anal_6mo": 0
                }
              ],
              "path": "/api/calc/hiri_msm"
            },
            "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 (18-120). Smith 2012: 18-28 scores 8; 29-40 scores 5; 41-48 scores 2; ≥49 scores 0. Caller-assigned. magent does not take a sexual history.",
                            "type": "integer"
                          },
                          "amphetamines_6mo": {
                            "description": "Caller-assigned amphetamine use in the prior 6 months (Smith 2012). true or false. magent does not take a substance-use history.",
                            "type": "boolean"
                          },
                          "hiv_positive_male_partners_6mo": {
                            "description": "Caller-assigned number of HIV-positive male sex partners in the prior 6 months (0-500). Smith 2012: 0 scores 0; 1 scores 4; ≥2 scores 8. Do not drop this item.",
                            "type": "integer"
                          },
                          "insertive_anal_hiv_positive_6mo": {
                            "description": "Caller-assigned times the person had insertive anal sex with an HIV-positive male partner in the prior 6 months (0-500). Smith 2012: 0-4 scores 0; ≥5 scores 6.",
                            "type": "integer"
                          },
                          "male_sex_partners_6mo": {
                            "description": "Caller-assigned number of male sex partners in the prior 6 months (0-500). Smith 2012: 0-5 scores 0; 6-10 scores 4; ≥11 scores 7.",
                            "type": "integer"
                          },
                          "poppers_6mo": {
                            "description": "Caller-assigned popper (amyl nitrate) use in the prior 6 months (Smith 2012). true or false. magent does not take a substance-use history.",
                            "type": "boolean"
                          },
                          "unprotected_receptive_anal_6mo": {
                            "description": "Caller-assigned times the person had unprotected receptive anal sex with a male partner of any HIV status in the prior 6 months (0-500). Smith 2012: 0 scores 0; ≥1 scores 10.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "age",
                          "male_sex_partners_6mo",
                          "hiv_positive_male_partners_6mo",
                          "unprotected_receptive_anal_6mo",
                          "insertive_anal_hiv_positive_6mo",
                          "poppers_6mo",
                          "amphetamines_6mo"
                        ],
                        "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"
  }
}