Make a note on stroke, medicine notes, 20 mark question. I want detailed notes. Prepare a notes for this stroke topic.
mkdir -p /home/daytona/workspace/stroke-notes && ls /home/daytona/workspace/
~/stroke-notes/stroke_notes.js
const {
Document, Packer, Paragraph, TextRun, Table, TableRow, TableCell,
HeadingLevel, AlignmentType, BorderStyle, WidthType, ShadingType,
VerticalAlign, PageNumber, Header, Footer, TabStopType, TabStopPosition
} = require('docx');
const fs = require('fs');
function h1(text) {
return new Paragraph({
text,
heading: HeadingLevel.HEADING_1,
spacing: { before: 400, after: 200 },
});
}
function h2(text) {
return new Paragraph({
text,
heading: HeadingLevel.HEADING_2,
spacing: { before: 300, after: 150 },
});
}
function h3(text) {
return new Paragraph({
text,
heading: HeadingLevel.HEADING_3,
spacing: { before: 200, after: 100 },
});
}
function para(text) {
return new Paragraph({
children: [new TextRun({ text, size: 22, font: 'Calibri' })],
spacing: { after: 100 },
});
}
function bullet(text, level = 0) {
return new Paragraph({
children: [new TextRun({ text, size: 22, font: 'Calibri' })],
bullet: { level },
spacing: { after: 60 },
});
}
function boldPara(label, text) {
return new Paragraph({
children: [
new TextRun({ text: label, bold: true, size: 22, font: 'Calibri' }),
new TextRun({ text: ' ' + text, size: 22, font: 'Calibri' }),
],
spacing: { after: 80 },
});
}
function tableRow(cells, header = false) {
return new TableRow({
children: cells.map(c =>
new TableCell({
children: [new Paragraph({
children: [new TextRun({ text: c, bold: header, size: 20, font: 'Calibri' })],
})],
shading: header ? { fill: '1F4E79', type: ShadingType.CLEAR, color: 'FFFFFF' } : undefined,
margins: { top: 80, bottom: 80, left: 120, right: 120 },
})
),
});
}
const doc = new Document({
numbering: {
config: [{
reference: 'bullet-numbering',
levels: [
{ level: 0, format: 'bullet', text: '\u2022', alignment: AlignmentType.LEFT,
style: { paragraph: { indent: { left: 360, hanging: 360 } } } },
{ level: 1, format: 'bullet', text: '\u25E6', alignment: AlignmentType.LEFT,
style: { paragraph: { indent: { left: 720, hanging: 360 } } } },
],
}],
},
styles: {
paragraphStyles: [
{
id: 'Heading1',
name: 'Heading 1',
run: { bold: true, size: 32, color: '1F4E79', font: 'Calibri' },
paragraph: { spacing: { before: 400, after: 200 } },
},
{
id: 'Heading2',
name: 'Heading 2',
run: { bold: true, size: 26, color: '2E74B5', font: 'Calibri' },
paragraph: { spacing: { before: 300, after: 150 } },
},
{
id: 'Heading3',
name: 'Heading 3',
run: { bold: true, size: 24, color: '2F5496', font: 'Calibri' },
paragraph: { spacing: { before: 200, after: 100 } },
},
],
},
sections: [{
properties: {
page: {
margin: { top: 1080, bottom: 1080, left: 1080, right: 1080 },
},
},
headers: {
default: new Header({
children: [new Paragraph({
children: [
new TextRun({ text: 'STROKE β Medicine Notes (20-Mark Question)', bold: true, size: 20, color: '1F4E79', font: 'Calibri' }),
],
alignment: AlignmentType.CENTER,
})],
}),
},
footers: {
default: new Footer({
children: [new Paragraph({
children: [
new TextRun({ text: 'Source: Harrison\'s Principles of Internal Medicine 22E | Goldman-Cecil Medicine', size: 18, color: '888888', font: 'Calibri' }),
],
alignment: AlignmentType.CENTER,
})],
}),
},
children: [
// ββ TITLE ββββββββββββββββββββββββββββββββββββββββββββββ
new Paragraph({
children: [new TextRun({ text: 'STROKE', bold: true, size: 48, color: '1F4E79', font: 'Calibri' })],
alignment: AlignmentType.CENTER,
spacing: { before: 200, after: 100 },
}),
new Paragraph({
children: [new TextRun({ text: 'Comprehensive Medicine Notes β 20-Mark Question', size: 26, color: '2E74B5', font: 'Calibri' })],
alignment: AlignmentType.CENTER,
spacing: { after: 400 },
}),
// ββ 1. DEFINITION βββββββββββββββββββββββββββββββββββββ
h1('1. DEFINITION'),
para('A stroke (cerebrovascular accident, CVA) is the sudden onset of a focal neurological deficit due to either ischaemia (87%) or haemorrhage (13%) involving a region of brain supplied by a specific artery. A transient ischaemic attack (TIA) is a brief episode of similar symptoms lasting <24 h with no evidence of infarction on imaging.'),
// ββ 2. EPIDEMIOLOGY βββββββββββββββββββββββββββββββββββ
h1('2. EPIDEMIOLOGY'),
bullet('Second leading cause of death worldwide; leading cause of adult disability.'),
bullet('Ischaemic stroke accounts for ~87% of all strokes; intracerebral haemorrhage ~10%; subarachnoid haemorrhage ~3%.'),
bullet('Incidence doubles with each decade after age 55.'),
bullet('Risk of stroke after TIA: ~10β15% in the first 3 months; highest risk in the first 48 h.'),
// ββ 3. RISK FACTORS βββββββββββββββββββββββββββββββββββ
h1('3. RISK FACTORS'),
h2('Modifiable'),
bullet('Hypertension (most important modifiable risk factor)'),
bullet('Atrial fibrillation (most important cardiac cause of embolic stroke)'),
bullet('Diabetes mellitus'),
bullet('Dyslipidaemia (elevated LDL, low HDL)'),
bullet('Tobacco smoking'),
bullet('Obesity & physical inactivity'),
bullet('Oral contraceptive pill / hormone replacement therapy'),
bullet('Excess alcohol'),
bullet('Obstructive sleep apnoea'),
h2('Non-modifiable'),
bullet('Age (doubles per decade after 55)'),
bullet('Male sex'),
bullet('Family history / genetics'),
bullet('Ethnicity (higher in Black and South Asian populations)'),
bullet('Prior stroke or TIA'),
// ββ 4. CLASSIFICATION βββββββββββββββββββββββββββββββββ
h1('4. CLASSIFICATION'),
new Table({
width: { size: 100, type: WidthType.PERCENTAGE },
rows: [
tableRow(['Type', 'Subtype', 'Frequency', 'Key Mechanism'], true),
tableRow(['Ischaemic', 'Large-vessel atherothrombosis', '~20%', 'Atherosclerotic plaque with in-situ thrombosis or artery-to-artery embolism']),
tableRow(['Ischaemic', 'Cardioembolic', '~25%', 'AF, valvular disease, recent MI, cardiomyopathy']),
tableRow(['Ischaemic', 'Small-vessel (lacunar)', '~20%', 'Lipohyalinosis of perforating arteries; hypertension']),
tableRow(['Ischaemic', 'Cryptogenic', '~30%', 'No definite cause found after full work-up']),
tableRow(['Ischaemic', 'Other determined cause', '~5%', 'Dissection, hypercoagulability, vasculitis, CADASIL']),
tableRow(['Haemorrhagic', 'Intracerebral haemorrhage (ICH)', '~10%', 'Hypertension, amyloid angiopathy, AVMs']),
tableRow(['Haemorrhagic', 'Subarachnoid haemorrhage (SAH)', '~3%', 'Ruptured aneurysm, AVM']),
],
}),
para(''),
// ββ 5. PATHOPHYSIOLOGY ββββββββββββββββββββββββββββββββ
h1('5. PATHOPHYSIOLOGY'),
h2('A. Ischaemic Stroke β Ischaemic Cascade'),
para('Acute occlusion of an intracranial vessel reduces cerebral blood flow (CBF). The magnitude of reduction depends on collateral supply, occlusion site, and systemic BP.'),
bullet('CBF = 0: brain death within 4β10 minutes'),
bullet('CBF <16β18 mL/100 g/min: neuronal death (infarct core)'),
bullet('CBF 18β20 mL/100 g/min: neuronal dysfunction (ischaemic penumbra) β salvageable with timely reperfusion'),
para('The ischaemic cascade includes:'),
bullet('ATP depletion β failure of NaβΊ/KβΊ-ATPase β cellular depolarisation', 1),
bullet('Glutamate excitotoxicity β NMDA/AMPA receptor activation β CaΒ²βΊ influx', 1),
bullet('Mitochondrial dysfunction β free radical generation β lipid peroxidation', 1),
bullet('Activation of caspases β apoptosis; inducible NOS activation β NO toxicity', 1),
bullet('Inflammatory cytokine release (TNF-Ξ±, IL-1Ξ²) β blood-brain barrier breakdown β cerebral oedema', 1),
h2('B. Haemorrhagic Stroke'),
para('Primary intracerebral haemorrhage (ICH) results from rupture of small penetrating arteries damaged by chronic hypertension (lipohyalinosis). Blood forms a haematoma causing mass effect, raised ICP, and herniation. Secondary ICH can result from haemorrhagic transformation of an ischaemic infarct or from amyloid angiopathy (lobar haematomas in elderly).'),
// ββ 6. STROKE SYNDROMES βββββββββββββββββββββββββββββββ
h1('6. STROKE SYNDROMES (Vascular Territory Deficits)'),
h2('Anterior Circulation (Carotid System)'),
h3('Middle Cerebral Artery (MCA) β Most Common'),
para('Proximal MCA occlusion (complete):'),
bullet('Contralateral hemiplegia + hemianesthesia (face, arm > leg)'),
bullet('Homonymous hemianopia (contralateral)'),
bullet('Gaze deviation toward the side of the lesion (ipsilateral)'),
bullet('Dominant hemisphere β Global aphasia'),
bullet('Non-dominant hemisphere β Anosognosia, constructional apraxia, hemispatial neglect'),
para('Superior division MCA:'),
bullet('Broca\'s (expressive) aphasia + right hemiparesis (arm > face)'),
para('Inferior division MCA:'),
bullet('Wernicke\'s (receptive) aphasia + contralateral superior quadrantanopia'),
h3('Anterior Cerebral Artery (ACA)'),
bullet('Contralateral hemiparesis/sensory loss β leg > arm'),
bullet('Abulia, personality change (frontal lobe involvement)'),
bullet('Urinary incontinence'),
h3('Internal Carotid Artery (ICA) Occlusion'),
bullet('Variable β may be silent if good collaterals via Circle of Willis'),
bullet('Transient monocular blindness (amaurosis fugax) β ophthalmic artery'),
bullet('If complete: MCA + ACA territory infarct β massive hemiplegia'),
h2('Posterior Circulation (Vertebrobasilar System)'),
h3('Posterior Cerebral Artery (PCA)'),
bullet('Contralateral homonymous hemianopia with macular sparing'),
bullet('Thalamic syndrome (sensory loss, thalamic pain)'),
bullet('Dominant: alexia without agraphia (left PCA + splenium)'),
h3('Basilar Artery'),
bullet('Locked-in syndrome (bilateral pontine infarcts): quadriplegia, unable to speak, only vertical eye movements preserved'),
bullet('Coma, cranial nerve palsies, ataxia'),
bullet('Top-of-basilar syndrome: somnolence, visual hallucinations, oculomotor disturbances'),
h3('Vertebral Artery / PICA β Lateral Medullary (Wallenberg) Syndrome'),
bullet('Ipsilateral: facial pain/numbness (CN V), Horner\'s syndrome, ataxia, dysphagia/dysarthria (CN IX, X), nystagmus'),
bullet('Contralateral: loss of pain & temperature sensation (spinothalamic)'),
bullet('Mnemonic: PICA = Ipsilateral Cerebellar & Horner\'s, Contralateral Spinothalamic loss'),
h3('Small-Vessel (Lacunar) Strokes β Classic Syndromes'),
new Table({
width: { size: 100, type: WidthType.PERCENTAGE },
rows: [
tableRow(['Syndrome', 'Deficit', 'Location'], true),
tableRow(['Pure Motor Hemiparesis', 'Face + arm + leg weakness, no sensory loss', 'Posterior limb internal capsule / pons']),
tableRow(['Pure Sensory Stroke', 'Hemisensory loss, no motor deficit', 'Ventral thalamus (VPL)']),
tableRow(['Ataxic Hemiparesis', 'Ipsilateral ataxia + mild contralateral hemiparesis', 'Ventral pons / internal capsule']),
tableRow(['Dysarthria-Clumsy Hand', 'Slurred speech + unilateral hand clumsiness', 'Ventral pons / genu internal capsule']),
tableRow(['Sensorimotor Stroke', 'Combined motor + sensory deficit', 'Posterior limb IC + thalamus']),
],
}),
para(''),
// ββ 7. CLINICAL PRESENTATION ββββββββββββββββββββββββββ
h1('7. CLINICAL PRESENTATION'),
para('The hallmark is SUDDEN onset of focal neurological deficit. Key symptoms:'),
bullet('Sudden weakness or numbness (face, arm, leg β one side)'),
bullet('Sudden speech disturbance (dysarthria, aphasia)'),
bullet('Sudden visual disturbance (monocular/binocular, hemianopia)'),
bullet('Sudden severe headache ("thunderclap") β suggests SAH or ICH'),
bullet('Sudden dizziness, loss of balance, incoordination'),
bullet('Sudden confusion or altered consciousness'),
para('FAST mnemonic: Face drooping, Arm weakness, Speech difficulty, Time to call emergency.'),
para('Features suggesting haemorrhage over ischaemia:'),
bullet('More depressed level of consciousness'),
bullet('Marked hypertension at onset'),
bullet('Headache, vomiting, neck stiffness'),
bullet('Worsening after onset (ischaemia is typically maximal at onset)'),
// ββ 8. INVESTIGATIONS βββββββββββββββββββββββββββββββββ
h1('8. INVESTIGATIONS'),
h2('Immediate (Emergency)'),
bullet('Non-contrast CT brain β FIRST and URGENT; rules out haemorrhage; detects acute ischaemic changes (hypodense area) after 6β24 h'),
bullet('Serum glucose (fingerprick) β exclude hypoglycaemia mimicking stroke'),
bullet('ECG β detect AF, MI'),
bullet('FBC, coagulation (PT/INR/aPTT), electrolytes, renal function'),
bullet('Blood cultures if infective endocarditis suspected'),
h2('Imaging'),
bullet('MRI DWI (diffusion-weighted imaging) β most sensitive for acute ischaemic stroke within minutes; shows restricted diffusion (bright on DWI, dark on ADC map)'),
bullet('CT/MR angiography β identifies large vessel occlusion (LVO) β essential if considering thrombectomy'),
bullet('CT/MR perfusion β identifies penumbra (salvageable tissue) vs. infarct core; guides treatment decisions beyond 4.5 h window'),
bullet('Carotid Doppler USS β screens for extracranial carotid stenosis'),
bullet('Trans-thoracic/trans-oesophageal echocardiogram β detects cardiac sources (thrombus, valvular disease, PFO)'),
bullet('24β72 h ambulatory ECG (Holter) β detects paroxysmal AF'),
h2('Biochemistry / Haematology'),
bullet('Fasting lipids, HbA1c'),
bullet('Thrombophilia screen (if young, cryptogenic): protein C, S, antithrombin III, APS antibodies, Factor V Leiden, MTHFR'),
bullet('ESR/CRP β vasculitis, infective endocarditis'),
bullet('Haemoglobin electrophoresis β sickle cell disease'),
h2('Lumbar Puncture'),
bullet('Rarely required; indicated if SAH suspected clinically but CT brain is normal (xanthochromia in CSF)'),
// ββ 9. DIAGNOSIS & SCORES βββββββββββββββββββββββββββββ
h1('9. DIAGNOSTIC SCORING'),
h2('NIHSS (NIH Stroke Scale)'),
para('11-item neurological examination scale assessing level of consciousness, gaze, visual fields, facial palsy, motor arm/leg, limb ataxia, sensory, language, dysarthria, and extinction/neglect. Scored 0β42. Higher score = more severe deficit. Guides thrombolysis and thrombectomy decisions.'),
h2('ABCDΒ² Score β Risk of Stroke After TIA'),
new Table({
width: { size: 100, type: WidthType.PERCENTAGE },
rows: [
tableRow(['Parameter', 'Score'], true),
tableRow(['Age β₯60 years', '1']),
tableRow(['BP β₯140/90 mmHg at presentation', '1']),
tableRow(['Clinical features: Unilateral weakness', '2']),
tableRow(['Clinical features: Speech disturbance without weakness', '1']),
tableRow(['Duration β₯60 min', '2']),
tableRow(['Duration 10β59 min', '1']),
tableRow(['Diabetes mellitus', '1']),
tableRow(['Total', '0β7']),
],
}),
para(''),
bullet('Score 0β3: Low risk (~1% 2-day stroke risk)'),
bullet('Score 4β5: Moderate risk (~4%)'),
bullet('Score 6β7: High risk (~8%)'),
bullet('Score β₯4 β urgent evaluation and hospital admission recommended'),
// ββ 10. MANAGEMENT ββββββββββββββββββββββββββββββββββββ
h1('10. MANAGEMENT'),
h2('A. Acute Ischaemic Stroke β General Measures'),
bullet('ABCs: Airway, Breathing, Circulation'),
bullet('Treat hypoglycaemia immediately; avoid hyperglycaemia (target glucose 7.8β10 mmol/L)'),
bullet('Blood pressure: Do NOT lower acutely unless BP >220/120 mmHg (or >185/110 if thrombolysis planned); maintain perfusion pressure'),
bullet('Avoid hyperthermia; treat fever aggressively'),
bullet('Aspiration precautions; SALT assessment before oral feeding'),
bullet('DVT prophylaxis: subcutaneous LMWH + pneumatic compression stockings'),
bullet('Early physiotherapy, speech therapy, occupational therapy'),
bullet('Admit to a dedicated Stroke Unit (reduces mortality and dependency by 25β30%)'),
h2('B. IV Thrombolysis β Alteplase (tPA)'),
boldPara('Dose:', 'Alteplase 0.9 mg/kg IV (maximum 90 mg); 10% as bolus, remainder over 60 min.'),
boldPara('Time window:', 'Within 4.5 hours of symptom onset (or last-known-well time). Earlier is better β "time is brain" (~1.9 million neurons/minute lost during ischaemia).'),
h3('Inclusion Criteria'),
bullet('Ischaemic stroke causing measurable neurological deficit'),
bullet('Symptom onset <4.5 h (up to 3 h for older trials; extended to 4.5 h by ECASS-3)'),
bullet('Age β₯18 years'),
h3('Absolute Contraindications to tPA'),
bullet('Intracranial haemorrhage on CT'),
bullet('BP >185/110 mmHg (untreatable)'),
bullet('Recent (<3 months) intracranial surgery, serious head trauma, or prior stroke'),
bullet('Active internal bleeding or bleeding diathesis'),
bullet('Platelet count <100,000/ΞΌL'),
bullet('Anticoagulant use: INR >1.7, aPTT elevated, direct thrombin/Xa inhibitors within 48 h'),
bullet('Blood glucose <50 mg/dL (<2.8 mmol/L)'),
bullet('CT showing >β
of MCA territory hypodensity'),
bullet('Subarachnoid haemorrhage symptoms'),
bullet('Active infective endocarditis'),
para('Note: Tenecteplase (0.25 mg/kg single IV bolus, max 25 mg) is now used in many centres as a simpler alternative with comparable efficacy.'),
h2('C. Endovascular Thrombectomy (EVT/MT)'),
para('Mechanical removal of thrombus from large intracranial vessels using stent retriever or aspiration catheter.'),
boldPara('Indications:', 'Ischaemic stroke due to large vessel occlusion (LVO) of the ICA, M1/M2 MCA, basilar artery.'),
boldPara('Time window:', 'Up to 24 h from symptom onset in selected patients with favourable imaging (evidence from DAWN, DEFUSE-3 trials).'),
boldPara('Evidence:', 'Five landmark RCTs in 2015 (MR CLEAN, ESCAPE, EXTEND-IA, SWIFT PRIME, THRACE) demonstrated superiority over medical therapy alone.'),
bullet('Significant benefit: NNT β 2.6 to prevent dependency (mRS shift)'),
bullet('Can be combined with IV thrombolysis ("bridging therapy")'),
bullet('Requires: NIHSS, CT angiography confirming LVO, low ASPECTS score on CT (ASPECTS β₯6)'),
h2('D. Antithrombotic Treatment'),
boldPara('Aspirin:', '300 mg orally within 24β48 h of ischaemic stroke onset (after haemorrhage excluded and tPA window has passed). Continue aspirin 75β100 mg daily long-term.'),
boldPara('Dual antiplatelet (DAPT):', 'Aspirin + clopidogrel for 21 days after minor ischaemic stroke or high-risk TIA (POINT, CHANCE trials). Then single antiplatelet long-term.'),
boldPara('Anticoagulation:', 'NOT used acutely in most ischaemic strokes. For cardioembolic stroke (AF): start anticoagulation after 2β14 days depending on infarct size. DOACs (rivaroxaban, apixaban, dabigatran) preferred over warfarin for NVAF.'),
h2('E. Blood Pressure Management After Acute Phase'),
bullet('Target <130/80 mmHg long-term for secondary prevention'),
bullet('ACE inhibitors and thiazide diuretics have strongest evidence (PROGRESS trial)'),
bullet('SPRINT trial data: systolic <120 mmHg reduces stroke + MI by 43% vs <140 mmHg'),
h2('F. Haemorrhagic Stroke β Intracerebral Haemorrhage (ICH)'),
bullet('Immediate reversal of anticoagulation: Vitamin K + PCC (prothrombin complex concentrate) if on warfarin; andexanet alfa for anti-Xa agents; idarucizumab for dabigatran'),
bullet('Blood pressure reduction: Target <140 mmHg systolic (INTERACT-2, ATACH-2 trials)'),
bullet('Surgical evacuation: Controversial for supratentorial ICH; evidence of benefit for: cerebellar haematoma >3 cm (with brainstem compression), superficial lobar ICH in young patients with clinical deterioration'),
bullet('ICP management: Head elevation 30Β°, osmotherapy (mannitol), avoid hypotension'),
bullet('No antifibrinolytics routinely; haemostatic therapy with tranexamic acid under investigation'),
// ββ 11. SECONDARY PREVENTION ββββββββββββββββββββββββββ
h1('11. SECONDARY PREVENTION'),
h2('Antiplatelet Therapy'),
bullet('Aspirin 75β100 mg/day: standard for non-cardioembolic ischaemic stroke'),
bullet('Aspirin + dipyridamole (modified-release 200 mg BD): ESPRIT trial β superior to aspirin alone'),
bullet('Clopidogrel 75 mg/day: alternative to aspirin; equivalent efficacy (CAPRIE trial)'),
bullet('DAPT (aspirin + clopidogrel): for minor stroke/high-risk TIA for 21 days, then mono-therapy'),
h2('Anticoagulation β Cardioembolic Stroke (AF)'),
bullet('DOACs first-line: Apixaban, rivaroxaban, dabigatran, edoxaban'),
bullet('Warfarin if DOAC contraindicated (target INR 2.0β3.0)'),
bullet('CHAβDSβ-VASc score guides anticoagulation in AF: treat if score β₯2 (men) or β₯3 (women)'),
h2('Statins'),
bullet('All patients with ischaemic stroke: high-intensity statin (atorvastatin 40β80 mg)'),
bullet('Target LDL <70 mg/dL (1.8 mmol/L); SPARCL trial: atorvastatin 80 mg reduced recurrent stroke by 16%'),
h2('Carotid Endarterectomy (CEA) / Stenting (CAS)'),
bullet('Symptomatic carotid stenosis 70β99%: CEA within 2 weeks (reduces 5-year stroke risk from 26% to 9% β NASCET)'),
bullet('Symptomatic stenosis 50β69%: CEA beneficial in selected patients'),
bullet('Asymptomatic stenosis >60%: CEA or CAS in appropriate surgical candidates'),
bullet('CAS as alternative to CEA in high surgical-risk patients'),
h2('Patent Foramen Ovale (PFO) Closure'),
bullet('In young patients (<60 y) with cryptogenic stroke and PFO: percutaneous closure reduces recurrence (CLOSE, REDUCE, RESPECT trials)'),
h2('Lifestyle Modifications'),
bullet('Stop smoking (reduces stroke risk by 50% within 1 year)'),
bullet('Reduce alcohol to safe limits'),
bullet('Regular aerobic exercise (β₯150 min/week moderate intensity)'),
bullet('Healthy diet (Mediterranean diet)'),
bullet('Weight reduction if obese'),
bullet('Tight glucose control in diabetes (target HbA1c <7%)'),
// ββ 12. TIA βββββββββββββββββββββββββββββββββββββββββββ
h1('12. TRANSIENT ISCHAEMIC ATTACK (TIA)'),
para('TIA = transient episode of neurological dysfunction from focal brain/retinal ischaemia, with symptoms typically resolving within 1 h, with no infarction on imaging.'),
para('If infarction is seen on DWI-MRI, it is classified as stroke regardless of symptom duration.'),
bullet('10β15% risk of stroke within 3 months; risk is highest in first 48 h'),
bullet('ABCDΒ² score stratifies short-term risk (see Section 9)'),
bullet('Urgent evaluation and treatment: brain imaging, ECG, vascular imaging, cardiac monitoring'),
bullet('Immediate aspirin 300 mg; then DAPT for 21 days if ABCDΒ² β₯4'),
bullet('Carotid imaging: urgent carotid duplex/CTA if hemispheric TIA'),
bullet('Hospital admission recommended for high-risk TIA (ABCDΒ² β₯4)'),
// ββ 13. COMPLICATIONS βββββββββββββββββββββββββββββββββ
h1('13. COMPLICATIONS OF STROKE'),
h2('Early (Days)'),
bullet('Cerebral oedema and herniation (massive MCA infarcts) β "malignant MCA syndrome"'),
bullet('Haemorrhagic transformation of ischaemic infarct'),
bullet('Seizures (early: 2β23%; late epilepsy in ~10%)'),
bullet('Aspiration pneumonia (most common cause of early death post-stroke)'),
bullet('DVT/pulmonary embolism'),
bullet('Hypo-/hyperglycaemia; hyponatraemia'),
h2('Late (WeeksβMonths)'),
bullet('Post-stroke depression (~30%)'),
bullet('Vascular dementia / cognitive impairment'),
bullet('Spasticity, contractures, shoulder subluxation'),
bullet('Central post-stroke pain (thalamic pain syndrome)'),
bullet('Pressure ulcers, urinary tract infections'),
// ββ 14. REHABILITATION βββββββββββββββββββββββββββββββββ
h1('14. REHABILITATION'),
bullet('Early mobilisation within 24β48 h (once medically stable) reduces complications'),
bullet('Multidisciplinary stroke unit care: physiotherapy, occupational therapy, speech & language therapy, nursing, psychology'),
bullet('Motor rehabilitation: constraint-induced movement therapy, task-specific training'),
bullet('Dysphagia management: SALT assessment; NGT/PEG if needed'),
bullet('Aphasia: speech therapy; intensive aphasia therapy'),
bullet('Spasticity: baclofen, botulinum toxin injections'),
bullet('Depression: SSRIs (fluoxetine shown to improve motor recovery β FLAME trial)'),
bullet('Goal: maximise independence and quality of life; return to work/community'),
// ββ 15. PROGNOSIS βββββββββββββββββββββββββββββββββββββ
h1('15. PROGNOSIS'),
bullet('~25% die within 1 year of first stroke'),
bullet('~50% survivors have permanent disability'),
bullet('Haemorrhagic stroke has higher short-term mortality (~40β50% at 30 days for ICH)'),
bullet('Best outcomes with: early stroke unit admission, rapid thrombolysis, successful thrombectomy'),
bullet('Lacunar strokes generally have better prognosis than cortical strokes'),
bullet('Modified Rankin Scale (mRS) used to assess functional outcome: 0 = no symptoms, 6 = death'),
// ββ 16. IMPORTANT TRIALS ββββββββββββββββββββββββββββββ
h1('16. KEY CLINICAL TRIALS (Exam-Relevant)'),
new Table({
width: { size: 100, type: WidthType.PERCENTAGE },
rows: [
tableRow(['Trial', 'Topic', 'Key Finding'], true),
tableRow(['NINDS (1995)', 'IV tPA β€3 h', 'tPA improved outcomes at 3 months; βICH risk (6.4% vs 0.6%)']),
tableRow(['ECASS-3 (2008)', 'IV tPA 3β4.5 h', 'Extended window to 4.5 h; benefit maintained']),
tableRow(['MR CLEAN (2015)', 'EVT (thrombectomy)', 'Thrombectomy superior to medical Rx for LVO']),
tableRow(['DAWN/DEFUSE-3', 'EVT 6β24 h window', 'Selected patients benefit up to 24 h with perfusion imaging']),
tableRow(['CAPRIE (1996)', 'Clopidogrel vs aspirin', 'Clopidogrel marginally superior to aspirin (RRR 8.7%)']),
tableRow(['CHANCE/POINT', 'DAPT after TIA/minor stroke', 'Aspirin + clopidogrel 21 days reduces recurrence']),
tableRow(['SPARCL (2006)', 'Atorvastatin 80 mg', 'Reduced recurrent stroke by 16% in prior stroke/TIA']),
tableRow(['NASCET (1991)', 'Carotid endarterectomy', 'CEA in 70β99% symptomatic stenosis: 5-yr stroke risk 9% vs 26%']),
tableRow(['PROGRESS (2001)', 'Perindopril Β± indapamide', '28% relative risk reduction in recurrent stroke']),
tableRow(['INTERACT-2', 'BP in ICH', 'Target SBP <140 mmHg in acute ICH improves functional outcome']),
tableRow(['CLOSE/REDUCE (2017)', 'PFO closure', 'PFO closure reduces recurrence in young cryptogenic stroke']),
],
}),
para(''),
// ββ 17. MIMICS ββββββββββββββββββββββββββββββββββββββββ
h1('17. STROKE MIMICS & DIFFERENTIAL DIAGNOSIS'),
bullet('Hypoglycaemia (most common mimic β always check glucose first)'),
bullet('Todd\'s paralysis (post-ictal focal weakness)'),
bullet('Migraine with aura (hemiplegic migraine)'),
bullet('Brain tumour / abscess (more gradual onset usually)'),
bullet('Hypertensive encephalopathy / PRES'),
bullet('Subdural haematoma'),
bullet('Functional neurological disorder (conversion disorder)'),
bullet('Multiple sclerosis relapse'),
bullet('Wernicke\'s encephalopathy (confusion, ataxia, ophthalmoplegia β not unilateral)'),
// ββ SUMMARY TABLE βββββββββββββββββββββββββββββββββββββ
h1('18. QUICK REVISION SUMMARY'),
new Table({
width: { size: 100, type: WidthType.PERCENTAGE },
rows: [
tableRow(['Domain', 'Key Points'], true),
tableRow(['Definition', 'Sudden focal neurological deficit due to ischaemia or haemorrhage']),
tableRow(['Most common type', 'Ischaemic (87%)']),
tableRow(['#1 Risk factor', 'Hypertension']),
tableRow(['#1 Cardiac cause', 'Atrial fibrillation (cardioembolic stroke)']),
tableRow(['Most common stroke syndrome', 'MCA territory (contralateral hemiplegia, face+arm>leg, aphasia/neglect)']),
tableRow(['Emergency imaging', 'Non-contrast CT brain first']),
tableRow(['Most sensitive imaging', 'MRI DWI (within minutes of onset)']),
tableRow(['IV thrombolysis', 'Alteplase 0.9 mg/kg within 4.5 h; max 90 mg']),
tableRow(['Thrombectomy window', 'Up to 24 h for LVO with penumbral imaging']),
tableRow(['Aspirin timing', '300 mg within 24β48 h (after haemorrhage excluded)']),
tableRow(['AF anticoagulation', 'DOAC; start 2β14 days post-ischaemic stroke']),
tableRow(['Statin target', 'LDL <70 mg/dL; atorvastatin 80 mg']),
tableRow(['Best TIA prophylaxis', 'DAPT (aspirin + clopidogrel) Γ 21 days']),
tableRow(['Haemorrhagic stroke BP', 'Target SBP <140 mmHg acutely']),
tableRow(['Prognosis', '25% die at 1 yr; 50% permanent disability']),
],
}),
para(''),
new Paragraph({
children: [new TextRun({ text: 'Sources: Harrison\'s Principles of Internal Medicine 22E (2025) | Goldman-Cecil Medicine International Edition', italic: true, size: 18, color: '888888', font: 'Calibri' })],
alignment: AlignmentType.CENTER,
spacing: { before: 400 },
}),
],
}],
});
Packer.toBuffer(doc).then(buf => {
fs.writeFileSync('/home/daytona/workspace/stroke-notes/Stroke_Medicine_Notes.docx', buf);
console.log('Done: Stroke_Medicine_Notes.docx created.');
});
cd /home/daytona/workspace/stroke-notes && node stroke_notes.js 2>&1
python3 /home/daytona/skills/docx/scripts/office/validate.py /home/daytona/workspace/stroke-notes/Stroke_Medicine_Notes.docx 2>&1
ls -lh /home/daytona/workspace/stroke-notes/Stroke_Medicine_Notes.docx && python3 -c "import zipfile; z=zipfile.ZipFile('/home/daytona/workspace/stroke-notes/Stroke_Medicine_Notes.docx'); print(z.namelist()[:10]); print('Valid ZIP/DOCX')" 2>&1
Stroke Medicine Notes
Word Document Β· DOCX
| Type | Subtype | Frequency | Mechanism |
|---|---|---|---|
| Ischaemic | Large-vessel atherothrombosis | ~20% | In-situ thrombosis / artery-to-artery embolism |
| Ischaemic | Cardioembolic | ~25% | AF, MI, valvular disease |
| Ischaemic | Small-vessel (lacunar) | ~20% | Lipohyalinosis of perforators; HTN |
| Ischaemic | Cryptogenic | ~30% | No cause found |
| Haemorrhagic | ICH | ~10% | HTN, amyloid angiopathy |
| Haemorrhagic | SAH | ~3% | Ruptured aneurysm |
| Syndrome | Deficit | Location |
|---|---|---|
| Pure Motor Hemiparesis | Face + arm + leg, no sensory | Post. limb IC / pons |
| Pure Sensory Stroke | Hemisensory loss | Ventral thalamus (VPL) |
| Ataxic Hemiparesis | Ipsilateral ataxia + mild contralateral hemiparesis | Pons / IC |
| Dysarthria-Clumsy Hand | Dysarthria + hand clumsiness | Pons / genu IC |
| Parameter | Score |
|---|---|
| Age β₯60 years | 1 |
| BP β₯140/90 mmHg | 1 |
| Clinical: unilateral weakness | 2 |
| Clinical: speech disturbance (no weakness) | 1 |
| Duration β₯60 min | 2 |
| Duration 10β59 min | 1 |
| Diabetes mellitus | 1 |
| Total | 0β7 |
Tenecteplase (0.25 mg/kg bolus, max 25 mg) is increasingly used as simpler alternative.
| Intervention | Drug / Target |
|---|---|
| Antiplatelet | Aspirin 75 mg/day OR clopidogrel 75 mg/day |
| AF anticoagulation | DOAC (apixaban/rivaroxaban/dabigatran); INR 2β3 if warfarin |
| Statin | Atorvastatin 80 mg; target LDL <70 mg/dL (SPARCL) |
| BP | <130/80 mmHg; ACE inhibitor + thiazide (PROGRESS) |
| Carotid CEA | Symptomatic 70β99% stenosis within 2 weeks (NASCET) |
| PFO closure | Young cryptogenic stroke (CLOSE, REDUCE, RESPECT) |
| Trial | Topic | Finding |
|---|---|---|
| NINDS 1995 | tPA β€3 h | Improved outcomes; βICH 6.4% vs 0.6% |
| ECASS-3 2008 | tPA 3β4.5 h | Extended window; benefit maintained |
| MR CLEAN 2015 | Thrombectomy | Superior to medical Rx for LVO |
| DAWN/DEFUSE-3 | EVT 6β24 h | Penumbral imaging guides late window |
| CHANCE/POINT | DAPT Γ 21 d | Reduces recurrence post-TIA/minor stroke |
| SPARCL 2006 | Atorvastatin 80 mg | β recurrent stroke 16% |
| NASCET 1991 | CEA 70β99% | 5-yr risk 9% vs 26% without CEA |
| PROGRESS 2001 | Perindopril Β± indapamide | 28% RRR recurrent stroke |
| INTERACT-2 | BP in ICH | SBP <140 β better functional outcome |