magent
GET api.magentlab.com/api/calc/glasgow_blatchford
Why an agent can trust this route.
Sonar evidence is advisory. Paid delivery is shown as verified only when paid probes are available; otherwise route estimates use the unpaid handshake as a clearly labeled proxy.
Observed outcomes
Glasgow-Blatchford score (Blatchford 2000) for need for treatment after upper-gastrointestinal haemorrhage. Points from urea, haemoglobin (sex-specific), systolic BP, heart rate ≥100, melena, syncope, hepatic disease, and cardiac failure; max 23. Score 0 is the published low-risk screen; magent does not invent other GBS bands. Not a diagnosis, not Rockall, and not AIMS65. Urea may be mmol/L or BUN mg/dL; haemoglobin g/L or g/dL.
Resource: api.magentlab.com/api/calc/glasgow_blatchford
Network: eip155:8453 · Asset: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 · Pay to: 0x836Be278f1739fB4308091cD1852F7971Bc19Ee2
Payment methods: eip3009 · Last validation: 2026-09-14 11:09:40.395+00
{
"input": {
"type": "object",
"required": [
"type",
"method"
],
"properties": {
"type": {
"type": "string",
"const": "http"
},
"method": {
"enum": [
"GET",
"HEAD",
"DELETE"
],
"type": "string"
},
"headers": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"queryParams": {
"type": "object",
"required": [
"sex",
"systolic_mm_hg",
"heart_rate_bpm",
"melena",
"syncope",
"hepatic_disease",
"cardiac_failure"
],
"properties": {
"sex": {
"type": "string",
"description": "Sex (female or male). Haemoglobin points use the Blatchford 2000 sex-specific table."
},
"melena": {
"type": "boolean",
"description": "Melena as assigned by the caller. true or false. 1 point if true."
},
"syncope": {
"type": "boolean",
"description": "Syncope as assigned by the caller. true or false. 2 points if true."
},
"bun_mg_dl": {
"type": "number",
"description": "BUN in mg/dL (3-140). Converted as urea_mmol_l = bun_mg_dl / 2.8. Provide this or urea_mmol_l, not both."
},
"urea_mmol_l": {
"type": "number",
"description": "Blood urea in mmol/L (1-50). Provide this or bun_mg_dl, not both. <6.5 scores 0; 6.5–7.9 scores 2; 8.0–9.9 scores 3; 10.0–24.9 scores 4; ≥25.0 scores 6."
},
"heart_rate_bpm": {
"type": "integer",
"description": "Heart rate in beats per minute (integer 30-220). Scores 1 when ≥100; 99 does not score."
},
"hemoglobin_g_l": {
"type": "number",
"description": "Haemoglobin in g/L (30-220). Provide this or hemoglobin_g_dl, not both. Men: <100 → 6; 100–119 → 3; 120–129 → 1; ≥130 → 0. Women: <100 → 6; 100–119 → 1; ≥120 → 0."
},
"systolic_mm_hg": {
"type": "number",
"description": "Systolic blood pressure in mm Hg (50-250). <90 scores 3; 90–99 scores 2; 100–109 scores 1; ≥110 scores 0."
},
"cardiac_failure": {
"type": "boolean",
"description": "Cardiac failure as assigned by the caller. true or false. 2 points if true."
},
"hemoglobin_g_dl": {
"type": "number",
"description": "Haemoglobin in g/dL (3-22). Converted as hemoglobin_g_l = hemoglobin_g_dl × 10. Provide this or hemoglobin_g_l, not both."
},
"hepatic_disease": {
"type": "boolean",
"description": "Hepatic disease as assigned by the caller. true or false. 2 points if true."
}
}
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"example": {
"type": "object"
}
}
},
"paymentRequirements": [
{
"raw": {
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2",
"paymentFlow": "upfront",
"resourceUrl": "https://api.magentlab.com/api/calc/glasgow_blatchford?bun_mg_dl=14&cardiac_failure=false&heart_rate_bpm=80&hemoglobin_g_dl=14&hemoglobin_g_l=140&hepatic_disease=false&melena=false&sex=male&syncope=false&systolic_mm_hg=120&urea_mmol_l=5",
"assetTransferMethod": "eip3009"
},
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"amount": "5000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 600
},
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"scheme": "exact",
"network": "eip155:8453",
"amountAtomic": "5000"
},
{
"raw": {
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2",
"withdrawDelay": 86400,
"receiverAuthorizer": "0x3721824a31197dcDD2984cF43b92B6cc8A87c0Fb",
"assetTransferMethod": "eip3009"
},
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"amount": "5000",
"scheme": "batch-settlement",
"network": "eip155:8453",
"maxTimeoutSeconds": 600
},
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"scheme": "batch-settlement",
"network": "eip155:8453",
"amountAtomic": "5000"
}
]
}Source catalog records are retained separately from live endpoint observations. Sonar score, uptime, and latency are advisory metrics. CDP indexing is not inferred from validation.