Known case of hypertension Dm ii cva stroke admitted with empyema of gall bladder has severe hypocalcemia hypokalemia hypo magnesemia with normal phosphorous and pth levels . What are the causes

Reading File
Finding Sources
Finding Sources
Searching PubMed

hypocalcemia AND hypomagnesemia AND hypokalemia

Causes of combined hypocalcemia, hypokalemia and hypomagnesemia with normal phosphate and PTH

Key point: In true hypocalcemia, PTH should be high. A "normal" PTH here is inappropriately low, so it is a functional hypoparathyroid state. Hypoparathyroidism and CKD usually raise phosphate, and yours is normal, which makes both less likely. The picture points to hypomagnesemia plus sepsis, with GI and renal losses and drugs as contributors.

1. Hypomagnesemia (the unifying cause)

  • Low Mg impairs PTH secretion and causes PTH resistance at bone and kidney. This produces hypocalcemia that won't correct until Mg is replaced.
  • Low Mg also causes renal K wasting through ROMK channel disinhibition, so the hypokalemia is refractory too.
  • Harrison's (22E, Hypomagnesemia) states that the hypocalcemia and hypokalemia seen with hypomagnesemia may not be easily corrected unless magnesium is given. Morgan and Mikhail's (7e) says the same: hypomagnesemia is frequently associated with hypocalcemia (impaired PTH secretion) and hypokalemia (renal K wasting).

