Learn R Programming

cliot (version 1.0.0)

glasgow_imrie_pancreatitis_score: Glasgow-Imrie Criteria for Acute Pancreatitis Severity

Description

Calculates the Glasgow-Imrie Score (Modified Glasgow Score) to assess the severity of acute pancreatitis within the first 48 hours of admission. The score utilizes the mnemonic PANCREAS to evaluate 8 prognostic factors. A score of 3 or greater indicates severe pancreatitis.

Usage

glasgow_imrie_pancreatitis_score(age, wbc, glucose, urea, pao2, albumin,
                                 calcium, ldh, ast, alt,
                                 glucose_units = "mmol/L",
                                 urea_units = "mmol/L",
                                 calcium_units = "mmol/L",
                                 albumin_units = "g/L")

Value

A list containing:

Glasgow_Imrie_Score

The calculated score (Range 0-8).

Severity_Assessment

"Severe Pancreatitis" if Score >= 3, otherwise "Mild Pancreatitis".

Arguments

age

Numeric. Patient age in years. (> 55 years adds 1 point).

wbc

Numeric. White Blood Cell count (x 10^9/L). (> 15 adds 1 point).

glucose

Numeric. Serum glucose level. (> 10 mmol/L or 180 mg/dL adds 1 point).

urea

Numeric. Serum Urea level. (> 16 mmol/L or ~45 mg/dL BUN adds 1 point).

pao2

Numeric. Arterial partial pressure of oxygen (mmHg). (< 60 mmHg adds 1 point).

albumin

Numeric. Serum albumin level. (< 32 g/L or 3.2 g/dL adds 1 point).

calcium

Numeric. Serum calcium level. (< 2.0 mmol/L or 8.0 mg/dL adds 1 point).

ldh

Numeric. Lactate dehydrogenase (U/L). (> 600 U/L adds 1 point as part of Enzyme criteria).

ast

Numeric. Aspartate aminotransferase (U/L). (> 200 U/L adds 1 point as part of Enzyme criteria).

alt

Numeric. Alanine aminotransferase (U/L). (> 200 U/L adds 1 point as part of Enzyme criteria).

glucose_units

String. "mmol/L" (default) or "mg/dL".

urea_units

String. "mmol/L" (default) or "mg/dL" (treats input as BUN).

calcium_units

String. "mmol/L" (default) or "mg/dL".

albumin_units

String. "g/L" (default) or "g/dL".

References

Blamey SL, Imrie CW, O'Neill J, Gilmour WH, Carter DC. Prognostic factors in acute pancreatitis. Gut. 1984;25(12):1340-1346. doi:10.1136/gut.25.12.1340

Examples

Run this code

# Example 1: Severe Pancreatitis
# Age 60 (+1), WBC 18 (+1), Glucose 12 mmol (+1), LDH 700 (+1)
# Score = 4
glasgow_imrie_pancreatitis_score(60, 18, 12, 10, 70, 35, 2.2, 700, 100, 100)

# Example 2: Mild Pancreatitis
# 40yo, Normal labs except slightly low calcium
# Score = 1
glasgow_imrie_pancreatitis_score(40, 8, 5, 5, 90, 40, 1.9, 200, 30, 30)

Run the code above in your browser using DataLab