Skip to content

Commit

Permalink
Text style
Browse files Browse the repository at this point in the history
  • Loading branch information
radioxoma committed Dec 11, 2024
1 parent 320e91d commit db2f6bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion heval/abg.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def calculate_anion_gap_delta(AG: float, HCO3act: float) -> str:
# predominance of beta-hydroxybutyrate. The dipstick test for ketones
# detect acetoacetate but not beta-hydroxybutyrate.
# https://web.archive.org/web/20170831093311/http://fitsweb.uchc.edu/student/selectives/TimurGraham/Case_2.html
return info + "(1 ≤ gg ≤ 2): classic high anion gap acidosis"
return info + "(1 ≤ gg ≤ 2): classic high anion gap acidosis. Check lactate."
else: # 2 < gg
# Suggests a pre-existing elevated [HCO3-] level so consider:
# * a concurrent metabolic alkalosis
Expand Down
8 changes: 4 additions & 4 deletions heval/electrolytes.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def describe_anion_gap(self):
info += f"HAGMA {desc} (KULT?), "
info += abg.calculate_anion_gap_delta(self.anion_gap, self.hco3p)
elif self.anion_gap < norm_gap[0]:
info += f"Low AG {desc} - hypoalbuminemia or low Na?"
info += f"Low AG {desc} - hypoalbuminemia or low Na?"
else:
# Hypocorticism [Henessy 2018, с 113 (Clinical case 23)]
info += f"NAGMA {desc}. Diarrhea or renal tubular acidosis?"
Expand Down Expand Up @@ -306,7 +306,7 @@ def describe_sbe(self):
# https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2856150
# https://en.wikipedia.org/wiki/Contraction_alkalosis
# Acetazolamide https://en.wikipedia.org/wiki/Carbonic_anhydrase_inhibitor
info += f"SBE is high {self.sbe:.1f} ({norm_sbe[0]:.0f}-{norm_sbe[1]:.0f} mEq/L). Check Cl⁻. Hypoalbuminemia? NaHCO₃ overdose?"
info += f"SBE is high {self.sbe:.1f} ({norm_sbe[0]:.0f}-{norm_sbe[1]:.0f} mEq/L). Low Cl⁻, hypoalbuminemia? NaHCO₃ overdose?"
elif self.sbe < norm_sbe[0]:
if self.sbe <= NaHCO3_threshold:
info += f"SBE is drastically low {self.sbe:.1f} ({norm_sbe[0]:.0f}-{norm_sbe[1]:.0f} mEq/L), consider NaHCO₃ in AKI patients to reach target pH 7.3:\n"
Expand Down Expand Up @@ -420,7 +420,7 @@ def describe_albumin(self):
elif abg.norm_ctAlb[0] <= self.ctAlb <= abg.norm_ctAlb[1]:
info = f"ctAlb is ok {ctalb_range}"
elif 3 <= self.ctAlb < abg.norm_ctAlb[0]:
info = f"ctAlb is low: light hypoalbuminemia {ctalb_range}"
info = f"ctAlb is low: mild hypoalbuminemia {ctalb_range}"
elif 2.5 <= self.ctAlb < 3:
info = f"ctAlb is low: medium hypoalbuminemia {ctalb_range}"
elif self.ctAlb < 2.5:
Expand Down Expand Up @@ -783,7 +783,7 @@ def electrolyte_K(weight: float, K_serum: float) -> str:
info += f"K⁺ on the upper acceptable border {K_serum:.1f} ({K_low:.1f}-{K_high:.1f} mmol/L)"
elif K_serum < norm_K[0]:
if K_serum < K_low:
info += f"K⁺ is dangerously low (<{K_low:.1f} mmol/L). Often associated with low Mg²⁺ (Mg²⁺ should be at least 1 mmol/L) and low Cl⁻.\n"
info += f"K⁺ is dangerously low (<{K_low:.1f} mmol/L). Often associated with low Mg²⁺ (should be at least 1 mmol/L) and low Cl⁻.\n"
info += "NB! Potassium calculations considered inaccurate, so use standard K⁺ replacement rate "
if weight < 40:
info += "{:.1f}-{:.1f} mmol/h (KCl 4 % {:.1f}-{:.1f} ml/h)".format(
Expand Down

0 comments on commit db2f6bc

Please sign in to comment.