Learn R Programming

cliot (version 1.0.0)

steroid_conversion_calculator: Steroid Conversion Calculator

Description

Calculates the equivalent dose of a target corticosteroid based on the dose of a current corticosteroid. The conversion uses standard equianalgesic ratios to estimate the anti-inflammatory potency equivalent. It also provides pharmacological properties (potency, half-life) for the target steroid.

Usage

steroid_conversion_calculator(current_steroid, current_dose_mg, target_steroid)

Value

A list containing:

Target_Dose_mg

The calculated equivalent dose of the target steroid.

Target_Steroid_Info

A list of pharmacological properties for the target steroid (Anti-inflammatory potency, Mineralocorticoid potency, Duration).

Conversion_Ratio

The ratio used for the specific conversion.

Arguments

current_steroid

String. The name of the steroid currently being used. Options: "cortisone", "hydrocortisone", "prednisone", "prednisolone", "triamcinolone", "methylprednisolone", "dexamethasone", "betamethasone".

current_dose_mg

Numeric. The dose of the current steroid in milligrams.

target_steroid

String. The name of the steroid to convert to. Same options as current_steroid.

Details

Equivalency Table (mg): Cortisone: 25 Hydrocortisone: 20 Prednisone: 5 Prednisolone: 5 Triamcinolone: 4 Methylprednisolone: 4 Dexamethasone: 0.75 Betamethasone: 0.6

References

Meikle AW, Tyler FH. Potency and duration of action of glucocorticoids. Am J Med. 1977;63(2):200-207. Webb R, Singer M. Oxford Handbook of Critical Care. Oxford; New York: Oxford University Press; 2005.

Examples

Run this code

# Example 1: Convert 10mg Prednisone to Hydrocortisone
# 10 * (20 / 5) = 40 mg
steroid_conversion_calculator("prednisone", 10, "hydrocortisone")

# Example 2: Convert 8mg Dexamethasone to Methylprednisolone
# 8 * (4 / 0.75) = 42.67 mg
steroid_conversion_calculator("dexamethasone", 8, "methylprednisolone")

Run the code above in your browser using DataLab