Specialties

Diabetes and Endocrine

Glucose emergencies, insulin and hormones

The Diabetes and Endocrine engine answers the way an endocrinology registrar would on the phone: with an explicit plan rather than general principles. Insulin and fluid regimens are written out and calculated for the patient's weight, potassium and glucose. It reads thyroid, adrenal, pituitary and calcium results as patterns, not single numbers, and it watches for the diagnoses that a normal glucose or an acute illness can hide.

Who it is for

  • Medical registrars and residents managing DKA, HHS and inpatient hyperglycaemia
  • Physicians and surgeons adjusting insulin and glucose-lowering drugs around illness or surgery
  • Hospital doctors interpreting abnormal thyroid, adrenal, pituitary or calcium results

What it does

  • DKA and HHS as calculated regimens

    Confirms the diagnosis against current criteria, including euglycaemic ketoacidosis, then writes fluids, a weight-based fixed-rate insulin infusion, potassium replacement checked before insulin, monitoring, when to add glucose, resolution criteria and the overlap to subcutaneous insulin.

  • Hypoglycaemia, treated and explained

    Gives immediate treatment according to the patient's conscious level, then looks for the cause, whether insulin, sulfonylurea, renal decline or missed meals, and the change that prevents a recurrence.

  • Insulin and glucose-lowering choices

    Calculates basal-bolus starting doses and correction scales, manages steroid-induced hyperglycaemia and sick-day rules, and chooses type 2 agents by cardiovascular disease, heart failure, kidney disease, weight and hypoglycaemia risk.

  • Thyroid results as a pattern

    Interprets thyroid function in the context of non-thyroidal illness, amiodarone, pregnancy and assay interference, scores suspected thyroid storm with Burch-Wartofsky and sets out staged treatment, and recognises myxoedema coma.

  • Adrenal, pituitary and phaeochromocytoma

    Gives hydrocortisone first and investigates afterwards in suspected adrenal crisis, covers steroid sick-day rules and suppression of the axis, and requires alpha-blockade before beta-blockade in phaeochromocytoma.

  • Calcium and bone

    Separates PTH-dependent from PTH-independent hypercalcaemia, stages its treatment by severity, and estimates fracture risk with FRAX when bone health is part of the question.

How it works

  1. The clinician enters glucose readings, HbA1c, ketones and gas where relevant, the current insulin or glucose-lowering regimen with doses, hormone results with reference ranges and sample timing, and weight, renal function and pregnancy status.
  2. The engine checks for emergencies first, such as ketoacidosis, hypoglycaemia, adrenal crisis or thyroid storm, and leads with them.
  3. It interprets the results as a pattern and identifies the precipitant or cause.
  4. It retrieves ADA, EASD, JBDS, Endocrine Society and other guidance and trials from PubMed, with US product information for named medicines, and cites them by number.
  5. It writes the plan with regimens calculated for the patient, monitoring, targets and what to change if they are not met.

What to include

  • Glucose readings, HbA1c, ketones and blood gas where relevant
  • Current insulin or glucose-lowering regimen with doses
  • Hormone results with reference ranges and timing of the sample
  • Weight, renal function and pregnancy status

Example cases

  • Type 1 diabetes, glucose 31 mmol/L, ketones 6.2, pH 7.08, K 3.1. First 6 hours of management?
  • Type 2 diabetes, HbA1c 78 mmol/mol on metformin 1 g twice daily, BMI 34, eGFR 52, previous MI. Next agent?
  • TSH 0.02 mU/L with normal free T4 in an asymptomatic 80-year-old with osteoporosis. Significance and plan?

What the report contains

  1. Differential diagnosis
  2. Recommended work-up
  3. Management plan, with insulin and fluid regimens written out and calculated
  4. Verified references

Limits

  • Hormone results are read from the values and reference ranges supplied. Sample timing, the assay used and interference such as biotin change their meaning and may not be known to the engine.
  • Calculated insulin and fluid regimens must be checked against the local protocol and the products the hospital stocks. Attached labels are US product information, and insulin names and devices differ between countries.
  • It cannot examine the patient or follow glucose and ketones hour by hour. A ketoacidosis plan needs reassessment at the bedside as results come back.

Frequently asked questions

What is euglycaemic diabetic ketoacidosis?

Ketoacidosis with a normal or only mildly raised blood glucose. It is associated with SGLT2 inhibitors, pregnancy, starvation and reduced insulin doses, and is easily missed because the glucose looks reassuring. Diagnosis rests on raised blood beta-hydroxybutyrate with a metabolic acidosis, and treatment needs insulin together with glucose-containing fluid.

What are the diagnostic criteria for DKA?

The 2024 international consensus defines DKA by three features: glucose of 11.1 mmol/L (200 mg/dL) or more, or known diabetes; blood beta-hydroxybutyrate of 3.0 mmol/L or more, or significant ketonuria; and a pH below 7.3 or bicarbonate below 18 mmol/L. Dropping a high glucose threshold helps capture euglycaemic presentations.

When should SGLT2 inhibitors be stopped before surgery?

The US FDA advises stopping them 3 to 4 days before scheduled surgery, depending on the drug. Other national and multidisciplinary recommendations differ, so the local perioperative protocol applies. They are restarted when the patient is eating and drinking normally and is clinically stable, with ketones checked if the patient becomes unwell.

What hydrocortisone dose is given in adrenal crisis?

Hydrocortisone 100 mg intravenously or intramuscularly at once, followed by 200 mg over 24 hours, either as a continuous infusion or as 50 mg every 6 hours, with intravenous fluid resuscitation. Treatment should not wait for cortisol results; a sample can be taken before the first dose if it causes no delay.