Jin 2018 ED model for early diagnosis of acute pancreatitis when lipase is at le
Jin 2018 ED model for early diagnosis of acute pancreatitis when lipase is at least 3x ULN. Integer points: prior episodes 0/1/2/3/4, cholelithiasis +2, abdominal surgery in 2 months -2, epigastric pain +2, worsening pain +1, pain duration >=5 days -1, severity mild 0 / moderate +2 / severe +3, lipase fold +0/+1/+2. Score max 14; jin2018_high_ppv if score>=8; jin2024_accuracy_cut if score>=6. Not a diagnosis. Not an imaging order. Not Ranson, BISAP, or Glasgow-Imrie.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://api.magentlab.com/api/calc/ap_prediction
| Category | Everything else |
|---|---|
| Provider host | api.magentlab.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 0 from 0 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-09-28 | valid payment request | 402 | $0.007 | 305 ms |
Example input (from the provider)
{
"body": {
"items": [
{
"abdominal_surgery_2mo": false,
"cholelithiasis": false,
"epigastric_pain": false,
"lipase_uln_fold": 4,
"pain_duration_days": "lt_5",
"pain_severity": "mild_0_3",
"prior_ap_episodes": "0",
"worsening_pain": false
},
{
"abdominal_surgery_2mo": false,
"cholelithiasis": false,
"epigastric_pain": false,
"lipase_uln_fold": 4,
"pain_duration_days": "lt_5",
"pain_severity": "mild_0_3",
"prior_ap_episodes": "0",
"worsening_pain": false
}
]
},
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"items": {
"items": {
"properties": {
"abdominal_surgery_2mo": {
"description": "Caller-assigned abdominal surgery within 2 months (Jin 2018). true scores -2; false scores 0.",
"type": "boolean"
},
"cholelithiasis": {
"description": "Caller-assigned cholelithiasis (Jin 2018). true scores +2; false scores 0. magent does not read imaging.",
"type": "boolean"
},
"epigastric_pain": {
"description": "Caller-assigned epigastric pain (Jin 2018). true scores +2; false scores 0. magent does not examine the patient.",
"type": "boolean"
},
"lipase_uln_fold": {
"description": "Serum lipase as a fold of the laboratory ULN. Population is lipase \u22653\u00d7 ULN (Jin 2018). \u22653 and <10 scores 0; \u226510 and <20 scores +1; \u226520 scores +2. Below 3 is invalid_ap_prediction.",
"type": "number"
},
"pain_duration_days": {
"description": "Caller-assigned pain-duration token (Jin 2018). lt_5 (<5 days) scores 0; gte_5 (\u22655 days) scores -1. magent does not take a history.",
"enum": [
"lt_5",
"gte_5"
],
"type": "string"
},
"pain_severity": {
"description": "Caller-assigned pain-severity token (Jin 2018). mild_0_3 (0-3) scores 0; moderate_4_6 (4-6) scores +2; severe_7_10 (7-10) scores +3. magent does not assign a pain scale.",
"enum": [
"mild_0_3",
"moderate_4_6",
"severe_7_10"
],
"type": "string"
},
"prior_ap_episodes": {
"description": "Caller-assigned prior acute-pancreatitis episode token (Jin 2018). 0 scores 0; 1 scores 1; 2 scores 2; 3 scores 3; 4_or_more scores 4. magent does not take a history.",
"enum": [
"0",
"1",
"2",
"3",
"4_or_more"
],
"type": "string"
},
"worsening_pain": {
"description": "Caller-assigned worsening pain (Jin 2018). true scores +1; false scores 0.",
"type": "boolean"
}
},
"required": [
"prior_ap_episodes",
"cholelithiasis",
"abdominal_surgery_2mo",
"epigastric_pain",
"worsening_pain",
"pain_duration_days",
"pain_severity",
"lipase_uln_fold"
],
"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"
}