the information from the pdfs and outer make me a best and exposed history taking medical record for a diabetic mellitus patient and other associated disease can be

Reading File
Reading File
Running Command

python3 -c " import pdfplumber, os files = { 'block42': '/home/daytona/workspace/attachments/c9f75a00-dd92-4353-96eb-55169b0ad745/The block_42 of Goldman-Cecil is not the DM chapte.pdf', 'harrison': '/home/daytona/workspace/attachments/c9f75a00-dd92-4353-96eb-55169b0ad745/I now have comprehensive material Let me compile t.pdf', 'excel': '/home/daytona/workspace/attachments/c9f75a00-dd92-4353-96eb-55169b0ad745/Excellent - I now have everything I need from Harr.pdf', 'checklist': '/home/daytona/workspace/attachments/c9f75a00-dd92-4353-96eb-55169b0ad745/Here is a clean practical checklist you can print .pdf', } for key, path in files.items(): print(f'\\n========== {key} ==========') try: with pdfplumber.open(path) as pdf: for page in pdf.pages: t = page.extract_text() if t: print(t[:3000]) except Exception as e: print(f'ERROR: {e}') " 2>&1 | head -400

Running Command

python3 -c " import pdfplumber files = { 'harrison': '/home/daytona/workspace/attachments/c9f75a00-dd92-4353-96eb-55169b0ad745/I now have comprehensive material Let me compile t.pdf', 'excel': '/home/daytona/workspace/attachments/c9f75a00-dd92-4353-96eb-55169b0ad745/Excellent - I now have everything I need from Harr.pdf', 'checklist': '/home/daytona/workspace/attachments/c9f75a00-dd92-4353-96eb-55169b0ad745/Here is a clean practical checklist you can print .pdf', } for key, path in files.items(): print(f'\\n========== {key} ==========') try: with pdfplumber.open(path) as pdf: full = '' for page in pdf.pages: t = page.extract_text() if t: full += t + '\\n' print(full[:6000]) except Exception as e: print(f'ERROR: {e}') " 2>&1

Finding Sources
Reading File
Running Command

ls /home/daytona/workspace/

Running Command

mkdir -p /home/daytona/workspace/dm-history-record && ls /home/daytona/skills/docx/scripts/office/

Writing File

~/dm-history-record/create_dm_record.js

const {
  Document, Packer, Paragraph, TextRun, Table, TableRow, TableCell,
  HeadingLevel, AlignmentType, BorderStyle, WidthType, ShadingType,
  VerticalAlign, PageNumber, PageBreak, Header, Footer, TableOfContents,
  UnderlineType
} = require('docx');
const fs = require('fs');

// ─── COLOUR PALETTE ───────────────────────────────────────────────────────────
const BLUE_DARK   = "1F3864";   // deep navy  – section headings
const BLUE_MID    = "2E75B6";   // mid blue   – subsection headings
const BLUE_LIGHT  = "BDD7EE";   // pale blue  – table header shading
const ORANGE      = "C55A11";   // orange     – clinical tip labels
const ORANGE_LIGHT= "FCE4D6";   // pale orange – tip boxes
const GREEN_DARK  = "375623";   // green      – positive-finding labels
const GREEN_LIGHT = "E2EFDA";   // pale green – exam finding shading
const RED_DARK    = "C00000";   // red        – alert / DKA / HHS / hypo
const GREY_LIGHT  = "F2F2F2";   // light grey – alternating rows

// ─── HELPERS ──────────────────────────────────────────────────────────────────
function h1(text) {
  return new Paragraph({
    text,
    heading: HeadingLevel.HEADING_1,
    spacing: { before: 360, after: 120 },
    run: { color: BLUE_DARK, bold: true, size: 28, font: "Calibri" }
  });
}

function h2(text) {
  return new Paragraph({
    children: [new TextRun({ text, bold: true, color: BLUE_MID, size: 24, font: "Calibri" })],
    spacing: { before: 280, after: 80 },
  });
}

function h3(text) {
  return new Paragraph({
    children: [new TextRun({ text, bold: true, color: ORANGE, size: 22, font: "Calibri" })],
    spacing: { before: 200, after: 60 },
  });
}

function body(text, opts = {}) {
  return new Paragraph({
    children: [new TextRun({ text, size: 20, font: "Calibri", ...opts })],
    spacing: { before: 40, after: 40 },
  });
}

function bullet(text, level = 0) {
  return new Paragraph({
    bullet: { level },
    children: [new TextRun({ text, size: 20, font: "Calibri" })],
    spacing: { before: 40, after: 40 },
  });
}

function questionBullet(q) {
  return new Paragraph({
    bullet: { level: 0 },
    children: [
      new TextRun({ text: "\u201C", size: 20, font: "Calibri", italics: true }),
      new TextRun({ text: q, size: 20, font: "Calibri", italics: true, color: "1F497D" }),
      new TextRun({ text: "\u201D", size: 20, font: "Calibri", italics: true }),
    ],
    spacing: { before: 30, after: 30 },
  });
}

function checkBullet(text) {
  return new Paragraph({
    children: [new TextRun({ text: "\u2610  " + text, size: 20, font: "Calibri" })],
    spacing: { before: 30, after: 30 },
  });
}

function divider() {
  return new Paragraph({
    border: { bottom: { style: BorderStyle.SINGLE, size: 6, color: BLUE_LIGHT } },
    spacing: { before: 80, after: 80 },
    text: "",
  });
}

function pageBreak() {
  return new Paragraph({ children: [new PageBreak()] });
}

function alertBox(text, bgColor = ORANGE_LIGHT, textColor = "C55A11") {
  return new Table({
    width: { size: 100, type: WidthType.PERCENTAGE },
    rows: [
      new TableRow({
        children: [
          new TableCell({
            shading: { fill: bgColor, type: ShadingType.CLEAR, color: "auto" },
            margins: { top: 100, bottom: 100, left: 150, right: 150 },
            children: [
              new Paragraph({
                children: [new TextRun({ text, size: 19, font: "Calibri", bold: true, color: textColor })],
              })
            ],
          })
        ]
      })
    ],
    borders: { top: { style: BorderStyle.NONE }, bottom: { style: BorderStyle.NONE }, left: { style: BorderStyle.NONE }, right: { style: BorderStyle.NONE }, insideH: { style: BorderStyle.NONE }, insideV: { style: BorderStyle.NONE } }
  });
}

function twoColTable(rows, headerRow = null) {
  const buildCell = (text, isHeader = false, shade = null) => new TableCell({
    shading: shade ? { fill: shade, type: ShadingType.CLEAR, color: "auto" } : undefined,
    margins: { top: 80, bottom: 80, left: 120, right: 120 },
    verticalAlign: VerticalAlign.CENTER,
    children: [
      new Paragraph({
        children: [new TextRun({ text, size: 19, font: "Calibri", bold: isHeader, color: isHeader ? BLUE_DARK : "000000" })],
      })
    ],
  });

  const tableRows = [];
  if (headerRow) {
    tableRows.push(new TableRow({
      tableHeader: true,
      children: headerRow.map(h => buildCell(h, true, BLUE_LIGHT)),
    }));
  }
  rows.forEach((row, i) => {
    tableRows.push(new TableRow({
      children: row.map(cell => buildCell(cell, false, i % 2 === 0 ? GREY_LIGHT : "FFFFFF")),
    }));
  });
  return new Table({
    width: { size: 100, type: WidthType.PERCENTAGE },
    rows: tableRows,
  });
}

function threeColTable(rows, headerRow = null) {
  const buildCell = (text, isHeader = false, shade = null, textColor = "000000") => new TableCell({
    shading: shade ? { fill: shade, type: ShadingType.CLEAR, color: "auto" } : undefined,
    margins: { top: 80, bottom: 80, left: 120, right: 120 },
    verticalAlign: VerticalAlign.CENTER,
    children: [
      new Paragraph({
        children: [new TextRun({ text, size: 19, font: "Calibri", bold: isHeader, color: isHeader ? BLUE_DARK : textColor })],
      })
    ],
  });
  const tableRows = [];
  if (headerRow) {
    tableRows.push(new TableRow({
      tableHeader: true,
      children: headerRow.map(h => buildCell(h, true, BLUE_LIGHT)),
    }));
  }
  rows.forEach((row, i) => {
    tableRows.push(new TableRow({
      children: row.map(cell => buildCell(cell, false, i % 2 === 0 ? GREY_LIGHT : "FFFFFF")),
    }));
  });
  return new Table({
    width: { size: 100, type: WidthType.PERCENTAGE },
    rows: tableRows,
  });
}

// ─── DOCUMENT CONTENT ─────────────────────────────────────────────────────────

