# Gajic 2011 LIPS Lung Injury Prediction Score Calculator

> Gajic 2011 LIPS Lung Injury Prediction Score Calculator is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Computes the Lung Injury Prediction Score (LIPS) from Gajic 2011 Table 3 using caller-assigned predisposing conditions, surgery type, trauma items, and risk modifiers to estimate risk of developing ARDS

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/lips
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gajic-2011-lips-lung-injury-prediction-score-calculator-f4c9bbc8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JBC-JjxlXJYNCs7x07vwo

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability gajic-2011-lips-lung-injury-prediction-score-calculator-f4c9bbc8
```

Example prompt: Calculate the Gajic 2011 LIPS score for a patient who has shock and aspiration, is not septic, has no pneumonia, underwent emergency cardiac surgery, has lung contusion and multiple fractures, is obese (BMI >30), has hypoalbuminemia, no chemotherapy, FiO2 is above 0.35, SpO2 is below 95%, no acidosis, and no diabetes — tell me the numeric score and whether they're in the high-risk band.

## When to prefer this

Use this endpoint when you need a fast, reproducible implementation of the Gajic 2011 LIPS score exactly as published in Table 3, including correct handling of the single-surgery-type constraint, emergency surgery add-on, stacking trauma items, and the diabetes/sepsis interaction modifier. Prefer it over manual calculation to avoid scoring logic errors.

## Known failure modes

- Missing required boolean parameters returns a validation error
- More than one high-risk surgery type flagged true simultaneously causes an input constraint violation
- Diabetes mellitus scored as -1 only when sepsis is also true; misconfiguration by caller may produce unexpected scores
- Invalid parameter types (non-boolean values) cause schema rejection

## How this service works

Gajic 2011 lung injury prediction score (Table 3): caller-assigned predisposing conditions, at most one high-risk surgery type plus emergency add-on, stacking trauma items, and risk modifiers including diabetes -1 only with sepsis. Score is a number; published observed range 0-15.5. Band low if <4, high if >=4 (ROC cutoff). Not an ARDS diagnosis. magent does not examine the patient or read imaging.

## Output

Returns a numeric LIPS score (published observed range 0–15.5) and a risk band label: 'low' if the score is below 4 or 'high' if 4 or above, based on the ROC-derived cutoff from Gajic 2011. Does not constitute an ARDS diagnosis.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "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": [
      "shock",
      "aspiration",
      "sepsis",
      "pneumonia",
      "orthopedic_spine",
      "acute_abdomen",
      "cardiac",
      "aortic_vascular",
      "emergency_surgery",
      "traumatic_brain_injury",
      "smoke_inhalation",
      "near_drowning",
      "lung_contusion",
      "multiple_fractures",
      "alcohol_abuse",
      "obesity_bmi_gt_30",
      "hypoalbuminemia",
      "chemotherapy",
      "fio2_gt_035",
      "tachypnea_rr_gt_30",
      "spo2_lt_95",
      "acidosis_ph_lt_735",
      "diabetes_mellitus"
     ],
     "properties": {
      "shock": {
       "type": "boolean",
       "description": "Shock as assigned by the caller (Gajic 2011 Table 3). true scores 2. magent does not examine the patient."
      },
      "sepsis": {
       "type": "boolean",
       "description": "Sepsis as assigned by the caller (Gajic 2011 Table 3). true scores 1. magent does not diagnose sepsis."
      },
      "cardiac": {
       "type": "boolean",
       "description": "High-risk cardiac surgery as assigned by the caller (Gajic 2011 Table 3). true scores 2.5. At most one of orthopedic_spine, acute_abdomen, cardiac, and aortic_vascular may be true."
      },
      "pneumonia": {
       "type": "boolean",
       "description": "Pneumonia as assigned by the caller (Gajic 2011 Table 3). true scores 1.5. magent does not read imaging."
      },
      "aspiration": {
       "type": "boolean",
       "description": "Aspiration as assigned by the caller (Gajic 2011 Table 3). true scores 2. magent does not examine the patient."
      },
      "spo2_lt_95": {
       "type": "boolean",
       "description": "SpO2 <95% as assigned by the caller (Gajic 2011 Table 3). true scores 1. magent does not measure SpO2."
      },
      "fio2_gt_035": {
       "type": "boolean",
       "description": "FiO2 >0.35 or >4 L/min as assigned by the caller (Gajic 2011 Table 3). true scores 2. magent does not 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gajic-2011-lips-lung-injury-prediction-score-calculator-f4c9bbc8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.magentlab.com](https://www.zero.xyz/host/api.magentlab.com/llms.txt)