2. Sepsis and critical illness (gallbladder empyema)

  • Sepsis suppresses PTH release and causes hypocalcemia (Morgan and Mikhail's 7e; Harrison's 22E; Henry's lists sepsis, burns and acute renal failure).
  • Cytokines, calcitriol resistance, and low albumin and vitamin D add to this.
  • Sepsis also causes intracellular shifts and renal losses of K and Mg.

3. Why Mg and K are low (causes of depletion)

Gastrointestinal losses
  • Vomiting, nasogastric drainage, diarrhea, or biliary and cholecystostomy drain output.
  • Poor intake or malnutrition. Stroke-related dysphagia and prolonged illness make this likely.
  • Long-term PPI use, which is a common cause of low Mg.
Renal losses
  • Diuretics (loop and thiazide), often used in hypertension, DM and stroke patients.
  • Osmotic diuresis from uncontrolled hyperglycemia. Insulin therapy also drives K and Mg into cells.
  • Diabetic tubulopathy or nephropathy.
  • Nephrotoxic antibiotics for the sepsis: aminoglycosides, amphotericin B, and (for K) piperacillin-tazobactam and other penicillins. Cisplatin and foscarnet are other possible culprits.
Other
  • Alcohol use.
  • Refeeding syndrome if nutrition was restarted. It usually also lowers phosphate, so check this.

4. Other causes of hypocalcemia with normal phosphate

  • Hypoalbuminemia causes a low total but normal ionized Ca. Check ionized Ca or corrected Ca first.
  • Vitamin D deficiency is common in the elderly and the bedbound. PTH is usually high, but it can look "normal" when Mg is low or in sepsis. Check 25-OH vitamin D.
  • Acute pancreatitis, for example gallstone pancreatitis in a biliary patient, causes calcium saponification. Check lipase.
  • Citrate from transfusion or CRRT, and bicarbonate or alkalosis, which lower ionized Ca.
  • Drugs: loop diuretics (calciuric), bisphosphonates, denosumab, PPIs, foscarnet.
  • Fat malabsorption from biliary disease can reduce Ca, Mg and vitamin D absorption.

Suggested workup

  • Ionized Ca, albumin, and ABG for pH and bicarbonate.
  • Spot urine Mg and creatinine. Fractional excretion of Mg above 2% means renal wasting. Below 2% means GI loss or poor intake.
  • Urine K and creatinine (or TTKG) to separate renal from GI K loss.
  • 25-OH vitamin D, lipase, creatinine and eGFR, and repeat phosphate.
  • ECG for QT prolongation. Hypokalemia, hypomagnesemia and hypocalcemia together raise the risk of torsades.
  • Review the drug chart (PPI, diuretics, antibiotics, insulin).

Management principle

Give IV magnesium first or together with calcium and potassium. Ca and K often won't correct otherwise. Replace K with Mg. Give calcium gluconate if symptomatic or if QT is prolonged. Treat the source (cholecystectomy or drainage and antibiotics) and stop offending drugs.

Recent evidence check

A PubMed search of the last 2 years found only trauma-related hypocalcemia meta-analyses (e.g., PMID 40098024). Nothing contradicts the textbook explanation above.
Do you have the ionized Ca, albumin, urine Mg and 25-OH D values? With those I can narrow this to the most likely cause.

What is the IV magnesium and calcium replacement protocol here?

Reading File
Finding Sources
Finding Sources
Searching the Web

IV magnesium replacement protocol hypomagnesemia critically ill 2 g magnesium sulfate over hours; calcium gluconate infusion hypocalcemia guideline

IV magnesium, calcium and potassium replacement for this patient

Dosing below comes from the library textbooks plus a web check of critical care protocols. Adjust to your hospital protocol and to renal function. These are standard adult doses, not individualized orders.

Order of replacement

  1. Start magnesium first, or at the same time as calcium and potassium. Ca and K usually stay low until Mg is replaced, because hypomagnesemia causes PTH failure and renal K wasting (Harrison's 22E, Hypomagnesemia).
  2. Give calcium urgently only if the patient is symptomatic or has a prolonged QT.
  3. Put the patient on continuous ECG monitoring, because QT-prolonging combinations can cause torsades.

1. IV magnesium sulfate

Loading dose
  • Standard load: 1 to 2 g MgSO4 (8 to 16 mEq) IV over 10 to 60 minutes (Morgan and Mikhail's 7e, Treatment of Hypomagnesemia). Schwartz's 11th ed. and Tintinalli's give similar loading doses.
  • Tintinalli's: if serum Mg is below 2.0 mEq/L (1.0 mmol/L) or symptoms are present, give 2 g IV over 1 hour.
  • Dilute in at least 100 mL of D5 or NS.
  • Torsades or seizures: 1 to 4 g in at least 100 mL, over 10 to 60 minutes under monitoring (Tintinalli's).
Maintenance and repletion
  • Total body Mg is usually deeply depleted, so a single dose is not enough.
  • A critical care review suggests a 1 to 2 g load, then 4 to 8 g (32 to 64 mEq) over 12 to 24 hours.
  • Another common regimen is 2 to 4 g IV every 6 to 8 hours, or a continuous infusion (an EMCrit summary).
  • A slower infusion (about 1 g/hour, no more than 2 g/hour in non-emergencies) gives better retention. Fast boluses are largely lost in urine.
  • Continue for 3 to 5 days, because intracellular stores refill slowly.
  • Target serum Mg of at least 2 mg/dL (0.8 mmol/L or higher).
Renal function
  • Check creatinine first. This patient has diabetes, hypertension and sepsis, so AKI risk is real.
  • With impaired renal function, reduce the dose by 25 to 50% and monitor Mg levels closely.
Monitoring
  • Check deep tendon reflexes, respiratory rate, blood pressure and ECG.
  • Recheck Mg 4 to 6 hours after dosing, then daily.
  • Hypermagnesemia presents as loss of reflexes, hypotension, and respiratory depression. Its antidote is IV calcium gluconate.

2. IV calcium (only if symptomatic or QT prolonged)

Indications: tetany, seizures, laryngospasm, arrhythmia or QT prolongation, or corrected Ca below about 7.5 mg/dL (ionized below 0.8 mmol/L) (Brenner and Rector's; Goldman-Cecil; Harrison's).
Bolus
  • Calcium gluconate 10% is preferred. Each 10 mL ampule contains 90 mg (2.2 mmol) of elemental calcium.
  • Give 1 to 2 ampules (10 to 20 mL) diluted in 50 to 100 mL of D5 or NS, IV over 10 to 20 minutes (Harrison's; Katzung's; Morgan and Mikhail's).
  • Calcium chloride 10% has 3 times more elemental Ca (10 mL = 272 mg), but it is irritant. Use it only through a central line, and mostly in arrest or hemodynamic collapse.
  • Do not push it fast. Rapid injection can cause arrhythmias.
  • The bolus effect lasts only 2 to 3 hours, so follow it with an infusion if symptoms or low Ca persist.
Continuous infusion
  • A common regimen is about 10 ampules (100 mL of 10% calcium gluconate, around 900 mg elemental Ca) in 1 L of D5 or NS, running at about 50 mL/hour.
  • The usual range is 0.5 to 1.5 mg/kg/hour of elemental Ca. Titrate to the lower end of the normal range.
  • Check Ca every 4 to 6 hours.
Precautions
  • Do not mix with bicarbonate or phosphate in the same line, because it precipitates.
  • Avoid ceftriaxone co-infusion through the same line.
  • Use caution with digoxin, because hypercalcemia raises toxicity risk.
  • Extravasation causes tissue necrosis.
  • Correct hypomagnesemia, or the calcium infusion will fail.
Sepsis consideration
  • In sepsis, mild asymptomatic hypocalcemia often does not need IV calcium. Some data suggest IV calcium may be harmful in sepsis, so treat only symptoms, QT prolongation, or severe ionized hypocalcemia.
  • Always check ionized Ca or albumin-corrected Ca first. Corrected Ca = measured Ca + 0.8 × (4 − albumin).

3. Potassium (replace together with Mg)

  • Peripheral line: up to 10 mEq/hour.
  • Central line: up to 20 mEq/hour with cardiac monitoring if K is below 2.5 mEq/L or arrhythmias are present.
  • Rosen's states that K repletion may fail unless Mg is replaced at the same time.
  • Recheck K every 2 to 4 hours during active repletion.
  • Check renal function before giving large amounts.

4. Adjuncts after stabilization

  • Oral calcium (1 to 2 g elemental/day) and vitamin D (cholecalciferol, with calcitriol only if indicated), once 25-OH D is known.
  • Stop or reduce PPI and diuretics if possible. Control glucose.
  • Control the source: biliary drainage or cholecystectomy and antibiotics.
  • Replete phosphate if it falls, especially with nutrition restart (refeeding risk).
I can turn this into a one-page order sheet or a monitoring flowchart if you'd like.

Causes of hypo magnesia

Reading File
Finding Sources
Finding Sources

Causes of hypomagnesemia

This follows Harrison's 22E (Table 421-4, Causes of Hypomagnesemia) and Goldman-Cecil (Magnesium Deficiency), plus standard teaching. Serum Mg below 1.7 mg/dL (0.7 mmol/L) is low. Mg depletion can be present even when serum Mg is normal, because only about 1% of body Mg is in serum.

1. Reduced intake or intestinal absorption

  • Malnutrition, protein-calorie malnutrition, and alcoholism. Dietary deficiency alone is unlikely except in alcoholism (Harrison's).
  • Prolonged IV fluids or parenteral nutrition without Mg.
  • Malabsorption (celiac disease, Crohn's, short bowel, fat malabsorption, biliary disease).
  • Proton pump inhibitors. These impair intestinal Mg absorption, and the effect is more pronounced with long-term use.
  • Vitamin D deficiency.
  • Rare genetic cause: primary intestinal hypomagnesemia with secondary hypocalcemia (TRPM6 mutations).

2. Gastrointestinal losses

  • Chronic diarrhea and laxative abuse.
  • Vomiting and nasogastric suction.
  • Intestinal or biliary fistulas and drain output.
  • Acute pancreatitis (saponification of Mg in fat necrosis).

3. Renal losses

Drugs
  • Loop and thiazide diuretics.
  • Aminoglycosides, amphotericin B, cisplatin and carboplatin, pentamidine, foscarnet.
  • Calcineurin inhibitors (cyclosporine, tacrolimus).
  • EGFR inhibitors (cetuximab, panitumumab).
  • Digoxin is also listed in some tables.
Metabolic and endocrine
  • Uncontrolled diabetes mellitus (osmotic diuresis and glycosuria), including DKA.
  • Hypercalcemia (competes for Mg reabsorption in the thick ascending limb).
  • Volume expansion, hyperaldosteronism, SIADH.
  • Hyperthyroidism and hyperparathyroidism.
Tubular disorders
  • Post-obstructive diuresis, recovery from acute tubular necrosis, and kidney transplant.
  • Bartter and Gitelman syndromes (the latter gives hypokalemia, hypomagnesemia, hypocalciuria and alkalosis).
  • Familial renal Mg wasting disorders (CLDN16/19, CNNM2, EGF, KCNA1 and others).

4. Redistribution or shift

  • Hungry bone syndrome (after parathyroidectomy or thyroidectomy).
  • Refeeding syndrome.
  • Insulin therapy, catecholamine excess, and acute pancreatitis.
  • Massive transfusion (citrate binding).
  • Burns and heavy sweating.
  • Cardiopulmonary bypass.

How to separate renal from non-renal loss

  • 24-hour urine Mg above 24 mg, or fractional excretion of Mg above 2% (some use 4%), despite low serum Mg indicates renal wasting.
  • FEMg below 2% points to GI loss, poor intake, or redistribution.

Clinical relevance to your patient

For a diabetic, hypertensive, post-stroke patient with gallbladder empyema, the likely contributors are:
  • Diuretics and PPI use.
  • Osmotic diuresis from poor glucose control.
  • Poor intake and malnutrition.
  • GI or biliary losses and possible pancreatitis.
  • Nephrotoxic antibiotics.
Hypomagnesemia then produces refractory hypokalemia and hypocalcemia through renal K wasting and impaired PTH secretion and action.
I can build a flow chart for the diagnostic workup, or a short review of the clinical features (ECG changes, neuromuscular signs), if you'd like either.

Make flowchart

Reading File
Running Command

ls -la /tmp/workspace/ && python3 -c "import matplotlib; print(matplotlib.__version__)"

Running Command

mkdir -p /tmp/workspace/hypomg-flowchart/output && cat > /tmp/workspace/hypomg-flowchart/make.py << 'EOF' import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt from matplotlib.patches import FancyBboxPatch, FancyArrowPatch fig, ax = plt.subplots(figsize=(16, 20)) ax.set_xlim(0, 100); ax.set_ylim(0, 125); ax.axis("off") C = {"start":"#1F4E79","step":"#DDEBF7","dec":"#FFF2CC","renal":"#FCE4D6","gi":"#E2EFDA","shift":"#EDEDED","tx":"#D9D2E9"} def box(x, y, w, h, text, fc, fs=10.5, bold=False, ec="#333333", tc="black"): p = FancyBboxPatch((x-w/2, y-h/2), w, h, boxstyle="round,pad=0.3,rounding_size=1.2", fc=fc, ec=ec, lw=1.4) ax.add_patch(p) ax.text(x, y, text, ha="center", va="center", fontsize=fs, fontweight="bold" if bold else "normal", color=tc, wrap=True) def arrow(x1, y1, x2, y2, label=None, lx=0, ly=0): ax.add_patch(FancyArrowPatch((x1,y1),(x2,y2), arrowstyle="-|>", mutation_scale=16, lw=1.5, color="#333333")) if label: ax.text((x1+x2)/2+lx, (y1+y2)/2+ly, label, fontsize=10, fontweight="bold", color="#C00000", ha="center", va="center", bbox=dict(fc="white", ec="none", pad=1)) ax.text(50, 123, "Approach to Hypomagnesemia (with associated hypocalcemia and hypokalemia)", ha="center", fontsize=16, fontweight="bold") box(50, 116, 52, 5, "Serum Mg < 1.7 mg/dL (0.7 mmol/L)\nor refractory low K / low Ca with normal PTH + phosphate", C["start"], 11, True, tc="white") arrow(50,113.3,50,110.7) box(50, 107.5, 70, 6, "Step 1: Exclude pseudo-causes and check context\nAlbumin / ionized Ca, creatinine + eGFR, glucose / ketones, ABG,\nphosphate, lipase, 25-OH vit D, ECG (QTc), full drug chart", C["step"], 10.5) arrow(50,104.4,50,101.7) box(50, 98.5, 62, 6, "Step 2: Look for obvious cause\nPPI, loop / thiazide diuretics, aminoglycosides, amphotericin B,\ncisplatin, alcohol, diarrhea / drain output, poor intake, DM osmotic diuresis", C["step"], 10.5) arrow(50,95.4,50,92.7) box(50, 89.5, 62, 6, "Step 3: Spot urine Mg and creatinine (serum Mg + Cr)\nFEMg = (UMg x SCr) / (0.7 x SMg x UCr) x 100\n(or 24-h urine Mg)", C["dec"], 10.5, True) # branches arrow(40,86.4,22,80.8,"FEMg > 2%\n(24-h urine Mg > 24 mg)",lx=-5,ly=1.5) arrow(60,86.4,78,80.8,"FEMg < 2%\n(24-h urine Mg < 24 mg)",lx=5,ly=1.5) box(22, 76.5, 40, 8, "RENAL Mg WASTING", C["renal"], 12, True) box(78, 76.5, 40, 8, "EXTRARENAL (GI / intake / shift)", C["gi"], 12, True) # renal details arrow(22,72.2,22,68.7) box(22, 62, 41, 12, "Drugs: loop / thiazide diuretics,\naminoglycosides, amphotericin B, cisplatin,\ncarboplatin, pentamidine, foscarnet,\ncalcineurin inhibitors, EGFR inhibitors\n\nMetabolic: uncontrolled diabetes / osmotic\ndiuresis, hypercalcemia, volume expansion,\nhyperaldosteronism, post-ATN / post-obstructive\ndiuresis, post-transplant", C["renal"], 9.8) arrow(22,55.8,22,52.7) box(22, 49, 41, 7, "Genetic tubular disorders (if no cause found)\nGitelman, Bartter, CLDN16 / CLDN19, CNNM2, EGF,\nKCNA1. Hypokalemia + hypocalciuria + alkalosis\nsuggests Gitelman", C["renal"], 9.8) # GI details arrow(78,72.2,78,68.7) box(78, 62, 41, 12, "Intake / absorption: malnutrition, alcoholism,\nTPN or IV fluids without Mg, malabsorption,\nsteatorrhea, biliary disease, PPI, vitamin D\ndeficiency\n\nGI loss: chronic diarrhea, laxatives, vomiting,\nNG suction, intestinal / biliary fistula,\nacute pancreatitis", C["gi"], 9.8) arrow(78,55.8,78,52.7) box(78, 49, 41, 7, "Redistribution: refeeding syndrome, hungry bone,\ninsulin / catecholamines, massive transfusion\n(citrate), burns, cardiopulmonary bypass", C["shift"], 9.8) # merge arrow(22,45.4,40,40.8) arrow(78,45.4,60,40.8) box(50, 37, 66, 7, "Step 4: Look for secondary effects\nHypokalemia (renal K wasting), hypocalcemia (PTH failure / resistance),\nQT prolongation, torsades, arrhythmia, tetany, seizures", C["dec"], 10.5, True) arrow(50,33.4,50,30.7) box(50, 25, 80, 10, "Step 5: Treat\n" "Symptomatic / severe: MgSO4 1-2 g IV over 10-60 min (torsades or seizure: 1-4 g), then 4-8 g over 12-24 h\n" "Replace K and Ca together; Ca and K often will not correct until Mg is replaced\n" "Renal impairment: reduce dose 25-50%. Monitor reflexes, RR, BP, ECG, Mg q4-6 h\n" "Continue repletion 3-5 days (slow intracellular refill)", C["tx"], 10.2) arrow(50,19.9,50,17.2) box(50, 13, 80, 7.5, "Step 6: Treat the cause\nStop / swap offending drugs (PPI, diuretics, nephrotoxins), control glucose,\nrestore nutrition (watch refeeding), source control of gallbladder empyema,\noral Mg once stable (diarrhea limits dose)", C["step"], 10.2) ax.text(50, 6, "Sources: Harrison's 22E (Hypomagnesemia, Table 421-4); Goldman-Cecil (Magnesium Deficiency); Morgan and Mikhail's 7e;\nTintinalli's Emergency Medicine. Educational aid. Verify doses against local protocol.", ha="center", fontsize=9, style="italic", color="#444444") plt.savefig("/tmp/workspace/hypomg-flowchart/output/hypomagnesemia_flowchart.png", dpi=150, bbox_inches="tight", facecolor="white") EOF python3 /tmp/workspace/hypomg-flowchart/make.py && ls -la /tmp/workspace/hypomg-flowchart/output

Let me check the rendered chart for layout problems.
Loading Image
Running Command

cd /tmp/workspace/hypomg-flowchart && cat > check.py << 'EOF' import re src = open("make.py").read() src = src.replace('plt.savefig(', 'fig.canvas.draw()\nrend=fig.canvas.get_renderer()\nbad=0\nfor t in ax.texts:\n pass\nplt.savefig(') exec(compile(src.split("plt.savefig(")[0], "m", "exec")) fig.canvas.draw() r = fig.canvas.get_renderer() inv = ax.transData.inverted() from matplotlib.patches import FancyBboxPatch boxes = [p for p in ax.patches if isinstance(p, FancyBboxPatch)] texts = [t for t in ax.texts if t.get_bbox_patch() is None] for t in texts: bb = t.get_window_extent(r) (x0,y0),(x1,y1) = inv.transform((bb.x0,bb.y0)), inv.transform((bb.x1,bb.y1)) cx, cy = (x0+x1)/2, (y0+y1)/2 for p in boxes: bx0,by0,bw,bh = p.get_x(),p.get_y(),p.get_width(),p.get_height() if bx0<=cx<=bx0+bw and by0<=cy<=by0+bh: if x0<bx0+0.3 or x1>bx0+bw-0.3 or y0<by0+0.3 or y1>by0+bh-0.3: print("OVERFLOW:", t.get_text()[:40].replace("\n"," "), round(x0,1),round(x1,1),"box",round(bx0,1),round(bx0+bw,1), round(y0,1),round(y1,1),"box",round(by0,1),round(by0+bh,1)) print("done") EOF python3 check.py

Running Command

cd /tmp/workspace/hypomg-flowchart && sed -i 's/C\["renal"\], 9.8)/C["renal"], 9.3)/; s/C\["gi"\], 9.8)/C["gi"], 9.3)/' make.py && python3 check.py && python3 make.py && ls -la output

The flowchart of the hypomagnesemia workup is done:

hypomagnesemia flowchart

Image · PNG

I couldn't open the image to look at it. I only ran a script that checks the text fits inside each box, and it found no overflow. Please glance at it before you use it.
What the chart covers
  1. Start: serum Mg below 1.7 mg/dL, or refractory low K and Ca with normal PTH and phosphate.
  2. Step 1 (exclude pseudo-causes): albumin or ionized Ca, creatinine, glucose and ketones, ABG, phosphate, lipase, 25-OH vitamin D, ECG for QTc, and the drug chart.
  3. Step 2 (look for an obvious cause): PPI, diuretics, aminoglycosides, amphotericin B, cisplatin, alcohol, diarrhea or drain output, poor intake, diabetic osmotic diuresis.
  4. Step 3 (urine Mg and fractional excretion):
    • FEMg above 2% (or 24-hour urine Mg above 24 mg) means renal wasting. Look at drugs, metabolic causes (diabetes, hypercalcemia, post-ATN diuresis), then genetic tubular disorders (Gitelman, Bartter and others).
    • FEMg below 2% means an extrarenal cause. That covers poor intake or malabsorption, GI loss (diarrhea, NG suction, fistula, pancreatitis), and redistribution (refeeding, hungry bone, insulin, citrate).
  5. Step 4 (secondary effects): hypokalemia, hypocalcemia, QT prolongation, arrhythmia, tetany and seizures.
  6. Step 5 (treat):
    • For symptomatic or severe cases, give MgSO4 1 to 2 g IV over 10 to 60 minutes, then 4 to 8 g over 12 to 24 hours.
    • Replace K and Ca together with Mg.
    • Reduce the dose 25 to 50% in renal impairment, and monitor reflexes, respiratory rate and Mg levels.
  7. Step 6 (treat the cause): stop or swap offending drugs, control glucose, restore nutrition carefully (watch refeeding), and control the gallbladder empyema source.
The chart is based on Harrison's 22E, Goldman-Cecil, Morgan and Mikhail's 7e and Tintinalli's. It is an educational aid, so check doses against your local protocol.
I can also make it as an editable PowerPoint or Word file, or add a second chart for hypocalcemia.
This is a shared conversation. Sign in to Orris to start your own chat.