const doc = new Document({
  styles: {
    default: {
      document: {
        run: { font: "Calibri", size: 20 },
        paragraph: { spacing: { line: 276 } }
      }
    }
  },
  sections: [{
    properties: {
      page: {
        margin: { top: 900, bottom: 900, left: 1000, right: 1000 }
      }
    },
    headers: {
      default: new Header({
        children: [
          new Paragraph({
            children: [
              new TextRun({ text: "DIABETES MELLITUS — COMPREHENSIVE HISTORY-TAKING MEDICAL RECORD", bold: true, color: BLUE_DARK, size: 18, font: "Calibri" }),
              new TextRun({ text: "    |    ", color: "999999", size: 18 }),
              new TextRun({ text: "Goldman-Cecil  |  Harrison's  |  Tintinalli  |  Firestein", color: "999999", size: 16, italics: true }),
            ],
            border: { bottom: { style: BorderStyle.SINGLE, size: 6, color: BLUE_LIGHT } },
          })
        ]
      })
    },
    footers: {
      default: new Footer({
        children: [
          new Paragraph({
            children: [
              new TextRun({ text: "Page ", size: 18, color: "888888" }),
              new PageNumber({ size: 18, color: "888888" }),
              new TextRun({ text: "  |  Compiled from Goldman-Cecil Medicine, Harrison's 22e, Tintinalli's Emergency Medicine, Firestein & Kelley's Rheumatology", size: 16, color: "999999", italics: true }),
            ],
            alignment: AlignmentType.CENTER,
            border: { top: { style: BorderStyle.SINGLE, size: 6, color: BLUE_LIGHT } },
          })
        ]
      })
    },
    children: [

      // ════════════════════════════════════════════════════════════════════════
      // TITLE PAGE
      // ════════════════════════════════════════════════════════════════════════
      new Paragraph({
        children: [new TextRun({ text: "", size: 20 })],
        spacing: { before: 400, after: 0 }
      }),
      new Paragraph({
        alignment: AlignmentType.CENTER,
        children: [new TextRun({ text: "COMPREHENSIVE HISTORY-TAKING", bold: true, color: BLUE_DARK, size: 40, font: "Calibri" })],
        spacing: { before: 200, after: 80 },
      }),
      new Paragraph({
        alignment: AlignmentType.CENTER,
        children: [new TextRun({ text: "MEDICAL RECORD", bold: true, color: BLUE_DARK, size: 40, font: "Calibri" })],
        spacing: { before: 0, after: 80 },
      }),
      new Paragraph({
        alignment: AlignmentType.CENTER,
        children: [new TextRun({ text: "Diabetes Mellitus & Associated Diseases", bold: true, color: BLUE_MID, size: 30, font: "Calibri" })],
        spacing: { before: 120, after: 200 },
      }),
      alertBox("Based on: Goldman-Cecil Medicine  |  Harrison's Principles of Internal Medicine (22e)  |  Tintinalli's Emergency Medicine  |  Firestein & Kelley's Rheumatology", BLUE_LIGHT, BLUE_DARK),
      new Paragraph({
        alignment: AlignmentType.CENTER,
        children: [new TextRun({ text: "Patient: ______________________________", size: 22, font: "Calibri" })],
        spacing: { before: 280, after: 80 },
      }),
      new Paragraph({
        alignment: AlignmentType.CENTER,
        children: [new TextRun({ text: "Date: ______________   Hospital No: ______________   Ward/Clinic: ______________", size: 22, font: "Calibri" })],
        spacing: { before: 60, after: 80 },
      }),
      new Paragraph({
        alignment: AlignmentType.CENTER,
        children: [new TextRun({ text: "Clerk/Student: ______________________________   Supervisor: ______________________________", size: 22, font: "Calibri" })],
        spacing: { before: 60, after: 80 },
      }),
      pageBreak(),

      // ════════════════════════════════════════════════════════════════════════
      // SECTION 1: BIODATA
      // ════════════════════════════════════════════════════════════════════════
      h1("SECTION 1: BIODATA"),
      alertBox("Always record biodata FIRST before asking any history. It anchors the clinical picture.", BLUE_LIGHT, BLUE_DARK),
      new Paragraph({ text: "", spacing: { before: 120 } }),
      twoColTable([
        ["Full Name", ""],
        ["Age", ""],
        ["Sex", "   Male  /  Female  /  Other"],
        ["Date of Birth", ""],
        ["Occupation", ""],
        ["Marital Status", "   Single  /  Married  /  Divorced  /  Widowed"],
        ["Address / Living Situation", ""],
        ["Religion / Ethnicity", ""],
        ["Date of Admission / Consultation", ""],
        ["Referral Source", "   Self  /  GP  /  Specialist  /  Emergency"],
        ["Informant", ""],
        ["Reliability of History", "   Good  /  Fair  /  Poor  —  Reason: __________"],
      ], ["Field", "Patient Entry"]),
      new Paragraph({ text: "", spacing: { before: 120 } }),
      alertBox("CLINICAL NOTE — Occupation matters in DM: Shift workers have disrupted glycaemic patterns; sedentary workers have worse insulin resistance; professional drivers face hypoglycaemia risk (licensing implications).", ORANGE_LIGHT, ORANGE),

      pageBreak(),

      // ════════════════════════════════════════════════════════════════════════
      // SECTION 2: CHIEF COMPLAINT
      // ════════════════════════════════════════════════════════════════════════
      h1("SECTION 2: CHIEF COMPLAINT (CC)"),
      alertBox("Ask in the patient's own words — do not suggest answers or use medical terminology.", BLUE_LIGHT, BLUE_DARK),
      body("Opening question:"),
      questionBullet("What brought you here today?"),
      questionBullet("What is the main problem that is bothering you?"),
      body("Write verbatim — record exactly one or two main complaints with duration:"),
      new Paragraph({
        children: [new TextRun({ text: "CC: ____________________________________________________________________________", size: 20, font: "Calibri" })],
        spacing: { before: 120, after: 60 }
      }),
      new Paragraph({
        children: [new TextRun({ text: "Duration: ______________________________________________________________________", size: 20, font: "Calibri" })],
        spacing: { before: 60, after: 60 }
      }),

      pageBreak(),

      // ════════════════════════════════════════════════════════════════════════
      // SECTION 3: HISTORY OF PRESENTING ILLNESS
      // ════════════════════════════════════════════════════════════════════════
      h1("SECTION 3: HISTORY OF PRESENTING ILLNESS (HPI)"),
      alertBox("Use SOCRATES for EACH complaint. For DM, always probe for hyperglycaemic symptoms, acute decompensation, and complication clues.", BLUE_LIGHT, BLUE_DARK),

      h2("3A. SOCRATES Framework"),
      twoColTable([
        ["S — Site", "\"Where exactly is the problem?\""],
        ["O — Onset", "\"When did it start? Was it sudden (hours–days) or gradual (weeks–months)?\""],
        ["C — Character", "\"What does it feel like? Burning? Tingling? Pressure?\""],
        ["R — Radiation", "\"Does it spread or go anywhere else?\""],
        ["A — Associated Symptoms", "\"Is there anything else that comes with it?\""],
        ["T — Time Course", "\"Is it constant or does it come and go? Is it getting better or worse?\""],
        ["E — Exacerbating/Relieving", "\"What makes it better? What makes it worse?\""],
        ["S — Severity", "\"On a scale of 0-10, how bad is it? Does it affect daily life?\""],
      ], ["SOCRATES Letter", "Question to Ask"]),

      new Paragraph({ text: "", spacing: { before: 160 } }),
      h2("3B. Cardinal Symptoms of Hyperglycaemia — Ask ALL"),

      h3("Polyuria (Excessive Urination)"),
      twoColTable([
        ["Mechanism", "Osmotic diuresis from glucosuria when plasma glucose exceeds renal threshold (~10 mmol/L / 180 mg/dL)"],
      ]),
      questionBullet("How many times do you urinate during the day?"),
      questionBullet("Do you wake up at night to urinate? How many times? (Nocturia)"),
      questionBullet("How much urine do you pass each time — a small amount or a lot?"),
      questionBullet("Is your urine pale, dark, or does it look foamy?"),
      questionBullet("Have you noticed ants being attracted to where you urinate? (Glycosuria — classical bedside clue)"),
      new Paragraph({
        children: [new TextRun({ text: "Findings: _____________________________________________________________________", size: 20, font: "Calibri" })],
        spacing: { before: 60, after: 80 }
      }),

      h3("Polydipsia (Excessive Thirst)"),
      twoColTable([
        ["Mechanism", "Compensatory response to dehydration and hyperosmolarity from glucosuria"],
      ]),
      questionBullet("Do you feel very thirsty more than usual?"),
      questionBullet("How much water or fluids do you drink in a day?"),
      questionBullet("Is the thirst there all the time, or does drinking relieve it only briefly?"),
      new Paragraph({
        children: [new TextRun({ text: "Findings: _____________________________________________________________________", size: 20, font: "Calibri" })],
        spacing: { before: 60, after: 80 }
      }),

      h3("Polyphagia (Excessive Hunger)"),
      twoColTable([
        ["Mechanism", "Cellular starvation despite hyperglycaemia — especially prominent in Type 1 DM"],
      ]),
      questionBullet("Is your appetite increased, decreased, or normal?"),
      questionBullet("Do you feel hungry soon after eating a full meal?"),
      new Paragraph({
        children: [new TextRun({ text: "Findings: _____________________________________________________________________", size: 20, font: "Calibri" })],
        spacing: { before: 60, after: 80 }
      }),

      h3("Weight Changes"),
      twoColTable([
        ["T1DM", "Weight loss — catabolism of fat and muscle"],
        ["T2DM", "Often weight gain (obesity-driven); weight loss in late uncontrolled T2DM"],
      ]),
      questionBullet("Have you lost or gained weight recently without trying?"),
      questionBullet("How much weight have you lost/gained, and over what period of time?"),
      new Paragraph({
        children: [new TextRun({ text: "Findings: _____________________________________________________________________", size: 20, font: "Calibri" })],
        spacing: { before: 60, after: 80 }
      }),

      h3("Fatigue and Weakness"),
      questionBullet("Do you feel tired all the time?"),
      questionBullet("Does the tiredness come on even without activity, or only after effort?"),
      questionBullet("Do you feel weak in your arms or legs?"),
      new Paragraph({
        children: [new TextRun({ text: "Findings: _____________________________________________________________________", size: 20, font: "Calibri" })],
        spacing: { before: 60, after: 80 }
      }),

      h3("Blurred Vision"),
      twoColTable([
        ["Mechanism", "Lens osmotic swelling from sorbitol accumulation during hyperglycaemia"],
      ]),
      questionBullet("Has your vision changed recently?"),
      questionBullet("Is the blurring in one eye or both?"),
      questionBullet("Is it constant or does it fluctuate with your blood sugar levels?"),
      questionBullet("Have you seen floaters, flashes of light, or had sudden loss of vision?"),
      new Paragraph({
        children: [new TextRun({ text: "Findings: _____________________________________________________________________", size: 20, font: "Calibri" })],
        spacing: { before: 60, after: 80 }
      }),

      h3("Recurrent Infections and Poor Wound Healing"),
      twoColTable([
        ["Mechanism", "Phagocyte dysfunction + glucosuria + impaired vascular + neuropathic tissue repair"],
      ]),
      questionBullet("Do you get infections frequently — skin, genital, or urinary?"),
      questionBullet("Have you noticed itching around the genitals or white discharge? (Candidiasis)"),
      questionBullet("Do wounds, cuts, or sores take a long time to heal?"),
      questionBullet("Do you have any sores or ulcers not healing, especially on the feet?"),
      new Paragraph({
        children: [new TextRun({ text: "Findings: _____________________________________________________________________", size: 20, font: "Calibri" })],
        spacing: { before: 60, after: 80 }
      }),

      new Paragraph({ text: "", spacing: { before: 80 } }),
      h2("3C. Onset and Type Classification Clues"),
      twoColTable([
        ["Acute onset (days–weeks)", "Suggests Type 1 DM / DKA → ask about nausea, vomiting, abdominal pain, fruity breath"],
        ["Insidious onset (months–years)", "Suggests Type 2 DM → often found incidentally or when complication presents first"],
        ["During pregnancy", "Gestational diabetes → screen with OGTT in pregnancy"],
        ["Post-illness / surgery / steroids", "Secondary / drug-induced DM → review precipitants"],
      ], ["Onset Pattern", "Clinical Implication"]),

      new Paragraph({ text: "", spacing: { before: 120 } }),
      h2("3D. Acute Decompensation — Screen for ALL Three"),
      alertBox("ACUTE DECOMPENSATION — Always ask these questions directly. Missing DKA or HHS is a clinical emergency.", "FCE4D6", RED_DARK),
      new Paragraph({ text: "", spacing: { before: 80 } }),
      twoColTable([
        ["DKA (Type 1 DM, occasionally T2DM)", "Nausea, vomiting, abdominal pain, fruity/acetone breath odour, rapid breathing (Kussmaul), decreased consciousness"],
        ["HHS — Hyperosmolar Hyperglycaemic State (T2DM)", "Extreme thirst, confusion, neurological changes (focal deficits, seizures), profoundly elevated blood sugar (>33 mmol/L), marked dehydration, NO significant acidosis/ketonuria"],
        ["Hypoglycaemia", "Sweating, palpitations, tremor, confusion, aggression, unconsciousness — especially on insulin or sulfonylurea"],
      ], ["Emergency", "Symptoms to Screen"]),
      questionBullet("Have you had nausea, vomiting, or abdominal pain with very high blood sugar?"),
      questionBullet("Have you had episodes of sweating, shakiness, heart racing, or confusion — especially if you missed a meal?"),
      questionBullet("Have you ever been hospitalised for very high blood sugar or a diabetic coma?"),

      pageBreak(),

      // ════════════════════════════════════════════════════════════════════════
      // SECTION 4: COMPLICATIONS SCREENING
      // ════════════════════════════════════════════════════════════════════════
      h1("SECTION 4: COMPLICATIONS SCREENING — SYSTEMATIC REVIEW BY ORGAN"),
      alertBox("Tell the patient: \"I am now going to ask about different parts of your body to make sure everything is being checked carefully.\"", BLUE_LIGHT, BLUE_DARK),
      body("Ask about each system in turn. Record findings after each block."),

      new Paragraph({ text: "", spacing: { before: 80 } }),
      h2("4A. EYES — Diabetic Retinopathy"),
      questionBullet("Has a doctor ever looked at the back of your eyes with a special instrument? (Fundoscopy / dilated eye exam)"),
      questionBullet("Have you had any changes in your vision — blurring, dark spots, or sudden loss of sight?"),
      questionBullet("Have you seen floaters, cobweb-like shapes, or flashes of light?"),
      questionBullet("Have you had any eye injections (anti-VEGF) or laser treatment for your eyes?"),
      questionBullet("Have you ever been told you have diabetic eye disease or glaucoma?"),
      new Paragraph({
        children: [new TextRun({ text: "Eyes findings: ________________________________________________________________", size: 20, font: "Calibri" })],
        spacing: { before: 60, after: 80 }
      }),

      h2("4B. KIDNEYS — Diabetic Nephropathy"),
      questionBullet("Have you noticed your urine becoming foamy or frothy? (Proteinuria)"),
      questionBullet("Do you have swelling in your legs, ankles, or around your eyes in the morning? (Nephrotic oedema)"),
      questionBullet("Have you ever been told your kidneys are not working properly?"),
      questionBullet("Do you know your kidney function test results — creatinine or eGFR?"),
      questionBullet("Have you ever been on dialysis or been referred to a kidney specialist?"),
      new Paragraph({
        children: [new TextRun({ text: "Kidney findings: ______________________________________________________________", size: 20, font: "Calibri" })],
        spacing: { before: 60, after: 80 }
      }),

      h2("4C. PERIPHERAL NERVOUS SYSTEM — Sensorimotor Neuropathy"),
      questionBullet("Do you have numbness, tingling, or a burning sensation in your feet or hands?"),
      questionBullet("Does it feel like you are walking on cotton wool or sand?"),
      questionBullet("Is the pain or tingling worse at night?"),
      questionBullet("Have you lost feeling in your feet — for example, unable to feel hot or cold water?"),
      questionBullet("Have you had falls because of loss of balance or unsteadiness?"),
      questionBullet("Do you have any foot ulcers, wounds, or sores that are not healing?"),
      questionBullet("Have you ever had an amputation?"),
      new Paragraph({
        children: [new TextRun({ text: "Neuropathy findings: __________________________________________________________", size: 20, font: "Calibri" })],
        spacing: { before: 60, after: 80 }
      }),

      h2("4D. AUTONOMIC NERVOUS SYSTEM — Autonomic Neuropathy"),
      questionBullet("Do you feel dizzy or lightheaded when you stand up quickly? (Postural / orthostatic hypotension)"),
      questionBullet("Do you feel full very quickly after eating only a small meal? (Gastroparesis)"),
      questionBullet("Do you have nausea, vomiting, or bloating after eating?"),
      questionBullet("Do you have problems with your bowels — constipation or diarrhoea that comes and goes? (Autonomic gut dysmotility)"),
      questionBullet("Do you sweat abnormally — too much or not at all?"),
      questionBullet("Do you have difficulty controlling your bladder or do you need to strain to pass urine? (Neurogenic bladder)"),
      questionBullet("For MALE patients (ask sensitively and privately): Do you have difficulty getting or maintaining an erection? (Erectile dysfunction — earliest autonomic symptom in men)"),
      new Paragraph({
        children: [new TextRun({ text: "Autonomic findings: ___________________________________________________________", size: 20, font: "Calibri" })],
        spacing: { before: 60, after: 80 }
      }),

      h2("4E. HEART AND LARGE BLOOD VESSELS — Macrovascular Disease"),
      alertBox("Diabetic patients may have SILENT myocardial infarction — chest pain may be absent due to cardiac autonomic neuropathy. Always ask about atypical symptoms.", ORANGE_LIGHT, ORANGE),
      questionBullet("Do you have chest pain or tightness — especially on walking, climbing stairs, or at rest?"),
      questionBullet("Do you feel short of breath with activity or when lying flat? (Orthopnoea — heart failure)"),
      questionBullet("Do you have swelling in both ankles? (Biventricular failure)"),
      questionBullet("Have you had a heart attack or been told your heart arteries are blocked?"),
      questionBullet("Have you had any stroke or sudden weakness / numbness on one side of your body?"),
      questionBullet("Do you get pain in your calves when walking that goes away with rest? (Intermittent claudication = Peripheral Arterial Disease)"),
      questionBullet("Do you have palpitations or feel your heart racing or skipping?"),
      new Paragraph({
        children: [new TextRun({ text: "Cardiovascular findings: _______________________________________________________", size: 20, font: "Calibri" })],
        spacing: { before: 60, after: 80 }
      }),

      h2("4F. FEET — Diabetic Foot Disease"),
      questionBullet("Do you check your feet every day?"),
      questionBullet("What type of footwear do you use? Do they fit well?"),
      questionBullet("Do you have any calluses, corns, or hard skin on your feet?"),
      questionBullet("Have you had any cuts, blisters, or sores on your feet that you did not feel? (Loss of protective sensation)"),
      questionBullet("Have you been told your foot bones have changed shape? (Charcot's arthropathy)"),
      new Paragraph({
        children: [new TextRun({ text: "Foot findings: ________________________________________________________________", size: 20, font: "Calibri" })],
        spacing: { before: 60, after: 80 }
      }),

      h2("4G. MUSCULOSKELETAL — Diabetic Rheumatological Conditions"),
      alertBox("Firestein & Kelley's Rheumatology: Diabetic cheiroarthropathy, Dupuytren's, trigger finger, carpal tunnel, adhesive capsulitis, Charcot arthropathy are all strongly DM-associated.", GREEN_LIGHT, GREEN_DARK),
      twoColTable([
        ["Cheiroarthropathy (Limited Joint Mobility)", "Prayer sign — cannot fully oppose palmar surfaces; Tabletop sign"],
        ["Dupuytren's Contracture", ">20% in T2DM; palm nodules/cords; ring and little finger fixed flexion"],
        ["Trigger Finger (Flexor Tenosynovitis)", "A1 pulley nodule; snapping/locking; multiple fingers in DM"],
        ["Carpal Tunnel Syndrome", "Median nerve; Tinel's, Phalen's, Durkan's tests; thenar wasting"],
        ["Adhesive Capsulitis (Frozen Shoulder)", "Limited shoulder ROM; insidious onset; bilateral in DM"],
        ["Charcot Arthropathy (Neuroarthropathy)", "Painless swollen warm foot/ankle; bone destruction on X-ray"],
        ["Diabetic Amyotrophy", "Severe unilateral thigh pain, weakness, quadriceps wasting; L2–L4"],
      ], ["Condition", "Key Features"]),
      questionBullet("Do you have stiffness in your fingers or cannot fully close/open your hands?"),
      questionBullet("Do you have difficulty getting your palm flat on a table?"),
      questionBullet("Do any of your fingers catch, snap, or lock when you bend them?"),
      questionBullet("Do you have pain or tingling in your hands at night? (Carpal Tunnel)"),
      questionBullet("Do you have pain or stiffness in your shoulder that limits lifting your arm?"),
      new Paragraph({
        children: [new TextRun({ text: "MSK findings: _________________________________________________________________", size: 20, font: "Calibri" })],
        spacing: { before: 60, after: 80 }
      }),

      h2("4H. SKIN"),
      questionBullet("Do you have dry, itchy, or discoloured skin?"),
      questionBullet("Do you have any non-healing wounds or sores?"),
      questionBullet("Have you noticed darker velvety skin at the back of your neck or in the armpits? (Acanthosis nigricans — insulin resistance)"),
      new Paragraph({
        children: [new TextRun({ text: "Skin findings: ________________________________________________________________", size: 20, font: "Calibri" })],
        spacing: { before: 60, after: 80 }
      }),

      pageBreak(),

      // ════════════════════════════════════════════════════════════════════════
      // SECTION 5: GLYCAEMIC CONTROL HISTORY
      // ════════════════════════════════════════════════════════════════════════
      h1("SECTION 5: GLYCAEMIC CONTROL HISTORY"),
      alertBox("This section establishes current control, monitoring practice, and hypoglycaemia risk — essential for every DM encounter.", BLUE_LIGHT, BLUE_DARK),
      questionBullet("When were you first told you have diabetes? Who made the diagnosis?"),
      questionBullet("What type of diabetes do you have — Type 1, Type 2, or were you not told?"),
      questionBullet("What was your most recent HbA1c result? When was it done? Is it improving or worsening?"),
      questionBullet("Do you check your blood sugar at home with a glucometer? How often?"),
      questionBullet("What are your typical fasting blood sugar readings in the morning?"),
      questionBullet("What are your blood sugar readings after meals?"),
      questionBullet("Do you use a continuous glucose monitor (CGM)? What is your time-in-range?"),
      body(""),
      h3("Hypoglycaemia Assessment"),
      questionBullet("Have you had episodes of low blood sugar (hypoglycaemia)?"),
      questionBullet("How often do these episodes happen?"),
      questionBullet("What are your warning signs — sweating, shaking, heart racing, confusion?"),
      questionBullet("Have you lost your warning signs for low blood sugar? (Hypoglycaemia unawareness — high risk)"),
      questionBullet("Have you ever needed help from another person, or called emergency services?"),
      twoColTable([
        ["HbA1c Last Result & Date", ""],
        ["Fasting BG Range (mmol/L)", ""],
        ["Post-meal BG Range (mmol/L)", ""],
        ["Hypoglycaemia Frequency", "   Never  /  Occasional  /  Weekly  /  Daily"],
        ["Hypoglycaemia Unawareness", "   Yes  /  No"],
        ["Severe Hypoglycaemia (needed help)", "   Yes  /  No  — Date: _________"],
        ["DKA / HHS Hospital Admissions", "   Number: ___  Last date: _________"],
        ["Self-Monitoring Practice", "   Yes / No — Frequency: ____________"],
        ["CGM Use", "   Yes / No — Device: ________________"],
      ], ["Parameter", "Result / Record"]),

      pageBreak(),

      // ════════════════════════════════════════════════════════════════════════
      // SECTION 6: PAST MEDICAL HISTORY
      // ════════════════════════════════════════════════════════════════════════
      h1("SECTION 6: PAST MEDICAL HISTORY (PMH)"),
      alertBox("Ask systematically — these comorbidities are both DM complications and DM accelerators.", BLUE_LIGHT, BLUE_DARK),
      twoColTable([
        ["Hypertension", "   Yes / No — Since: ___  Treated: Yes / No"],
        ["Dyslipidaemia (High Cholesterol / Triglycerides)", "   Yes / No"],
        ["Coronary Artery Disease / Angina / MI", "   Yes / No — Date: _______"],
        ["Congestive Heart Failure", "   Yes / No — NYHA Class: ___"],
        ["Stroke or TIA", "   Yes / No — Date: _______  Side: L / R"],
        ["Peripheral Arterial Disease", "   Yes / No — ABI known: ___"],
        ["Diabetic Retinopathy", "   Yes / No — Grade: NPDR / PDR / Maculopathy"],
        ["Diabetic Nephropathy / CKD", "   Yes / No — eGFR: ___  ACR: ___  Stage: ___"],
        ["Diabetic Neuropathy (peripheral / autonomic)", "   Yes / No — Type: ______________"],
        ["Diabetic Foot Ulcer / Amputation", "   Yes / No — Level: ________________"],
        ["Charcot Arthropathy", "   Yes / No"],
        ["Non-alcoholic Fatty Liver Disease (NAFLD/NASH)", "   Yes / No"],
        ["Sleep Apnoea", "   Yes / No — On CPAP: Yes / No"],
        ["Polycystic Ovary Syndrome (PCOS)", "   Yes / No  (women)"],
        ["Gestational Diabetes", "   Yes / No  (women) — Year: ___"],
        ["Pancreatitis or Pancreatic Disease", "   Yes / No"],
        ["Thyroid Disease", "   Yes / No — Type: ________________"],
        ["Other Autoimmune Conditions (T1DM)", "   Coeliac / Adrenal insufficiency / Vitiligo / Other"],
        ["Previous DKA / HHS Episodes", "   Yes / No — Dates / Number: __________"],
        ["Previous Surgeries", ""],
        ["Previous Hospitalisations", ""],
        ["Psychiatric Conditions", "   Depression / Anxiety / Eating disorder (affects glycaemic control)"],
      ], ["Condition", "Status / Details"]),

      pageBreak(),

      // ════════════════════════════════════════════════════════════════════════
      // SECTION 7: DRUG HISTORY
      // ════════════════════════════════════════════════════════════════════════
      h1("SECTION 7: DRUG HISTORY & ALLERGIES"),
      alertBox("For each drug: Name → Dose → Frequency → Route → Compliance → Duration. Ask specifically about each drug class.", BLUE_LIGHT, BLUE_DARK),

      h2("7A. Diabetes Medications"),
      twoColTable([
        ["Metformin", "   Dose: ___  Freq: ___  Compliance: Good / Poor"],
        ["Sulfonylurea (gliclazide, glibenclamide, glipizide)", "   Dose: ___  Freq: ___  Compliance: Good / Poor"],
        ["SGLT2 Inhibitor (empagliflozin, dapagliflozin, canagliflozin)", "   Dose: ___  Freq: ___  Compliance: Good / Poor"],
        ["GLP-1 Receptor Agonist (semaglutide, liraglutide, dulaglutide)", "   Dose: ___  Freq: ___  Route: SC / Oral"],
        ["DPP-4 Inhibitor (sitagliptin, linagliptin, saxagliptin)", "   Dose: ___  Freq: ___  Compliance: Good / Poor"],
        ["Thiazolidinedione (pioglitazone)", "   Dose: ___  Freq: ___"],
        ["Insulin — Basal (glargine / detemir / degludec)", "   Dose: ___  Timing: ___  Injection site: ___"],
        ["Insulin — Rapid-Acting (aspart / lispro / glulisine)", "   Dose: ___  Timing: ___  Injection technique: ___"],
        ["Insulin — Premixed", "   Type: ___  Dose: ___  Timing: ___"],
        ["Insulin Pump (CSII)", "   Yes / No — Basal rate: ___  Bolus: ___"],
      ], ["Drug Class", "Details"]),
      questionBullet("Do you take your diabetes medications every day? Do you ever miss doses?"),
      questionBullet("For insulin: Do you rotate injection sites? Are there any lumpy areas? (Lipohypertrophy)"),

      new Paragraph({ text: "", spacing: { before: 80 } }),
      h2("7B. Other Medications (Comorbidities)"),
      twoColTable([
        ["ACE Inhibitor / ARB (renoprotective)", ""],
        ["Statin (atorvastatin, rosuvastatin)", ""],
        ["Aspirin or Antiplatelet", ""],
        ["Antihypertensive (amlodipine, bisoprolol, doxazosin)", ""],
        ["Diuretic (furosemide, spironolactone, HCTZ)", ""],
      ], ["Drug", "Name / Dose / Frequency"]),

      new Paragraph({ text: "", spacing: { before: 80 } }),
      h2("7C. Drugs That WORSEN Glycaemic Control"),
      alertBox("Always check for these — they are common and frequently overlooked causes of poor glycaemic control.", ORANGE_LIGHT, ORANGE),
      twoColTable([
        ["Corticosteroids (prednisolone, dexamethasone)", "   Currently taking: Yes / No"],
        ["Thiazide Diuretics (hydrochlorothiazide, indapamide)", "   Currently taking: Yes / No"],
        ["Atypical Antipsychotics (olanzapine, clozapine)", "   Currently taking: Yes / No"],
        ["Beta-Blockers (propranolol, atenolol)", "   Currently taking: Yes / No — masks hypoglycaemia symptoms"],
        ["Calcineurin Inhibitors (tacrolimus, cyclosporin)", "   Currently taking: Yes / No"],
        ["Protease Inhibitors (HIV treatment)", "   Currently taking: Yes / No"],
        ["Niacin / Nicotinic acid", "   Currently taking: Yes / No"],
        ["Herbal / Traditional Medicines", "   Details: __________________________"],
      ], ["Drug", "Status"]),

      new Paragraph({ text: "", spacing: { before: 80 } }),
      h2("7D. Allergies"),
      twoColTable([
        ["Drug Allergy", "Reaction Type"],
        ["", ""],
        ["", ""],
      ], ["Drug Name", "Reaction (e.g. rash, anaphylaxis, GI intolerance)"]),

      pageBreak(),

      // ════════════════════════════════════════════════════════════════════════
      // SECTION 8: FAMILY HISTORY
      // ════════════════════════════════════════════════════════════════════════
      h1("SECTION 8: FAMILY HISTORY (FH)"),
      alertBox("A strong family history of T2DM confers 2-4x increased risk. First-degree relatives with T1DM increase risk ~15-fold.", BLUE_LIGHT, BLUE_DARK),
      twoColTable([
        ["Diabetes (Type 1 or 2) — in first-degree relatives", "   Yes / No — Who: Father / Mother / Sibling — Type: ___"],
        ["Hypertension", "   Yes / No — Who: ______________________"],
        ["Coronary Artery Disease / Early MI (<55 years)", "   Yes / No — Who: ______________________"],
        ["Stroke", "   Yes / No — Who: ______________________"],
        ["Chronic Kidney Disease", "   Yes / No — Who: ______________________"],
        ["Obesity", "   Yes / No — Who: ______________________"],
        ["Thyroid Disease", "   Yes / No — Who: ______________________"],
        ["MODY (DM in 3 generations, young, non-obese, no antibodies)", "   Yes / No — Suggest genetic testing if suspected"],
        ["Autoimmune Conditions", "   Yes / No — Type: ____________________"],
      ], ["Family Condition", "Details"]),

      pageBreak(),

      // ════════════════════════════════════════════════════════════════════════
      // SECTION 9: SOCIAL HISTORY
      // ════════════════════════════════════════════════════════════════════════
      h1("SECTION 9: SOCIAL HISTORY (SH)"),

      h2("9A. Smoking"),
      questionBullet("Do you smoke or have you ever smoked?"),
      questionBullet("How many cigarettes per day? For how many years? (Pack-years = [cigarettes/day ÷ 20] × years)"),
      questionBullet("If stopped — when did you stop?"),
      twoColTable([
        ["Smoking Status", "   Never / Current / Ex-smoker"],
        ["Cigarettes/day", ""],
        ["Duration (years)", ""],
        ["Pack-years", ""],
        ["Year stopped (if ex)", ""],
      ], ["Parameter", "Details"]),
      alertBox("Smoking DOUBLES cardiovascular risk in DM. It also impairs wound healing, worsens neuropathy, and accelerates nephropathy. Smoking cessation is a core DM management goal.", ORANGE_LIGHT, ORANGE),

      new Paragraph({ text: "", spacing: { before: 80 } }),
      h2("9B. Alcohol"),
      questionBullet("Do you drink alcohol? What type? How much per week?"),
      questionBullet("Do you ever drink on an empty stomach?"),
      alertBox("Alcohol can mask hypoglycaemia symptoms AND cause delayed hypoglycaemia up to 24 hours after drinking (especially on insulin or sulfonylurea). Educate all patients.", ORANGE_LIGHT, ORANGE),
      twoColTable([
        ["Alcohol Status", "   Never / Social / Regular / Dependent"],
        ["Units per week", ""],
        ["Type (beer, spirits, wine)", ""],
        ["Binge drinking (>6 units/session)", "   Yes / No"],
      ], ["Parameter", "Details"]),

      new Paragraph({ text: "", spacing: { before: 80 } }),
      h2("9C. Diet"),
      questionBullet("What do you usually eat in a day from morning to night? (24-hour dietary recall)"),
      questionBullet("Do you eat regular meals, or do you skip meals?"),
      questionBullet("How much rice, bread, sugar, or sweet drinks do you consume daily?"),
      questionBullet("Are you following a special diabetic diet?"),
      questionBullet("Do you count carbohydrates or follow a meal plan?"),
      twoColTable([
        ["Meal Regularity", "   Regular / Irregular / Skips meals"],
        ["Carbohydrate Intake", "   High / Moderate / Low / Unknown"],
        ["Sweet Drinks (soda, juice, energy drinks)", "   Frequency: ___________________"],
        ["Diabetic Diet Adherence", "   Yes / No / Partial"],
      ], ["Parameter", "Details"]),

      new Paragraph({ text: "", spacing: { before: 80 } }),
      h2("9D. Physical Activity"),
      questionBullet("How active are you on a daily basis?"),
      questionBullet("Do you do any structured exercise? What type, how often, and for how long?"),
      alertBox("Target: 150 min/week moderate aerobic exercise + resistance training 2-3x/week. Exercise reduces HbA1c by ~0.6% independently.", BLUE_LIGHT, BLUE_DARK),
      twoColTable([
        ["Activity Level", "   Sedentary / Lightly active / Moderately active / Very active"],
        ["Exercise Type", ""],
        ["Exercise Frequency/Duration", ""],
      ], ["Parameter", "Details"]),

      new Paragraph({ text: "", spacing: { before: 80 } }),
      h2("9E. Socioeconomic Status & Adherence Capacity"),
      questionBullet("Do you have any difficulty affording your medications or test strips?"),
      questionBullet("Who cooks your meals at home?"),
      questionBullet("Do you live alone or with family?"),
      questionBullet("Do you understand how to use your glucometer and insulin device?"),
      twoColTable([
        ["Lives Alone / With Family", ""],
        ["Medication Affordability", "   No difficulty / Moderate difficulty / Significant difficulty"],
        ["Health Literacy", "   Good / Fair / Poor"],
        ["Occupational Risk for Hypoglycaemia", "   Driving / Machinery / Heights: Yes / No"],
      ], ["Parameter", "Details"]),

      pageBreak(),

      // ════════════════════════════════════════════════════════════════════════
      // SECTION 10: DM CLASSIFICATION
      // ════════════════════════════════════════════════════════════════════════
      h1("SECTION 10: DIABETES CLASSIFICATION — CLINICIAN ASSESSMENT"),
      threeColTable([
        ["Type 1 DM", "Usually <30 yrs, lean, acute onset, prone to DKA, autoimmune markers (anti-GAD, anti-islet, anti-IA2, anti-ZnT8), C-peptide low/undetectable, requires insulin from outset", ""],
        ["Type 2 DM", "Usually >35 yrs, overweight/obese, insidious onset, strong family history, associated with metabolic syndrome, C-peptide elevated", ""],
        ["MODY (Maturity Onset DM of the Young)", "Young, non-obese, autosomal dominant FH over 3 generations, no autoantibodies — refer for genetic testing (GCK, HNF1A mutations)", ""],
        ["Secondary DM", "Pancreatitis, pancreatectomy, haemochromatosis, Cushing's syndrome, acromegaly, drug-induced — underlying cause drives management", ""],
        ["Gestational DM", "Diagnosed during pregnancy, resolves post-partum — but 50% develop T2DM within 10 years; screen with OGTT", ""],
        ["LADA (Latent Autoimmune DM in Adults)", "Age >30, initially resembles T2DM, anti-GAD positive, progressive insulin deficiency — often misclassified as T2DM", ""],
      ], ["Type", "Key Features", "Clinician Assessment"]),
      new Paragraph({ text: "", spacing: { before: 80 } }),
      new Paragraph({
        children: [new TextRun({ text: "Clinical DM Classification: _____________________________________________________", size: 20, font: "Calibri" })],
        spacing: { before: 60, after: 60 }
      }),

      pageBreak(),

      // ════════════════════════════════════════════════════════════════════════
      // SECTION 11: PHYSICAL EXAMINATION GUIDE
      // ════════════════════════════════════════════════════════════════════════
      h1("SECTION 11: PHYSICAL EXAMINATION — GUIDE & FINDINGS RECORD"),
      alertBox("The physical examination in DM is a targeted, multi-system search for complications. Follow this systematic approach.", BLUE_LIGHT, BLUE_DARK),

      h2("11A. General Assessment"),
      twoColTable([
        ["Height (cm)", "___  Weight (kg): ___  BMI: ___  (>25 overweight; >30 obese)"],
        ["Waist Circumference (cm)", "___  (At risk: women >80 cm; men >90 cm Asian / >102 cm Western)"],
        ["General Appearance", "   Well / Unwell / Ill — Cushingoid features: Yes / No"],
        ["Hydration Status", "   Normal / Dehydrated — Skin turgor / dry mucous membranes"],
        ["Acanthosis Nigricans", "   Present / Absent — Site: posterior neck / axillae / groin"],
      ], ["Parameter", "Finding"]),

      h2("11B. Vital Signs"),
      twoColTable([
        ["Blood Pressure (Right arm)", "___/___  mmHg  —  Target <130/80 in DM"],
        ["Blood Pressure (Left arm)", "___/___  mmHg"],
        ["Orthostatic BP", "Supine: ___/___  |  Standing 1 min: ___/___  |  3 min: ___/___ (Drop ≥20 mmHg systolic = autonomic neuropathy)"],
        ["Heart Rate", "___  bpm  — Regular / Irregular  (Fixed resting tachycardia = autonomic neuropathy)"],
        ["Respiratory Rate", "___  /min  — Kussmaul breathing (deep sighing) = DKA"],
        ["Temperature", "___  °C  — Fever suggests infection (foot cellulitis / osteomyelitis)"],
        ["SpO2", "___  %"],
        ["Random Capillary Blood Glucose", "___  mmol/L"],
      ], ["Parameter", "Finding"]),

      h2("11C. Eyes, ENT, Oral Cavity"),
      twoColTable([
        ["Visual Acuity (Snellen)", "Right: ___  Left: ___"],
        ["Rubeosis Iridis", "   Present / Absent (neovascularisation of iris = advanced retinopathy)"],
        ["Fundoscopy Findings", "   Microaneurysms / Haemorrhages / Cotton-wool spots / Exudates / NVD / NVE / Normal"],
        ["CN III Palsy", "   Present / Absent (painless, pupil-sparing = diabetic mononeuropathy)"],
        ["Oral Candidiasis", "   Present / Absent — White plaques on mucosa"],
        ["Periodontal Disease", "   Present / Absent"],
        ["Thyroid", "   Normal / Goitre / Nodule"],
      ], ["Examination", "Finding"]),

      h2("11D. Cardiovascular"),
      twoColTable([
        ["Carotid Bruits", "   Right: Present / Absent  |  Left: Present / Absent"],
        ["Apex Beat", ""],
        ["Heart Sounds", "   S1+S2+___  (S3 = HF; S4 = diabetic cardiomyopathy)"],
        ["Pedal Oedema", "   Present / Absent — Grade: ___  Bilateral / Unilateral"],
        ["Femoral Pulse", "   Right: Present / Absent  |  Left: Present / Absent"],
        ["Popliteal Pulse", "   Right: Present / Absent  |  Left: Present / Absent"],
        ["Posterior Tibial Pulse", "   Right: Present / Absent  |  Left: Present / Absent"],
        ["Dorsalis Pedis Pulse", "   Right: Present / Absent  |  Left: Present / Absent"],
        ["Ankle-Brachial Index (ABI)", "   Right: ___  Left: ___  (Normal ≥0.9; PAD <0.9)"],
      ], ["Examination", "Finding"]),

      h2("11E. Abdomen"),
      twoColTable([
        ["Hepatomegaly (NAFLD)", "   Present / Absent — Size: ___  cm below costal margin"],
        ["Renal Angle Tenderness", "   Right: Yes / No  |  Left: Yes / No"],
        ["Insulin Injection Sites", "   Abdomen / Flanks / Thighs — Lipohypertrophy: Yes / No — Site: ___"],
        ["Renal Artery Bruit", "   Present / Absent"],
      ], ["Examination", "Finding"]),

      h2("11F. Neurological — Peripheral Neuropathy Screening"),
      alertBox("Diabetic neuropathy is a DIAGNOSIS OF EXCLUSION — rule out B12 deficiency, hypothyroidism, uraemia, CIDP, and vasculitic neuropathy.", ORANGE_LIGHT, ORANGE),
      twoColTable([
        ["10g Semmes-Weinstein Monofilament (10 plantar sites per foot)", "Right: ___/10 normal  |  Left: ___/10 normal"],
        ["128-Hz Tuning Fork (hallux → medial malleolus)", "Right: Normal / Reduced / Absent  |  Left: Normal / Reduced / Absent"],
        ["Pin-prick (dorsal foot — small fibre)", "Right: Normal / Reduced  |  Left: Normal / Reduced"],
        ["Temperature Discrimination (cool vs warm)", "Right: Normal / Impaired  |  Left: Normal / Impaired"],
        ["Ankle Jerk Reflex", "Right: Present / Absent / Diminished  |  Left: Present / Absent / Diminished"],
        ["Patellar Reflex", "Right: Present / Absent  |  Left: Present / Absent"],
        ["Proprioception (hallux up/down)", "Right: Normal / Impaired  |  Left: Normal / Impaired"],
        ["Romberg's Test", "   Positive / Negative"],
        ["Gait Assessment", "   Normal / Wide-based / Antalgic"],
      ], ["Test", "Finding"]),

      h2("11G. Foot Examination — 5-Minute Minimum"),
      alertBox("ALWAYS remove shoes and socks. Check the feet at every DM visit. Foot disease is the most preventable major complication of DM.", RED_DARK === "C00000" ? "FCE4D6" : "FCE4D6", RED_DARK),
      twoColTable([
        ["Skin Integrity", "   Ulcers: Yes / No — Location: ___  Size: ___  Depth: ___  Wagner grade: ___"],
        ["Calluses / Corns", "   Present / Absent — Location: _______________"],
        ["Deformities", "   Hallux valgus / Hammertoe / Charcot foot / Normal"],
        ["Interdigital Spaces", "   Maceration / Tinea pedis / Normal"],
        ["Nails", "   Onychomycosis / Ingrowing / Normal"],
        ["Skin Colour / Temperature", "   Warm / Cool / Discoloured"],
        ["Callus Over Pressure Points", "   Present / Absent"],
        ["Footwear Inspection", "   Appropriate / Ill-fitting / Absent"],
      ], ["Feature", "Finding — Right Foot / Left Foot"]),

      h2("11H. Musculoskeletal — Diabetic Specific Signs (Firestein & Kelley)"),
      twoColTable([
        ["Prayer Sign (LJM — Cheiroarthropathy)", "   Positive / Negative (gap between palmar surfaces)"],
        ["Tabletop Sign", "   Positive / Negative"],
        ["Dupuytren's Contracture", "   Present / Absent — Fingers affected: ___  Flexion deficit: ___ degrees"],
        ["Trigger Finger", "   Present / Absent — Fingers affected: ___"],
        ["Tinel's Sign at wrist (Carpal Tunnel)", "   Positive / Negative — Right / Left"],
        ["Phalen's Test (Carpal Tunnel)", "   Positive / Negative — Latency: ___ seconds"],
        ["Thenar Wasting (Carpal Tunnel — advanced)", "   Present / Absent"],
        ["Shoulder Abduction Range (Frozen Shoulder)", "   Right: ___°  Left: ___°  (Normal >180°)"],
        ["Charcot Foot (warm, swollen, deformed, painless)", "   Present / Absent"],
      ], ["Sign", "Finding"]),

      h2("11I. Skin Examination"),
      twoColTable([
        ["Acanthosis Nigricans", "   Present / Absent — Location: _______________"],
        ["Necrobiosis Lipoidica", "   Present / Absent (anterior tibiae — strongly associated T1DM)"],
        ["Diabetic Dermopathy (shin spots)", "   Present / Absent"],
        ["Eruptive Xanthomas", "   Present / Absent (severe hypertriglyceridaemia)"],
        ["Tinea Pedis / Onychomycosis", "   Present / Absent"],
        ["Lipohypertrophy at Injection Sites", "   Present / Absent — Site: _______________"],
        ["Lipoatrophy (rare)", "   Present / Absent"],
        ["Vitiligo (T1DM autoimmune)", "   Present / Absent"],
      ], ["Skin Finding", "Result"]),

      pageBreak(),

      // ════════════════════════════════════════════════════════════════════════
      // SECTION 12: INVESTIGATIONS
      // ════════════════════════════════════════════════════════════════════════
      h1("SECTION 12: INVESTIGATIONS — RESULTS RECORD"),
      alertBox("ADA Diagnostic Criteria: Any one of — FPG ≥7.0 mmol/L  |  2-hr OGTT ≥11.1 mmol/L  |  Random PG ≥11.1 mmol/L + symptoms  |  HbA1c ≥48 mmol/mol (≥6.5%). Asymptomatic patients require TWO abnormal tests on DIFFERENT days.", BLUE_LIGHT, BLUE_DARK),

      h2("12A. Glycaemic"),
      twoColTable([
        ["Fasting Plasma Glucose (FPG)", "   ___  mmol/L  (DM: ≥7.0  |  Pre-DM: 5.6–6.9  |  Normal: <5.6)"],
        ["2-hour OGTT (75g glucose)", "   ___  mmol/L  (DM: ≥11.1  |  IGT: 7.8–11.0)"],
        ["HbA1c", "   ___  mmol/mol  (  ___  %)  (DM: ≥48/≥6.5%  |  Pre-DM: 39–47/5.7–6.4%)"],
        ["Random Plasma Glucose + Symptoms", "   ___  mmol/L  (DM: ≥11.1 with symptoms)"],
        ["C-Peptide", "   ___  pmol/L  (T1DM: low/undetectable; T2DM: normal/high)"],
        ["Fasting Insulin", "   ___  mU/L  (insulin resistance if elevated with FPG)"],
        ["HOMA-IR", "   ___  (insulin resistance index)"],
      ], ["Test", "Result / Reference Range"]),

      h2("12B. Autoimmune (Type 1 / LADA Classification)"),
      twoColTable([
        ["Anti-GAD Antibodies", "   Positive / Negative / Not done"],
        ["Islet Cell Antibodies (ICA)", "   Positive / Negative / Not done"],
        ["Anti-IA2 Antibodies", "   Positive / Negative / Not done"],
        ["Anti-ZnT8 Antibodies", "   Positive / Negative / Not done"],
      ], ["Test", "Result"]),

      h2("12C. Metabolic Panel"),
      twoColTable([
        ["Full Blood Count (FBC)", "   Hb: ___  WBC: ___  Platelets: ___  (Anaemia affects HbA1c interpretation)"],
        ["Urea / BUN", "   ___  mmol/L"],
        ["Creatinine", "   ___  micromol/L"],
        ["eGFR (CKD-EPI)", "   ___  mL/min/1.73m²  (CKD Stage: _____)"],
        ["Urine Albumin-to-Creatinine Ratio (ACR)", "   ___  mg/mmol  (Microalbuminuria: 3–30; Macroalbuminuria: >30)"],
        ["Urine Dipstick", "   Glucose: ___  Protein: ___  Ketones: ___  Nitrites: ___  Blood: ___"],
        ["Total Cholesterol", "   ___  mmol/L"],
        ["LDL Cholesterol", "   ___  mmol/L  (Target <1.8 mmol/L if high CV risk)"],
        ["HDL Cholesterol", "   ___  mmol/L"],
        ["Triglycerides", "   ___  mmol/L  (>5.6 = hypertriglyceridaemia with pancreatitis risk)"],
        ["Liver Function Tests (ALT, AST, ALP, GGT)", "   ALT: ___  AST: ___  ALP: ___  GGT: ___  (NAFLD monitoring)"],
        ["TSH / Free T4", "   TSH: ___  FT4: ___  (Annual in T1DM; consider in T2DM)"],
        ["Uric Acid", "   ___  mmol/L  (elevated in insulin resistance / metabolic syndrome)"],
        ["Serum B12", "   ___  pmol/L  (deficiency from long-term metformin)"],
      ], ["Test", "Result"]),

      h2("12D. Cardiovascular"),
      twoColTable([
        ["12-Lead ECG", "   Normal / LVH / Q waves (silent MI) / AF / Conduction defect: ___"],
        ["Echocardiogram", "   EF: ___  Diastolic dysfunction: Yes / No  (if clinical HF)"],
        ["Ankle-Brachial Index (ABI)", "   Right: ___  Left: ___  (PAD <0.9)"],
        ["Chest X-Ray", "   Normal / Cardiomegaly / Pulmonary oedema / Other: ___"],
      ], ["Test", "Result"]),

      h2("12E. Ophthalmology"),
      twoColTable([
        ["Dilated Fundus Exam / Retinal Photography", "   Date: ___  Finding: NPDR / PDR / Maculopathy / Normal"],
        ["Frequency", "   At diagnosis (T2DM) | Within 5 years (T1DM) | Then annually"],
      ], ["Screening", "Result"]),

      h2("12F. Coexisting Autoimmune (T1DM Screening)"),
      twoColTable([
        ["Anti-TPO and Anti-Thyroglobulin Antibodies", "   Positive / Negative / Not done"],
        ["Anti-tTG IgA (Coeliac Disease)", "   Positive / Negative / Not done"],
        ["Adrenal Antibodies (21-hydroxylase) if Addison's suspected", "   Positive / Negative / Not done"],
      ], ["Test", "Result"]),

      pageBreak(),

      // ════════════════════════════════════════════════════════════════════════
      // SECTION 13: RISK STRATIFICATION
      // ════════════════════════════════════════════════════════════════════════
      h1("SECTION 13: RISK STRATIFICATION SUMMARY"),
      threeColTable([
        ["Disease Duration (years)", "", "   >10 years = significantly increased microvascular risk"],
        ["HbA1c", "", "   >75 mmol/mol (>9%) = very high risk"],
        ["Blood Pressure", "", "   Uncontrolled BP accelerates nephropathy and retinopathy"],
        ["Dyslipidaemia", "", "   Drives macrovascular disease"],
        ["Smoking", "", "   Doubles CVD risk; impairs wound healing"],
        ["Obesity", "", "   Worsens insulin resistance and CV risk"],
        ["Existing Organ Damage (retinopathy / nephropathy / neuropathy)", "", "   Already present = highest risk tier"],
        ["Hypoglycaemia Unawareness", "", "   Relax targets; refer to specialist"],
        ["Pregnancy", "", "   Tight control required; target HbA1c <48 mmol/mol (<6.5%) pre-conceptionally"],
        ["Cardiovascular Disease", "", "   SGLT2i or GLP-1 RA preferred; high-intensity statin; antiplatelet"],
      ], ["Risk Factor", "Patient Status", "Clinical Implication"]),
      new Paragraph({ text: "", spacing: { before: 80 } }),
      new Paragraph({
        children: [new TextRun({ text: "Overall Risk Stratification: ____________________________________________________", size: 20, font: "Calibri" })],
        spacing: { before: 60, after: 60 }
      }),
      new Paragraph({
        children: [new TextRun({ text: "HbA1c Target for this patient: _________________________________________________", size: 20, font: "Calibri" })],
        spacing: { before: 60, after: 60 }
      }),

      pageBreak(),

      // ════════════════════════════════════════════════════════════════════════
      // SECTION 14: PROBLEM LIST & MANAGEMENT PLAN
      // ════════════════════════════════════════════════════════════════════════
      h1("SECTION 14: ACTIVE PROBLEM LIST"),
      twoColTable([
        ["1.", ""],
        ["2.", ""],
        ["3.", ""],
        ["4.", ""],
        ["5.", ""],
        ["6.", ""],
        ["7.", ""],
        ["8.", ""],
      ], ["#", "Problem"]),

      new Paragraph({ text: "", spacing: { before: 120 } }),
      h1("SECTION 15: MANAGEMENT PLAN FRAMEWORK"),
      alertBox("This framework is for the supervising clinician to complete. Students: use this as a structured learning scaffold.", BLUE_LIGHT, BLUE_DARK),

      h2("15A. Patient Education"),
      checkBullet("Disease understanding — what is DM and what causes complications"),
      checkBullet("Sick-day rules — what to do when ill (never stop insulin)"),
      checkBullet("Hypoglycaemia recognition and treatment — carry fast-acting glucose"),
      checkBullet("Foot care — daily inspection, proper footwear, nail care, when to seek help"),
      checkBullet("Self-monitoring of blood glucose (SMBG) technique"),
      checkBullet("Medication adherence counselling"),

      h2("15B. Lifestyle Modification"),
      checkBullet("Diet: Reduced refined carbohydrates; Mediterranean or DASH diet pattern; caloric restriction if obese"),
      checkBullet("Exercise: 150 min/week moderate aerobic activity + resistance training 2-3x/week (reduces HbA1c ~0.6%)"),
      checkBullet("Weight loss: 5-10% weight reduction significantly improves glycaemic control, BP, and lipid profile"),
      checkBullet("Smoking cessation — pharmacotherapy (varenicline) if needed"),
      checkBullet("Alcohol reduction counselling"),

      h2("15C. Pharmacotherapy — T2DM Step-Up Approach"),
      threeColTable([
        ["1st Line", "Metformin", "Reduces hepatic glucose output; weight-neutral; renally dosed (reduce if eGFR 30-45, stop if <30)"],
        ["Add-on (CVD/CKD)", "SGLT2 Inhibitor (empagliflozin, dapagliflozin)", "Renal and cardioprotective; reduce HbA1c, BP, weight; risk genital mycotic infections"],
        ["Add-on (CVD/Obesity)", "GLP-1 RA (semaglutide, liraglutide)", "Weight loss; CV benefit (LEADER, SUSTAIN-6 trials); injectable or oral"],
        ["Add-on", "DPP-4 Inhibitor (sitagliptin)", "Weight-neutral; well-tolerated; oral"],
        ["Add-on", "Sulfonylurea (gliclazide)", "Inexpensive; hypoglycaemia risk; weight gain"],
        ["Escalation", "Basal Insulin (glargine/detemir)", "When oral agents fail to reach target; start low (0.1-0.2 U/kg/day)"],
        ["Escalation", "Basal-Bolus Insulin", "Most physiological regimen; essential in T1DM from outset"],
      ], ["Step", "Drug", "Key Points"]),
      new Paragraph({
        children: [new TextRun({ text: "Plan for this patient: _________________________________________________________", size: 20, font: "Calibri" })],
        spacing: { before: 80, after: 60 }
      }),

      h2("15D. Treating Comorbidities"),
      twoColTable([
        ["Hypertension", "ACE inhibitor or ARB as first choice (renoprotective + anti-proteinuric); target <130/80 with CKD/CVD"],
        ["Dyslipidaemia", "High-intensity statin for most DM patients with CVD risk; fenofibrate if hypertriglyceridaemia"],
        ["Antiplatelet Therapy", "Low-dose aspirin for ESTABLISHED CVD; not routine for primary prevention"],
        ["Obesity", "GLP-1 RA (semaglutide 2.4 mg); consider bariatric surgery if BMI >35 with inadequate control"],
      ], ["Comorbidity", "Management"]),

      h2("15E. Complication-Specific Treatment"),
      twoColTable([
        ["Retinopathy (NPDR)", "Tight glycaemic + BP control; annual ophthalmology follow-up"],
        ["Retinopathy (PDR)", "Laser photocoagulation or anti-VEGF (ranibizumab)"],
        ["Nephropathy (microalbuminuria)", "ACEi or ARB; SGLT2i (reduces CKD progression — CREDENCE, DAPA-CKD trials); protein restriction"],
        ["Painful Neuropathy", "Duloxetine (1st line); pregabalin; gabapentin; amitriptyline; topical capsaicin"],
        ["Gastroparesis", "Metoclopramide; domperidone; small frequent meals; low-fat diet"],
        ["Erectile Dysfunction", "PDE5 inhibitors (sildenafil, tadalafil); refer to urology"],
        ["Foot Ulcer", "Offloading (total contact cast); wound debridement; treat infection (culture-guided antibiotics); vascular surgery if PAD"],
        ["Charcot Foot (active)", "Total contact casting; no weight-bearing; urgent orthopaedic / diabetic foot team referral"],
        ["Cheiroarthropathy/Trigger Finger", "Physiotherapy; corticosteroid injection (less effective in DM); surgical release if severe"],
      ], ["Complication", "Key Treatment"]),

      h2("15F. Follow-Up Schedule"),
      twoColTable([
        ["HbA1c", "Every 3 months if poorly controlled; every 6 months if stable"],
        ["BP, Weight, Waist Circumference", "Every clinic visit"],
        ["Urine ACR + eGFR", "Annually"],
        ["Fasting Lipid Profile", "Annually"],
        ["Dilated Fundoscopy", "Annually after initial screen"],
        ["Comprehensive Foot Exam (monofilament + VPT)", "Annually; every visit if high-risk"],
        ["Thyroid Function (TSH)", "Annually (T1DM); as clinically indicated (T2DM)"],
        ["B12 Level (on metformin)", "Every 2 years; annually if low intake or symptoms"],
        ["Dental Review", "Every 6-12 months (periodontal disease worsens glycaemic control)"],
        ["Influenza Vaccine", "Annually"],
        ["Pneumococcal Vaccine", "As per local guidelines"],
      ], ["Parameter", "Frequency"]),

      pageBreak(),

      // ════════════════════════════════════════════════════════════════════════
      // SECTION 16: BEDSIDE CHECKLIST
      // ════════════════════════════════════════════════════════════════════════
      h1("SECTION 16: BEDSIDE QUICK-REFERENCE CHECKLIST"),
      alertBox("Print and use this checklist at the bedside. Tick each item as completed. Hand this to your supervisor at the end of the clerking.", BLUE_LIGHT, BLUE_DARK),
      new Paragraph({ text: "", spacing: { before: 80 } }),
      h2("History Checklist"),
      checkBullet("Biodata complete (name, age, sex, occupation, address, informant)"),
      checkBullet("Chief complaint in patient's own words with duration"),
      checkBullet("SOCRATES applied to each complaint"),
      checkBullet("Polyuria, polydipsia, polyphagia, weight loss asked"),
      checkBullet("Blurred vision, recurrent infections, poor wound healing asked"),
      checkBullet("DKA symptoms (nausea/vomiting/fruity breath) screened"),
      checkBullet("HHS symptoms (confusion/extreme thirst/very high BG) screened"),
      checkBullet("Hypoglycaemia episodes and unawareness assessed"),
      checkBullet("Eyes complications screened (retinopathy, laser treatment)"),
      checkBullet("Kidney complications screened (foamy urine, oedema, eGFR)"),
      checkBullet("Peripheral neuropathy screened (numbness, burning, cotton-wool sensation)"),
      checkBullet("Autonomic neuropathy screened (postural dizziness, gastroparesis, ED, neurogenic bladder)"),
      checkBullet("Cardiovascular history (chest pain, dyspnoea, claudication, palpitations)"),
      checkBullet("Foot history (ulcers, amputation, footwear)"),
      checkBullet("MSK history (stiff fingers, trigger finger, shoulder pain)"),
      checkBullet("Glycaemic control history (HbA1c trend, SMBG, hypoglycaemia)"),
      checkBullet("Past medical history (HTN, dyslipidaemia, CVD, CKD, thyroid, PCOS)"),
      checkBullet("All diabetes medications recorded with dose, frequency, compliance"),
      checkBullet("Drugs that worsen glucose checked (steroids, antipsychotics, thiazides)"),
      checkBullet("Allergies recorded"),
      checkBullet("Family history (DM, CVD, CKD, obesity)"),
      checkBullet("Smoking status and pack-years calculated"),
      checkBullet("Alcohol history with hypoglycaemia education noted"),
      checkBullet("Diet (24-hour recall), exercise, adherence capacity assessed"),

      new Paragraph({ text: "", spacing: { before: 80 } }),
      h2("Examination Checklist"),
      checkBullet("Height, weight, BMI, waist circumference recorded"),
      checkBullet("Blood pressure both arms; orthostatic BP measured"),
      checkBullet("Capillary blood glucose measured"),
      checkBullet("Fundoscopy attempted or referral arranged"),
      checkBullet("Oral cavity (Candidiasis) and thyroid examined"),
      checkBullet("All peripheral pulses palpated (femoral, popliteal, PT, DP)"),
      checkBullet("Abdomen: liver size, renal angle, injection sites"),
      checkBullet("Neurological: monofilament, tuning fork, pin-prick, ankle jerks, proprioception"),
      checkBullet("Shoes and socks removed; feet inspected"),
      checkBullet("MSK: prayer sign, tabletop, Dupuytren's, trigger finger, Tinel's, Phalen's, shoulder ROM"),
      checkBullet("Skin: acanthosis nigricans, necrobiosis lipoidica, dermopathy, xanthomas, vitiligo"),

      new Paragraph({ text: "", spacing: { before: 80 } }),
      h2("Investigations Checklist"),
      checkBullet("HbA1c requested / result recorded"),
      checkBullet("FPG or random BG with result"),
      checkBullet("Urine ACR (nephropathy screening)"),
      checkBullet("eGFR / creatinine / urea"),
      checkBullet("Fasting lipid profile"),
      checkBullet("FBC (rules out anaemia affecting HbA1c)"),
      checkBullet("LFTs (NAFLD screening, medication monitoring)"),
      checkBullet("TSH"),
      checkBullet("B12 (on metformin)"),
      checkBullet("ECG"),
      checkBullet("Anti-GAD / C-peptide (if type classification unclear)"),
      checkBullet("Dilated fundoscopy referral made if not done within past year"),

      pageBreak(),

      // ════════════════════════════════════════════════════════════════════════
      // SIGNATURE BLOCK
      // ════════════════════════════════════════════════════════════════════════
      h1("SECTION 17: CLINICAL ASSESSMENT & SIGNATURE"),
      twoColTable([
        ["Date / Time of Clerking", ""],
        ["Medical Student / Clerk Name", ""],
        ["Signature", ""],
        ["Supervising Doctor Name", ""],
        ["Supervisor Signature", ""],
        ["Consultant / Attending Name", ""],
        ["Provisional Diagnosis (Student)", ""],
        ["Confirmed Diagnosis (Supervisor)", ""],
        ["HbA1c Target Set", ""],
        ["Next Review Date", ""],
      ], ["Field", "Entry"]),

      new Paragraph({ text: "", spacing: { before: 200 } }),
      alertBox("Sources: Goldman-Cecil Medicine (26th edition) | Harrison's Principles of Internal Medicine (22nd edition) | Tintinalli's Emergency Medicine (9th edition) | Firestein & Kelley's Textbook of Rheumatology (11th edition) | ADA Standards of Medical Care in Diabetes 2024", BLUE_LIGHT, BLUE_DARK),
    ]
  }]
});

