Learn R Programming

cliot (version 1.0.0)

glasgow_blatchford_score: Glasgow-Blatchford Bleeding Score (GBS)

Description

Calculates the Glasgow-Blatchford Score (GBS) to screen patients with upper gastrointestinal bleeding (UGIB). The score identifies low-risk patients who may be safely managed as outpatients. A score of 0 indicates low risk for needing medical intervention (transfusion, endoscopy, surgery).

Usage

glasgow_blatchford_score(bun, hemoglobin, systolic_bp, heart_rate, melena,
                         syncope, liver_disease, cardiac_failure, bun_units = "mg/dL")

Value

A list containing:

GBS_Score

The calculated score (Range 0-23).

Risk_Category

Interpretation ("Low Risk" if 0, otherwise "High Risk").

Arguments

bun

Numeric. Blood Urea Nitrogen level. 6.5-7.9 mg/dL: +2. 8.0-9.9 mg/dL: +3. 10.0-24.9 mg/dL: +4. >=25.0 mg/dL: +6.

hemoglobin

Numeric. Hemoglobin level in g/dL. 12.0-12.9 (Men): +1. 10.0-11.9 (Men/Women): +3. <10.0: +6.

systolic_bp

Numeric. Systolic Blood Pressure in mmHg. 100-109: +1. 90-99: +2. <90: +3.

heart_rate

Numeric. Heart Rate in bpm. (>= 100: +1 point).

melena

Numeric (0 or 1). Presence of melena. (1 = Yes, +1 point).

syncope

Numeric (0 or 1). Presentation with syncope. (1 = Yes, +2 points).

liver_disease

Numeric (0 or 1). History of hepatic disease. (1 = Yes, +2 points).

cardiac_failure

Numeric (0 or 1). History of cardiac failure. (1 = Yes, +2 points).

bun_units

String. Units for BUN input. "mg/dL" (default) or "mmol/L".

References

Blatchford O, Murray WR, Blatchford M. A risk score to predict need for treatment for upper-gastrointestinal haemorrhage. Lancet. 2000;356(9238):1318-1321. doi:10.1016/S0140-6736(00)02816-6

Examples

Run this code

# Example 1: Low Risk
# BUN 5, Hb 14, SBP 120, HR 70, No other factors
# Score = 0
glasgow_blatchford_score(5, 14, 120, 70, 0, 0, 0, 0)

# Example 2: High Risk
# BUN 30 (+6), Hb 9 (+6), Melena (+1)
# Score = 13
glasgow_blatchford_score(30, 9, 110, 90, 1, 0, 0, 0)

Run the code above in your browser using DataLab