Fluids · LIVE
IV gravity drip rate (INS)
Compute a gravity infusion rate in drops per minute from volume, duration, and the administration-set drop factor (10, 15, or 20 gtt/mL macrodrip or 60 gtt/mL microdrip), and the equivalent mL/hour.
Markdown: /docs/iv-drip.md · Canonical: https://magentlab.com/docs/iv-drip
Not a medical device. Not a diagnosis, dose, or listing recommendation.
What it computes
Compute a gravity infusion rate in drops per minute from volume, duration, and the administration-set drop factor (10, 15, or 20 gtt/mL macrodrip or 60 gtt/mL microdrip), and the equivalent mL/hour.
When to use
When an agent needs the INS gravity gtt/min identity from a caller-assigned volume, time, and printed drop factor and must not invent a pump mL/hour order or a drug dose.
When not to use
- Not a medical device. Not a pump program, drug order, or infusion prescription. magent does not set an infusion pump.
- Gravity drip only. Drop factor is the caller-assigned administration-set calibration printed on the tubing (10, 15, or 20 gtt/mL macrodrip; 60 gtt/mL microdrip). magent does not choose tubing.
- gtt/min is rounded half away from zero to an integer because the cited standard does not specify a rounding mode. ml_per_hour is volume_ml / (time_min/60).
- Not Webb 2016 pneumonia DRIP (that is a different magent tool).
Formula
gtt_per_min = round_half_away((volume_ml * drop_factor_gtt_ml) / time_min); ml_per_hour = volume_ml / (time_min / 60)
Citation
- Authors
- Gorski LA, Hadaway L, Hagle ME, Broadhurst D, Clare S, Kleidon T, Meyer BM, Nickel B, Rowley S, Sharpe E, Alexander M
- Source
- J Infus Nurs. 2021;44(1S Suppl 1):S1-S224
Worked example
1000 mL over 480 min, drop factor 15
Given:
drop_factor_gtt_ml=15time_min=480volume_ml=1000
- gtt_per_min = (1000 × 15) / 480 = 31.25 → 31 (half away from zero to integer)
- ml_per_hour = 1000 / (480 / 60) = 125
1000 mL over 480 min, microdrip 60
Given:
drop_factor_gtt_ml=60time_min=480volume_ml=1000
- gtt_per_min = (1000 × 60) / 480 = 125
- ml_per_hour = 125; with 60 gtt/mL, integer gtt/min equals mL/hour
1000 mL over 60 min, drop factor 15
Given:
drop_factor_gtt_ml=15time_min=60volume_ml=1000
- gtt_per_min = (1000 × 15) / 60 = 250
- ml_per_hour = 1000 / (60 / 60) = 1000
Also searched as
- IV drip rate
- gtt/min
- gravity infusion
- macrodrip
- microdrip
- drop factor
- INS infusion standards
- drops per minute
Try
Opens the live endpoint. Unpaid browser requests show the paywall; agents should send Accept: application/json.
/api/calc/iv_drip?volume_ml=1000&time_min=480&drop_factor_gtt_ml=15
Full URL: https://api.magentlab.com/api/calc/iv_drip?volume_ml=1000&time_min=480&drop_factor_gtt_ml=15
Call
Expect HTTP 402 until you retry with PAYMENT-SIGNATURE. Incomplete query params
return HTTP 400 before any quote or charge.
curl -i -H "Accept: application/json" "https://api.magentlab.com/api/calc/iv_drip?volume_ml=1000&time_min=480&drop_factor_gtt_ml=15"
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
volume_ml |
number | required | Infused volume in mL (1-10000, magent clamp). Caller-assigned bag or syringe volume; magent does not choose a fluid. |
time_min |
integer | required | Infusion duration in minutes (1-1440, magent clamp). Convert hours to minutes before calling (8 hours = 480). |
drop_factor_gtt_ml |
integer | required · 10, 15, 20, 60 | Administration-set drop factor in gtt/mL printed on the tubing package: 10, 15, or 20 (macrodrip) or 60 (microdrip). Integers 10, 15, 20, or 60 only. magent does not choose tubing. |
Bulk (POST)
POST the same path with a JSON items array. The first item is the GET unit; each additional item is $0.002. Invalid items return HTTP 400 before settlement.
- 1 to 25 items. Each item uses the same keys as the GET query parameters.
- POST of 1 item costs the same as GET. Lists longer than 25: chunk into multiple POSTs. Extra items still execute; do not pad dummy rows.
- The first invalid item fails the whole request (index in the 400 JSON). You are not charged.
- HTTP 200 is {count, path, items}. Each items[i] is the GET 200 body for that row.
- Catalog misses (empty matches, found=false) stay paid 200s inside that slot.
- x402 resource URL is this path plus n and body_sha256. Browsers that prefer text/html get the same paywall as GET; Pay retries POST with the same items.
Example request (fixture)
{
"items": [
{
"drop_factor_gtt_ml": "15",
"time_min": "480",
"volume_ml": "1000"
},
{
"drop_factor_gtt_ml": "15",
"time_min": "480",
"volume_ml": "1000"
}
]
}
Opens a two-item fixture on the API host. Unpaid browsers get the same MetaMask paywall as GET; Pay retries POST with those items.
Example 200 (fixture)
{
"count": 2,
"path": "/api/calc/iv_drip",
"items": [
{
"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.",
"citation": {
"authors": "Gorski LA, Hadaway L, Hagle ME, Broadhurst D, Clare S, Kleidon T, Meyer BM, Nickel B, Rowley S, Sharpe E, Alexander M",
"doi": "10.1097/NAN.0000000000000396",
"id": "gorski-ins-infusion-standards",
"pmid": "33394637",
"source": "J Infus Nurs. 2021;44(1S Suppl 1):S1-S224",
"title": "Infusion Therapy Standards of Practice, 8th Edition"
},
"formula": "iv_drip",
"formula_expression": "gtt_per_min = round_half_away((volume_ml * drop_factor_gtt_ml) / time_min); ml_per_hour = volume_ml / (time_min / 60)",
"volume_ml": 1000,
"drop_factor_gtt_ml": 15,
"gtt_per_min": 31,
"ml_per_hour": 125,
"time_min": 480
},
{
"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.",
"citation": {
"authors": "Gorski LA, Hadaway L, Hagle ME, Broadhurst D, Clare S, Kleidon T, Meyer BM, Nickel B, Rowley S, Sharpe E, Alexander M",
"doi": "10.1097/NAN.0000000000000396",
"id": "gorski-ins-infusion-standards",
"pmid": "33394637",
"source": "J Infus Nurs. 2021;44(1S Suppl 1):S1-S224",
"title": "Infusion Therapy Standards of Practice, 8th Edition"
},
"formula": "iv_drip",
"formula_expression": "gtt_per_min = round_half_away((volume_ml * drop_factor_gtt_ml) / time_min); ml_per_hour = volume_ml / (time_min / 60)",
"volume_ml": 1000,
"drop_factor_gtt_ml": 15,
"gtt_per_min": 31,
"ml_per_hour": 125,
"time_min": 480
}
]
}
Response
| Field | Type | Description |
|---|---|---|
formula |
string | iv_drip |
formula_expression |
string | Exact expression used |
volume_ml |
number | Volume in mL used in the rate |
time_min |
integer | Duration in minutes used in the rate |
drop_factor_gtt_ml |
integer | Caller-assigned 10, 15, 20, or 60 gtt/mL |
gtt_per_min |
integer | Gravity drip rate in drops per minute, rounded half away from zero to an integer |
ml_per_hour |
number | volume_ml / (time_min / 60), 1 decimal then integer when whole |
citation |
object | INS Infusion Therapy Standards citation |
disclaimer |
string | Not-a-device notice |
Example JSON
Machine form of the same example. Frozen fixture. Not a live lookup.
{
"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.",
"citation": {
"authors": "Gorski LA, Hadaway L, Hagle ME, Broadhurst D, Clare S, Kleidon T, Meyer BM, Nickel B, Rowley S, Sharpe E, Alexander M",
"doi": "10.1097/NAN.0000000000000396",
"id": "gorski-ins-infusion-standards",
"pmid": "33394637",
"source": "J Infus Nurs. 2021;44(1S Suppl 1):S1-S224",
"title": "Infusion Therapy Standards of Practice, 8th Edition"
},
"formula": "iv_drip",
"formula_expression": "gtt_per_min = round_half_away((volume_ml * drop_factor_gtt_ml) / time_min); ml_per_hour = volume_ml / (time_min / 60)",
"volume_ml": 1000,
"drop_factor_gtt_ml": 15,
"gtt_per_min": 31,
"ml_per_hour": 125,
"time_min": 480
}
Client errors (HTTP 400)
Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_iv_drip |
IV drip-rate inputs must match volume, time, and drop factor as published for gtt/min. Returned before settlement; you are not charged. |
| 400 | invalid_items |
POST body must be a JSON object with only an items array Returned before settlement; you are not charged. |
| 400 | invalid_item_count |
items must be an array of 1 to 25 objects Returned before settlement; you are not charged. |
| 400 | invalid_item |
each items entry must be a JSON object Returned before settlement; you are not charged. |
Related tools
- NICE adult IV maintenance — Compute NICE CG174 adult hospital routine maintenance water (20, 25, or 30 mL/kg/day), approximately 1 mmol/kg/day sodium, potassium, and chloride each, and the fixed 50–100 g/day glucose range.
- Parkland formula — Compute adult Parkland 24-hour crystalloid volume from weight and percent TBSA, with half allotted to the first 8 hours from the time of burn.
Payment
Unpaid requests return HTTP 402 even if query parameters or POST items are missing or invalid, so CDP and agents can index the path. After a PAYMENT-SIGNATURE, invalid params return HTTP 400 JSON before settlement. magent does not charge. Fix the params, then request a new 402 quote for that complete URL. Catalog misses (empty matches, found=false) are valid paid 200s. Unpaid valid requests return HTTP 402 with a base64
PAYMENT-REQUIRED
header. HTTP 503 is not a new quote: retry the same PAYMENT-SIGNATURE. Full handshake
and shared payment errors: Payments.
Stdio MCP: /docs/mcp.
Guarantees
- HTTP 402 is unpaid, including a missing query. After PAYMENT-SIGNATURE, invalid parameters return HTTP 400 before settlement. You are not charged. HTTP 402 never includes the tool JSON.
- exact: settlement finishes before the tool (paymentFlow upfront). batch-settlement: verify/deposit before the tool; chargedCumulativeAmount commits after HTTP 2xx. Uncertain or failed settlement fails closed (HTTP 503). Retry the same PAYMENT-SIGNATURE.
- HTTP 402 is unpaid only. Do not sign a second authorization because of a 503.
- Execution is timeout-bounded and concurrency-capped.
- Calculator inputs are stored encrypted for allowlisted operators (Magent Console). They are not in public logs, SSH lookups, catalog, or rollups. Request logs store path without query.