Packer.toBuffer(doc).then(buffer => {
  fs.writeFileSync('/home/daytona/workspace/dm-history-record/DM_Comprehensive_Medical_Record.docx', buffer);
  console.log('Document created successfully.');
});
Running Command

cd /home/daytona/workspace/dm-history-record && node create_dm_record.js 2>&1

Editing File

~/dm-history-record/create_dm_record.js

Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/dm-history-record/create_dm_record.js'
Editing File

~/dm-history-record/create_dm_record.js

Error: String not found in file: '      headers: {
      default: new Header({
        children: [
          new Paragraph({
            children: [
              new TextRun({ text: "DIABETES MELLITUS — COMPREHENSIVE HISTORY-TAKING MEDICAL RECORD", bold: true, color: BLUE_DARK, size: 18, font: "Calibri" }),
              new TextRun({ text: "    |    ", color: "999999", size: 18 }),
              new TextRun({ text: "Goldman-Cecil  |  Harrison's  |  Tintinalli  |  Firestein", color: "999999", size: 16, italics: true }),
            ],
            border: { bottom: { style: BorderStyle.SINGLE, size: 6, color: BLUE_LIGHT } },
          })
        ]
      })
    },
    footers: {
      default: new Footer({
        children: [
          new Paragraph({
            children: [
              new TextRun({ text: "Page ", size: 18, color: "888888" }),
              new PageNumber({ size: 18, color: "888888" }),
              new TextRun({ text: "  |  Compiled from Goldman-Cecil Medicine, Harrison's 22e, Tintinalli's Emergency Medicine, Firestein & Kelley's Rheumatology", size: 16, color: "999999", italics: true }),
            ],
            alignment: AlignmentType.CENTER,
            border: { top: { style: BorderStyle.SINGLE, size: 6, color: BLUE_LIGHT } },
          })
        ]
      })
    },'
