LMS Interaction სამუშაო სივრცე Materials Assignment 3. Assignment 1 Assignment title: Assignment 3. Description: Assignment 3 Writing a Research Paper Introduction 1. Choose the topic out of the below suggested and write a formal Introduction of around 300 words (font – Times New Roman; font size 12). 2. Compose the adequate researchable Title. 3. Your introduction must clearly integrate the following components: Background Information: Establish the broader context of your topic and hook the reader. Brief Review of Sources: Synthesize what existing literature/research says about the topic. Gap in the Research: Identify what is missing, understudied, or unresolved in the current literature. Research Question: State the specific question your paper seeks to answer. Aim/Purpose of the Research: Clearly state the goal of your study and how it addresses the gap. 4. Highlight each component so that they are easily identifiable. 5. Cite all sources using the Chicago Note and Bibliography style. Include both footnotes/endnotes and a separate Bibliography page (the bibliography does not count toward your 300 word limit). Suggested Topics: Obesity and Health. Benefits of Balanced Diet. Risk Factors for Cardiovascular Diseases. Gene Therapy Week: 11 Starting date: 2026-07-27 10:00:00 Completion date: 2026-08-02 18:00:00 default Arial 3 Clear Class LMS Interaction სამუშაო სივრცე Materials Assignment 3. Assignment 1 Assignment title: Assignment 3. Description: Assignment 3 Writing a Research Paper Introduction 1. Choose the topic out of the below suggested and write a formal Introduction of around 300 words (font – Times New Roman; font size 12). 2. Compose the adequate researchable Title. 3. Your introduction must clearly integrate the following components: Background Information: Establish the broader context of your topic and hook the reader. Brief Review of Sources: Synthesize what existing literature/research says about the topic. Gap in the Research: Identify what is missing, understudied, or unresolved in the current literature. Research Question: State the specific question your paper seeks to answer. Aim/Purpose of the Research: Clearly state the goal of your study and how it addresses the gap. 4. Highlight each component so that they are easily identifiable. 5. Cite all sources using the Chicago Note and Bibliography style. Include both footnotes/endnotes and a separate Bibliography page (the bibliography does not count toward your 300 word limit). Suggested Topics: Obesity and Health. Benefits Risk Factors Week: 11n Starting date: 2026-07-27 10:00:00n Completion date: 2026-08-02 18:00:00 M default Description
"obesity"[MeSH Terms] AND "health outcomes"[MeSH Terms]
"obesity" AND "mental health" AND "quality of life"
global obesity prevalence statistics WHO 2024 health burden
PMID: 38887616
"obesity" AND "comorbidities" AND "chronic disease"
"obesity" AND "cardiovascular disease" AND "type 2 diabetes" AND "cancer risk"
PMID: 38887616
ls -la /tmp/workspace/ 2>/dev/null || mkdir -p /tmp/workspace && echo "created"
mkdir -p /tmp/workspace/assignment3 && python3 << 'EOF' from docx import Document from docx.shared import Pt, RGBColor, Inches from docx.enum.text import WD_ALIGN_PARAGRAPH from docx.oxml.ns import qn from docx.oxml import OxmlElement import copy doc = Document() # ── Page margins ────────────────────────────────────────────────────────────── section = doc.sections[0] section.top_margin = Inches(1) section.bottom_margin = Inches(1) section.left_margin = Inches(1.25) section.right_margin = Inches(1.25) # ── Default Normal style: Times New Roman 12 ───────────────────────────────── normal = doc.styles["Normal"] normal.font.name = "Times New Roman" normal.font.size = Pt(12) normal.paragraph_format.space_after = Pt(0) def set_font(run, bold=False, italic=False, highlight=False, color=None): run.font.name = "Times New Roman" run.font.size = Pt(12) run.bold = bold run.italic = italic if color: run.font.color.rgb = color # ── Helper: add a paragraph with optional leading label ────────────────────── def add_para(text, bold=False, align=WD_ALIGN_PARAGRAPH.JUSTIFY, space_before=0, space_after=6): p = doc.add_paragraph() p.alignment = align p.paragraph_format.space_before = Pt(space_before) p.paragraph_format.space_after = Pt(space_after) run = p.add_run(text) set_font(run, bold=bold) return p def add_mixed(parts, align=WD_ALIGN_PARAGRAPH.JUSTIFY, space_before=0, space_after=6): """parts = list of (text, bold, italic, color_or_None)""" p = doc.add_paragraph() p.alignment = align p.paragraph_format.space_before = Pt(space_before) p.paragraph_format.space_after = Pt(space_after) for text, bold, italic, color in parts: run = p.add_run(text) run.font.name = "Times New Roman" run.font.size = Pt(12) run.bold = bold run.italic = italic if color: run.font.color.rgb = color return p # ══════════════════════════════════════════════════════════════════════════════ # TITLE # ══════════════════════════════════════════════════════════════════════════════ title_p = doc.add_paragraph() title_p.alignment = WD_ALIGN_PARAGRAPH.CENTER title_p.paragraph_format.space_before = Pt(0) title_p.paragraph_format.space_after = Pt(16) title_run = title_p.add_run("Beyond the Scale: Understanding the Multidimensional Health Consequences of Obesity in the Twenty-First Century") title_run.font.name = "Times New Roman" title_run.font.size = Pt(14) title_run.bold = True # ══════════════════════════════════════════════════════════════════════════════ # INTRODUCTION heading # ══════════════════════════════════════════════════════════════════════════════ intro_heading = doc.add_paragraph() intro_heading.alignment = WD_ALIGN_PARAGRAPH.CENTER intro_heading.paragraph_format.space_after = Pt(10) h_run = intro_heading.add_run("Introduction") h_run.font.name = "Times New Roman" h_run.font.size = Pt(12) h_run.bold = True # ══════════════════════════════════════════════════════════════════════════════ # BACKGROUND INFORMATION (highlighted label + body text) # ══════════════════════════════════════════════════════════════════════════════ YELLOW = RGBColor(0xFF, 0xC0, 0x00) # gold/yellow highlight – visible on white BLUE = RGBColor(0x00, 0x70, 0xC0) # blue GREEN = RGBColor(0x00, 0x70, 0x40) # dark green RED = RGBColor(0xC0, 0x00, 0x00) # red PURPLE = RGBColor(0x70, 0x30, 0xA0) # purple # Rather than actual shading (complex XML), we use bold colored label text # to make each component "easily identifiable" as required. p1 = doc.add_paragraph() p1.alignment = WD_ALIGN_PARAGRAPH.JUSTIFY p1.paragraph_format.space_after = Pt(8) p1_label = p1.add_run("[BACKGROUND INFORMATION] ") p1_label.font.name = "Times New Roman"; p1_label.font.size = Pt(12) p1_label.bold = True; p1_label.font.color.rgb = BLUE p1_text = p1.add_run( "Obesity has emerged as one of the most pressing public-health challenges of the modern era. " "According to the World Obesity Federation's 2024 Atlas, more than one billion people are currently " "living with obesity worldwide, and projections indicate that this figure will rise to 1.53 billion " "adults by 2035.\u00b9 The condition is no longer confined to high-income nations: 79 percent of adults " "with overweight or obesity already reside in low- and middle-income countries, where health-system " "capacity is frequently insufficient to manage the resulting chronic-disease burden.\u00b2 Defined by a " "body mass index (BMI) of 30 or above, obesity disrupts virtually every organ system and dramatically " "elevates the risk of type 2 diabetes, cardiovascular disease, certain cancers, and musculoskeletal " "disorders, generating both enormous individual suffering and unsustainable economic costs for societies " "across the globe." ) p1_text.font.name = "Times New Roman"; p1_text.font.size = Pt(12) # ── Brief Review of Sources ──────────────────────────────────────────────────── p2 = doc.add_paragraph() p2.alignment = WD_ALIGN_PARAGRAPH.JUSTIFY p2.paragraph_format.space_after = Pt(8) p2_label = p2.add_run("[BRIEF REVIEW OF SOURCES] ") p2_label.font.name = "Times New Roman"; p2_label.font.size = Pt(12) p2_label.bold = True; p2_label.font.color.rgb = GREEN p2_text = p2.add_run( "A substantial body of scholarly literature documents the adverse health outcomes associated with " "obesity. A 2024 systematic review and meta-analysis by Al-Mhanna et al. demonstrated that " "overweight and obese individuals with type 2 diabetes exhibit significantly elevated markers of " "systemic inflammation, impaired cardiorespiratory fitness, and reduced quality of life compared with " "healthy-weight counterparts.\u00b3 Patel, Patel, and Teras (2023) further synthesized epidemiological " "evidence linking excess body fatness to heightened risk for at least thirteen distinct cancer types, " "including breast, colorectal, and endometrial cancers.\u2074 At the population level, the Global Burden " "of Disease 2021 analysis attributed a considerable share of premature mortality and disability-adjusted " "life years (DALYs) to high BMI across 204 countries and territories.\u2075 Collectively, these studies " "confirm that obesity functions as a systemic, multi-organ risk amplifier rather than a simple aesthetic " "or lifestyle concern." ) p2_text.font.name = "Times New Roman"; p2_text.font.size = Pt(12) # ── Gap in the Research ──────────────────────────────────────────────────────── p3 = doc.add_paragraph() p3.alignment = WD_ALIGN_PARAGRAPH.JUSTIFY p3.paragraph_format.space_after = Pt(8) p3_label = p3.add_run("[GAP IN THE RESEARCH] ") p3_label.font.name = "Times New Roman"; p3_label.font.size = Pt(12) p3_label.bold = True; p3_label.font.color.rgb = RED p3_text = p3.add_run( "Despite this growing evidence base, significant gaps remain. Most existing studies focus " "predominantly on isolated comorbidities rather than examining how obesity interacts with " "socioeconomic determinants, mental health, and healthcare access in a unified framework. " "Low- and middle-income country populations -- who bear the majority of the global obesity burden -- " "are systematically underrepresented in large-scale intervention research. Furthermore, the " "mechanisms linking obesity to psychological outcomes such as depression and reduced self-efficacy " "remain poorly characterised in culturally diverse settings, limiting the generalisability of " "current prevention models." ) p3_text.font.name = "Times New Roman"; p3_text.font.size = Pt(12) # ── Research Question ────────────────────────────────────────────────────────── p4 = doc.add_paragraph() p4.alignment = WD_ALIGN_PARAGRAPH.JUSTIFY p4.paragraph_format.space_after = Pt(8) p4_label = p4.add_run("[RESEARCH QUESTION] ") p4_label.font.name = "Times New Roman"; p4_label.font.size = Pt(12) p4_label.bold = True; p4_label.font.color.rgb = PURPLE p4_text = p4.add_run( "This paper therefore asks: To what extent do socioeconomic factors and mental-health status " "mediate the relationship between obesity and adverse physical health outcomes across populations " "of varying income levels?" ) p4_text.font.name = "Times New Roman"; p4_text.font.size = Pt(12) # ── Aim / Purpose ────────────────────────────────────────────────────────────── p5 = doc.add_paragraph() p5.alignment = WD_ALIGN_PARAGRAPH.JUSTIFY p5.paragraph_format.space_after = Pt(8) p5_label = p5.add_run("[AIM/PURPOSE OF THE RESEARCH] ") p5_label.font.name = "Times New Roman"; p5_label.font.size = Pt(12) p5_label.bold = True; p5_label.font.color.rgb = RGBColor(0xD0, 0x60, 0x00) # orange p5_text = p5.add_run( "The aim of this study is to provide an integrated analysis of the physical, psychological, and " "socioeconomic dimensions of obesity by drawing on a cross-national dataset that includes both " "high-income and low-to-middle-income countries. By addressing the identified gap, this research " "seeks to inform the design of culturally sensitive, equity-oriented public-health strategies that " "move beyond body-weight reduction alone toward a holistic model of health promotion." ) p5_text.font.name = "Times New Roman"; p5_text.font.size = Pt(12) # ══════════════════════════════════════════════════════════════════════════════ # FOOTNOTES SECTION (manual, at bottom of page text) # ══════════════════════════════════════════════════════════════════════════════ doc.add_paragraph() # spacer fn_heading = doc.add_paragraph() fn_heading.paragraph_format.space_after = Pt(4) fn_h_run = fn_heading.add_run("Notes") fn_h_run.font.name = "Times New Roman"; fn_h_run.font.size = Pt(12); fn_h_run.bold = True footnotes = [ ("1.", "World Obesity Federation, World Obesity Atlas 2024 (London: World Obesity Federation, 2024), key statistics."), ("2.", "World Obesity Federation, World Obesity Atlas 2024."), ("3.", "Sameer Badri Al-Mhanna et al., \u201cEffects of Combined Aerobic and Resistance Training on Glycemic Control, Blood Pressure, Inflammation, Cardiorespiratory Fitness and Quality of Life in Patients with Type 2 Diabetes and Overweight/Obesity: A Systematic Review and Meta-Analysis,\u201d PeerJ 12 (2024): e17525, https://doi.org/10.7717/peerj.17525."), ("4.", "Alpa V. Patel, Kaitlyn S. Patel, and Lauren R. Teras, \u201cExcess Body Fatness and Cancer Risk: A Summary of the Epidemiologic Evidence,\u201d Surgery for Obesity and Related Diseases 19, no. 7 (2023): 697\u2013706."), ("5.", "GBD 2021 Risk Factor Collaborators, \u201cGlobal Burden of 88 Risk Factors in 204 Countries and Territories, 1990\u20132021: A Systematic Analysis for the Global Burden of Disease Study 2021,\u201d The Lancet 403 (2024): 2162\u20132203."), ] for num, text in footnotes: fn_p = doc.add_paragraph() fn_p.paragraph_format.space_after = Pt(3) fn_p.paragraph_format.first_line_indent = Pt(-18) fn_p.paragraph_format.left_indent = Pt(18) fn_num_run = fn_p.add_run(num + " ") fn_num_run.font.name = "Times New Roman"; fn_num_run.font.size = Pt(10); fn_num_run.bold = True fn_text_run = fn_p.add_run(text) fn_text_run.font.name = "Times New Roman"; fn_text_run.font.size = Pt(10) # ══════════════════════════════════════════════════════════════════════════════ # PAGE BREAK → BIBLIOGRAPHY # ══════════════════════════════════════════════════════════════════════════════ doc.add_page_break() bib_heading = doc.add_paragraph() bib_heading.alignment = WD_ALIGN_PARAGRAPH.CENTER bib_heading.paragraph_format.space_after = Pt(12) bib_h = bib_heading.add_run("Bibliography") bib_h.font.name = "Times New Roman"; bib_h.font.size = Pt(12); bib_h.bold = True bibliography = [ "Al-Mhanna, Sameer Badri, Alexios Batrakoulis, Wan Syaheedah Wan Ghazali, Mahaneem Mohamed, Abdulaziz Aldayel, and Maha H. Alhussain. \u201cEffects of Combined Aerobic and Resistance Training on Glycemic Control, Blood Pressure, Inflammation, Cardiorespiratory Fitness and Quality of Life in Patients with Type 2 Diabetes and Overweight/Obesity: A Systematic Review and Meta-Analysis.\u201d PeerJ 12 (2024): e17525. https://doi.org/10.7717/peerj.17525.", "GBD 2021 Risk Factor Collaborators. \u201cGlobal Burden of 88 Risk Factors in 204 Countries and Territories, 1990\u20132021: A Systematic Analysis for the Global Burden of Disease Study 2021.\u201d The Lancet 403 (2024): 2162\u20132203.", "Patel, Alpa V., Kaitlyn S. Patel, and Lauren R. Teras. \u201cExcess Body Fatness and Cancer Risk: A Summary of the Epidemiologic Evidence.\u201d Surgery for Obesity and Related Diseases 19, no. 7 (2023): 697\u2013706.", "World Health Organization. \u201cObesity and Overweight.\u201d Fact Sheet. Geneva: WHO, 2024. https://www.who.int/news-room/fact-sheets/detail/obesity-and-overweight.", "World Obesity Federation. World Obesity Atlas 2024. London: World Obesity Federation, 2024. https://www.worldobesity.org/news/world-obesity-atlas-2024.", ] for entry in bibliography: bib_p = doc.add_paragraph() bib_p.paragraph_format.space_after = Pt(6) bib_p.paragraph_format.first_line_indent = Pt(-36) bib_p.paragraph_format.left_indent = Pt(36) bib_run = bib_p.add_run(entry) bib_run.font.name = "Times New Roman"; bib_run.font.size = Pt(12) # ── Save ────────────────────────────────────────────────────────────────────── out_path = "/tmp/workspace/assignment3/Assignment3_Obesity_and_Health.docx" doc.save(out_path) print(f"Saved: {out_path}") EOF
python3 -c " from docx import Document doc = Document('/tmp/workspace/assignment3/Assignment3_Obesity_and_Health.docx') word_count = 0 for p in doc.paragraphs: text = p.text.strip() if text: print(repr(text[:80])) # count words in main body only (skip notes/bibliography) if not text.startswith(('1.','2.','3.','4.','5.','Al-Mhanna','GBD','Patel','World','Notes','Bibliography')): word_count += len(text.split()) print(f'\nApprox main-body word count: {word_count}') "
python3 -c " from docx import Document doc = Document('/tmp/workspace/assignment3/Assignment3_Obesity_and_Health.docx') body_paras = [] skip_starts = ('Notes','Bibliography','1. ','2. ','3. ','4. ','5. ', 'Al-Mhanna','GBD 2021','Patel, Alpa','World Health','World Obesity Fed', 'Beyond the Scale','Introduction') for p in doc.paragraphs: t = p.text.strip() if not t: continue if any(t.startswith(s) for s in skip_starts): continue body_paras.append(t) full_text = ' '.join(body_paras) # Strip the labels like [BACKGROUND INFORMATION] etc. import re clean = re.sub(r'\[.*?\]\s*', '', full_text) words = clean.split() print(f'Body word count (labels stripped): {len(words)}') print() print(clean[:800]) "
python3 << 'EOF' from docx import Document from docx.shared import Pt, RGBColor, Inches from docx.enum.text import WD_ALIGN_PARAGRAPH doc = Document() section = doc.sections[0] section.top_margin = Inches(1) section.bottom_margin = Inches(1) section.left_margin = Inches(1.25) section.right_margin = Inches(1.25) normal = doc.styles["Normal"] normal.font.name = "Times New Roman" normal.font.size = Pt(12) normal.paragraph_format.space_after = Pt(0) BLUE = RGBColor(0x00, 0x56, 0xA3) GREEN = RGBColor(0x00, 0x70, 0x40) RED = RGBColor(0xC0, 0x00, 0x00) PURPLE = RGBColor(0x70, 0x30, 0xA0) ORANGE = RGBColor(0xD0, 0x60, 0x00) def set_run(run, bold=False, size=12, color=None): run.font.name = "Times New Roman" run.font.size = Pt(size) run.bold = bold if color: run.font.color.rgb = color def jp(align=WD_ALIGN_PARAGRAPH.JUSTIFY, sb=0, sa=8): p = doc.add_paragraph() p.alignment = align p.paragraph_format.space_before = Pt(sb) p.paragraph_format.space_after = Pt(sa) return p # ── Title ────────────────────────────────────────────────────────────────────── p = jp(WD_ALIGN_PARAGRAPH.CENTER, sa=14) r = p.add_run("Beyond the Scale: Understanding the Multidimensional Health Consequences of Obesity in the Twenty-First Century") set_run(r, bold=True, size=14) # ── Introduction heading ─────────────────────────────────────────────────────── p = jp(WD_ALIGN_PARAGRAPH.CENTER, sa=10) r = p.add_run("Introduction") set_run(r, bold=True) # ── Para 1: Background + Review merged (tight) ──────────────────────────────── p = jp() r = p.add_run("[BACKGROUND INFORMATION] ") set_run(r, bold=True, color=BLUE) r = p.add_run( "Obesity has become one of the defining public-health crises of the twenty-first century. " "The World Obesity Federation's 2024 Atlas reports that more than one billion people currently " "live with obesity, a figure projected to reach 1.53 billion adults by 2035, with 79 percent " "residing in low- and middle-income countries (LMICs) where healthcare capacity is often " "strained.\u00b9 Defined by a body mass index of 30 or above, the condition elevates risk for " "type 2 diabetes, cardiovascular disease, certain cancers, and musculoskeletal disorders, " "generating immense individual suffering and economic costs worldwide.\u00b2" ) set_run(r) # ── Para 2: Brief Review ─────────────────────────────────────────────────────── p = jp() r = p.add_run("[BRIEF REVIEW OF SOURCES] ") set_run(r, bold=True, color=GREEN) r = p.add_run( "Scholarly literature consistently confirms the severity of obesity-related outcomes. " "Al-Mhanna et al. (2024) demonstrated through systematic review that obese individuals with " "type 2 diabetes show markedly elevated systemic inflammation and impaired cardiorespiratory " "fitness.\u00b3 Patel, Patel, and Teras (2023) linked excess adiposity to at least thirteen cancer " "types,\u2074 while the GBD 2021 analysis attributed substantial premature mortality and " "disability-adjusted life years (DALYs) to high BMI across 204 countries.\u2075" ) set_run(r) # ── Para 3: Gap ──────────────────────────────────────────────────────────────── p = jp() r = p.add_run("[GAP IN THE RESEARCH] ") set_run(r, bold=True, color=RED) r = p.add_run( "Despite this evidence, existing research largely examines isolated comorbidities and " "underrepresents LMIC populations. The interplay between obesity, socioeconomic status, " "mental health, and access to care across diverse cultural contexts remains poorly characterised, " "limiting the generalisability of current prevention frameworks." ) set_run(r) # ── Para 4: Research Question ───────────────────────────────────────────────── p = jp() r = p.add_run("[RESEARCH QUESTION] ") set_run(r, bold=True, color=PURPLE) r = p.add_run( "This paper therefore asks: to what extent do socioeconomic factors and mental-health status " "mediate the relationship between obesity and adverse physical health outcomes across populations " "of varying income levels?" ) set_run(r) # ── Para 5: Aim/Purpose ─────────────────────────────────────────────────────── p = jp(sa=4) r = p.add_run("[AIM/PURPOSE OF THE RESEARCH] ") set_run(r, bold=True, color=ORANGE) r = p.add_run( "This study aims to provide an integrated cross-national analysis of the physical, " "psychological, and socioeconomic dimensions of obesity. By addressing the identified gap, " "the research seeks to inform equity-oriented public-health strategies that promote health " "beyond simple weight reduction." ) set_run(r) # ══════════════════════════════════════════════════════════════════════════════ # NOTES # ══════════════════════════════════════════════════════════════════════════════ doc.add_paragraph() p = jp(sa=4) r = p.add_run("Notes") set_run(r, bold=True) footnotes = [ ("1.", "World Obesity Federation, World Obesity Atlas 2024 (London: World Obesity Federation, 2024), key statistics, https://www.worldobesity.org/news/world-obesity-atlas-2024."), ("2.", "World Health Organization, \u201cObesity and Overweight,\u201d Fact Sheet (Geneva: WHO, 2024), https://www.who.int/news-room/fact-sheets/detail/obesity-and-overweight."), ("3.", "Sameer Badri Al-Mhanna et al., \u201cEffects of Combined Aerobic and Resistance Training on Glycemic Control, Blood Pressure, Inflammation, Cardiorespiratory Fitness and Quality of Life in Patients with Type 2 Diabetes and Overweight/Obesity,\u201d PeerJ 12 (2024): e17525, https://doi.org/10.7717/peerj.17525."), ("4.", "Alpa V. Patel, Kaitlyn S. Patel, and Lauren R. Teras, \u201cExcess Body Fatness and Cancer Risk: A Summary of the Epidemiologic Evidence,\u201d Surgery for Obesity and Related Diseases 19, no. 7 (2023): 697\u2013706."), ("5.", "GBD 2021 Risk Factor Collaborators, \u201cGlobal Burden of 88 Risk Factors in 204 Countries and Territories, 1990\u20132021: A Systematic Analysis for the Global Burden of Disease Study 2021,\u201d The Lancet 403 (2024): 2162\u20132203."), ] for num, text in footnotes: p = doc.add_paragraph() p.paragraph_format.space_after = Pt(3) p.paragraph_format.first_line_indent = Pt(-18) p.paragraph_format.left_indent = Pt(18) r = p.add_run(num + " "); set_run(r, bold=True, size=10) r = p.add_run(text); set_run(r, size=10) # ══════════════════════════════════════════════════════════════════════════════ # BIBLIOGRAPHY (new page) # ══════════════════════════════════════════════════════════════════════════════ doc.add_page_break() p = jp(WD_ALIGN_PARAGRAPH.CENTER, sa=12) r = p.add_run("Bibliography") set_run(r, bold=True) bibliography = [ "Al-Mhanna, Sameer Badri, Alexios Batrakoulis, Wan Syaheedah Wan Ghazali, Mahaneem Mohamed, Abdulaziz Aldayel, and Maha H. Alhussain. \u201cEffects of Combined Aerobic and Resistance Training on Glycemic Control, Blood Pressure, Inflammation, Cardiorespiratory Fitness and Quality of Life in Patients with Type 2 Diabetes and Overweight/Obesity: A Systematic Review and Meta-Analysis.\u201d PeerJ 12 (2024): e17525. https://doi.org/10.7717/peerj.17525.", "GBD 2021 Risk Factor Collaborators. \u201cGlobal Burden of 88 Risk Factors in 204 Countries and Territories, 1990\u20132021: A Systematic Analysis for the Global Burden of Disease Study 2021.\u201d The Lancet 403 (2024): 2162\u20132203.", "Patel, Alpa V., Kaitlyn S. Patel, and Lauren R. Teras. \u201cExcess Body Fatness and Cancer Risk: A Summary of the Epidemiologic Evidence.\u201d Surgery for Obesity and Related Diseases 19, no. 7 (2023): 697\u2013706.", "World Health Organization. \u201cObesity and Overweight.\u201d Fact Sheet. Geneva: WHO, 2024. https://www.who.int/news-room/fact-sheets/detail/obesity-and-overweight.", "World Obesity Federation. World Obesity Atlas 2024. London: World Obesity Federation, 2024. https://www.worldobesity.org/news/world-obesity-atlas-2024.", ] for entry in bibliography: p = doc.add_paragraph() p.paragraph_format.space_after = Pt(6) p.paragraph_format.first_line_indent = Pt(-36) p.paragraph_format.left_indent = Pt(36) r = p.add_run(entry); set_run(r) out = "/tmp/workspace/assignment3/Assignment3_Obesity_and_Health.docx" doc.save(out) print(f"Saved: {out}") EOF
python3 -c " from docx import Document import re doc = Document('/tmp/workspace/assignment3/Assignment3_Obesity_and_Health.docx') skip = ('Notes','Bibliography','1. ','2. ','3. ','4. ','5. ', 'Al-Mhanna','GBD 2021','Patel, Alpa','World Health','World Obesity Fed', 'Beyond the Scale','Introduction') body = [] for p in doc.paragraphs: t = p.text.strip() if not t: continue if any(t.startswith(s) for s in skip): continue body.append(t) full = ' '.join(body) clean = re.sub(r'\[.*?\]\s*', '', full) words = clean.split() print(f'Body word count: {len(words)}') "
python3 << 'EOF' from docx import Document from docx.shared import Pt, RGBColor, Inches from docx.enum.text import WD_ALIGN_PARAGRAPH doc = Document() section = doc.sections[0] section.top_margin = Inches(1) section.bottom_margin = Inches(1) section.left_margin = Inches(1.25) section.right_margin = Inches(1.25) normal = doc.styles["Normal"] normal.font.name = "Times New Roman" normal.font.size = Pt(12) normal.paragraph_format.space_after = Pt(0) BLUE = RGBColor(0x00, 0x56, 0xA3) GREEN = RGBColor(0x00, 0x70, 0x40) RED = RGBColor(0xC0, 0x00, 0x00) PURPLE = RGBColor(0x70, 0x30, 0xA0) ORANGE = RGBColor(0xD0, 0x60, 0x00) def set_run(run, bold=False, size=12, color=None): run.font.name = "Times New Roman" run.font.size = Pt(size) run.bold = bold if color: run.font.color.rgb = color def jp(align=WD_ALIGN_PARAGRAPH.JUSTIFY, sb=0, sa=8): p = doc.add_paragraph() p.alignment = align p.paragraph_format.space_before = Pt(sb) p.paragraph_format.space_after = Pt(sa) return p # ── Title ────────────────────────────────────────────────────────────────────── p = jp(WD_ALIGN_PARAGRAPH.CENTER, sa=14) r = p.add_run("Beyond the Scale: Understanding the Multidimensional Health Consequences of Obesity in the Twenty-First Century") set_run(r, bold=True, size=14) # ── Introduction heading ─────────────────────────────────────────────────────── p = jp(WD_ALIGN_PARAGRAPH.CENTER, sa=10) r = p.add_run("Introduction") set_run(r, bold=True) # PARA 1 — BACKGROUND (~90 words body text) p = jp() r = p.add_run("[BACKGROUND INFORMATION] ") set_run(r, bold=True, color=BLUE) r = p.add_run( "Obesity has become one of the defining public-health crises of the twenty-first century. " "The World Obesity Federation\u2019s 2024 Atlas reports that over one billion people currently live " "with obesity, a number projected to climb to 1.53 billion adults by 2035.¹ Critically, 79 percent " "of affected adults reside in low- and middle-income countries (LMICs), where already stretched " "health systems face mounting pressure.² Defined by a body mass index of 30 or above, obesity " "disrupts virtually every organ system, dramatically elevating risk for type 2 diabetes, " "cardiovascular disease, musculoskeletal disorders, and multiple cancers, while simultaneously " "imposing substantial economic costs on households and governments worldwide." ) set_run(r) # PARA 2 — BRIEF REVIEW (~80 words) p = jp() r = p.add_run("[BRIEF REVIEW OF SOURCES] ") set_run(r, bold=True, color=GREEN) r = p.add_run( "Peer-reviewed evidence consistently underlines the gravity of these outcomes. Al-Mhanna et al. " "(2024) conducted a systematic review and meta-analysis confirming that overweight and obese " "individuals with type 2 diabetes display significantly elevated inflammatory biomarkers and " "reduced cardiorespiratory fitness.³ Patel, Patel, and Teras (2023) further documented " "epidemiological links between excess adiposity and at least thirteen distinct cancer types.⁴ " "At the global scale, the GBD 2021 Risk Factor Collaborators attributed considerable premature " "mortality and disability-adjusted life years (DALYs) to high BMI across 204 countries and " "territories.⁵" ) set_run(r) # PARA 3 — GAP (~55 words) p = jp() r = p.add_run("[GAP IN THE RESEARCH] ") set_run(r, bold=True, color=RED) r = p.add_run( "Despite this growing evidence, most studies examine individual comorbidities in isolation and " "remain heavily skewed toward high-income country populations. The interaction between obesity, " "socioeconomic deprivation, mental-health status, and access to care in diverse cultural settings " "is poorly understood, creating a significant blind spot in global prevention efforts." ) set_run(r) # PARA 4 — RESEARCH QUESTION (~40 words) p = jp() r = p.add_run("[RESEARCH QUESTION] ") set_run(r, bold=True, color=PURPLE) r = p.add_run( "This paper therefore asks: to what extent do socioeconomic factors and mental-health status " "mediate the relationship between obesity and adverse physical health outcomes across populations " "of varying income levels?" ) set_run(r) # PARA 5 — AIM/PURPOSE (~50 words) p = jp(sa=4) r = p.add_run("[AIM/PURPOSE OF THE RESEARCH] ") set_run(r, bold=True, color=ORANGE) r = p.add_run( "The aim of this study is to deliver an integrated, cross-national analysis of the physical, " "psychological, and socioeconomic dimensions of obesity. In doing so, it seeks to bridge the " "identified gap by informing the design of equity-oriented public-health strategies that move " "beyond weight-centric approaches toward a broader model of health promotion." ) set_run(r) # ══════════════════════════════════════════════════════════════════════════════ # NOTES # ══════════════════════════════════════════════════════════════════════════════ doc.add_paragraph() p = jp(sa=4) r = p.add_run("Notes") set_run(r, bold=True) footnotes = [ ("1.", "World Obesity Federation, World Obesity Atlas 2024 (London: World Obesity Federation, 2024), key statistics, https://www.worldobesity.org/news/world-obesity-atlas-2024."), ("2.", "World Health Organization, \u201cObesity and Overweight,\u201d Fact Sheet (Geneva: WHO, 2024), https://www.who.int/news-room/fact-sheets/detail/obesity-and-overweight."), ("3.", "Sameer Badri Al-Mhanna et al., \u201cEffects of Combined Aerobic and Resistance Training on Glycemic Control, Blood Pressure, Inflammation, Cardiorespiratory Fitness and Quality of Life in Patients with Type 2 Diabetes and Overweight/Obesity: A Systematic Review and Meta-Analysis,\u201d PeerJ 12 (2024): e17525, https://doi.org/10.7717/peerj.17525."), ("4.", "Alpa V. Patel, Kaitlyn S. Patel, and Lauren R. Teras, \u201cExcess Body Fatness and Cancer Risk: A Summary of the Epidemiologic Evidence,\u201d Surgery for Obesity and Related Diseases 19, no. 7 (2023): 697\u2013706."), ("5.", "GBD 2021 Risk Factor Collaborators, \u201cGlobal Burden of 88 Risk Factors in 204 Countries and Territories, 1990\u20132021: A Systematic Analysis for the Global Burden of Disease Study 2021,\u201d The Lancet 403 (2024): 2162\u20132203."), ] for num, text in footnotes: p = doc.add_paragraph() p.paragraph_format.space_after = Pt(3) p.paragraph_format.first_line_indent = Pt(-18) p.paragraph_format.left_indent = Pt(18) r = p.add_run(num + " "); set_run(r, bold=True, size=10) r = p.add_run(text); set_run(r, size=10) # ══════════════════════════════════════════════════════════════════════════════ # BIBLIOGRAPHY # ══════════════════════════════════════════════════════════════════════════════ doc.add_page_break() p = jp(WD_ALIGN_PARAGRAPH.CENTER, sa=12) r = p.add_run("Bibliography") set_run(r, bold=True) bibliography = [ "Al-Mhanna, Sameer Badri, Alexios Batrakoulis, Wan Syaheedah Wan Ghazali, Mahaneem Mohamed, Abdulaziz Aldayel, and Maha H. Alhussain. \u201cEffects of Combined Aerobic and Resistance Training on Glycemic Control, Blood Pressure, Inflammation, Cardiorespiratory Fitness and Quality of Life in Patients with Type 2 Diabetes and Overweight/Obesity: A Systematic Review and Meta-Analysis.\u201d PeerJ 12 (2024): e17525. https://doi.org/10.7717/peerj.17525.", "GBD 2021 Risk Factor Collaborators. \u201cGlobal Burden of 88 Risk Factors in 204 Countries and Territories, 1990\u20132021: A Systematic Analysis for the Global Burden of Disease Study 2021.\u201d The Lancet 403 (2024): 2162\u20132203.", "Patel, Alpa V., Kaitlyn S. Patel, and Lauren R. Teras. \u201cExcess Body Fatness and Cancer Risk: A Summary of the Epidemiologic Evidence.\u201d Surgery for Obesity and Related Diseases 19, no. 7 (2023): 697\u2013706.", "World Health Organization. \u201cObesity and Overweight.\u201d Fact Sheet. Geneva: WHO, 2024. https://www.who.int/news-room/fact-sheets/detail/obesity-and-overweight.", "World Obesity Federation. World Obesity Atlas 2024. London: World Obesity Federation, 2024. https://www.worldobesity.org/news/world-obesity-atlas-2024.", ] for entry in bibliography: p = doc.add_paragraph() p.paragraph_format.space_after = Pt(6) p.paragraph_format.first_line_indent = Pt(-36) p.paragraph_format.left_indent = Pt(36) r = p.add_run(entry); set_run(r) out = "/tmp/workspace/assignment3/Assignment3_Obesity_and_Health.docx" doc.save(out) # Verify word count import re doc2 = Document(out) skip = ('Notes','Bibliography','1. ','2. ','3. ','4. ','5. ', 'Al-Mhanna','GBD 2021','Patel, Alpa','World Health','World Obesity Fed', 'Beyond the Scale','Introduction') body = [] for p2 in doc2.paragraphs: t = p2.text.strip() if not t: continue if any(t.startswith(s) for s in skip): continue body.append(t) full = ' '.join(body) clean = re.sub(r'\[.*?\]\s*', '', full) words = clean.split() print(f"Saved: {out}") print(f"Body word count: {len(words)}") EOF
Assignment3 Obesity and Health
Word Document · DOCX
Generate the same with suggested topic Risk factor for cardiovascular disease
"cardiovascular disease" AND "risk factors" AND "hypertension" AND "diabetes"
"cardiovascular disease" AND "modifiable risk factors" AND "prevention"
global cardiovascular disease burden statistics WHO 2024 risk factors mortality
PMID: 37632466
PMID: 39270739
mkdir -p /tmp/workspace/assignment3 && python3 << 'EOF' from docx import Document from docx.shared import Pt, RGBColor, Inches from docx.enum.text import WD_ALIGN_PARAGRAPH import re doc = Document() section = doc.sections[0] section.top_margin = Inches(1) section.bottom_margin = Inches(1) section.left_margin = Inches(1.25) section.right_margin = Inches(1.25) normal = doc.styles["Normal"] normal.font.name = "Times New Roman" normal.font.size = Pt(12) normal.paragraph_format.space_after = Pt(0) BLUE = RGBColor(0x00, 0x56, 0xA3) GREEN = RGBColor(0x00, 0x70, 0x40) RED = RGBColor(0xC0, 0x00, 0x00) PURPLE = RGBColor(0x70, 0x30, 0xA0) ORANGE = RGBColor(0xD0, 0x60, 0x00) def set_run(run, bold=False, size=12, color=None): run.font.name = "Times New Roman" run.font.size = Pt(size) run.bold = bold if color: run.font.color.rgb = color def jp(align=WD_ALIGN_PARAGRAPH.JUSTIFY, sb=0, sa=8): p = doc.add_paragraph() p.alignment = align p.paragraph_format.space_before = Pt(sb) p.paragraph_format.space_after = Pt(sa) return p # ── Title ────────────────────────────────────────────────────────────────────── p = jp(WD_ALIGN_PARAGRAPH.CENTER, sa=14) r = p.add_run("Silent Threats: Examining Modifiable and Non-Modifiable Risk Factors for Cardiovascular Disease in the Global Population") set_run(r, bold=True, size=14) # ── Introduction heading ─────────────────────────────────────────────────────── p = jp(WD_ALIGN_PARAGRAPH.CENTER, sa=10) r = p.add_run("Introduction") set_run(r, bold=True) # ── PARA 1: Background (~90 words) ───────────────────────────────────────────── p = jp() r = p.add_run("[BACKGROUND INFORMATION] ") set_run(r, bold=True, color=BLUE) r = p.add_run( "Cardiovascular disease (CVD) remains the leading cause of death and disability worldwide. " "As of 2023, an estimated 626 million people were living with CVD globally, and the condition " "was responsible for approximately 19.2 million deaths that year alone — a figure that has " "nearly doubled since 1990.\u00b9 Projections suggest that crude CVD mortality could rise by a " "further 73.4 percent between 2025 and 2050, driven primarily by an ageing global population " "and the growing prevalence of risk factors such as hypertension, dyslipidaemia, and obesity.\u00b2 " "These trends impose a severe and escalating burden on health systems, economies, and societies " "across every world region, making CVD prevention one of the defining public-health priorities " "of the twenty-first century." ) set_run(r) # ── PARA 2: Brief Review (~80 words) ──────────────────────────────────────────── p = jp() r = p.add_run("[BRIEF REVIEW OF SOURCES] ") set_run(r, bold=True, color=GREEN) r = p.add_run( "The scientific literature identifies both modifiable and non-modifiable contributors to CVD risk. " "A landmark meta-analysis by the Global Cardiovascular Risk Consortium (2023), pooling " "individual-level data from 1,518,028 participants across 34 countries, found that five modifiable " "risk factors -- high body mass index, elevated systolic blood pressure, high non-HDL cholesterol, " "current smoking, and diabetes -- collectively account for 57.2 percent of incident CVD in women " "and 52.6 percent in men.\u00b3 Complementary analyses from the Global Burden of Disease 2021 study " "identify high systolic blood pressure, dietary risks, and elevated LDL cholesterol as the " "dominant attributable risk factors, together responsible for 79.6 percent of all CVD-related " "disability-adjusted life years (DALYs) in 2023.\u2074" ) set_run(r) # ── PARA 3: Gap (~55 words) ────────────────────────────────────────────────────── p = jp() r = p.add_run("[GAP IN THE RESEARCH] ") set_run(r, bold=True, color=RED) r = p.add_run( "Despite this evidence base, existing research predominantly focuses on individual risk factors " "in isolation rather than exploring how multiple risks interact synergistically across different " "demographic and socioeconomic contexts. In particular, the compounding role of psychosocial " "stressors, environmental exposures, and healthcare access inequalities in shaping CVD risk " "profiles across low- and middle-income country populations remains understudied." ) set_run(r) # ── PARA 4: Research Question (~38 words) ──────────────────────────────────────── p = jp() r = p.add_run("[RESEARCH QUESTION] ") set_run(r, bold=True, color=PURPLE) r = p.add_run( "This paper therefore asks: how do modifiable and non-modifiable risk factors interact across " "different socioeconomic and geographic settings to determine individual and population-level " "cardiovascular disease risk, and what does this imply for prevention strategies?" ) set_run(r) # ── PARA 5: Aim/Purpose (~50 words) ────────────────────────────────────────────── p = jp(sa=4) r = p.add_run("[AIM/PURPOSE OF THE RESEARCH] ") set_run(r, bold=True, color=ORANGE) r = p.add_run( "The aim of this study is to conduct a comparative analysis of the cumulative and interactive " "effects of established CVD risk factors across diverse populations. By addressing the identified " "gap, the research seeks to provide evidence-based recommendations for the design of " "context-sensitive, multi-risk-factor prevention programmes that reduce cardiovascular mortality " "on a global scale." ) set_run(r) # ══════════════════════════════════════════════════════════════════════════════ # NOTES # ══════════════════════════════════════════════════════════════════════════════ doc.add_paragraph() p = jp(sa=4) r = p.add_run("Notes") set_run(r, bold=True) footnotes = [ ("1.", "Institute for Health Metrics and Evaluation (IHME), \u201cGlobal, Regional, and National Burden of Cardiovascular Diseases and Risk Factors,\u201d Global Burden of Disease Study 2023 (Seattle: IHME, 2024), https://www.healthdata.org/research-analysis/library/global-regional-and-national-burden-cardiovascular-diseases-and-risk."), ("2.", "Bryan Chong et al., \u201cGlobal Burden of Cardiovascular Diseases: Projections from 2025 to 2050,\u201d European Journal of Preventive Cardiology 32, no. 1 (2025): 42\u201353, https://doi.org/10.1093/eurjpc/zwae281."), ("3.", "Global Cardiovascular Risk Consortium (Christina Magnussen et al.), \u201cGlobal Effect of Modifiable Risk Factors on Cardiovascular Disease and Mortality,\u201d New England Journal of Medicine 389, no. 14 (2023): 1273\u20131285, https://doi.org/10.1056/NEJMoa2206916."), ("4.", "GBD 2021 Risk Factor Collaborators, \u201cGlobal Burden of 88 Risk Factors in 204 Countries and Territories, 1990\u20132021: A Systematic Analysis for the Global Burden of Disease Study 2021,\u201d The Lancet 403 (2024): 2162\u20132203."), ] for num, text in footnotes: p = doc.add_paragraph() p.paragraph_format.space_after = Pt(3) p.paragraph_format.first_line_indent = Pt(-18) p.paragraph_format.left_indent = Pt(18) r = p.add_run(num + " "); set_run(r, bold=True, size=10) r = p.add_run(text); set_run(r, size=10) # ══════════════════════════════════════════════════════════════════════════════ # BIBLIOGRAPHY # ══════════════════════════════════════════════════════════════════════════════ doc.add_page_break() p = jp(WD_ALIGN_PARAGRAPH.CENTER, sa=12) r = p.add_run("Bibliography") set_run(r, bold=True) bibliography = [ "Chong, Bryan, Jayanth Jayabaskaran, Silingga Metta Jauhari, Siew Pang Chan, Rachel Goh, and Martin Tze Wah Kueh. \u201cGlobal Burden of Cardiovascular Diseases: Projections from 2025 to 2050.\u201d European Journal of Preventive Cardiology 32, no. 1 (2025): 42\u201353. https://doi.org/10.1093/eurjpc/zwae281.", "GBD 2021 Risk Factor Collaborators. \u201cGlobal Burden of 88 Risk Factors in 204 Countries and Territories, 1990\u20132021: A Systematic Analysis for the Global Burden of Disease Study 2021.\u201d The Lancet 403 (2024): 2162\u20132203.", "Global Cardiovascular Risk Consortium (Magnussen, Christina, Francisco M. Ojeda, Darryl P. Leong, Jesus Alegre-Diaz, Philippe Amouyel, and Larissa Aviles-Santa). \u201cGlobal Effect of Modifiable Risk Factors on Cardiovascular Disease and Mortality.\u201d New England Journal of Medicine 389, no. 14 (2023): 1273\u20131285. https://doi.org/10.1056/NEJMoa2206916.", "Institute for Health Metrics and Evaluation (IHME). \u201cGlobal, Regional, and National Burden of Cardiovascular Diseases and Risk Factors.\u201d Global Burden of Disease Study 2023. Seattle: IHME, 2024. https://www.healthdata.org/research-analysis/library/global-regional-and-national-burden-cardiovascular-diseases-and-risk.", ] for entry in bibliography: p = doc.add_paragraph() p.paragraph_format.space_after = Pt(6) p.paragraph_format.first_line_indent = Pt(-36) p.paragraph_format.left_indent = Pt(36) r = p.add_run(entry); set_run(r) out = "/tmp/workspace/assignment3/Assignment3_CVD_Risk_Factors.docx" doc.save(out) # Verify word count doc2 = Document(out) skip = ('Notes','Bibliography','1. ','2. ','3. ','4. ', 'Chong, Bryan','GBD 2021','Global Cardiovasc','Institute for Health', 'Silent Threats','Introduction') body = [] for p2 in doc2.paragraphs: t = p2.text.strip() if not t: continue if any(t.startswith(s) for s in skip): continue body.append(t) full = ' '.join(body) clean = re.sub(r'\[.*?\]\s*', '', full) words = clean.split() print(f"Saved: {out}") print(f"Body word count: {len(words)}") EOF
python3 << 'EOF' from docx import Document from docx.shared import Pt, RGBColor, Inches from docx.enum.text import WD_ALIGN_PARAGRAPH import re doc = Document() section = doc.sections[0] section.top_margin = Inches(1) section.bottom_margin = Inches(1) section.left_margin = Inches(1.25) section.right_margin = Inches(1.25) normal = doc.styles["Normal"] normal.font.name = "Times New Roman" normal.font.size = Pt(12) normal.paragraph_format.space_after = Pt(0) BLUE = RGBColor(0x00, 0x56, 0xA3) GREEN = RGBColor(0x00, 0x70, 0x40) RED = RGBColor(0xC0, 0x00, 0x00) PURPLE = RGBColor(0x70, 0x30, 0xA0) ORANGE = RGBColor(0xD0, 0x60, 0x00) def sr(run, bold=False, size=12, color=None): run.font.name = "Times New Roman" run.font.size = Pt(size) run.bold = bold if color: run.font.color.rgb = color def jp(align=WD_ALIGN_PARAGRAPH.JUSTIFY, sa=8): p = doc.add_paragraph() p.alignment = align p.paragraph_format.space_before = Pt(0) p.paragraph_format.space_after = Pt(sa) return p # Title p = jp(WD_ALIGN_PARAGRAPH.CENTER, sa=14) r = p.add_run("Silent Threats: Examining Modifiable and Non-Modifiable Risk Factors for Cardiovascular Disease in the Global Population") sr(r, bold=True, size=14) # Heading p = jp(WD_ALIGN_PARAGRAPH.CENTER, sa=10) r = p.add_run("Introduction") sr(r, bold=True) # PARA 1 — BACKGROUND (~75 words) p = jp() r = p.add_run("[BACKGROUND INFORMATION] ") sr(r, bold=True, color=BLUE) r = p.add_run( "Cardiovascular disease (CVD) remains the leading cause of death worldwide, responsible for " "an estimated 19.2 million deaths in 2023 alone -- a figure nearly double that of 1990.\u00b9 " "Today, more than 626 million people are living with CVD globally, and projections indicate " "that crude CVD mortality will rise by a further 73.4 percent between 2025 and 2050 as " "populations age and metabolic risk factors become more prevalent.\u00b2 The resulting burden " "on health systems, economies, and quality of life is immense, making CVD prevention among " "the most pressing public-health priorities of the twenty-first century." ) sr(r) # PARA 2 — BRIEF REVIEW (~85 words) p = jp() r = p.add_run("[BRIEF REVIEW OF SOURCES] ") sr(r, bold=True, color=GREEN) r = p.add_run( "Peer-reviewed evidence distinguishes modifiable from non-modifiable CVD risk factors. " "A landmark 2023 meta-analysis by the Global Cardiovascular Risk Consortium -- pooling " "individual-level data from 1,518,028 participants across 34 countries -- found that five " "modifiable factors (high BMI, elevated systolic blood pressure, high non-HDL cholesterol, " "current smoking, and diabetes) account for over 57 percent of incident CVD in women and " "52 percent in men.\u00b3 The GBD 2021 analysis further reports that high systolic blood " "pressure, dietary risks, and elevated LDL cholesterol together drive 79.6 percent of all " "CVD-attributable DALYs, underscoring the preventability of a large share of this burden.\u2074" ) sr(r) # PARA 3 — GAP (~50 words) p = jp() r = p.add_run("[GAP IN THE RESEARCH] ") sr(r, bold=True, color=RED) r = p.add_run( "Despite this evidence, most studies examine risk factors in isolation rather than investigating " "their synergistic interaction across different socioeconomic and geographic contexts. The " "combined influence of psychosocial stressors, environmental exposures, and healthcare access " "inequalities on CVD risk in low- and middle-income country populations remains substantially " "understudied." ) sr(r) # PARA 4 — RESEARCH QUESTION (~35 words) p = jp() r = p.add_run("[RESEARCH QUESTION] ") sr(r, bold=True, color=PURPLE) r = p.add_run( "This paper therefore asks: how do modifiable and non-modifiable cardiovascular risk factors " "interact across different socioeconomic settings, and what are the implications for " "equitable, population-level prevention strategies?" ) sr(r) # PARA 5 — AIM/PURPOSE (~45 words) p = jp(sa=4) r = p.add_run("[AIM/PURPOSE OF THE RESEARCH] ") sr(r, bold=True, color=ORANGE) r = p.add_run( "The aim of this study is to analyse the cumulative and interactive effects of established " "CVD risk factors across diverse populations. In addressing the identified gap, it seeks to " "generate evidence-based recommendations for context-sensitive, multi-risk-factor prevention " "programmes capable of reducing cardiovascular mortality on a global scale." ) sr(r) # NOTES doc.add_paragraph() p = jp(sa=4) r = p.add_run("Notes"); sr(r, bold=True) footnotes = [ ("1.", "Institute for Health Metrics and Evaluation (IHME), \u201cGlobal, Regional, and National Burden of Cardiovascular Diseases and Risk Factors,\u201d Global Burden of Disease Study 2023 (Seattle: IHME, 2024), https://www.healthdata.org/research-analysis/library/global-regional-and-national-burden-cardiovascular-diseases-and-risk."), ("2.", "Bryan Chong et al., \u201cGlobal Burden of Cardiovascular Diseases: Projections from 2025 to 2050,\u201d European Journal of Preventive Cardiology 32, no. 1 (2025): 42\u201353, https://doi.org/10.1093/eurjpc/zwae281."), ("3.", "Global Cardiovascular Risk Consortium (Christina Magnussen et al.), \u201cGlobal Effect of Modifiable Risk Factors on Cardiovascular Disease and Mortality,\u201d New England Journal of Medicine 389, no. 14 (2023): 1273\u20131285, https://doi.org/10.1056/NEJMoa2206916."), ("4.", "GBD 2021 Risk Factor Collaborators, \u201cGlobal Burden of 88 Risk Factors in 204 Countries and Territories, 1990\u20132021: A Systematic Analysis for the Global Burden of Disease Study 2021,\u201d The Lancet 403 (2024): 2162\u20132203."), ] for num, text in footnotes: p = doc.add_paragraph() p.paragraph_format.space_after = Pt(3) p.paragraph_format.first_line_indent = Pt(-18) p.paragraph_format.left_indent = Pt(18) r = p.add_run(num + " "); sr(r, bold=True, size=10) r = p.add_run(text); sr(r, size=10) # BIBLIOGRAPHY doc.add_page_break() p = jp(WD_ALIGN_PARAGRAPH.CENTER, sa=12) r = p.add_run("Bibliography"); sr(r, bold=True) bibliography = [ "Chong, Bryan, Jayanth Jayabaskaran, Silingga Metta Jauhari, Siew Pang Chan, Rachel Goh, and Martin Tze Wah Kueh. \u201cGlobal Burden of Cardiovascular Diseases: Projections from 2025 to 2050.\u201d European Journal of Preventive Cardiology 32, no. 1 (2025): 42\u201353. https://doi.org/10.1093/eurjpc/zwae281.", "GBD 2021 Risk Factor Collaborators. \u201cGlobal Burden of 88 Risk Factors in 204 Countries and Territories, 1990\u20132021: A Systematic Analysis for the Global Burden of Disease Study 2021.\u201d The Lancet 403 (2024): 2162\u20132203.", "Global Cardiovascular Risk Consortium (Magnussen, Christina, Francisco M. Ojeda, Darryl P. Leong, Jesus Alegre-Diaz, Philippe Amouyel, and Larissa Aviles-Santa). \u201cGlobal Effect of Modifiable Risk Factors on Cardiovascular Disease and Mortality.\u201d New England Journal of Medicine 389, no. 14 (2023): 1273\u20131285. https://doi.org/10.1056/NEJMoa2206916.", "Institute for Health Metrics and Evaluation (IHME). \u201cGlobal, Regional, and National Burden of Cardiovascular Diseases and Risk Factors.\u201d Global Burden of Disease Study 2023. Seattle: IHME, 2024. https://www.healthdata.org/research-analysis/library/global-regional-and-national-burden-cardiovascular-diseases-and-risk.", ] for entry in bibliography: p = doc.add_paragraph() p.paragraph_format.space_after = Pt(6) p.paragraph_format.first_line_indent = Pt(-36) p.paragraph_format.left_indent = Pt(36) r = p.add_run(entry); sr(r) out = "/tmp/workspace/assignment3/Assignment3_CVD_Risk_Factors.docx" doc.save(out) # Word count check doc2 = Document(out) skip = ('Notes','Bibliography','1. ','2. ','3. ','4. ', 'Chong, Bryan','GBD 2021','Global Cardiovasc','Institute for Health', 'Silent Threats','Introduction') body = [] for p2 in doc2.paragraphs: t = p2.text.strip() if not t: continue if any(t.startswith(s) for s in skip): continue body.append(t) clean = re.sub(r'\[.*?\]\s*', '', ' '.join(body)) words = clean.split() print(f"Saved: {out}") print(f"Body word count: {len(words)}") EOF
Assignment3 CVD Risk Factors
Word Document · DOCX