Running Command

grep -n "PageNumber\|headers\|footers" /home/daytona/workspace/dm-history-record/create_dm_record.js | head -20

Reading File
Running Command

sed -i '206,208c\ new TextRun({ text: "Compiled from Goldman-Cecil Medicine | Harrison'\''s 22e | Tintinalli'\''s Emergency Medicine | Firestein \& Kelley'\''s Rheumatology", size: 16, color: "999999", italics: true }),' /home/daytona/workspace/dm-history-record/create_dm_record.js && cd /home/daytona/workspace/dm-history-record && node create_dm_record.js 2>&1

Running Command

cd /home/daytona/workspace/dm-history-record && python3 -c " content = open('create_dm_record.js').read() old = ''' new TextRun({ text: \"Page \", size: 18, color: \"888888\" }), new PageNumber({ size: 18, color: \"888888\" }), new TextRun({ text: \" | Compiled from Goldman-Cecil Medicine, Harrison's 22e, Tintinalli's Emergency Medicine, Firestein & Kelley's Rheumatology\", size: 16, color: \"999999\", italics: true }),''' new = ''' new TextRun({ text: \"Compiled from Goldman-Cecil Medicine | Harrison's 22e | Tintinalli's Emergency Medicine | Firestein & Kelley's Rheumatology\", size: 16, color: \"999999\", italics: true }),''' content = content.replace(old, new) open('create_dm_record.js', 'w').write(content) print('done') " && node create_dm_record.js 2>&1

Running Command

python3 /home/daytona/skills/docx/scripts/office/validate.py /home/daytona/workspace/dm-history-record/DM_Comprehensive_Medical_Record.docx 2>&1

Running Command

python3 -c " from pypdf import PdfReader from zipfile import ZipFile z = ZipFile('/home/daytona/workspace/dm-history-record/DM_Comprehensive_Medical_Record.docx') print('Files in docx:', z.namelist()[:8]) print('Size:', __import__('os').path.getsize('/home/daytona/workspace/dm-history-record/DM_Comprehensive_Medical_Record.docx'), 'bytes') " 2>&1

Your comprehensive Word document is ready:

DM Comprehensive Medical Record

Word Document · DOCX


What's inside the document

The record synthesises all four of your PDFs (Goldman-Cecil, Harrison's 22e, Tintinalli's, Firestein & Kelley's Rheumatology) into 17 fully formatted sections:
SectionContent
1 — BiodataFull patient registration table with occupational-risk note
2 — Chief ComplaintScripted opening questions; verbatim recording space
3 — History of Presenting IllnessSOCRATES framework + all "poly" symptoms (polyuria with ant-attraction question, polydipsia, polyphagia, weight, fatigue, blurred vision, infections) + DKA / HHS / hypoglycaemia acute decompensation screening
4 — Complications Screening8 organ systems: Eyes, Kidneys, Peripheral Neuropathy, Autonomic Neuropathy, CVD, Feet, Musculoskeletal (prayer sign, Dupuytren's, trigger finger, CTS, frozen shoulder, Charcot — from Firestein), Skin
5 — Glycaemic Control HistoryHbA1c trend, SMBG, CGM, hypoglycaemia unawareness table
6 — Past Medical History20+ comorbidities including PCOS, LADA, pancreatitis, autoimmune co-conditions
7 — Drug HistoryAll DM drug classes by name + dose table; drugs that WORSEN glycaemia (steroids, antipsychotics, thiazides, beta-blockers); allergies
8 — Family HistoryDM type, CVD, CKD, obesity, MODY flag
9 — Social HistorySmoking (pack-years formula), alcohol (hypoglycaemia risk), 24-hour diet recall, exercise targets, adherence capacity
10 — DM ClassificationT1/T2/MODY/Secondary/GDM/LADA comparison table with clinician assessment column
11 — Physical ExaminationGeneral, Vitals (with orthostatic BP), Eyes/ENT, CVS (all 4 foot pulses + ABI), Abdomen, Neuro (monofilament, tuning fork, pin-prick, ankle jerks, proprioception), Foot exam, MSK signs, Skin signs
12 — InvestigationsADA diagnostic criteria alert + full results table (HbA1c, OGTT, C-peptide, ACR, eGFR, lipids, ECG, autoantibodies, B12, TSH)
13 — Risk Stratification10-factor table linking each risk factor to clinical implication
14 — Problem ListBlank numbered table
15 — Management PlanEducation, lifestyle, pharmacotherapy step-up (with trial names — LEADER, SUSTAIN-6, CREDENCE), comorbidities, complication-specific treatments, follow-up schedule
16 — Bedside ChecklistPrint-and-tick format for history, examination, and investigations
17 — SignaturesStudent, supervisor, consultant, diagnosis, HbA1c target, next review

No need of document give me the information in chat which you gave in as a document

Here is the complete, fully detailed content — exactly as it was structured in the document:

COMPREHENSIVE HISTORY-TAKING MEDICAL RECORD

Diabetes Mellitus & Associated Diseases

Based on: Goldman-Cecil Medicine | Harrison's 22e | Tintinalli's Emergency Medicine | Firestein & Kelley's Rheumatology

Patient: ______________________________ Date: ______________ Hospital No: ______________
Ward/Clinic: ______________ Clerk/Student: ______________________________ Supervisor: ______________________________

SECTION 1: BIODATA

Always record biodata FIRST before asking any history. It anchors the clinical picture.
FieldPatient Entry
Full Name
Age
SexMale / Female / Other
Date of Birth
Occupation
Marital StatusSingle / Married / Divorced / Widowed
Address / Living Situation
Religion / Ethnicity
Date of Admission / Consultation
Referral SourceSelf / GP / Specialist / Emergency
Informant
Reliability of HistoryGood / Fair / Poor — Reason: __________
CLINICAL NOTE — Occupation matters in DM: Shift workers have disrupted glycaemic patterns; sedentary workers have worse insulin resistance; professional drivers face hypoglycaemia risk (licensing implications).

SECTION 2: CHIEF COMPLAINT (CC)

Ask in the patient's own words — do not suggest answers or use medical terminology.
Opening questions:
  • "What brought you here today?"
  • "What is the main problem that is bothering you?"
Write verbatim — record exactly one or two main complaints with duration:
CC: ____________________________________________________________________________
Duration: ______________________________________________________________________

SECTION 3: HISTORY OF PRESENTING ILLNESS (HPI)

Use SOCRATES for EACH complaint. For DM, always probe for hyperglycaemic symptoms, acute decompensation, and complication clues.

3A. SOCRATES Framework

LetterStands ForQuestion to Ask
SSite"Where exactly is the problem?"
OOnset"When did it start? Was it sudden (hours–days) or gradual (weeks–months)?"
CCharacter"What does it feel like? Burning? Tingling? Pressure?"
RRadiation"Does it spread or go anywhere else?"
AAssociated Symptoms"Is there anything else that comes with it?"
TTime Course"Is it constant or does it come and go? Is it getting better or worse?"
EExacerbating / Relieving"What makes it better? What makes it worse?"
SSeverity"On a scale of 0–10, how bad is it? Does it affect daily life?"

3B. Cardinal Symptoms of Hyperglycaemia — Ask ALL

Polyuria (Excessive Urination)

Mechanism: Osmotic diuresis from glucosuria when plasma glucose exceeds renal threshold (~10 mmol/L / 180 mg/dL)
  • "How many times do you urinate during the day?"
  • "Do you wake up at night to urinate? How many times?" (Nocturia)
  • "How much urine do you pass each time — a small amount or a lot?"
  • "Is your urine pale, dark, or does it look foamy?"
  • "Have you noticed ants being attracted to where you urinate?" (Glycosuria — classical bedside clue)
Findings: _____________________________________________________________________

Polydipsia (Excessive Thirst)

Mechanism: Compensatory response to dehydration and hyperosmolarity from glucosuria
  • "Do you feel very thirsty more than usual?"
  • "How much water or fluids do you drink in a day?"
  • "Is the thirst there all the time, or does drinking relieve it only briefly?"
Findings: _____________________________________________________________________

Polyphagia (Excessive Hunger)

Mechanism: Cellular starvation despite hyperglycaemia — especially prominent in Type 1 DM
  • "Is your appetite increased, decreased, or normal?"
  • "Do you feel hungry soon after eating a full meal?"
Findings: _____________________________________________________________________

Weight Changes

PatternMechanism
T1DM — Weight lossCatabolism of fat and muscle
T2DM — Often weight gainObesity-driven; weight loss only in late uncontrolled T2DM
  • "Have you lost or gained weight recently without trying?"
  • "How much weight have you lost/gained, and over what period of time?"
Findings: _____________________________________________________________________

Fatigue and Weakness

  • "Do you feel tired all the time?"
  • "Does the tiredness come on even without activity, or only after effort?"
  • "Do you feel weak in your arms or legs?"
Findings: _____________________________________________________________________

Blurred Vision

Mechanism: Lens osmotic swelling from sorbitol accumulation during hyperglycaemia
  • "Has your vision changed recently?"
  • "Is the blurring in one eye or both?"
  • "Is it constant or does it fluctuate with your blood sugar levels?"
  • "Have you seen floaters, flashes of light, or had sudden loss of vision?"
Findings: _____________________________________________________________________

Recurrent Infections and Poor Wound Healing

Mechanism: Phagocyte dysfunction + glucosuria + impaired vascular and neuropathic tissue repair
  • "Do you get infections frequently — skin, genital, or urinary?"
  • "Have you noticed itching around the genitals or white discharge?" (Candidiasis)
  • "Do wounds, cuts, or sores take a long time to heal?"
  • "Do you have any sores or ulcers not healing, especially on the feet?"
Findings: _____________________________________________________________________

3C. Onset and Type Classification Clues

Onset PatternClinical Implication
Acute onset (days–weeks)Suggests Type 1 DM / DKA → ask about nausea, vomiting, abdominal pain, fruity breath
Insidious onset (months–years)Suggests Type 2 DM → often found incidentally or when complication presents first
During pregnancyGestational diabetes → screen with OGTT
Post-illness / surgery / steroidsSecondary / drug-induced DM → review precipitants

3D. Acute Decompensation — Screen for ALL Three

CRITICAL ALERT — Always ask these questions directly. Missing DKA or HHS is a clinical emergency.
EmergencySymptoms to Screen
DKA (T1DM, occasionally T2DM)Nausea, vomiting, abdominal pain, fruity/acetone breath odour, rapid breathing (Kussmaul), decreased consciousness
HHS — Hyperosmolar Hyperglycaemic State (T2DM)Extreme thirst, confusion, neurological changes (focal deficits, seizures), profoundly elevated blood sugar (>33 mmol/L), marked dehydration, NO significant acidosis/ketonuria
HypoglycaemiaSweating, palpitations, tremor, confusion, aggression, unconsciousness — especially on insulin or sulfonylurea
  • "Have you had nausea, vomiting, or abdominal pain with very high blood sugar?"
  • "Have you had episodes of sweating, shakiness, heart racing, or confusion — especially if you missed a meal?"
  • "Have you ever been hospitalised for very high blood sugar or a diabetic coma?"

SECTION 4: COMPLICATIONS SCREENING — SYSTEMATIC REVIEW BY ORGAN

Tell the patient: "I am now going to ask about different parts of your body to make sure everything is being checked carefully."

4A. EYES — Diabetic Retinopathy

  • "Has a doctor ever looked at the back of your eyes with a special instrument?" (Fundoscopy / dilated eye exam)
  • "Have you had any changes in your vision — blurring, dark spots, or sudden loss of sight?"
  • "Have you seen floaters, cobweb-like shapes, or flashes of light?"
  • "Have you had any eye injections (anti-VEGF) or laser treatment for your eyes?"
  • "Have you ever been told you have diabetic eye disease or glaucoma?"
Eyes findings: ________________________________________________________________

4B. KIDNEYS — Diabetic Nephropathy

  • "Have you noticed your urine becoming foamy or frothy?" (Proteinuria)
  • "Do you have swelling in your legs, ankles, or around your eyes in the morning?" (Nephrotic oedema)
  • "Have you ever been told your kidneys are not working properly?"
  • "Do you know your kidney function test results — creatinine or eGFR?"
  • "Have you ever been on dialysis or been referred to a kidney specialist?"
Kidney findings: ______________________________________________________________

4C. PERIPHERAL NERVOUS SYSTEM — Sensorimotor Neuropathy

  • "Do you have numbness, tingling, or a burning sensation in your feet or hands?"
  • "Does it feel like you are walking on cotton wool or sand?"
  • "Is the pain or tingling worse at night?"
  • "Have you lost feeling in your feet — for example, unable to feel hot or cold water?"
  • "Have you had falls because of loss of balance or unsteadiness?"
  • "Do you have any foot ulcers, wounds, or sores that are not healing?"
  • "Have you ever had an amputation?"
Neuropathy findings: __________________________________________________________

4D. AUTONOMIC NERVOUS SYSTEM — Autonomic Neuropathy

  • "Do you feel dizzy or lightheaded when you stand up quickly?" (Postural / orthostatic hypotension)
  • "Do you feel full very quickly after eating only a small meal?" (Gastroparesis)
  • "Do you have nausea, vomiting, or bloating after eating?"
  • "Do you have problems with your bowels — constipation or diarrhoea that comes and goes?" (Autonomic gut dysmotility)
  • "Do you sweat abnormally — too much or not at all?"
  • "Do you have difficulty controlling your bladder or do you need to strain to pass urine?" (Neurogenic bladder)
  • "[Male patients — ask sensitively and privately]: Do you have difficulty getting or maintaining an erection?" (Erectile dysfunction — earliest autonomic symptom in men)
Autonomic findings: ___________________________________________________________

4E. HEART AND LARGE BLOOD VESSELS — Macrovascular Disease

NOTE: Diabetic patients may have SILENT myocardial infarction — chest pain may be absent due to cardiac autonomic neuropathy. Always ask about atypical symptoms.
  • "Do you have chest pain or tightness — especially on walking, climbing stairs, or at rest?"
  • "Do you feel short of breath with activity or when lying flat?" (Orthopnoea — heart failure)
  • "Do you have swelling in both ankles?" (Biventricular failure)
  • "Have you had a heart attack or been told your heart arteries are blocked?"
  • "Have you had any stroke or sudden weakness / numbness on one side of your body?"
  • "Do you get pain in your calves when walking that goes away with rest?" (Intermittent claudication = Peripheral Arterial Disease)
  • "Do you have palpitations or feel your heart racing or skipping?"
Cardiovascular findings: _______________________________________________________

4F. FEET — Diabetic Foot Disease

  • "Do you check your feet every day?"
  • "What type of footwear do you use? Do they fit well?"
  • "Do you have any calluses, corns, or hard skin on your feet?"
  • "Have you had any cuts, blisters, or sores on your feet that you did not feel?" (Loss of protective sensation)
  • "Have you been told your foot bones have changed shape?" (Charcot's arthropathy)
Foot findings: ________________________________________________________________

4G. MUSCULOSKELETAL — Diabetic Rheumatological Conditions

From Firestein & Kelley's Rheumatology: Diabetic cheiroarthropathy, Dupuytren's, trigger finger, carpal tunnel, adhesive capsulitis, and Charcot arthropathy are all strongly DM-associated.
ConditionKey Features
Cheiroarthropathy (Limited Joint Mobility)Prayer sign — cannot fully oppose palmar surfaces; Tabletop sign
Dupuytren's Contracture>20% in T2DM; palm nodules/cords; ring and little finger fixed flexion
Trigger Finger (Flexor Tenosynovitis)A1 pulley nodule; snapping/locking; multiple fingers in DM
Carpal Tunnel SyndromeMedian nerve; Tinel's, Phalen's, Durkan's tests; thenar wasting
Adhesive Capsulitis (Frozen Shoulder)Limited shoulder ROM; insidious onset; bilateral in DM
Charcot Arthropathy (Neuroarthropathy)Painless swollen warm foot/ankle; bone destruction on X-ray
Diabetic AmyotrophySevere unilateral thigh pain, weakness, quadriceps wasting; L2–L4
  • "Do you have stiffness in your fingers or cannot fully close/open your hands?"
  • "Do you have difficulty getting your palm flat on a table?"
  • "Do any of your fingers catch, snap, or lock when you bend them?"
  • "Do you have pain or tingling in your hands at night?" (Carpal Tunnel)
  • "Do you have pain or stiffness in your shoulder that limits lifting your arm?"
MSK findings: _________________________________________________________________

4H. SKIN

  • "Do you have dry, itchy, or discoloured skin?"
  • "Do you have any non-healing wounds or sores?"
  • "Have you noticed darker velvety skin at the back of your neck or in the armpits?" (Acanthosis nigricans — insulin resistance)
Skin findings: ________________________________________________________________

SECTION 5: GLYCAEMIC CONTROL HISTORY

This section establishes current control, monitoring practice, and hypoglycaemia risk — essential for every DM encounter.
  • "When were you first told you have diabetes? Who made the diagnosis?"
  • "What type of diabetes do you have — Type 1, Type 2, or were you not told?"
  • "What was your most recent HbA1c result? When was it done? Is it improving or worsening?"
  • "Do you check your blood sugar at home with a glucometer? How often?"
  • "What are your typical fasting blood sugar readings in the morning?"
  • "What are your blood sugar readings after meals?"
  • "Do you use a continuous glucose monitor (CGM)? What is your time-in-range?"

Hypoglycaemia Assessment

  • "Have you had episodes of low blood sugar (hypoglycaemia)?"
  • "How often do these episodes happen?"
  • "What are your warning signs — sweating, shaking, heart racing, confusion?"
  • "Have you lost your warning signs for low blood sugar?" (Hypoglycaemia unawareness — HIGH RISK)
  • "Have you ever needed help from another person, or called emergency services?"
ParameterResult / Record
HbA1c Last Result & Date
Fasting BG Range (mmol/L)
Post-meal BG Range (mmol/L)
Hypoglycaemia FrequencyNever / Occasional / Weekly / Daily
Hypoglycaemia UnawarenessYes / No
Severe Hypoglycaemia (needed help)Yes / No — Date: _________
DKA / HHS Hospital AdmissionsNumber: ___ Last date: _________
Self-Monitoring PracticeYes / No — Frequency: ___________
CGM UseYes / No — Device: _______________

SECTION 6: PAST MEDICAL HISTORY (PMH)

Ask systematically — these comorbidities are both DM complications AND DM accelerators.
ConditionStatus / Details
HypertensionYes / No — Since: ___ Treated: Yes / No
Dyslipidaemia (High Cholesterol / Triglycerides)Yes / No
Coronary Artery Disease / Angina / MIYes / No — Date: _______
Congestive Heart FailureYes / No — NYHA Class: ___
Stroke or TIAYes / No — Date: _______ Side: L / R
Peripheral Arterial DiseaseYes / No — ABI known: ___
Diabetic RetinopathyYes / No — Grade: NPDR / PDR / Maculopathy
Diabetic Nephropathy / CKDYes / No — eGFR: ___ ACR: ___ Stage: ___
Diabetic Neuropathy (peripheral / autonomic)Yes / No — Type: ______________
Diabetic Foot Ulcer / AmputationYes / No — Level: ________________
Charcot ArthropathyYes / No
Non-alcoholic Fatty Liver Disease (NAFLD/NASH)Yes / No
Sleep ApnoeaYes / No — On CPAP: Yes / No
Polycystic Ovary Syndrome (PCOS)Yes / No (women)
Gestational DiabetesYes / No (women) — Year: ___
Pancreatitis or Pancreatic DiseaseYes / No
Thyroid DiseaseYes / No — Type: ________________
Other Autoimmune Conditions (T1DM)Coeliac / Adrenal insufficiency / Vitiligo / Other
Previous DKA / HHS EpisodesYes / No — Dates / Number: __________
Previous Surgeries
Psychiatric ConditionsDepression / Anxiety / Eating disorder

SECTION 7: DRUG HISTORY & ALLERGIES

For each drug: Name → Dose → Frequency → Route → Compliance → Duration.

7A. Diabetes Medications

Drug ClassDetails
MetforminDose: ___ Freq: ___ Compliance: Good / Poor
Sulfonylurea (gliclazide, glibenclamide, glipizide)Dose: ___ Freq: ___ Compliance: Good / Poor
SGLT2 Inhibitor (empagliflozin, dapagliflozin, canagliflozin)Dose: ___ Freq: ___ Compliance: Good / Poor
GLP-1 Receptor Agonist (semaglutide, liraglutide, dulaglutide)Dose: ___ Freq: ___ Route: SC / Oral
DPP-4 Inhibitor (sitagliptin, linagliptin, saxagliptin)Dose: ___ Freq: ___ Compliance: Good / Poor
Thiazolidinedione (pioglitazone)Dose: ___ Freq: ___
Insulin — Basal (glargine / detemir / degludec)Dose: ___ Timing: ___ Injection site: ___
Insulin — Rapid-Acting (aspart / lispro / glulisine)Dose: ___ Timing: ___ Technique: ___
Insulin — PremixedType: ___ Dose: ___ Timing: ___
Insulin Pump (CSII)Yes / No — Basal rate: ___ Bolus: ___
  • "Do you take your diabetes medications every day? Do you ever miss doses?"
  • "For insulin: Do you rotate injection sites? Are there any lumpy areas?" (Lipohypertrophy)

7B. Other Medications (Comorbidities)

DrugName / Dose / Frequency
ACE Inhibitor / ARB (renoprotective)
Statin (atorvastatin, rosuvastatin)
Aspirin or Antiplatelet
Antihypertensive (amlodipine, bisoprolol, doxazosin)
Diuretic (furosemide, spironolactone, HCTZ)

7C. Drugs That WORSEN Glycaemic Control

Always check for these — they are a common and frequently overlooked cause of poor glycaemic control.
DrugStatus
Corticosteroids (prednisolone, dexamethasone)Currently taking: Yes / No
Thiazide Diuretics (hydrochlorothiazide, indapamide)Currently taking: Yes / No
Atypical Antipsychotics (olanzapine, clozapine)Currently taking: Yes / No
Beta-Blockers (propranolol, atenolol)Currently taking: Yes / No — masks hypoglycaemia symptoms
Calcineurin Inhibitors (tacrolimus, cyclosporin)Currently taking: Yes / No
Protease Inhibitors (HIV treatment)Currently taking: Yes / No
Niacin / Nicotinic acidCurrently taking: Yes / No
Herbal / Traditional MedicinesDetails: __________________________

7D. Allergies

Drug NameReaction (e.g. rash, anaphylaxis, GI intolerance)

SECTION 8: FAMILY HISTORY (FH)

A strong family history of T2DM confers 2–4× increased risk. First-degree relatives with T1DM increase risk ~15-fold.
Family ConditionDetails
Diabetes (Type 1 or 2) — first-degree relativesYes / No — Who: Father / Mother / Sibling — Type: ___
HypertensionYes / No — Who: ______________________
Coronary Artery Disease / Early MI (<55 years)Yes / No — Who: ______________________
StrokeYes / No — Who: ______________________
Chronic Kidney DiseaseYes / No — Who: ______________________
ObesityYes / No — Who: ______________________
Thyroid DiseaseYes / No — Who: ______________________
MODY (DM in 3 generations, young, non-obese, no antibodies)Yes / No — Suggest genetic testing if suspected
Autoimmune ConditionsYes / No — Type: ____________________

SECTION 9: SOCIAL HISTORY (SH)

9A. Smoking

  • "Do you smoke or have you ever smoked?"
  • "How many cigarettes per day? For how many years?"
  • Pack-years = (cigarettes/day ÷ 20) × years smoked
  • "If stopped — when did you stop?"
ParameterDetails
Smoking StatusNever / Current / Ex-smoker
Cigarettes/day
Duration (years)
Pack-years
Year stopped (if ex)
Smoking DOUBLES cardiovascular risk in DM. It also impairs wound healing, worsens neuropathy, and accelerates nephropathy. Smoking cessation is a core DM management goal.

9B. Alcohol

  • "Do you drink alcohol? What type? How much per week?"
  • "Do you ever drink on an empty stomach?"
Alcohol can mask hypoglycaemia symptoms AND cause delayed hypoglycaemia up to 24 hours after drinking — especially on insulin or sulfonylurea. Educate all patients.
ParameterDetails
Alcohol StatusNever / Social / Regular / Dependent
Units per week
Type (beer, spirits, wine)
Binge drinking (>6 units/session)Yes / No

9C. Diet

  • "What do you usually eat in a day from morning to night?" (24-hour dietary recall)
  • "Do you eat regular meals, or do you skip meals?"
  • "How much rice, bread, sugar, or sweet drinks do you consume daily?"
  • "Are you following a special diabetic diet?"
  • "Do you count carbohydrates or follow a meal plan?"
ParameterDetails
Meal RegularityRegular / Irregular / Skips meals
Carbohydrate IntakeHigh / Moderate / Low / Unknown
Sweet Drinks (soda, juice, energy drinks)Frequency: ___________________
Diabetic Diet AdherenceYes / No / Partial

9D. Physical Activity

  • "How active are you on a daily basis?"
  • "Do you do any structured exercise? What type, how often, and for how long?"
Target: 150 min/week moderate aerobic exercise + resistance training 2–3×/week. Exercise reduces HbA1c by ~0.6% independently.
ParameterDetails
Activity LevelSedentary / Lightly active / Moderately active / Very active
Exercise Type
Exercise Frequency / Duration

9E. Socioeconomic Status & Adherence Capacity

  • "Do you have any difficulty affording your medications or test strips?"
  • "Who cooks your meals at home?"
  • "Do you live alone or with family?"
  • "Do you understand how to use your glucometer and insulin device?"
ParameterDetails
Lives Alone / With Family
Medication AffordabilityNo difficulty / Moderate / Significant difficulty
Health LiteracyGood / Fair / Poor
Occupational Risk for HypoglycaemiaDriving / Machinery / Heights: Yes / No

SECTION 10: DIABETES CLASSIFICATION — CLINICIAN ASSESSMENT

TypeKey Features
Type 1 DMUsually <30 yrs, lean, acute onset, prone to DKA, autoimmune markers (anti-GAD, anti-islet, anti-IA2, anti-ZnT8), C-peptide low/undetectable, requires insulin from outset
Type 2 DMUsually >35 yrs, overweight/obese, insidious onset, strong family history, associated with metabolic syndrome, C-peptide elevated
MODYYoung, non-obese, autosomal dominant FH over 3 generations, no autoantibodies — refer for genetic testing (GCK, HNF1A mutations)
Secondary DMPancreatitis, pancreatectomy, haemochromatosis, Cushing's syndrome, acromegaly, drug-induced — underlying cause drives management
Gestational DMDiagnosed during pregnancy, resolves post-partum — but 50% develop T2DM within 10 years; screen with OGTT
LADAAge >30, initially resembles T2DM, anti-GAD positive, progressive insulin deficiency — often misclassified as T2DM
Clinical DM Classification: _____________________________________________________

SECTION 11: PHYSICAL EXAMINATION — GUIDE & FINDINGS

11A. General Assessment

ParameterFinding
Height (cm) / Weight (kg) / BMI___ / ___ / ___ (Overweight: >25; Obese: >30)
Waist Circumference (cm)___ (At risk: women >80 cm; men >90 cm Asian / >102 cm Western)
General AppearanceWell / Unwell / Ill — Cushingoid features: Yes / No
Hydration StatusNormal / Dehydrated — Skin turgor / dry mucous membranes
Acanthosis NigricansPresent / Absent — Site: posterior neck / axillae / groin

11B. Vital Signs

ParameterFinding
Blood Pressure (Right arm)/ mmHg — Target <130/80 in DM
Blood Pressure (Left arm)/ mmHg
Orthostatic BPSupine: / | Standing 1 min: / | Standing 3 min: / — Drop ≥20 mmHg systolic = autonomic neuropathy
Heart Rate___ bpm — Regular / Irregular — Fixed resting tachycardia = autonomic neuropathy
Respiratory Rate___ /min — Kussmaul breathing (deep sighing) = DKA
Temperature___ °C — Fever suggests infection (foot cellulitis / osteomyelitis)
SpO2___ %
Random Capillary Blood Glucose___ mmol/L

11C. Eyes, ENT, Oral Cavity

ExaminationFinding
Visual Acuity (Snellen)Right: ___ Left: ___
Rubeosis IridisPresent / Absent (neovascularisation of iris = advanced retinopathy)
FundoscopyMicroaneurysms / Haemorrhages / Cotton-wool spots / Hard exudates / Neovascularisation / Normal
CN III PalsyPresent / Absent (painless, pupil-sparing = diabetic mononeuropathy)
Oral CandidiasisPresent / Absent — White plaques on mucosa
Periodontal DiseasePresent / Absent
ThyroidNormal / Goitre / Nodule

11D. Cardiovascular

ExaminationFinding
Carotid BruitsRight: Present / Absent | Left: Present / Absent
Apex Beat
Heart SoundsS1+S2+___ (S3 = Heart Failure; S4 = Diabetic cardiomyopathy)
Pedal OedemaPresent / Absent — Grade: ___ Bilateral / Unilateral
Femoral PulseRight: Present / Absent | Left: Present / Absent
Popliteal PulseRight: Present / Absent | Left: Present / Absent
Posterior Tibial PulseRight: Present / Absent | Left: Present / Absent
Dorsalis Pedis PulseRight: Present / Absent | Left: Present / Absent
Ankle-Brachial Index (ABI)Right: ___ Left: ___ (Normal ≥0.9; PAD <0.9)

11E. Abdomen

ExaminationFinding
Hepatomegaly (NAFLD)Present / Absent — Size: ___ cm below costal margin
Renal Angle TendernessRight: Yes / No | Left: Yes / No
Insulin Injection SitesAbdomen / Flanks / Thighs — Lipohypertrophy: Yes / No — Site: ___
Renal Artery BruitPresent / Absent

11F. Neurological — Peripheral Neuropathy Screening

Diabetic neuropathy is a diagnosis of exclusion — always rule out B12 deficiency, hypothyroidism, uraemia, CIDP, and vasculitic neuropathy.
TestFinding
10g Semmes-Weinstein Monofilament (10 plantar sites per foot)Right: ___/10 normal | Left: ___/10 normal
128-Hz Tuning Fork (hallux → medial malleolus)Right: Normal / Reduced / Absent | Left: Normal / Reduced / Absent
Pin-prick (dorsal foot — small fibre)Right: Normal / Reduced | Left: Normal / Reduced
Temperature Discrimination (cool vs warm)Right: Normal / Impaired | Left: Normal / Impaired
Ankle Jerk ReflexRight: Present / Absent / Diminished | Left: Present / Absent / Diminished
Patellar ReflexRight: Present / Absent | Left: Present / Absent
Proprioception (hallux up/down with eyes closed)Right: Normal / Impaired | Left: Normal / Impaired
Romberg's TestPositive / Negative
Gait AssessmentNormal / Wide-based / Antalgic

11G. Foot Examination — 5-Minute Minimum

ALWAYS remove shoes and socks. Check the feet at EVERY DM visit. Foot disease is the most preventable major complication of DM.
FeatureFinding — Right Foot / Left Foot
Skin IntegrityUlcers: Yes / No — Location: ___ Size: ___ Depth: ___ Wagner grade: ___
Calluses / CornsPresent / Absent — Location: _______________
DeformitiesHallux valgus / Hammertoe / Charcot foot / Normal
Interdigital SpacesMaceration / Tinea pedis / Normal
NailsOnychomycosis / Ingrowing / Normal
Skin Colour / TemperatureWarm / Cool / Discoloured
Callus Over Pressure PointsPresent / Absent
Footwear InspectionAppropriate / Ill-fitting / Absent

11H. Musculoskeletal — Diabetic-Specific Signs

SignHow to PerformPositive Finding
Prayer Sign (Cheiroarthropathy)Both palms pressed together, wrists dorsiflexed, hold 5 secondsGap remains between palmar surfaces — cannot fully oppose
Tabletop SignPalm flat on table, fingers extendedFingers remain partially flexed — visible gap
Dupuytren's ContracturePalpate entire palmar fascia; palpate for nodules, cords; passive extension testPalpable cord + fixed flexion deformity — ring and little fingers
Trigger FingerPalpate A1 pulley at palmar crease; ask patient to close and open fistCatch, snap, or locking during flexion/extension
Tinel's SignTap over carpal tunnel at palmar wrist crease 2–3 timesElectric shock/tingling into thumb, index, middle fingers
Phalen's TestBoth wrists in maximum passive flexion for 60 secondsNumbness/tingling in median nerve distribution within 60 seconds
Durkan's CompressionFirm thumb pressure over carpal tunnel for 30 secondsParaesthesia in median nerve distribution
Shoulder Abduction ROMActive and passive rangeNormal >180°; reduced = frozen shoulder (adhesive capsulitis)
Charcot FootInspect and palpate mid-foot and ankleWarm, swollen, deformed, painless foot — bone destruction on X-ray
Examination FindingResult
Prayer SignPositive / Negative
Tabletop SignPositive / Negative
Dupuytren's ContracturePresent / Absent — Fingers: ___ Flexion deficit: ___ degrees
Trigger FingerPresent / Absent — Fingers affected: ___
Tinel's Sign at wristPositive / Negative — Right / Left
Phalen's TestPositive / Negative — Latency: ___ seconds
Thenar Wasting (advanced CTS)Present / Absent
Shoulder Abduction RangeRight: ___° Left: ___°
Charcot FootPresent / Absent

11I. Skin Examination

Skin FindingResult
Acanthosis NigricansPresent / Absent — Location: _______________
Necrobiosis LipoidicaPresent / Absent (anterior tibiae — strongly associated with T1DM)
Diabetic Dermopathy (shin spots)Present / Absent — most common cutaneous finding; marker of duration
Eruptive XanthomasPresent / Absent (severe hypertriglyceridaemia)
Tinea Pedis / OnychomycosisPresent / Absent
Lipohypertrophy at Injection SitesPresent / Absent — Site: _______________
Lipoatrophy (rare)Present / Absent
VitiligoPresent / Absent (T1DM autoimmune marker)

SECTION 12: INVESTIGATIONS — RESULTS RECORD

ADA Diagnostic Criteria — Any ONE of the following:
  • FPG ≥7.0 mmol/L
  • 2-hr OGTT ≥11.1 mmol/L
  • Random PG ≥11.1 mmol/L + symptoms
  • HbA1c ≥48 mmol/mol (≥6.5%)
Asymptomatic patients require TWO abnormal tests on DIFFERENT days to confirm diagnosis.

12A. Glycaemic

TestResult / Reference Range
Fasting Plasma Glucose (FPG)___ mmol/L (DM: ≥7.0 | Pre-DM: 5.6–6.9 | Normal: <5.6)
2-hour OGTT (75g glucose)___ mmol/L (DM: ≥11.1 | IGT: 7.8–11.0)
HbA1c___ mmol/mol (___ %) (DM: ≥48/≥6.5% | Pre-DM: 39–47/5.7–6.4%)
Random Plasma Glucose + Symptoms___ mmol/L (DM: ≥11.1 with symptoms)
C-Peptide___ pmol/L (T1DM: low/undetectable; T2DM: normal/high)
Fasting Insulin___ mU/L (elevated with normal/high FPG = insulin resistance)
HOMA-IR___ (insulin resistance index)

12B. Autoimmune (Type 1 / LADA Classification)

TestResult
Anti-GAD AntibodiesPositive / Negative / Not done
Islet Cell Antibodies (ICA)Positive / Negative / Not done
Anti-IA2 AntibodiesPositive / Negative / Not done
Anti-ZnT8 AntibodiesPositive / Negative / Not done

12C. Metabolic Panel

TestResult
Full Blood Count (FBC)Hb: ___ WBC: ___ Platelets: ___ (Anaemia affects HbA1c interpretation)
Urea / BUN___ mmol/L
Creatinine___ micromol/L
eGFR (CKD-EPI)___ mL/min/1.73m² (CKD Stage: _____)
Urine Albumin-to-Creatinine Ratio (ACR)___ mg/mmol (Microalbuminuria: 3–30; Macroalbuminuria: >30)
Urine DipstickGlucose: ___ Protein: ___ Ketones: ___ Nitrites: ___ Blood: ___
Total Cholesterol___ mmol/L
LDL Cholesterol___ mmol/L (Target <1.8 mmol/L if high CV risk)
HDL Cholesterol___ mmol/L
Triglycerides___ mmol/L (>5.6 = hypertriglyceridaemia with pancreatitis risk)
Liver Function Tests (ALT, AST, ALP, GGT)ALT: ___ AST: ___ ALP: ___ GGT: ___ (NAFLD monitoring)
TSH / Free T4TSH: ___ FT4: ___ (Annual in T1DM; consider in T2DM)
Uric Acid___ mmol/L (elevated in insulin resistance / metabolic syndrome)
Serum B12___ pmol/L (deficiency from long-term metformin)

12D. Cardiovascular

TestResult
12-Lead ECGNormal / LVH / Q waves (silent MI) / AF / Conduction defect: ___
EchocardiogramEF: ___ Diastolic dysfunction: Yes / No (if clinical HF)
Ankle-Brachial Index (ABI)Right: ___ Left: ___ (PAD <0.9)
Chest X-RayNormal / Cardiomegaly / Pulmonary oedema / Other: ___

12E. Ophthalmology

ScreeningResult
Dilated Fundus Exam / Retinal PhotographyDate: ___ Finding: NPDR / PDR / Maculopathy / Normal
FrequencyAt diagnosis (T2DM) | Within 5 years (T1DM) | Then annually

12F. Coexisting Autoimmune (T1DM Screening)

TestResult
Anti-TPO and Anti-Thyroglobulin AntibodiesPositive / Negative / Not done
Anti-tTG IgA (Coeliac Disease)Positive / Negative / Not done
Adrenal Antibodies (21-hydroxylase) if Addison's suspectedPositive / Negative / Not done

SECTION 13: RISK STRATIFICATION SUMMARY

Risk FactorPatient StatusClinical Implication
Disease Duration (years)>10 years = significantly increased microvascular risk
HbA1c>75 mmol/mol (>9%) = very high risk
Blood PressureUncontrolled BP accelerates nephropathy and retinopathy
DyslipidaemiaDrives macrovascular disease
SmokingDoubles CVD risk; impairs wound healing
ObesityWorsens insulin resistance and CV risk
Existing Organ Damage (retinopathy / nephropathy / neuropathy)Already present = highest risk tier
Hypoglycaemia UnawarenessRelax targets; refer to specialist
PregnancyTight control; target HbA1c <48 mmol/mol pre-conceptionally
Established Cardiovascular DiseaseSGLT2i or GLP-1 RA preferred; high-intensity statin; antiplatelet
Overall Risk Stratification: ____________________________________________________
HbA1c Target for this patient: _________________________________________________

SECTION 14: ACTIVE PROBLEM LIST

#Problem
1.
2.
3.
4.
5.
6.

SECTION 15: MANAGEMENT PLAN FRAMEWORK

15A. Patient Education

  • Disease understanding — what is DM and what causes complications
  • Sick-day rules — never stop insulin when ill
  • Hypoglycaemia recognition and treatment — carry fast-acting glucose (15g rule)
  • Foot care — daily inspection, proper footwear, nail care, when to seek help
  • SMBG technique
  • Medication adherence counselling

15B. Lifestyle Modification

  • Diet: Reduced refined carbohydrates; Mediterranean or DASH diet pattern; caloric restriction if obese
  • Exercise: 150 min/week moderate aerobic activity + resistance training 2–3×/week (reduces HbA1c ~0.6%)
  • Weight loss: 5–10% body weight reduction significantly improves glycaemic control, BP, and lipid profile
  • Smoking cessation — pharmacotherapy (varenicline) if needed
  • Alcohol reduction counselling

15C. Pharmacotherapy — T2DM Step-Up Approach

StepDrugKey Points
1st LineMetforminReduces hepatic glucose output; weight-neutral; renally dosed (reduce if eGFR 30–45; stop if <30)
Add-on (CVD/CKD)SGLT2 Inhibitor (empagliflozin, dapagliflozin)Renal and cardioprotective; reduce HbA1c, BP, weight; risk of genital mycotic infections
Add-on (CVD/Obesity)GLP-1 RA (semaglutide, liraglutide)Weight loss; CV benefit (LEADER trial, SUSTAIN-6); injectable or oral
Add-onDPP-4 Inhibitor (sitagliptin)Weight-neutral; well-tolerated; oral
Add-onSulfonylurea (gliclazide)Inexpensive; hypoglycaemia risk; weight gain
EscalationBasal Insulin (glargine / detemir)When oral agents fail; start 0.1–0.2 U/kg/day
EscalationBasal-Bolus InsulinMost physiological; essential in T1DM from outset
T1DM: Insulin is mandatory from diagnosis. Use basal insulin (glargine/detemir/degludec) + rapid-acting at mealtimes (aspart/lispro/glulisine). Consider SGLT2i or GLP-1 RA as adjuncts in poorly controlled T1DM.

15D. Treating Comorbidities

ComorbidityManagement
HypertensionACE inhibitor or ARB as first choice (renoprotective + anti-proteinuric); target <130/80 with CKD/CVD
DyslipidaemiaHigh-intensity statin for most DM patients with CVD risk; fenofibrate if severe hypertriglyceridaemia
Antiplatelet TherapyLow-dose aspirin for ESTABLISHED CVD; not routine for primary prevention
ObesityGLP-1 RA (semaglutide 2.4 mg); consider bariatric surgery if BMI >35 with inadequate control

15E. Complication-Specific Treatment

ComplicationKey Treatment
Retinopathy (NPDR)Tight glycaemic + BP control; annual ophthalmology follow-up
Retinopathy (PDR)Laser photocoagulation or anti-VEGF (ranibizumab)
Nephropathy (microalbuminuria)ACEi or ARB; SGLT2i reduces CKD progression (CREDENCE, DAPA-CKD trials); protein restriction
Painful NeuropathyDuloxetine (1st line); pregabalin; gabapentin; amitriptyline; topical capsaicin
GastroparesisMetoclopramide; domperidone; small frequent meals; low-fat diet
Erectile DysfunctionPDE5 inhibitors (sildenafil, tadalafil); refer to urology
Foot UlcerOffloading (total contact cast); wound debridement; culture-guided antibiotics; vascular surgery if PAD
Charcot Foot (active)Total contact casting; no weight-bearing; urgent orthopaedic / diabetic foot team referral
Cheiroarthropathy / Trigger FingerPhysiotherapy; corticosteroid injection (less effective in DM); surgical release if severe

15F. Follow-Up Schedule

ParameterFrequency
HbA1cEvery 3 months if poorly controlled; every 6 months if stable
BP, Weight, Waist CircumferenceEvery clinic visit
Urine ACR + eGFRAnnually
Fasting Lipid ProfileAnnually
Dilated FundoscopyAnnually after initial screen
Comprehensive Foot ExamAnnually; every visit if high-risk foot
Thyroid Function (TSH)Annually (T1DM); as clinically indicated (T2DM)
B12 Level (on metformin)Every 2 years; annually if low intake or symptoms
Dental ReviewEvery 6–12 months (periodontal disease worsens glycaemic control)
Influenza VaccineAnnually
Pneumococcal VaccineAs per local guidelines

SECTION 16: BEDSIDE QUICK-REFERENCE CHECKLIST

History Checklist

  • Biodata complete (name, age, sex, occupation, address, informant)
  • Chief complaint in patient's own words with duration
  • SOCRATES applied to each complaint
  • Polyuria, polydipsia, polyphagia, weight loss asked
  • Blurred vision, recurrent infections, poor wound healing asked
  • DKA symptoms (nausea/vomiting/fruity breath) screened
  • HHS symptoms (confusion/extreme thirst/very high BG) screened
  • Hypoglycaemia episodes and unawareness assessed
  • Eyes complications screened (retinopathy, laser treatment)
  • Kidney complications screened (foamy urine, oedema, eGFR)
  • Peripheral neuropathy screened (numbness, burning, cotton-wool sensation)
  • Autonomic neuropathy screened (postural dizziness, gastroparesis, ED, neurogenic bladder)
  • Cardiovascular history (chest pain, dyspnoea, claudication, palpitations)
  • Foot history (ulcers, amputation, footwear)
  • MSK history (stiff fingers, trigger finger, shoulder pain)
  • Glycaemic control history (HbA1c trend, SMBG, hypoglycaemia)
  • Past medical history (HTN, dyslipidaemia, CVD, CKD, thyroid, PCOS)
  • All diabetes medications recorded with dose, frequency, compliance
  • Drugs that worsen glucose checked (steroids, antipsychotics, thiazides, beta-blockers)
  • Allergies recorded
  • Family history (DM, CVD, CKD, obesity, MODY)
  • Smoking status and pack-years calculated
  • Alcohol history with hypoglycaemia education noted
  • Diet (24-hour recall), exercise, adherence capacity assessed

Examination Checklist

  • Height, weight, BMI, waist circumference recorded
  • Blood pressure both arms; orthostatic BP measured
  • Capillary blood glucose measured
  • Fundoscopy attempted or referral arranged
  • Oral cavity (Candidiasis) and thyroid examined
  • All peripheral pulses palpated (femoral, popliteal, posterior tibial, dorsalis pedis)
  • Abdomen: liver size, renal angle, injection sites
  • Neurological: monofilament, tuning fork, pin-prick, ankle jerks, proprioception, Romberg's
  • Shoes and socks removed; feet fully inspected
  • MSK: prayer sign, tabletop, Dupuytren's, trigger finger, Tinel's, Phalen's, shoulder ROM
  • Skin: acanthosis nigricans, necrobiosis lipoidica, dermopathy, xanthomas, vitiligo

Investigations Checklist

  • HbA1c requested / result recorded
  • FPG or random BG with result
  • Urine ACR (nephropathy screening)
  • eGFR / creatinine / urea
  • Fasting lipid profile
  • FBC (rules out anaemia affecting HbA1c)
  • LFTs (NAFLD screening, medication monitoring)
  • TSH
  • B12 (on metformin)
  • ECG
  • Anti-GAD / C-peptide (if type classification unclear)
  • Dilated fundoscopy referral made if not done within past year

SECTION 17: CLINICAL ASSESSMENT & SIGNATURE

FieldEntry
Date / Time of Clerking
Medical Student / Clerk Name
Signature
Supervising Doctor Name
Supervisor Signature
Provisional Diagnosis (Student)
Confirmed Diagnosis (Supervisor)
HbA1c Target Set
Next Review Date

Sources: Goldman-Cecil Medicine (26th ed.) | Harrison's Principles of Internal Medicine (22nd ed.) | Tintinalli's Emergency Medicine (9th ed.) | Firestein & Kelley's Textbook of Rheumatology (11th ed.) | ADA Standards of Medical Care in Diabetes 2024

For Socrates what I need to ask and what patient can tell in t2dm

Here is the complete SOCRATES breakdown for a Type 2 Diabetes Mellitus patient — what YOU ask and what the PATIENT typically tells you for each symptom:

SOCRATES in Type 2 Diabetes Mellitus

What to Ask vs. What the Patient Tells You


THE MAIN COMPLAINTS IN T2DM

T2DM is mostly silent and insidious. The patient often does NOT come with classic symptoms. They may present with a complication, an incidental finding, or vague tiredness. Always go through each symptom deliberately.

1. POLYURIA (Passing Too Much Urine)

SOCRATESWhat YOU AskWhat the T2DM Patient Typically Tells You
S — Site"Where is the problem?""I keep going to the toilet" — no specific site
O — Onset"When did this start? Did it come on suddenly or slowly?""Gradually, over several months... I didn't really notice at first" — insidious onset typical of T2DM
C — Character"How would you describe it — do you pass a lot each time or just small amounts?""I pass a lot of water each time" / "I go many times a day and the amount is large"
R — RadiationNot applicableNot applicable
A — Associated"Does anything come with it — thirst, tiredness, weight changes?""Yes, I am very thirsty all the time" / "I feel tired" / "I have been losing weight"
T — Time Course"Is it getting better, worse, or staying the same?""Getting worse over the past few months" / "It is worse at night, I wake up 2–3 times to urinate"
E — Exacerbating/Relieving"Does anything make it worse or better? Does drinking a lot make it worse?""Drinking sweet drinks or eating sugary food makes it worse" / "Nothing makes it fully go away"
S — Severity"How many times do you urinate in a day? Do you wake up at night?""About 8–10 times during the day, and 2–3 times at night" / "It is disrupting my sleep"
Classical T2DM answer: "Doctor, for the past 3–4 months I have been going to the toilet very frequently, both day and night. I pass a large amount each time. I thought it was because I was drinking too much water, but even when I try to reduce water, I still feel very thirsty."

2. POLYDIPSIA (Excessive Thirst)

SOCRATESWhat YOU AskWhat the T2DM Patient Typically Tells You
S — Site"Is the thirst in your mouth, throat, or all over?""My mouth and throat are always dry, even just after drinking"
O — Onset"When did the thirst start?""Around the same time the urination started — months ago"
C — Character"Is it a dry mouth, or a craving for cold drinks? Does drinking help?""I drink water but the thirst comes back immediately" / "I crave cold water all day"
R — RadiationNot applicableNot applicable
A — Associated"Does it come with dryness of lips or skin?""Yes, my lips are always dry" / "My skin feels dry too"
T — Time Course"Is it constant or does it vary?""It is there all day and all night"
E — Exacerbating/Relieving"What makes it worse?""After eating rice or bread or sweet drinks, the thirst becomes much worse"
S — Severity"How much water do you drink in a day?""I drink more than 4–5 litres a day" / "I keep a bottle by my bed at night"
Classical T2DM answer: "I am always thirsty, doctor. I drink water constantly but it does not help for long. My mouth feels dry even after drinking. At night I keep a bottle of water next to my bed."

3. POLYPHAGIA (Excessive Hunger)

SOCRATESWhat YOU AskWhat the T2DM Patient Typically Tells You
S — Site"Is it hunger in the stomach, or a general craving?""I feel an emptiness in my stomach even after eating"
O — Onset"When did you start feeling hungry more than usual?""For the past few months, around the same time as the other symptoms"
C — Character"Is it a gnawing hunger or a craving for sweet foods?""I crave sweet things, especially after meals" / "I feel hungry again very quickly after eating" / (Note: in many T2DM patients this is LESS prominent than in T1DM)
R — RadiationNot applicableNot applicable
A — Associated"Despite eating more, have you lost or gained weight?"In T2DM: "I have gained weight over the years" OR "I have been losing weight recently despite eating a lot" (late/uncontrolled T2DM)
T — Time Course"Is the hunger constant or does it come and go?""It comes soon after every meal — I eat but feel hungry again within 1–2 hours"
E — Exacerbating/Relieving"Does eating sweets help temporarily?""Eating sweet things gives brief relief but then the hunger comes back"
S — Severity"Is this affecting how much you eat?""I eat much more than before but my energy is still low"
Note to student: Many T2DM patients have DECREASED rather than increased appetite. Polyphagia is more dramatic in T1DM. In T2DM, some patients say "I don't eat more than before but I still gained weight" or "I actually eat less now but feel no better."

4. WEIGHT LOSS (or Weight Gain)

SOCRATESWhat YOU AskWhat the T2DM Patient Typically Tells You
S — Site"Where have you noticed the weight loss — face, arms, whole body?""My clothes are looser around the waist and abdomen" / "My face looks thinner"
O — Onset"When did you start losing/gaining weight? Over how long?""I have been gradually losing weight over the past 3–6 months without trying"
C — Character"Is it deliberate weight loss (dieting/exercise) or unintentional?""I have not changed my diet or exercise — the weight is coming off on its own" (unintentional = always significant)
R — RadiationNot applicableNot applicable
A — Associated"Does the weight loss come with fatigue, thirst, frequent urination?""Yes — all of those together"
T — Time Course"Is the loss accelerating or steady?""It started slowly but has been getting faster over the last few months"
E — Exacerbating/Relieving"Does eating more help?""I try to eat more but still losing weight"
S — Severity"How much weight have you lost? How do you know?""I lost about 5–8 kg in 3 months" / "My trousers are very loose now"
Key teaching point: In T2DM, many patients are overweight or obese — so weight loss is often a late sign of decompensation or very poor control. Early T2DM patients often report weight gain instead. Always clarify direction.
"Doctor, I have lost about 6 kg in the past 3 months without any dieting. I am eating the same food but my clothes are very loose. This scared me."

5. FATIGUE AND WEAKNESS

SOCRATESWhat YOU AskWhat the T2DM Patient Typically Tells You
S — Site"Is the weakness in a specific part — arms, legs, or your whole body?""My whole body feels tired" / "My legs feel heavy and weak, especially in the afternoons"
O — Onset"When did the tiredness start?""Gradually, for many months — I thought it was just getting older"
C — Character"Is it a physical tiredness, mental tiredness, or both? Is it there in the morning or only after activity?""Even when I wake up in the morning I already feel tired" / "I feel exhausted without doing anything heavy" (rest fatigue = metabolic, not exertional)
R — RadiationNot applicableNot applicable
A — Associated"Does it come with blurred vision, dizziness, poor concentration?""Yes, I also have trouble concentrating at work" / "I feel foggy in my head"
T — Time Course"Is it worse at certain times of day?""Worse in the afternoon, especially after eating" (post-meal hyperglycaemia causes energy crash)
E — Exacerbating/Relieving"Does rest help? Does eating help?""Rest helps a little but not fully" / "Eating does not help the tiredness"
S — Severity"Is it affecting your ability to work, do housework, or care for family?""I used to be very active but now I cannot finish simple chores" / "I fall asleep during the day"
"I have been feeling very tired for a long time, doctor. Even in the morning when I wake up, I have no energy. I thought it was because of my age or stress at work, but it has been going on for months."

6. BLURRED VISION

SOCRATESWhat YOU AskWhat the T2DM Patient Typically Tells You
S — Site"Is it one eye or both eyes?""Both eyes" — (bilateral = lens osmotic swelling from hyperglycaemia — early/reversible) OR "One eye suddenly" (retinopathy / vitreous haemorrhage — emergency)
O — Onset"When did the blurring start? Sudden or gradual?""Gradual, over a few months" (lens swelling) OR "Sudden today" (vitreous haemorrhage — emergency)
C — Character"Is it a constant blur, or does it fluctuate? Are there dark spots, floating shapes, or flashing lights?""It comes and goes, worse when my sugar is high" / "I can see dark floaters" / "There was a curtain coming across my vision" (retinal detachment — emergency)
R — RadiationNot applicableNot applicable
A — Associated"Does it come with eye pain, headache, or redness?"Usually NO pain in diabetic retinopathy — pain suggests glaucoma
T — Time Course"Is it constant or variable?""It was intermittent at first, now it is more constant"
E — Exacerbating/Relieving"Does it get worse when your blood sugar is high?""Yes, when my sugar is well controlled the blurring improves" (confirms osmotic lens swelling)
S — Severity"Can you read, drive, recognise faces?""I now need to hold things further away to read" / "I cannot see fine details anymore"
Red flags to listen for: Sudden painless loss of vision, floaters, flashing lights, shadow/curtain — these are retinal emergencies. Refer SAME DAY.
"Doctor, my vision has been blurry for about 4 months now, in both eyes. It comes and goes. When I checked my sugar and it was high, the blurring was worse. When my sugar came down, it improved a little."

7. RECURRENT INFECTIONS

SOCRATESWhat YOU AskWhat the T2DM Patient Typically Tells You
S — Site"Where are the infections — skin, urine, genitals, feet, mouth?""I keep getting itching around my private parts" (genital Candidiasis) / "I get skin boils frequently" / "I have recurring urine infections"
O — Onset"How long has this been happening?""For the past year, I keep getting these infections one after the other"
C — Character"What kind of infection — fungal, bacterial? Is there discharge, itching, pus?""White discharge and intense itching in the genital area" (Candida) / "Painful pus-filled boils on the skin" (Staph) / "Burning urine with frequency" (UTI)
R — Radiation"Do the skin infections spread?""The boils keep appearing in different places — armpits, groin, back"
A — Associated"Do you also have slow healing of wounds or cuts?""Yes, even a small cut takes weeks to heal"
T — Time Course"Do they keep coming back after treatment?""They improve with treatment but come back within weeks" (recurrent = classic DM pattern)
E — Exacerbating/Relieving"Does treatment help?""Antifungal creams help temporarily but it keeps coming back"
S — Severity"How many times in the past year?""At least 3–4 episodes of genital itching in the past year"
"Doctor, I keep getting itching and white discharge around my private parts. I treat it and it goes away, but then it comes back. Also my skin gets boils sometimes, and any cut I get takes a very long time to heal."

8. FOOT SYMPTOMS (Neuropathy / Peripheral Vascular)

SOCRATESWhat YOU AskWhat the T2DM Patient Typically Tells You
S — Site"Where is the numbness or pain — toes, soles, whole foot, up to the ankle?""It starts in my toes and the soles of my feet" (stocking distribution — distal peripheral neuropathy)
O — Onset"When did you first notice it? Sudden or gradual?""Gradually over years — I barely noticed it at first"
C — Character"Is it numbness, tingling, burning, electric shocks, or pain?""Burning and tingling at night" / "Like ants crawling on my feet" / "Like standing on hot sand" / "I cannot feel the ground properly — like walking on cotton wool"
R — Radiation"Does it go up above the ankle, to the knees or higher?""It is mainly in both feet and lower legs symmetrically"
A — Associated"Are there any sores or ulcers on the foot you didn't feel forming?""Yes, I had a sore on my heel for weeks before I noticed — I felt nothing" (loss of protective sensation — HIGH RISK)
T — Time Course"Is it worse at a particular time of day?""Much worse at night — it keeps me awake" (nocturnal neuropathic pain is classic)
E — Exacerbating/Relieving"Does anything make it better or worse?""Worse with the bedsheet touching my feet at night (allodynia)" / "Walking around a little helps temporarily"
S — Severity"Does it affect your sleep or ability to walk?""I cannot sleep because of the burning at night" / "I am afraid to walk because I cannot feel the ground"
"Doctor, for the past two years my feet have been burning and tingling, especially at night. It feels like ants walking on my soles. The bedsheet touching my feet is painful. But during the day I sometimes cannot feel anything in my toes — I stepped on a stone last month and did not feel it until I saw blood."

9. CHEST PAIN / PALPITATIONS (Silent / Atypical CVD)

SOCRATESWhat YOU AskWhat the T2DM Patient Typically Tells You
S — Site"Where in the chest? Central, left, right? Does it go anywhere?""A tightness in the middle of my chest" / OR "No chest pain at all" — T2DM patients often have SILENT MI due to autonomic neuropathy
O — Onset"When does it come on — at rest or on exertion?""When I walk up stairs or hurry" (exertional = angina) / "Even at rest sometimes"
C — Character"Is it sharp, burning, pressure, squeezing, or just a tightness?""A heaviness or pressure, not sharp" (typical angina) / "Sometimes just unusual tiredness when I walk — no pain" (atypical — common in DM)
R — Radiation"Does it spread to the arm, jaw, neck, or back?""It goes to my left arm and jaw sometimes" / OR "Just in the centre with no radiation"
A — Associated"Does it come with sweating, nausea, or shortness of breath?""I sweat and feel short of breath when this heaviness comes"
T — Time Course"How long does each episode last?""About 5–10 minutes and goes away with rest" (stable angina)
E — Exacerbating/Relieving"Does rest make it go away?""Yes, it stops when I rest" (angina) / "It does not go away — I felt unwell for hours" (ACS)
S — Severity"Does it limit your daily activity?""I avoid walking far because of this tightness"
Key teaching point: Up to 40% of MIs in T2DM are silent — the patient may describe only unusual fatigue, shortness of breath, nausea, or jaw discomfort — or nothing at all. An ECG showing old Q waves may be the first clue.

10. DIZZINESS ON STANDING (Autonomic Neuropathy)

SOCRATESWhat YOU AskWhat the T2DM Patient Typically Tells You
S — Site"Is it a spinning feeling (vertigo) or a feeling of faintness?""I feel faint and lightheaded, like I will fall — not spinning" (presyncope = postural hypotension, not vertigo)
O — Onset"When exactly does it happen?""Only when I stand up quickly from sitting or lying down"
C — Character"Does the world spin, or do you go dark?""My vision goes dark for a few seconds when I stand up, then it clears" (orthostatic hypotension)
R — RadiationNot applicableNot applicable
A — Associated"Have you fallen because of this?""Yes, I fell last month when I got up from bed quickly"
T — Time Course"How long does the dizziness last?""A few seconds, then it passes once I hold onto something"
E — Exacerbating/Relieving"Does it happen more after meals?""Yes, it is worse after eating a big meal" (postprandial hypotension — autonomic neuropathy)
S — Severity"Is it affecting your confidence in moving around?""I am afraid to stand up quickly now — I hold the wall every time"

QUICK SUMMARY TABLE — What T2DM Patients Typically Say

SymptomClassic T2DM Patient Response
Polyuria"I go to the toilet 8–10 times a day and 2–3 times at night, passing large amounts"
Polydipsia"My mouth is always dry, I drink 4–5 litres a day but still thirsty"
Polyphagia"I feel hungry soon after eating" — OR — "My appetite is actually normal but I am still losing weight"
Weight"I lost 5–8 kg over 3 months without dieting" — OR early T2DM: "I have been gaining weight for years"
Fatigue"I am tired even in the morning without doing anything"
Blurred vision"Blurring in both eyes, worse when sugar is high, better when controlled"
Infections"Genital itching that keeps coming back" / "Recurrent boils" / "Slow healing cuts"
Foot neuropathy"Burning, tingling, at night like ants walking on my feet" / "I can't feel the ground properly"
CVD"Tightness in chest on walking" — OR — nothing at all (silent MI)
Postural dizziness"I go dark when I stand up quickly"
Gastroparesis"I feel full after 2–3 spoonfuls of food" / "I vomit food I ate hours ago"
Erectile dysfunction"I have difficulty achieving or maintaining an erection" (earliest autonomic symptom in men)

Key Clinical Insight from Goldman-Cecil & Harrison's: Most T2DM patients at diagnosis are completely asymptomatic — the disease was found on routine blood testing or during investigation of a complication. When they DO have symptoms, they are typically mild, insidious, and have been present for months to years before the patient sought help. The most common statement from a newly diagnosed T2DM patient is:
"Doctor, I had no problems. My doctor sent me for a blood test and they just told me my sugar is high."
This is a shared conversation. Sign in to Orris to start your own chat.