I am just starting my final year of mbbs. Make integration of previous year subjects witg this year subjects so that I can revise along with my completion of chapters make it detailed, doable and properly organised in subjects and chapters

Reading File
Reading File
A workable final-year integration plan needs to be aligned to your university's teaching sequence and your intended exam style. I will structure it around the usual Indian MBBS final-year subjects: Medicine, Surgery, Obstetrics and Gynaecology, Paediatrics, and Community Medicine, with revision links to Anatomy, Physiology, Biochemistry, Pathology, Pharmacology, Microbiology, and Forensic Medicine.

Integrated study map

  1. Medicine
    • Cardiovascular, respiratory, gastroenterology, nephrology, neurology, endocrinology, rheumatology, haematology, dermatology, psychiatry, infectious disease, emergency medicine.
    • Integrate each with physiology, pathology, pharmacology, microbiology, imaging anatomy, and clinical examination.
  2. Surgery
    • General surgery, gastrointestinal and hepatobiliary surgery, breast, thyroid, vascular, urology, neurosurgery, orthopaedics, anaesthesia, trauma and burns.
    • Integrate with regional anatomy, wound healing and pathology, fluids and electrolytes, antibiotics, perioperative pharmacology, and radiology.
  3. Obstetrics and Gynaecology
    • Antenatal care, normal labour, obstetric emergencies, medical disorders in pregnancy, puerperium, infertility, menstrual disorders, benign and malignant gynaecology, contraception.
    • Integrate with reproductive anatomy and embryology, physiology, endocrinology, pharmacology, pathology, microbiology, genetics, and community medicine.
  4. Paediatrics
    • Growth and development, neonatology, nutrition, respiratory disease, diarrhoea, infections, neurology, nephrology, cardiology, haematology, endocrinology, immunisation.
    • Integrate with embryology, developmental physiology, nutrition and biochemistry, microbiology, pharmacology with paediatric dosing principles, and preventive medicine.
  5. Community Medicine
    • Epidemiology, biostatistics, screening, communicable and non-communicable disease programmes, maternal and child health, nutrition, environmental health, health systems, ethics and medico-legal concepts.
    • Integrate it into every clinical chapter through risk factors, prevention, screening, notification, surveillance, and national programmes.
  6. Horizontal revision blocks
    • Symptom-based: fever, chest pain, breathlessness, abdominal pain, jaundice, oedema, altered sensorium, bleeding, weight loss.
    • System-based: acid-base, shock, anaemia, fluid-electrolyte disorders, infections, malignancy, trauma, pregnancy physiology.
    • Investigation-based: ECG, chest X-ray, ABG, CBC/peripheral smear, LFT/KFT, urine examination, CT/MRI basics, common culture reports.
    • Skills-based: history, examination, differential diagnosis, interpretation, emergency first response, prescriptions, communication and documentation.
I can turn this into a detailed, chapter-by-chapter weekly plan, but the most useful version depends on your primary goal.
Asking for Preferences

Which detailed plan should I build first? · What should the plan prioritise?

A workable final-year integration plan needs to be aligned to your university's teaching sequence and your intended exam style. I will structure it around the usual Indian MBBS final-year subjects: Medicine, Surgery, Obstetrics and Gynaecology, Paediatrics, and Community Medicine, with revision links to Anatomy, Physiology, Biochemistry, Pathology, Pharmacology, Microbiology, and Forensic Medicine.

Integrated study map

  1. Medicine
    • Cardiovascular, respiratory, gastroenterology, nephrology, neurology, endocrinology, rheumatology, haematology, dermatology, psychiatry, infectious disease, emergency medicine.
    • Integrate each with physiology, pathology, pharmacology, microbiology, imaging anatomy, and clinical examination.
  2. Surgery
    • General surgery, gastrointestinal and hepatobiliary surgery, breast, thyroid, vascular, urology, neurosurgery, orthopaedics, anaesthesia, trauma and burns.
    • Integrate with regional anatomy, wound healing and pathology, fluids and electrolytes, antibiotics, perioperative pharmacology, and radiology.
  3. Obstetrics and Gynaecology
    • Antenatal care, normal labour, obstetric emergencies, medical disorders in pregnancy, puerperium, infertility, menstrual disorders, benign and malignant gynaecology, contraception.
    • Integrate with reproductive anatomy and embryology, physiology, endocrinology, pharmacology, pathology, microbiology, genetics, and community medicine.
  4. Paediatrics
    • Growth and development, neonatology, nutrition, respiratory disease, diarrhoea, infections, neurology, nephrology, cardiology, haematology, endocrinology, immunisation.
    • Integrate with embryology, developmental physiology, nutrition and biochemistry, microbiology, pharmacology with paediatric dosing principles, and preventive medicine.
  5. Community Medicine
    • Epidemiology, biostatistics, screening, communicable and non-communicable disease programmes, maternal and child health, nutrition, environmental health, health systems, ethics and medico-legal concepts.
    • Integrate it into every clinical chapter through risk factors, prevention, screening, notification, surveillance, and national programmes.
  6. Horizontal revision blocks
    • Symptom-based: fever, chest pain, breathlessness, abdominal pain, jaundice, oedema, altered sensorium, bleeding, weight loss.
    • System-based: acid-base, shock, anaemia, fluid-electrolyte disorders, infections, malignancy, trauma, pregnancy physiology.
    • Investigation-based: ECG, chest X-ray, ABG, CBC/peripheral smear, LFT/KFT, urine examination, CT/MRI basics, common culture reports.
    • Skills-based: history, examination, differential diagnosis, interpretation, emergency first response, prescriptions, communication and documentation.
I can turn this into a detailed, chapter-by-chapter weekly plan, but the most useful version depends on your primary goal.## Final-year MBBS integrated revision map
Use this as your master structure while completing final-year chapters. For every clinical chapter, revise the linked previous-year topics in a 45 to 75 minute integration block, not as separate long subjects.

Daily working pattern

For each chapter you finish in class or postings:
  1. Read the final-year chapter: 2 to 3 hours.
  2. Link-back revision: 45 to 75 minutes from preclinical and paraclinical subjects.
  3. Clinical application: 20 to 30 minutes
    • history and examination
    • differential diagnosis
    • investigations
    • management
    • complications and prevention
  4. Questions: 15 to 25 MCQs or 2 short-answer questions.
  5. Weekly review: One half-day to revise that week’s chapters, cases, investigations, and errors.
Keep one notebook or digital file called Integrated Clinical Revision. Give each chapter five fixed headings:
  • Basic mechanism
  • Pathology and microbiology
  • Drug treatment
  • Investigations and interpretation
  • Prevention, programme, and counselling

1. Medicine integration plan

A. Cardiovascular medicine

Final-year chapterRevise alongside it
HypertensionRenin-angiotensin-aldosterone system, cardiac cycle, renal handling of sodium, vascular pathology, antihypertensives, hypertensive retinopathy, epidemiology and screening
Ischaemic heart disease and MICoronary anatomy, cardiac physiology, atherosclerosis and thrombosis, lipid metabolism, ECG basics, antiplatelets, anticoagulants, thrombolytics, statins
Heart failureFrank-Starling law, preload/afterload, cardiac remodeling, valvular pathology, diuretics, ACE inhibitors/ARBs, beta-blockers, electrolyte disorders
Valvular heart diseaseCardiac auscultation, valve anatomy, rheumatic fever, rheumatic heart disease pathology, infective endocarditis, anticoagulation
ArrhythmiasCardiac conduction system, action potential, ECG interpretation, electrolytes, antiarrhythmic drug classes
ShockHaemodynamics, autonomic physiology, sepsis, anaphylaxis, fluid therapy, vasopressors, acid-base disorders
Must-master clinical skills: JVP, pulse, blood pressure, cardiac auscultation, ECG approach, chest X-ray approach, peripheral oedema examination.

B. Respiratory medicine

Final-year chapterRevise alongside it
AsthmaAirway anatomy, respiratory physiology, hypersensitivity, eosinophilia, inhaled bronchodilators and corticosteroids
COPDVentilation-perfusion mismatch, smoking-related pathology, ABG interpretation, bronchodilators, oxygen therapy
PneumoniaLung segments, inflammation, common bacterial and viral organisms, antibiotics, chest X-ray findings
TuberculosisGranulomatous inflammation, Mycobacterium tuberculosis, Ziehl-Neelsen stain, GeneXpert basics, anti-tubercular drugs, national TB programme
Pleural effusionPleural anatomy, Starling forces, transudate vs exudate, Light’s criteria, tuberculosis and malignancy
Pulmonary embolismVenous thrombosis, coagulation cascade, Virchow triad, anticoagulants, D-dimer and imaging basics
Respiratory failureABG, acid-base balance, oxygen delivery, non-invasive ventilation and mechanical ventilation principles
Must-master skills: respiratory examination, chest X-ray, ABG, inhaler technique, sputum report interpretation.

C. Gastroenterology and hepatology

Final-year chapterRevise alongside it
Peptic ulcer diseaseGastric physiology, Helicobacter pylori, NSAID pharmacology, acid suppression drugs, upper GI bleeding
Hepatitis and jaundiceBilirubin metabolism, liver function tests, hepatitis viruses, hepatocellular injury vs cholestasis
Cirrhosis and portal hypertensionLiver anatomy, portal-systemic anastomoses, fibrosis, ascites physiology, diuretics, variceal bleeding
Acute pancreatitisPancreatic anatomy and enzymes, gallstones, alcohol-related injury, fluid resuscitation, calcium and triglycerides
Inflammatory bowel diseaseGut immune mechanisms, pathology of Crohn disease/ulcerative colitis, anaemia, steroids and immunosuppressants
DiarrhoeaFluid-electrolyte physiology, common organisms, ORS mechanism, dehydration assessment, public-health prevention
Must-master skills: abdominal examination, ascites examination, LFT pattern recognition, GI bleed approach, hydration assessment.

D. Nephrology

Final-year chapterRevise alongside it
Acute kidney injuryRenal physiology, renal blood flow, urine formation, prerenal/intrinsic/postrenal causes, nephrotoxic drugs
Chronic kidney diseaseGFR, calcium-phosphate metabolism, erythropoietin, renal osteodystrophy, dialysis principles
Nephrotic syndromeGlomerular filtration barrier, proteinuria, oedema physiology, hypercoagulability
Nephritic syndrome and glomerulonephritisImmune-mediated injury, complement, streptococcal infection, urine microscopy
Electrolyte disordersSodium, potassium, calcium, magnesium physiology, ECG changes, emergency correction principles
Acid-base disordersBuffer systems, respiratory compensation, anion gap, ABG interpretation
Must-master skills: urine examination, fluid balance charting, electrolyte/ECG correlation, ABG method, dialysis indications.

E. Neurology

Final-year chapterRevise alongside it
StrokeCerebral vascular anatomy, neuroanatomical localisation, atherosclerosis, coagulation, thrombolysis/antiplatelets, rehabilitation and prevention
SeizuresNeuronal action potentials, synaptic transmission, epilepsy syndromes, anti-seizure drugs
Meningitis and encephalitisMeningeal anatomy, CSF formation, bacteria/viruses, CSF analysis, antimicrobials
ParkinsonismBasal ganglia pathways, dopamine physiology, levodopa and dopamine agonists
NeuropathyPeripheral nerve anatomy, diabetes, vitamin B12 deficiency, nerve conduction study basics
Myasthenia gravisNeuromuscular junction physiology, autoimmunity, acetylcholinesterase inhibitors
Must-master skills: higher mental function, cranial nerves, motor/sensory examination, reflexes, localisation, CT brain basics.

F. Endocrinology, rheumatology and haematology

Final-year chapterRevise alongside it
Diabetes mellitusInsulin physiology, carbohydrate metabolism, diabetic ketoacidosis, insulin and oral drugs, microvascular complications
Thyroid diseaseHypothalamic-pituitary-thyroid axis, thyroid hormone synthesis, autoimmunity, antithyroid drugs
Adrenal disordersHPA axis, cortisol/aldosterone physiology, steroid pharmacology, electrolyte effects
Rheumatoid arthritis/SLEAutoimmunity, hypersensitivity, inflammation, NSAIDs, DMARDs, steroid adverse effects
AnaemiaHaemoglobin synthesis, iron/B12/folate metabolism, peripheral smear, reticulocyte count, transfusion basics
Leukaemia/lymphomaHaematopoiesis, cell morphology, cytogenetics basics, chemotherapy adverse effects

2. Surgery integration plan

A. General surgical principles

Final-year chapterRevise alongside it
Wound healingInflammation, collagen synthesis, vitamin C, diabetes, infection, nutrition
Shock and traumaHaemodynamics, blood loss, fluid therapy, blood grouping/cross-matching, acid-base balance
BurnsSkin anatomy, fluid compartments, fluid resuscitation, infection control, nutrition
Surgical infectionsInflammation, pus formation, common organisms, antibiotics, sterilisation and asepsis
Fluids and electrolytesBody fluid compartments, sodium/potassium abnormalities, ABG, IV fluid composition
Anaesthesia basicsAirway anatomy, autonomic physiology, local and general anaesthetic pharmacology, perioperative risk

B. System-wise surgery

Final-year chapterRevise alongside it
HerniaInguinal canal anatomy, anterior abdominal wall, embryology of processus vaginalis
Thyroid swellingThyroid anatomy, recurrent laryngeal nerve, thyroid physiology, thyroid function tests, thyroid pathology
Breast lumpBreast anatomy and lymphatic drainage, benign breast disease, carcinoma pathology, hormone receptors and screening
Acute abdomenAbdominal anatomy, peritonitis, appendicitis pathology, intestinal obstruction, fluid resuscitation
Gallstones and biliary diseaseHepatobiliary anatomy, bilirubin metabolism, pancreatitis links, ultrasound findings
Colorectal cancerLarge-intestinal anatomy, adenoma-carcinoma sequence, anaemia, staging and screening
Urological diseaseKidney/ureter/bladder anatomy, urine analysis, stones, prostatic disease, renal physiology
Vascular diseaseArterial anatomy, atherosclerosis, thrombosis, Doppler principles, anticoagulants
Head injuryNeuroanatomy, raised intracranial pressure, Glasgow Coma Scale, CT head
Fractures and orthopaedicsBone anatomy, fracture healing, calcium/vitamin D, osteomyelitis, nerve injuries
Must-master skills: surgical examination, wound description, fluid calculation, drains/tubes, X-ray reading, consent and preoperative preparation.

3. Obstetrics and Gynaecology integration plan

A. Obstetrics

Final-year chapterRevise alongside it
Normal pregnancyFemale reproductive anatomy, placentation, embryology, physiological changes in pregnancy
Antenatal careAnaemia, hypertension, diabetes, blood groups/Rh incompatibility, nutrition, screening and counselling
Normal labourPelvic anatomy, fetal skull, cardinal movements, uterine physiology, partograph
Postpartum haemorrhageUterine anatomy, placental separation, coagulation cascade, shock, uterotonics, blood products
Hypertensive disorders of pregnancyRenal physiology, endothelial dysfunction, antihypertensives, magnesium sulfate, fetal surveillance
Gestational diabetesInsulin physiology, carbohydrate metabolism, fetal growth, insulin use
Anaemia in pregnancyIron metabolism, haemoglobin synthesis, nutritional programmes, transfusion principles
Infections in pregnancyTORCH infections, HIV/hepatitis/syphilis, microbiology, antimicrobials safe in pregnancy
Ectopic pregnancyTubal anatomy, implantation, shock, beta-hCG interpretation
PuerperiumLactation physiology, puerperal sepsis, thrombosis, contraception

B. Gynaecology

Final-year chapterRevise alongside it
Menstrual disordersHPO axis, endometrial cycle, hormones, PCOS, thyroid/prolactin links
InfertilityOvulation physiology, semen analysis, reproductive anatomy, endocrine causes
Fibroid uterusUterine anatomy, smooth muscle pathology, hormone dependence, anaemia
Ovarian massesOvarian anatomy/embryology, tumour markers, pathology, imaging
Cervical cancerHPV, transformation zone, pathology, screening tests, HPV vaccination
ContraceptionReproductive physiology, hormonal pharmacology, contraindications, national family-planning services
Must-master skills: antenatal examination, fetal lie/presentation, partograph, pelvic examination principles, Pap smear concept, obstetric emergency algorithms.

4. Paediatrics integration plan

Final-year chapterRevise alongside it
Growth and developmentDevelopmental milestones, developmental anatomy, nutrition, developmental assessment
Neonatal resuscitationFetal circulation, transition at birth, airway physiology, APGAR score
Neonatal jaundiceBilirubin metabolism, haemolysis, breastfeeding, kernicterus, phototherapy
Neonatal sepsisMaternal risk factors, microbiology, antibiotics, asepsis
Acute respiratory infectionRespiratory physiology, pneumonia organisms, asthma/bronchiolitis differentiation, IMNCI
Acute diarrhoeaDehydration assessment, ORS physiology, zinc, organisms, sanitation
Protein-energy malnutritionMacronutrient metabolism, vitamin/mineral deficiency, growth charts, feeding counselling
ImmunisationImmunology, vaccine types, cold chain, schedules, adverse-event principles
Congenital heart diseaseFetal circulation, embryology of heart, cyanosis, murmurs, ECG/CXR basics
Nephrotic syndromeGlomerular physiology, oedema, proteinuria, steroid therapy
CNS infectionMeningitis organisms by age, CSF interpretation, seizures, antibiotics
Childhood anaemiaIron metabolism, nutrition, peripheral smear, haemoglobinopathies
Diabetes and thyroid diseaseEndocrine physiology, growth effects, insulin and thyroid medication
Must-master skills: growth chart plotting, developmental assessment, dehydration grading, paediatric drug-dose calculations, immunisation counselling, neonatal examination.

5. Community Medicine: attach it to every clinical chapter

Do not reserve PSM for the end. Add these five questions to every condition:
  1. Who is at risk?
  2. How can it be prevented?
  3. What screening is available?
  4. Is it notifiable or part of a national programme?
  5. What counselling is needed for patient and family?

High-yield integration clusters

Clinical areaCommunity Medicine link
TB, malaria, dengue, HIV, diarrhoeaSurveillance, notification, outbreak investigation, national programmes, sanitation/vector control
Hypertension, diabetes, cancerRisk factors, screening, lifestyle, levels of prevention, NCD programmes
Pregnancy and child healthANC, institutional delivery, nutrition, immunisation, family planning, maternal/infant mortality indicators
Malnutrition and anaemiaNutrition programmes, growth monitoring, iron-folic acid supplementation, food safety
Trauma and poisoningInjury epidemiology, prevention, medico-legal documentation, emergency referral
Screening testsSensitivity, specificity, predictive values, lead-time bias and screening criteria

6. Weekly structure that remains doable

Monday to Friday

  • One main final-year topic/day
  • One related previous-year revision block/day
  • 15 to 25 MCQs/day
  • One patient or case discussion from the same system

Saturday

  • Revise all five topics from the week.
  • Write two long answers or five short notes.
  • Interpret five investigations: ECG, X-ray, CBC, LFT/KFT, ABG, urine routine, or imaging.
  • Do one practical skill: examination, prescription, counselling, or emergency algorithm.

Sunday

  • Half-day light revision or rest.
  • Make a one-page “system sheet”:
    • common presentations
    • differential diagnoses
    • key investigations
    • first-line treatment
    • emergencies
    • prevention

7. First 12 weeks: suggested order

  1. Cardiovascular medicine + hypertension/IHD/heart failure
  2. Respiratory medicine + asthma/COPD/pneumonia/TB
  3. Gastroenterology + jaundice/cirrhosis/GI bleed/pancreatitis
  4. Nephrology + AKI/CKD/electrolytes/ABG
  5. Endocrinology + diabetes/thyroid/adrenal disorders
  6. Neurology + stroke/seizure/meningitis
  7. General surgery + shock/fluids/wounds/burns
  8. GI surgery + acute abdomen/hernia/hepatobiliary disease
  9. Breast/thyroid/urology/vascular surgery
  10. Normal pregnancy, ANC and normal labour
  11. Obstetric emergencies and medical disorders in pregnancy
  12. Paediatric growth, neonatology, nutrition and immunisation
Then continue with gynaecology, remaining paediatric systems, orthopaedics, dermatology, psychiatry, emergency medicine, and full integrated revision cycles.
Choose one starting point for a genuinely chapter-by-chapter timetable: Medicine, Surgery, OBG, Paediatrics, or a complete month-wise final-year schedule.

Divide the previous year topics to be revised in subjects as well. Make it in table format with color coding make it such that I take out a printout and I only have to refer to it for studying format. Also divide it according to units. Make it as easy for me as possible

Reading File
I can make this as a print-ready colour-coded master planner, divided by:
SectionWhat it will contain
Final-year unitsMedicine, Surgery, OBG, Paediatrics, Community Medicine
Previous-year subjectsAnatomy, Physiology, Biochemistry, Pathology, Pharmacology, Microbiology, Forensic Medicine
Unit-wise tablesOne table per clinical system or unit
Colour codeA fixed colour for every previous-year subject
Daily study formatWhat to study from the clinical chapter, what to revise from old subjects, and a tick box
Weekly trackerUnit completion, case seen, MCQs, revision 1 and revision 2

Proposed colour key

ColourSubject
🟦 BlueAnatomy
🟩 GreenPhysiology
🟨 YellowBiochemistry
🟥 RedPathology
🟪 PurplePharmacology
🟧 OrangeMicrobiology
🩶 GreyForensic Medicine
🟫 BrownCommunity Medicine / Prevention
⬜ WhiteClinical chapter and practical skill
I need one choice before preparing it, since it will determine the format and length:
Do you want a downloadable print-ready document, or tables directly in chat?
If downloadable, I recommend a Word document (.docx) so you can modify it and print it.

Make it as an editable Word document

Reading File
Reading File
Browsing Directory

~/

Finding Sources
Searching PubMed

medical education integrated curriculum

Searching the Web

National Medical Commission India MBBS curriculum final year subjects competency based medical education

Reading File
Reading File
Running Command

mkdir -p "/tmp/workspace/mbbs-integrated-planner/src" "/tmp/workspace/mbbs-integrated-planner/output" && python3 - <<'PY' from docx import Document from docx.shared import Inches, Pt, RGBColor from docx.enum.section import WD_ORIENT from docx.enum.text import WD_ALIGN_PARAGRAPH from docx.enum.table import WD_TABLE_ALIGNMENT, WD_CELL_VERTICAL_ALIGNMENT from docx.oxml import OxmlElement from docx.oxml.ns import qn from docx.enum.style import WD_STYLE_TYPE from docx.enum.section import WD_SECTION from docx.enum.text import WD_BREAK OUT='/tmp/workspace/mbbs-integrated-planner/output/Final_Year_MBBS_Integrated_Revision_Planner.docx' def shade(cell, fill): tcPr=cell._tc.get_or_add_tcPr(); shd=OxmlElement('w:shd'); shd.set(qn('w:val'),'clear'); shd.set(qn('w:fill'),fill); tcPr.append(shd) def borders(cell, color='A6A6A6'): tcPr=cell._tc.get_or_add_tcPr(); tcBorders=tcPr.first_child_found_in('w:tcBorders') if tcBorders is None: tcBorders=OxmlElement('w:tcBorders'); tcPr.append(tcBorders) for e in ('top','left','bottom','right'): el=tcBorders.find(qn('w:'+e)) if el is None: el=OxmlElement('w:'+e); tcBorders.append(el) el.set(qn('w:val'),'single'); el.set(qn('w:sz'),'4'); el.set(qn('w:color'),color) def set_cell(cell,text,bold=False,size=8.2,color=None): cell.text=''; p=cell.paragraphs[0]; p.paragraph_format.space_after=Pt(0); p.paragraph_format.space_before=Pt(0) r=p.add_run(text); r.bold=bold; r.font.name='Arial'; r.font.size=Pt(size) if color: r.font.color.rgb=RGBColor(*color) cell.vertical_alignment=WD_CELL_VERTICAL_ALIGNMENT.CENTER; borders(cell) def set_repeat_table_header(row): trPr=row._tr.get_or_add_trPr(); tblHeader=OxmlElement('w:tblHeader'); tblHeader.set(qn('w:val'),'true'); trPr.append(tblHeader) def set_width(cell, inches): cell.width=Inches(inches) def no_split(row): trPr=row._tr.get_or_add_trPr(); cant=OxmlElement('w:cantSplit'); trPr.append(cant) D=Document() sec=D.sections[0]; sec.orientation=WD_ORIENT.LANDSCAPE; sec.page_width=Inches(11.69); sec.page_height=Inches(8.27); sec.top_margin=Inches(.45); sec.bottom_margin=Inches(.45); sec.left_margin=Inches(.45); sec.right_margin=Inches(.45) # default styles normal=D.styles['Normal']; normal.font.name='Arial'; normal.font.size=Pt(9) for nm,sz,col in [('Title',24,'17365D'),('Heading 1',17,'17365D'),('Heading 2',13,'1F4E78'),('Heading 3',11,'1F4E78')]: s=D.styles[nm]; s.font.name='Arial'; s.font.size=Pt(sz); s.font.bold=True; s.font.color.rgb=RGBColor.from_string(col) s.paragraph_format.space_before=Pt(8); s.paragraph_format.space_after=Pt(4) C={'ANAT':'DDEBF7','PHYS':'E2F0D9','BIOC':'FFF2CC','PATH':'FCE4D6','PHARM':'E4DFEC','MICRO':'FCE4D6','FMT':'D9EAD3','PSM':'EAD1DC','SKILL':'EDEDED'} # alter micro orange C['MICRO']='FCE4D6'; C['FMT']='D9E1F2'; C['PSM']='EAD1DC' subject_full={'ANAT':'Anatomy','PHYS':'Physiology','BIOC':'Biochemistry','PATH':'Pathology','PHARM':'Pharmacology','MICRO':'Microbiology','FMT':'Forensic Medicine','PSM':'Community Medicine','SKILL':'Clinical skill'} p=D.add_paragraph(); p.alignment=WD_ALIGN_PARAGRAPH.CENTER r=p.add_run('FINAL-YEAR MBBS\nINTEGRATED REVISION PLANNER'); r.bold=True; r.font.name='Arial'; r.font.size=Pt(25); r.font.color.rgb=RGBColor(23,54,93) p=D.add_paragraph(); p.alignment=WD_ALIGN_PARAGRAPH.CENTER; r=p.add_run('A unit-wise, printable and editable companion for clinical postings, theory, viva and revision'); r.italic=True; r.font.size=Pt(11) D.add_paragraph('How to use: Complete the clinical topic first. Then revise only the colour-coded previous-year cells in the same row. Tick the last columns only after active recall, cases and questions. Keep each row to one study session or one weekend block.',style='Intense Quote') D.add_heading('Colour key',1) t=D.add_table(rows=2,cols=9); t.alignment=WD_TABLE_ALIGNMENT.CENTER; t.style='Table Grid' for i,k in enumerate(['ANAT','PHYS','BIOC','PATH','PHARM','MICRO','FMT','PSM','SKILL']): set_cell(t.cell(0,i),k,True,8); shade(t.cell(0,i),C[k]); set_cell(t.cell(1,i),subject_full[k],False,7.3); shade(t.cell(1,i),C[k]) D.add_paragraph('Suggested study dose per row: Clinical chapter 90-120 min | linked old-topic revision 45-60 min | clinical skill 15 min | 15-25 MCQs or 2 SAQs 20-30 min. Do not try to finish all subjects independently on the same day.',style='Normal') D.add_heading('One-page weekly workflow',1) t=D.add_table(rows=1,cols=5); t.style='Table Grid'; t.alignment=WD_TABLE_ALIGNMENT.CENTER for i,h in enumerate(['Day','Main task','Old-subject revision','Output','Tick']): set_cell(t.cell(0,i),h,True,8); shade(t.cell(0,i),'1F4E78') for cell in t.rows[0].cells: for r in cell.paragraphs[0].runs: r.font.color.rgb=RGBColor(255,255,255) for day,task,old,out in [ ('Mon','New clinical chapter 1','Read all linked coloured cells','5-point recall + MCQs','☐'),('Tue','New clinical chapter 2','Read all linked coloured cells','Case sheet / flowchart','☐'),('Wed','New clinical chapter 3','Read all linked coloured cells','Investigations review','☐'),('Thu','New clinical chapter 4','Read all linked coloured cells','Viva aloud','☐'),('Fri','New clinical chapter 5','Read all linked coloured cells','MCQs + errors list','☐'),('Sat','Weekly consolidation','Revisit weak rows only','2 LAQs / 5 SAQs + 1 case','☐'),('Sun','Light revision or rest','Flashcards, images, algorithms','Plan next week','☐')]: row=t.add_row(); vals=[day,task,old,out,tick] for i,x in enumerate(vals): set_cell(row.cells[i],x,False,8) no_split(row) units={ 'MEDICINE':[ ('Unit 1: Cardiovascular medicine',[ ('Hypertension','ANAT: heart, kidney vessels; PHYS: RAAS, BP control; PATH: arteriolosclerosis, target-organ injury; PHARM: antihypertensives; PSM: screening, lifestyle'), ('IHD, ACS and MI','ANAT: coronary circulation; PHYS: cardiac cycle; BIOC: lipids; PATH: atherosclerosis, thrombosis; PHARM: antiplatelets, anticoagulants, statins'), ('Heart failure','PHYS: preload, afterload, Frank-Starling; PATH: hypertrophy/remodelling; PHARM: diuretics, ACEi/ARB, beta-blockers; PSM: salt/fluid counselling'), ('Valvular heart disease and infective endocarditis','ANAT: valves, murmurs; PATH: rheumatic disease; MICRO: streptococci, blood culture; PHARM: prophylaxis/antibiotics, anticoagulants'), ('Arrhythmias','PHYS: cardiac action potential, conduction; PHARM: antiarrhythmics; BIOC: K, Mg, Ca disorders; SKILL: systematic ECG reading'), ('Shock and cardiac emergencies','PHYS: haemodynamics; PATH: sepsis/anaphylaxis; PHARM: fluids, vasopressors; FMT: documentation in sudden death; SKILL: ABCDE')]), ('Unit 2: Respiratory medicine',[ ('Asthma','ANAT: bronchial tree; PHYS: airflow resistance; PATH: hypersensitivity; PHARM: inhaled beta2 agonists, steroids; SKILL: inhaler technique'), ('COPD and respiratory failure','PHYS: V/Q mismatch, CO2 retention; PATH: emphysema/chronic bronchitis; PHARM: bronchodilators; SKILL: ABG interpretation, oxygen safety'), ('Pneumonia','ANAT: lung lobes/segments; PATH: acute inflammation; MICRO: CAP organisms; PHARM: empirical antibiotics; PSM: smoking/vaccines'), ('Tuberculosis','PATH: granuloma; MICRO: AFB, NAAT, resistance; PHARM: ATT adverse effects; PSM: notification, programme, contacts'), ('Pleural disease and pneumothorax','ANAT: pleura; PHYS: Starling forces; PATH: transudate/exudate; MICRO: TB; SKILL: CXR and pleural-fluid approach'), ('Pulmonary embolism','PATH: Virchow triad; PHYS: V/Q mismatch; PHARM: heparin/DOACs; PSM: VTE prevention; SKILL: risk assessment')]), ('Unit 3: Gastroenterology and hepatology',[ ('Dyspepsia and peptic ulcer disease','PHYS: gastric acid; PATH: ulcer; MICRO: H. pylori; PHARM: PPI, eradication; FMT: corrosive ingestion differentiation'), ('Jaundice and hepatitis','BIOC: bilirubin metabolism; PATH: hepatocellular/cholestatic patterns; MICRO: hepatitis viruses; PHARM: antivirals; PSM: prevention/vaccination'), ('Cirrhosis, ascites and portal hypertension','ANAT: portal system/anastomoses; PATH: fibrosis; PHYS: ascites; PHARM: diuretics, lactulose; SKILL: ascites exam/LFTs'), ('GI bleeding','ANAT: GI blood supply; PATH: varices/ulcers; PHARM: PPI, vasoactive drugs; SKILL: resuscitation and NG/endoscopy indications'), ('Acute pancreatitis','ANAT: pancreas/biliary tree; PATH: autodigestion; BIOC: amylase/lipase; PHARM: analgesia/fluids; SKILL: severity assessment'), ('Diarrhoea and IBD','PHYS: fluid transport; MICRO: diarrhoeal pathogens; PATH: UC/Crohn; PHARM: ORS, antimicrobials, steroids; PSM: sanitation')]), ('Unit 4: Renal, endocrine, neurology and haematology',[ ('AKI and CKD','PHYS: GFR, tubular function; PATH: ATN/glomerular disease; PHARM: nephrotoxins, dose adjustment; SKILL: urine, fluid balance, dialysis indications'), ('Electrolytes and acid-base','PHYS: Na/K/Ca regulation, buffers; BIOC: anion gap; PHARM: correction principles; SKILL: ABG and ECG correlation'), ('Diabetes and DKA/HHS','BIOC: carbohydrate metabolism; PHYS: insulin; PATH: microvascular disease; PHARM: insulin/orals; PSM: screening, foot care'), ('Thyroid and adrenal disorders','PHYS: HPT/HPA axes; PATH: autoimmune disease; PHARM: antithyroids, steroids; SKILL: TFT interpretation'), ('Stroke, seizures and CNS infection','ANAT: neuroanatomy/vascular territories; PHYS: action potentials; MICRO: meningitis pathogens; PHARM: thrombolysis, antiepileptics, antimicrobials'), ('Anaemia and haematological malignancy','BIOC: iron/B12/folate; PATH: smear, marrow; PHARM: haematinics/chemotherapy; SKILL: CBC/smear and transfusion approach')])], 'SURGERY':[ ('Unit 1: General surgery and emergencies',[ ('Wounds, surgical infection and healing','ANAT: skin/fascia; PATH: inflammation/collagen; MICRO: SSI organisms; PHARM: antibiotics/analgesics; SKILL: wound description'), ('Shock, trauma and haemorrhage','PHYS: haemodynamics; PATH: coagulopathy; PHARM: crystalloids/blood products; FMT: injury documentation; SKILL: ABCDE'), ('Burns','ANAT: skin; PHYS: fluid shifts; PATH: burn depth/healing; MICRO: infection; PHARM: analgesia/tetanus; SKILL: TBSA/fluid calculation'), ('Fluids, electrolytes and nutrition','PHYS: body compartments; BIOC: electrolytes/nutrition; PHARM: IV fluids; SKILL: charts, deficit calculation'), ('Anaesthesia and perioperative care','ANAT: airway; PHYS: respiratory/cardiac effects; PHARM: anaesthetics, muscle relaxants; MICRO: asepsis; SKILL: pre-op checklist')]), ('Unit 2: GI, hepatobiliary and abdominal wall surgery',[ ('Acute abdomen and appendicitis','ANAT: abdominal quadrants/appendix; PATH: inflammation/peritonitis; MICRO: gut flora; PHARM: antibiotics; SKILL: abdominal exam'), ('Intestinal obstruction and perforation','ANAT: bowel/mesentery; PHYS: fluid losses; PATH: ischaemia; PHARM: fluids/antibiotics; SKILL: X-ray basics'), ('Hernia','ANAT: inguinal canal/femoral ring; EMBRYO: processus vaginalis; PATH: strangulation; SKILL: hernia examination'), ('Gallstones, cholecystitis and biliary obstruction','ANAT: biliary tree; BIOC: bilirubin; PATH: stones; MICRO: cholangitis; SKILL: LFT/USG approach'), ('Colorectal disease and cancer','ANAT: rectum/anal canal; PATH: adenoma-carcinoma; PSM: warning signs/screening; SKILL: PR exam principles')]), ('Unit 3: Breast, thyroid, urology, vascular and orthopaedics',[ ('Breast lump and carcinoma','ANAT: breast/lymphatics; PATH: benign vs malignant; PHYS: lactation; PSM: awareness/screening; SKILL: breast exam'), ('Thyroid swelling','ANAT: thyroid/RLN; PHYS: thyroid axis; PATH: nodules/cancer; PHARM: thyroxine/antithyroids; SKILL: neck exam'), ('Urological emergencies and stones','ANAT: urinary tract; PHYS: renal function; BIOC: stone chemistry; MICRO: UTI; PHARM: analgesia/antibiotics; SKILL: urine report'), ('Peripheral vascular disease and DVT','ANAT: arterial/venous anatomy; PATH: atherosclerosis/thrombosis; PHARM: antiplatelets/anticoagulants; SKILL: pulses/ABI'), ('Fractures, osteomyelitis and bone tumours','ANAT: bone/joints; PHYS: bone remodelling; PATH: fracture healing; MICRO: S. aureus; SKILL: X-ray and neurovascular exam')])], 'OBSTETRICS & GYNAECOLOGY':[ ('Unit 1: Normal pregnancy, ANC and labour',[ ('Normal pregnancy and physiological changes','ANAT: uterus/pelvis; EMBRYO: implantation/placenta; PHYS: cardiovascular/renal changes; BIOC: pregnancy tests; SKILL: ANC exam'), ('Antenatal care and screening','PATH: anaemia/HTN; MICRO: HIV, HBV, syphilis; PHARM: IFA, vaccines; PSM: ANC package/high-risk referral'), ('Normal labour and partograph','ANAT: pelvis/fetal skull; PHYS: uterine action; SKILL: abdominal palpation, vaginal exam principles, partograph'), ('Postpartum care and lactation','PHYS: prolactin/oxytocin; PATH: puerperal infection; MICRO: sepsis; PHARM: uterotonics; PSM: postpartum contraception')]), ('Unit 2: Obstetric complications',[ ('Hypertensive disorders of pregnancy','PHYS: renal/BP regulation; PATH: endothelial dysfunction; PHARM: MgSO4/antihypertensives; SKILL: BP, reflexes, danger signs'), ('Gestational diabetes','BIOC: glucose metabolism; PHYS: insulin resistance; PHARM: insulin; PSM: nutrition/follow-up; SKILL: glucose monitoring'), ('Obstetric haemorrhage','ANAT: placental site; PATH: atony/accreta/coagulopathy; PHARM: uterotonics, tranexamic acid; SKILL: shock protocol'), ('Ectopic pregnancy and abortion','ANAT: tubes; EMBRYO: implantation; PATH: rupture; PHARM: anti-D/methotrexate concepts; FMT: documentation/legal aspects'), ('Infections and medical disorders in pregnancy','MICRO: TORCH, UTI, HIV; PHARM: safe antimicrobials; PHYS: altered pharmacokinetics; PSM: prevention/PMTCT')]), ('Unit 3: Gynaecology',[ ('Menstrual disorders and PCOS','PHYS: HPO axis; BIOC: insulin resistance; PATH: endometrium/PCOS; PHARM: hormonal therapy; SKILL: menstrual history'), ('Infertility','ANAT: reproductive tract; PHYS: ovulation; MICRO: genital TB/STI; PHARM: ovulation induction; SKILL: semen/ovulation assessment'), ('Fibroid, ovarian mass and endometriosis','ANAT: uterus/ovaries; PATH: tumour morphology; PHARM: hormonal agents; SKILL: pelvic exam and USG correlation'), ('Cervical cancer and STIs','PATH: dysplasia/cancer; MICRO: HPV/STIs; PSM: screening, vaccination; SKILL: speculum exam/Pap counselling'), ('Contraception and abortion care','PHYS: reproduction; PHARM: hormonal methods; PSM: family planning; FMT: consent, MTP law basics; SKILL: counselling')])], 'PAEDIATRICS':[ ('Unit 1: Growth, nutrition and neonatology',[ ('Growth and development','ANAT: developmental milestones; PHYS: growth regulation; BIOC: nutrition; PSM: growth monitoring; SKILL: charts/milestone assessment'), ('Protein-energy malnutrition and micronutrients','BIOC: macro/micronutrients; PATH: PEM; PHARM: therapeutic feeds/supplements; PSM: nutrition programmes; SKILL: anthropometry'), ('Neonatal resuscitation','PHYS: fetal circulation/transition; ANAT: airway; PHARM: emergency drugs basics; SKILL: NRP sequence'), ('Neonatal jaundice','BIOC: bilirubin; PATH: haemolysis; PHARM: IVIG concepts; SKILL: bilirubin charts, phototherapy principles'), ('Neonatal sepsis','MICRO: common pathogens; PATH: sepsis; PHARM: antibiotics; PSM: infection prevention; SKILL: danger signs')]), ('Unit 2: Common paediatric systems',[ ('ARI, asthma and bronchiolitis','PHYS: paediatric airway; MICRO: respiratory pathogens; PHARM: bronchodilators/antibiotics; SKILL: respiratory distress assessment'), ('Acute diarrhoea and dehydration','PHYS: water/electrolytes; MICRO: diarrhoeal pathogens; PHARM: ORS/zinc; PSM: IMNCI/WASH; SKILL: dehydration plan'), ('Immunisation','MICRO: vaccine types; IMMUNO: immune response; PHARM: adverse-event basics; PSM: schedule/cold chain; SKILL: counselling'), ('CHD and rheumatic heart disease','EMBRYO: cardiac development; PHYS: fetal circulation; PATH: RHD; PHARM: prostaglandin/penicillin concepts; SKILL: cyanosis/murmur exam'), ('Nephrotic syndrome and UTI','PHYS: glomerular filtration; PATH: nephrosis; MICRO: UTI pathogens; PHARM: steroids/antibiotics; SKILL: urine sample/report'), ('Meningitis, seizures and CP','ANAT: CNS; PHYS: neurons; MICRO: age-specific pathogens; PHARM: antimicrobials/antiepileptics; SKILL: neurodevelopment exam')]), ('Unit 3: Paediatric haematology, endocrine and emergencies',[ ('Childhood anaemia and thalassaemia','BIOC: iron/haemoglobin; PATH: smear; PHARM: iron/transfusion; PSM: screening/nutrition; SKILL: CBC interpretation'), ('Diabetes and thyroid disorders','PHYS: endocrine axes; BIOC: glucose; PHARM: insulin/thyroxine; SKILL: counselling and monitoring'), ('Poisoning and accidents','PHARM: toxidromes/antidotes; FMT: medico-legal steps; PSM: injury prevention; SKILL: ABCDE/decontamination basics'), ('Paediatric emergency approach','PHYS: age-related vitals; PHARM: weight-based dosing; SKILL: triage, BLS/PALS concepts, dosage calculation')])], 'COMMUNITY MEDICINE & CROSS-CUTTING':[ ('Unit 1: Attach to every clinical chapter',[ ('Epidemiology and screening','PSM: incidence/prevalence, study designs, sensitivity/specificity, predictive values, screening criteria; SKILL: apply to HTN, DM, cancer, TB'), ('Communicable disease control','MICRO: transmission/diagnosis; PSM: surveillance, notification, outbreak steps, vector control; SKILL: line listing/contact advice'), ('NCD prevention','PATH: risk factors; PHARM: adherence; PSM: primordial-primary-secondary prevention; SKILL: lifestyle counselling'), ('Maternal and child health','PHYS: pregnancy/child growth; PSM: ANC, institutional delivery, immunisation, nutrition; SKILL: risk communication'), ('Ethics, AETCOM and forensic links','FMT: consent, injury certificate, poisoning, sexual offences, death certification; SKILL: communication, documentation, confidentiality')])] } # parse tokens helper abbr_order=['ANAT','PHYS','BIOC','PATH','PHARM','MICRO','FMT','PSM','SKILL'] def topic_table(title, rows): D.add_heading(title,2) table=D.add_table(rows=1, cols=12); table.style='Table Grid'; table.alignment=WD_TABLE_ALIGNMENT.CENTER headers=['#','Clinical chapter','ANAT','PHYS','BIOC','PATH','PHARM','MICRO','FMT','PSM','SKILL','Done'] widths=[.28,1.70,.78,.78,.78,.78,.78,.78,.72,.78,.88,.40] for i,h in enumerate(headers): set_cell(table.cell(0,i),h,True,7.5); shade(table.cell(0,i), '1F4E78' if i<2 or i==11 else C[abbr_order[i-2]]) for r in table.cell(0,i).paragraphs[0].runs: r.font.color.rgb=RGBColor(255,255,255) if (i<2 or i==11) else RGBColor(0,0,0) set_width(table.cell(0,i),widths[i]) set_repeat_table_header(table.rows[0]) for n,(clinical, packed) in enumerate(rows,1): d={k:'' for k in abbr_order} # split segments based on '; ' then label for seg in packed.split('; '): if ': ' in seg: key,val=seg.split(': ',1); key=key.strip() if key in d: d[key]=val elif key=='EMBRYO': d['ANAT']=(d['ANAT']+'; ' if d['ANAT'] else '')+'Embryology: '+val elif key=='IMMUNO': d['MICRO']=(d['MICRO']+'; ' if d['MICRO'] else '')+'Immunology: '+val row=table.add_row(); no_split(row) vals=[str(n),clinical]+[d[k] for k in abbr_order]+['☐'] for i,x in enumerate(vals): set_cell(row.cells[i],x,False,7.2 if i>1 else 7.6) if 2<=i<=10: shade(row.cells[i],C[abbr_order[i-2]]) elif i==0 or i==11: shade(row.cells[i],'F2F2F2') set_width(row.cells[i],widths[i]) for main, sections in units.items(): D.add_page_break(); D.add_heading(main,1) D.add_paragraph('Rule: A blank coloured cell means no separate revision is essential for that row. Use it as revision time for the non-blank cells, then tick Done.',style='Normal') for title,rows in sections: topic_table(title,rows) D.add_page_break(); D.add_heading('Master revision tracker',1) D.add_paragraph('Use this only after you have completed the corresponding unit tables. Target three spaced touches: same week, after 2 weeks, and before examination.') t=D.add_table(rows=1,cols=7); t.style='Table Grid'; t.alignment=WD_TABLE_ALIGNMENT.CENTER for i,h in enumerate(['Final-year subject','Unit','Completed','R1: Same week','R2: 2 weeks','R3: Pre-exam','Weak topics / next action']): set_cell(t.cell(0,i),h,True,8); shade(t.cell(0,i),'1F4E78') for r in t.cell(0,i).paragraphs[0].runs:r.font.color.rgb=RGBColor(255,255,255) for s,us in units.items(): for title,_ in us: row=t.add_row(); for i,x in enumerate([s,title,'☐','☐','☐','☐','']):set_cell(row.cells[i],x,False,8) no_split(row) D.add_heading('Daily chapter sheet - duplicate this page whenever needed',1) t=D.add_table(rows=6,cols=2); t.style='Table Grid'; t.alignment=WD_TABLE_ALIGNMENT.CENTER fields=[('Date / Unit / Chapter',''),('Clinical presentation and differentials',''),('Mechanism, pathology and microbiology',''),('Investigations and interpretation',''),('Management, drug safety and procedures',''),('Prevention, counselling, programme and medico-legal point','')] for i,(a,b) in enumerate(fields): set_cell(t.cell(i,0),a,True,9); shade(t.cell(i,0),'D9EAF7'); set_cell(t.cell(i,1),b,False,9) D.add_paragraph('End-of-session check: ☐ I can present the case ☐ I can explain mechanism ☐ I can interpret one investigation ☐ I can write first-line management ☐ I completed questions',style='Normal') # footer for section in D.sections: footer=section.footer.paragraphs[0]; footer.alignment=WD_ALIGN_PARAGRAPH.CENTER rr=footer.add_run('Final-Year MBBS Integrated Revision Planner | Editable Word document'); rr.font.name='Arial'; rr.font.size=Pt(8); rr.font.color.rgb=RGBColor(100,100,100) D.save(OUT) print(OUT) PY python3 - <<'PY' from docx import Document p='/tmp/workspace/mbbs-integrated-planner/output/Final_Year_MBBS_Integrated_Revision_Planner.docx' d=Document(p) print('paragraphs',len(d.paragraphs),'tables',len(d.tables),'sections',len(d.sections)) print('size_bytes',__import__('os').path.getsize(p)) PY

Running Command

python3 - <<'PY' # Build compact editable planner from docx import Document from docx.shared import Inches,Pt,RGBColor from docx.enum.section import WD_ORIENT from docx.enum.text import WD_ALIGN_PARAGRAPH from docx.enum.table import WD_TABLE_ALIGNMENT,WD_CELL_VERTICAL_ALIGNMENT from docx.oxml import OxmlElement from docx.oxml.ns import qn from pathlib import Path out=Path('/tmp/workspace/mbbs-integrated-planner/output/Final_Year_MBBS_Integrated_Revision_Planner.docx') out.parent.mkdir(parents=True,exist_ok=True) def shade(c,x): p=c._tc.get_or_add_tcPr();e=OxmlElement('w:shd');e.set(qn('w:val'),'clear');e.set(qn('w:fill'),x);p.append(e) def txt(c,s,b=False,sz=7.3): c.text='';p=c.paragraphs[0];p.paragraph_format.space_after=Pt(0);p.paragraph_format.space_before=Pt(0);r=p.add_run(s);r.font.name='Arial';r.font.size=Pt(sz);r.bold=b;c.vertical_alignment=WD_CELL_VERTICAL_ALIGNMENT.CENTER def hdr(row): p=row._tr.get_or_add_trPr();e=OxmlElement('w:tblHeader');e.set(qn('w:val'),'true');p.append(e) def nosplit(row): p=row._tr.get_or_add_trPr();p.append(OxmlElement('w:cantSplit')) D=Document();s=D.sections[0];s.orientation=WD_ORIENT.LANDSCAPE;s.page_width=Inches(11.69);s.page_height=Inches(8.27);s.top_margin=s.bottom_margin=Inches(.42);s.left_margin=s.right_margin=Inches(.4) D.styles['Normal'].font.name='Arial';D.styles['Normal'].font.size=Pt(9) for x,z,c in [('Title',24,'17365D'),('Heading 1',17,'17365D'),('Heading 2',12,'1F4E78')]: st=D.styles[x];st.font.name='Arial';st.font.size=Pt(z);st.font.bold=True;st.font.color.rgb=RGBColor.from_string(c) col={'ANAT':'DDEBF7','PHYS':'E2F0D9','BIOC':'FFF2CC','PATH':'F4CCCC','PHARM':'E4DFEC','MICRO':'FCE4D6','FMT':'D9E1F2','PSM':'EAD1DC','SKILL':'EDEDED'} order=['ANAT','PHYS','BIOC','PATH','PHARM','MICRO','FMT','PSM','SKILL'] # content: subject: list unit title and topics; topic tuple clinical, dict U={ 'MEDICINE':[ ('Cardiovascular',[('Hypertension',{'ANAT':'Heart, kidney vessels','PHYS':'RAAS, BP control','PATH':'Arteriolosclerosis, organ injury','PHARM':'Antihypertensives','PSM':'Screening, lifestyle'}),('IHD/ACS/MI',{'ANAT':'Coronary circulation','PHYS':'Cardiac cycle','BIOC':'Lipids','PATH':'Atherosclerosis, thrombosis','PHARM':'Antiplatelets, anticoagulants, statins'}),('Heart failure',{'PHYS':'Preload, afterload, Frank-Starling','PATH':'Remodelling','PHARM':'Diuretics, ACEi/ARB, beta-blockers','PSM':'Salt/fluid counselling'}),('Valvular disease/endocarditis',{'ANAT':'Valves, murmurs','PATH':'Rheumatic disease','MICRO':'Blood culture, streptococci','PHARM':'Antibiotics, anticoagulation'}),('Arrhythmias',{'PHYS':'Action potential, conduction','BIOC':'K/Mg/Ca disorders','PHARM':'Antiarrhythmics','SKILL':'ECG method'}),('Shock',{'PHYS':'Haemodynamics','PATH':'Sepsis/anaphylaxis','PHARM':'Fluids, vasopressors','SKILL':'ABCDE'})]), ('Respiratory',[('Asthma',{'ANAT':'Bronchial tree','PHYS':'Airflow resistance','PATH':'Hypersensitivity','PHARM':'Inhalers, steroids','SKILL':'Inhaler technique'}),('COPD/respiratory failure',{'PHYS':'V/Q mismatch, CO2 retention','PATH':'Emphysema/chronic bronchitis','PHARM':'Bronchodilators, oxygen','SKILL':'ABG'}),('Pneumonia',{'ANAT':'Lobes/segments','PATH':'Acute inflammation','MICRO':'CAP organisms','PHARM':'Antibiotics','PSM':'Vaccines, smoking'}),('Tuberculosis',{'PATH':'Granuloma','MICRO':'AFB, NAAT, resistance','PHARM':'ATT adverse effects','PSM':'Notification, programme, contacts'}),('Pleural disease/PE',{'ANAT':'Pleura','PHYS':'Starling forces, V/Q','PATH':'Exudate, Virchow triad','PHARM':'Anticoagulants','SKILL':'CXR/pleural fluid'})]), ('GI, liver and kidney',[('PUD/GI bleed',{'PHYS':'Gastric acid','PATH':'Ulcer/varices','MICRO':'H. pylori','PHARM':'PPI, eradication','SKILL':'Resuscitation'}),('Jaundice/hepatitis/cirrhosis',{'ANAT':'Portal system','BIOC':'Bilirubin','PATH':'Fibrosis','MICRO':'Hepatitis viruses','PHARM':'Diuretics, lactulose','SKILL':'LFT/ascites exam'}),('Pancreatitis/diarrhoea',{'ANAT':'Pancreas/biliary tree','PHYS':'Fluid transport','BIOC':'Amylase/lipase','MICRO':'Diarrhoeal pathogens','PHARM':'Fluids, ORS','PSM':'Sanitation'}),('AKI/CKD',{'PHYS':'GFR, tubules','PATH':'ATN/glomerular disease','PHARM':'Nephrotoxins, dose adjustment','SKILL':'Urine, fluid chart, dialysis'}),('Electrolytes/acid-base',{'PHYS':'Na/K/Ca, buffers','BIOC':'Anion gap','PHARM':'Safe correction','SKILL':'ABG, ECG'})]), ('Endocrine, neuro, blood',[('Diabetes/DKA',{'PHYS':'Insulin','BIOC':'Carbohydrate metabolism','PATH':'Microvascular disease','PHARM':'Insulin/orals','PSM':'Foot care, screening'}),('Thyroid/adrenal',{'PHYS':'HPT/HPA axes','PATH':'Autoimmune disease','PHARM':'Antithyroids, steroids','SKILL':'TFTs'}),('Stroke/seizure/CNS infection',{'ANAT':'Neuroanatomy/territories','PHYS':'Action potentials','MICRO':'Meningitis organisms','PHARM':'Thrombolysis, AEDs, antimicrobials','SKILL':'Localisation'}),('Anaemia/malignancy',{'BIOC':'Iron/B12/folate','PATH':'Smear, marrow','PHARM':'Haematinics, chemotherapy','SKILL':'CBC/smear, transfusion'})])], 'SURGERY':[ ('General surgery and trauma',[('Wounds/SSI/healing',{'ANAT':'Skin/fascia','PATH':'Inflammation/collagen','MICRO':'SSI organisms','PHARM':'Antibiotics, analgesia','SKILL':'Wound description'}),('Trauma/shock/haemorrhage',{'PHYS':'Haemodynamics','PATH':'Coagulopathy','PHARM':'Fluids, blood products','FMT':'Injury documentation','SKILL':'ABCDE'}),('Burns',{'ANAT':'Skin','PHYS':'Fluid shifts','PATH':'Depth/healing','MICRO':'Infection','PHARM':'Analgesia/tetanus','SKILL':'TBSA, fluids'}),('Fluids/anaesthesia',{'ANAT':'Airway','PHYS':'Compartments, respiratory effects','BIOC':'Electrolytes/nutrition','PHARM':'IV fluids, anaesthetics','SKILL':'Pre-op checklist'})]), ('GI and abdominal wall',[('Acute abdomen/appendicitis',{'ANAT':'Appendix/quadrants','PATH':'Inflammation/peritonitis','MICRO':'Gut flora','PHARM':'Antibiotics','SKILL':'Abdominal exam'}),('Obstruction/perforation',{'ANAT':'Bowel/mesentery','PHYS':'Fluid losses','PATH':'Ischaemia','PHARM':'Fluids/antibiotics','SKILL':'X-ray'}),('Hernia',{'ANAT':'Inguinal canal/femoral ring','PATH':'Strangulation','SKILL':'Hernia exam'}),('Biliary disease',{'ANAT':'Biliary tree','BIOC':'Bilirubin','PATH':'Stones','MICRO':'Cholangitis','SKILL':'LFT/USG'}),('Colorectal cancer',{'ANAT':'Rectum/anal canal','PATH':'Adenoma-carcinoma','PSM':'Warning signs/screening','SKILL':'PR principles'})]), ('Breast, thyroid, vascular, ortho, urology',[('Breast lump',{'ANAT':'Breast/lymphatics','PATH':'Benign vs malignant','PHYS':'Lactation','PSM':'Awareness','SKILL':'Breast exam'}),('Thyroid swelling',{'ANAT':'Thyroid/RLN','PHYS':'Thyroid axis','PATH':'Nodules/cancer','PHARM':'Thyroxine/antithyroids','SKILL':'Neck exam'}),('Urology/stones',{'ANAT':'Urinary tract','PHYS':'Renal function','BIOC':'Stone chemistry','MICRO':'UTI','PHARM':'Analgesia/antibiotics','SKILL':'Urine report'}),('PVD/DVT',{'ANAT':'Artery/vein','PATH':'Atherosclerosis/thrombosis','PHARM':'Antiplatelets/anticoagulants','SKILL':'Pulses/ABI'}),('Fracture/osteomyelitis',{'ANAT':'Bone/joints','PHYS':'Remodelling','PATH':'Fracture healing','MICRO':'S. aureus','SKILL':'X-ray, NV exam'})])], 'OBSTETRICS & GYNAECOLOGY':[ ('Normal pregnancy, ANC and labour',[('Normal pregnancy',{'ANAT':'Uterus/pelvis, placenta','PHYS':'CV/renal changes','BIOC':'Pregnancy tests','SKILL':'ANC exam'}),('ANC and screening',{'PATH':'Anaemia/HTN','MICRO':'HIV/HBV/syphilis','PHARM':'IFA, vaccines','PSM':'ANC package/referral'}),('Labour/partograph',{'ANAT':'Pelvis/fetal skull','PHYS':'Uterine action','SKILL':'Palpation, partograph'}),('Puerperium/lactation',{'PHYS':'Prolactin/oxytocin','PATH':'Puerperal infection','MICRO':'Sepsis','PHARM':'Uterotonics','PSM':'Contraception'})]), ('Obstetric complications',[('HDP',{'PHYS':'BP/renal regulation','PATH':'Endothelial dysfunction','PHARM':'MgSO4, antihypertensives','SKILL':'Danger signs'}),('GDM',{'BIOC':'Glucose','PHYS':'Insulin resistance','PHARM':'Insulin','PSM':'Nutrition/follow-up'}),('PPH',{'ANAT':'Placental site','PATH':'Atony/accreta/coagulopathy','PHARM':'Uterotonics, TXA','SKILL':'Shock protocol'}),('Ectopic/abortion',{'ANAT':'Tubes','PATH':'Rupture','PHARM':'Anti-D/methotrexate','FMT':'Consent/legal records'}),('Infections/medical disease',{'MICRO':'TORCH, UTI, HIV','PHARM':'Drug safety','PHYS':'Altered kinetics','PSM':'PMTCT'})]), ('Gynaecology',[('Menstrual disorders/PCOS',{'PHYS':'HPO axis','BIOC':'Insulin resistance','PATH':'Endometrium/PCOS','PHARM':'Hormonal therapy','SKILL':'Menstrual history'}),('Infertility',{'ANAT':'Reproductive tract','PHYS':'Ovulation','MICRO':'Genital TB/STI','PHARM':'Ovulation induction','SKILL':'Semen/ovulation assessment'}),('Fibroid/ovarian mass/endometriosis',{'ANAT':'Uterus/ovaries','PATH':'Tumour morphology','PHARM':'Hormonal agents','SKILL':'Pelvic exam/USG'}),('Cervical cancer/STIs',{'PATH':'Dysplasia/cancer','MICRO':'HPV/STIs','PSM':'Screening/vaccination','SKILL':'Pap counselling'}),('Contraception/MTP',{'PHYS':'Reproduction','PHARM':'Hormonal methods','PSM':'Family planning','FMT':'Consent/MTP law','SKILL':'Counselling'})])], 'PAEDIATRICS':[ ('Growth, nutrition and neonatology',[('Growth/development',{'ANAT':'Milestones','PHYS':'Growth regulation','BIOC':'Nutrition','PSM':'Growth monitoring','SKILL':'Charts/milestones'}),('PEM/micronutrients',{'BIOC':'Macro/micronutrients','PATH':'PEM','PHARM':'Therapeutic feeds','PSM':'Nutrition programmes','SKILL':'Anthropometry'}),('Neonatal resuscitation',{'ANAT':'Airway','PHYS':'Fetal circulation/transition','PHARM':'Emergency drugs','SKILL':'NRP sequence'}),('Neonatal jaundice',{'BIOC':'Bilirubin','PATH':'Haemolysis','PHARM':'IVIG concepts','SKILL':'Bilirubin chart/phototherapy'}),('Neonatal sepsis',{'MICRO':'Common pathogens','PATH':'Sepsis','PHARM':'Antibiotics','PSM':'Infection prevention','SKILL':'Danger signs'})]), ('Common paediatric systems',[('ARI/asthma/bronchiolitis',{'PHYS':'Paediatric airway','MICRO':'Respiratory pathogens','PHARM':'Bronchodilators/antibiotics','SKILL':'Distress assessment'}),('Diarrhoea/dehydration',{'PHYS':'Water/electrolytes','MICRO':'Pathogens','PHARM':'ORS/zinc','PSM':'IMNCI/WASH','SKILL':'Dehydration plan'}),('Immunisation',{'MICRO':'Vaccine types/immunity','PHARM':'AEFI basics','PSM':'Schedule/cold chain','SKILL':'Counselling'}),('CHD/RHD',{'ANAT':'Cardiac development','PHYS':'Fetal circulation','PATH':'RHD','PHARM':'Prostaglandin/penicillin','SKILL':'Murmur/cyanosis exam'}),('Nephrotic/UTI',{'PHYS':'Glomerular filtration','PATH':'Nephrosis','MICRO':'UTI','PHARM':'Steroids/antibiotics','SKILL':'Urine report'}),('Meningitis/seizure/CP',{'ANAT':'CNS','PHYS':'Neurons','MICRO':'Age-specific organisms','PHARM':'Antimicrobials/AEDs','SKILL':'Neurodevelopment'})]), ('Haematology, endocrine and emergencies',[('Anaemia/thalassaemia',{'BIOC':'Iron/Hb','PATH':'Smear','PHARM':'Iron/transfusion','PSM':'Nutrition/screening','SKILL':'CBC'}),('Diabetes/thyroid',{'PHYS':'Endocrine axes','BIOC':'Glucose','PHARM':'Insulin/thyroxine','SKILL':'Monitoring'}),('Poisoning/accidents',{'PHARM':'Toxidromes/antidotes','FMT':'Medico-legal steps','PSM':'Prevention','SKILL':'ABCDE/decontamination'}),('Paediatric emergency',{'PHYS':'Age-specific vitals','PHARM':'Weight-based doses','SKILL':'Triage/BLS/dose calculation'})])], 'COMMUNITY MEDICINE & FORENSIC INTEGRATION':[ ('Attach these to every clinical unit',[('Epidemiology/screening',{'PSM':'Incidence, prevalence, study designs, sensitivity, specificity, predictive values; apply to HTN, DM, TB, cancer'}),('Communicable disease control',{'MICRO':'Transmission/diagnosis','PSM':'Surveillance, notification, outbreak, vector control','SKILL':'Line listing/contact advice'}),('NCD prevention',{'PATH':'Risk factors','PHARM':'Adherence','PSM':'Levels of prevention','SKILL':'Lifestyle counselling'}),('Maternal-child health',{'PHYS':'Pregnancy/child growth','PSM':'ANC, delivery, immunisation, nutrition','SKILL':'Risk communication'}),('Ethics/AETCOM/forensic',{'FMT':'Consent, injuries, poisoning, sexual offences, death certificate','SKILL':'Communication, documentation, confidentiality'})])] } # title p=D.add_paragraph();p.alignment=WD_ALIGN_PARAGRAPH.CENTER;r=p.add_run('FINAL-YEAR MBBS\nINTEGRATED REVISION PLANNER');r.font.name='Arial';r.font.size=Pt(25);r.bold=True;r.font.color.rgb=RGBColor(23,54,93) p=D.add_paragraph('Unit-wise, editable and printable companion for clinical postings, theory, viva and revision');p.alignment=WD_ALIGN_PARAGRAPH.CENTER D.add_paragraph('Use one row at a time: finish the clinical topic, revise only the non-blank coloured cells, do the skill, then tick Done. Suggested dose: clinical 90-120 min | old subjects 45-60 min | skill 15 min | questions 20-30 min.') D.add_heading('Colour key',1);t=D.add_table(rows=2,cols=9);t.style='Table Grid';t.alignment=WD_TABLE_ALIGNMENT.CENTER full={'ANAT':'Anatomy','PHYS':'Physiology','BIOC':'Biochemistry','PATH':'Pathology','PHARM':'Pharmacology','MICRO':'Microbiology','FMT':'Forensic Medicine','PSM':'Community Medicine','SKILL':'Clinical skill'} for i,k in enumerate(order): txt(t.cell(0,i),k,True,8);shade(t.cell(0,i),col[k]);txt(t.cell(1,i),full[k],False,7);shade(t.cell(1,i),col[k]) D.add_heading('Weekly routine',1);t=D.add_table(rows=1,cols=5);t.style='Table Grid'; for i,x in enumerate(['Days','Clinical work','Integration work','Output','Check']):txt(t.cell(0,i),x,True,8);shade(t.cell(0,i),'1F4E78');[setattr(r.font.color,'rgb',RGBColor(255,255,255)) for r in t.cell(0,i).paragraphs[0].runs] for a,b,c,d,e in [('Mon-Fri','1 final-year row/day','All non-blank coloured cells','15-25 MCQs or 2 SAQs','☐'),('Saturday','Revise week','Weak cells + images/ECG/X-ray','1 case + 2 LAQs','☐'),('Sunday','Light review/rest','Flashcards/algorithms','Plan next week','☐')]: row=t.add_row(); for i,x in enumerate([a,b,c,d,e]):txt(row.cells[i],x,False,8) # render units for subject,units in U.items(): D.add_page_break();D.add_heading(subject,1);D.add_paragraph('Blank coloured cell = no separate revision required for this topic. Reallocate that time to the filled cells.') for name,topics in units: D.add_heading(name,2);t=D.add_table(rows=1,cols=12);t.style='Table Grid';t.alignment=WD_TABLE_ALIGNMENT.CENTER heads=['#','Clinical chapter']+order+['Done']; widths=[.25,1.62,.75,.75,.75,.75,.75,.75,.70,.75,.84,.35] for i,h in enumerate(heads): txt(t.cell(0,i),h,True,7.2);shade(t.cell(0,i),'1F4E78' if i in (0,1,11) else col[order[i-2]]) if i in (0,1,11): for r in t.cell(0,i).paragraphs[0].runs:r.font.color.rgb=RGBColor(255,255,255) t.cell(0,i).width=Inches(widths[i]) hdr(t.rows[0]) for n,(topic,dic) in enumerate(topics,1): row=t.add_row();nosplit(row);vals=[str(n),topic]+[dic.get(k,'') for k in order]+['☐'] for i,x in enumerate(vals): txt(row.cells[i],x,False,7.0 if i>1 else 7.4);row.cells[i].width=Inches(widths[i]) if 2<=i<=10:shade(row.cells[i],col[order[i-2]]) elif i in (0,11):shade(row.cells[i],'F2F2F2') # tracker D.add_page_break();D.add_heading('Master revision tracker',1);D.add_paragraph('Tick after the first completion and three spaced revisions: same week, after 2 weeks, and before examinations.') t=D.add_table(rows=1,cols=7);t.style='Table Grid';heads=['Subject','Unit','Complete','R1 same week','R2 after 2 weeks','R3 pre-exam','Weak topics / next action'] for i,h in enumerate(heads):txt(t.cell(0,i),h,True,8);shade(t.cell(0,i),'1F4E78');[setattr(r.font.color,'rgb',RGBColor(255,255,255)) for r in t.cell(0,i).paragraphs[0].runs] for subj,us in U.items(): for un,_ in us: row=t.add_row(); for i,x in enumerate([subj,un,'☐','☐','☐','☐','']):txt(row.cells[i],x,False,8) # page footer for ss in D.sections: p=ss.footer.paragraphs[0];p.alignment=WD_ALIGN_PARAGRAPH.CENTER;r=p.add_run('Final-Year MBBS Integrated Revision Planner | Editable Word document');r.font.name='Arial';r.font.size=Pt(8);r.font.color.rgb=RGBColor(100,100,100) D.save(out);print(out, out.stat().st_size) PY python3 - <<'PY' from docx import Document p='/tmp/workspace/mbbs-integrated-planner/output/Final_Year_MBBS_Integrated_Revision_Planner.docx' d=Document(p) print('verified:',len(d.tables),'tables;',len(d.paragraphs),'paragraphs;',len(d.sections),'section(s)') PY

Browsing Directory

~/mbbs-integrated-planner/output

Your editable, colour-coded and print-ready unit-wise planner is ready.
It includes:
  • Medicine, Surgery, Obstetrics and Gynaecology, Paediatrics, Community Medicine, and Forensic integration
  • Separate colour-coded columns for Anatomy, Physiology, Biochemistry, Pathology, Pharmacology, Microbiology, Forensic Medicine, Community Medicine, and clinical skills
  • Unit-wise clinical chapters with only the relevant previous-year topics to revise
  • Weekly routine, tick boxes, and a three-stage spaced-revision tracker

Final Year MBBS Integrated Revision Planner

Word Document · DOCX

Can you make it more detailed

Reading File
Reading File
Searching the Web

NMC CBME curriculum 2024 final MBBS medicine surgery obstetrics gynaecology paediatrics competencies PDF

Searching PubMed

medical education integrated curriculum

Finding Sources
Browsing Directory

~/mbbs-integrated-planner/

Reading File
Finding Sources
Running Command

cat > "/tmp/workspace/mbbs-integrated-planner/src/create_detailed_planner.py" <<'PY' from docx import Document from docx.shared import Inches, Pt, RGBColor from docx.enum.section import WD_ORIENT from docx.enum.text import WD_ALIGN_PARAGRAPH from docx.enum.table import WD_TABLE_ALIGNMENT, WD_CELL_VERTICAL_ALIGNMENT from docx.oxml import OxmlElement from docx.oxml.ns import qn from pathlib import Path OUT=Path('/tmp/workspace/mbbs-integrated-planner/output/Final_Year_MBBS_Detailed_Integrated_Revision_Planner.docx') C={'ANAT':'DDEBF7','PHYS':'E2F0D9','BIOC':'FFF2CC','PATH':'F4CCCC','PHARM':'E4DFEC','MICRO':'FCE4D6','FMT':'D9E1F2','PSM':'EAD1DC','SKILL':'EDEDED'} ORDER=['ANAT','PHYS','BIOC','PATH','PHARM','MICRO','FMT','PSM','SKILL'] FULL={'ANAT':'Anatomy','PHYS':'Physiology','BIOC':'Biochemistry','PATH':'Pathology','PHARM':'Pharmacology','MICRO':'Microbiology','FMT':'Forensic','PSM':'Community Med.','SKILL':'Clinical action'} def shade(c, colour): p=c._tc.get_or_add_tcPr(); e=OxmlElement('w:shd'); e.set(qn('w:val'),'clear'); e.set(qn('w:fill'),colour); p.append(e) def put(c, s, bold=False, size=7.05, white=False): c.text='';p=c.paragraphs[0];p.paragraph_format.space_before=Pt(0);p.paragraph_format.space_after=Pt(0) r=p.add_run(s);r.font.name='Arial';r.font.size=Pt(size);r.bold=bold if white:r.font.color.rgb=RGBColor(255,255,255) c.vertical_alignment=WD_CELL_VERTICAL_ALIGNMENT.CENTER def no_split(row):row._tr.get_or_add_trPr().append(OxmlElement('w:cantSplit')) def repeat(row): e=OxmlElement('w:tblHeader');e.set(qn('w:val'),'true');row._tr.get_or_add_trPr().append(e) def page_number(paragraph): paragraph.alignment=WD_ALIGN_PARAGRAPH.CENTER r=paragraph.add_run('Final-Year MBBS Detailed Integrated Revision Planner | Page ') fld=OxmlElement('w:fldSimple');fld.set(qn('w:instr'),'PAGE');paragraph._p.append(fld) # compact but detailed map, each topic only receives what should actively be revised U={ 'MEDICINE': [ ('Unit M1 - Cardiovascular medicine',[ ('Approach to chest pain','Coronary circulation; pericardium','Cardiac cycle; O2 delivery','Lipids, troponin kinetics','Atherosclerosis; plaque rupture','Aspirin, P2Y12, nitrates, statins','-','-','Risk-factor screen; secondary prevention','Focused CVS exam; ECG within minutes'), ('Stable angina and ACS','Coronary territories','Supply-demand mismatch','Lipid profile; cardiac biomarkers','IHD, MI evolution/complications','DAPT, anticoagulants, beta-blockers, statins','-','-','Smoking, BP, diabetes control','ECG localisation; risk stratification'), ('Hypertension','Renal arteries; aortic arch receptors','RAAS, baroreflex, renal sodium handling','Secondary-cause labs','Hyaline/hyperplastic arteriolosclerosis; organ injury','ACEi/ARB, CCB, thiazide, beta-blocker uses','-','-','Correct BP technique; population screening','BP measurement; fundoscopy; target-organ work-up'), ('Heart failure','Chambers, valves, venous system','Preload, afterload, Frank-Starling, neurohormonal response','BNP concept; Na/K','Hypertrophy, remodelling, oedema','Loop diuretic, ACEi/ARB/ARNI, beta-blocker, MRA, SGLT2i','-','-','Salt, fluid, daily weight counselling','JVP, oedema, basal crepitations; CXR/ECG'), ('Valvular heart disease','Valve anatomy and surface marking','Murmur timing; pressure gradients','-','Rheumatic valvulitis; calcification','Diuretics, anticoagulation; penicillin prophylaxis','Streptococci; blood cultures in IE','-','RHD prevention and dental hygiene','Auscultation; manoeuvres; echo indications'), ('Arrhythmias','SA/AV node; conduction pathways','Action potentials; refractory periods','K, Mg, Ca abnormalities','-','Class I-IV drugs, adenosine, digoxin toxicity','-','-','Anticoagulation counselling in AF','Systematic ECG: rate-rhythm-axis-intervals'), ('Shock and cardiac arrest','Great vessels; access sites','Haemodynamics, O2 delivery, shock types','Lactate; ABG','Sepsis/anaphylaxis/DIC basics','Crystalloids, vasopressors, inotropes, ACLS drugs','Sepsis organisms','Death documentation principles','Sepsis recognition; prevention','ABCDE, CPR, defibrillation algorithm')]), ('Unit M2 - Respiratory medicine',[ ('Asthma','Tracheobronchial tree','Airway resistance; flow-volume loop','Eosinophils/IgE concept','Type I hypersensitivity; remodelling','SABA, ICS, LABA, LTRA; step-up/down','Allergen triggers','-','Trigger control; inhaler adherence','Resp exam; PEFR; inhaler demonstration'), ('COPD','Lobes/segments','V/Q mismatch; CO2 retention','ABG patterns','Chronic bronchitis vs emphysema','LAMA/LABA, ICS indications, O2 safety','Resp infections/exacerbation','-','Smoking cessation; vaccination; rehab','CXR, spirometry, ABG interpretation'), ('Pneumonia','Lung segments; pleura','Gas exchange; fever response','CRP/procalcitonin limits','Lobar/bronchopneumonia','Empiric antibiotics; de-escalation','CAP/HAP organisms; cultures','-','Vaccines, aspiration prevention','Severity scoring; CXR pattern'), ('Tuberculosis','Lymphatic drainage; lung apices','Cell-mediated immunity','-','Caseating granuloma','ATT regimen and adverse effects','AFB smear, NAAT, resistance testing','-','Notification, contact tracing, TB programme','Sputum sample; CXR; adverse-effect monitoring'), ('Pleural effusion/pneumothorax','Pleura; intercostal neurovascular bundle','Starling forces; lung collapse','Protein/LDH interpretation','Transudate/exudate; malignancy','Analgesia, anticoagulants where relevant','TB/empyema','-','VTE prevention; smoking cessation','CXR; Light criteria; safe drain landmarks'), ('Pulmonary embolism','Pulmonary arterial tree; deep veins','Dead space; V/Q mismatch','D-dimer limits','Virchow triad','Heparin, DOACs, thrombolysis indications','-','-','Hospital VTE risk assessment','Wells approach; ECG/ABG/CTPA basics'), ('Respiratory failure/ARDS','Airway and alveolus','Type 1/2 failure; compliance','ABG, A-a concept','Diffuse alveolar damage','O2 devices; NIV; ventilation principles','Sepsis/viral triggers','-','Oxygen safety; prevention of VAP','ABG; oxygen delivery escalation')]), ('Unit M3 - GI, liver and pancreas',[ ('Dyspepsia/PUD','Stomach/duodenum blood supply','Acid secretion','Urea breath/stool antigen concepts','Ulcer complications','PPI, H pylori eradication, NSAID safety','H pylori','Corrosive ingestion distinction','Avoid NSAID misuse','Alarm symptoms; UGIE indications'), ('Upper GI bleed','Portal-systemic anastomoses','Hypovolaemia','Hb, urea, coagulation','Varices, ulcers, Mallory-Weiss','PPI, octreotide/terlipressin, antibiotics in varices','H pylori','-','Alcohol and NSAID advice','Resuscitation, risk score, NG/endoscopy plan'), ('Jaundice/hepatitis','Hepatic segments; biliary tract','Bile formation/excretion','Bilirubin metabolism; AST/ALT/ALP pattern','Hepatitis, cholestasis','Antivirals concepts; avoid hepatotoxins','HAV/HBV/HCV/HEV','-','Vaccination, needle safety','Interpret LFTs; acute liver failure red flags'), ('Cirrhosis/ascites/HE','Portal vein and collaterals','Portal HTN; ascites formation','Albumin, ammonia caveats','Fibrosis, HCC risk','Spironolactone/furosemide, lactulose, prophylaxis','SBP organisms','-','Alcohol cessation, surveillance','Ascites exam; paracentesis; SAAG'), ('Acute pancreatitis','Pancreas and biliary tree','Third spacing','Amylase/lipase, Ca, TG','Autodigestion, necrosis','Fluids, analgesia, nutrition','Infected necrosis','-','Gallstone/alcohol prevention','Severity, USG/CT indications'), ('Diarrhoea/IBD','Small/large bowel','Water/Na transport','Electrolyte loss','UC vs Crohn','ORS, zinc, antibiotics selective, steroids/5-ASA','Cholera, dysentery pathogens','-','WASH, food hygiene','Dehydration plan; stool red flags')]), ('Unit M4 - Renal, endocrine and metabolic',[ ('AKI','Renal blood supply; nephron','GFR autoregulation; tubules','Urea/creatinine; urine indices','ATN, AIN, GN','Nephrotoxins; dose adjustment; fluids','UTI/sepsis causes','-','Avoid nephrotoxins','Volume status; urine microscopy; dialysis triggers'), ('CKD','Nephron; bone blood supply','EPO, vitamin D, phosphate','Ca-PO4-PTH; eGFR','Glomerulosclerosis; renal bone disease','EPO, phosphate binders, RAAS blockade','Dialysis-access infections','-','DM/HTN control','Stage CKD; complication screen; dialysis counselling'), ('Electrolyte disorders','ECF/ICF compartments','Na, K, Ca regulation','Serum osmolality; corrected Na','-','HyperK stabilisation/shift/removal; safe Na correction','-','-','Medication/diet review','ECG changes; fluid balance; ABG'), ('Acid-base disorders','Lung/kidney buffer systems','Compensation','Anion gap; delta gap','-','Treat cause, bicarbonate limits','Sepsis/diarrhoea triggers','-','-','4-step ABG interpretation'), ('Diabetes and emergencies','Pancreas; microvascular beds','Insulin/glucagon','Carbohydrate metabolism; ketones','Micro/macrovascular complications','Insulin types; metformin, SGLT2, GLP-1 safety','Mucormycosis caution','-','Diet, foot care, sick-day rules','DKA/HHS protocol; glucose logs'), ('Thyroid/adrenal disease','HPT/HPA anatomy','Feedback axes','TFT interpretation','Autoimmune thyroid/adrenal pathology','Antithyroids, levothyroxine, steroids','-','-','Steroid card; iodine/drug counselling','Thyroid exam; TFT pattern; adrenal crisis')]), ('Unit M5 - Neuro, rheumatology, haematology, infections',[ ('Stroke','Cerebral vessels; internal capsule','Cerebral perfusion','Glucose, lipids','Infarct/haemorrhage','Thrombolysis, antiplatelet, statins, BP rules','Endocarditis as cause','-','FAST, risk-factor modification','NIHSS concept; localisation; CT first'), ('Seizure/epilepsy','Cortex/limbic system','Neuronal firing','Na, Ca, glucose','-','AED selection, adverse effects, status protocol','CNS infections','-','Safety/driving advice','Witness history; status management'), ('Meningitis/encephalitis','Meninges; CSF flow','ICP physiology','CSF glucose/protein','Inflammation','Empiric antimicrobials, dexamethasone','Age-specific pathogens, HSV','-','Vaccination, prophylaxis contacts','LP safety; CSF interpretation'), ('Parkinsonism/neuropathy','Basal ganglia; peripheral nerves','Dopamine pathways; NMJ','B12, glucose','Neurodegeneration/demyelination','Levodopa, dopamine agonists, B12','Leprosy/HIV causes','-','Fall prevention','Gait, tone, reflexes, sensory localisation'), ('RA/SLE/vasculitis','Joints; synovium','Immune/inflammatory pathways','-','Autoimmunity, immune complexes','NSAIDs, steroids, DMARDs, biologics safety','TB screening before biologics','-','Vaccination/osteoporosis prevention','Joint exam; red flags; ANA/RF interpretation'), ('Anaemia/bleeding disorders','Marrow; spleen','Haemostasis','Iron/B12/folate; Hb synthesis','RBC morphology, marrow, coagulation disorders','Haematinics, anticoagulant reversal','Malaria, hookworm','-','Nutrition, transfusion safety','CBC/smear; retic; coagulation screen'), ('Fever/PUO/HIV','Lymph nodes; RES','Fever response','Inflammatory markers','Granuloma/malignancy','Antimicrobial stewardship, ART basics','Cultures, HIV OI, malaria/dengue/typhoid','-','Notification, safe sex, vectors','Fever chart; rational tests; isolation')])], 'SURGERY': [ ('Unit S1 - General principles, trauma and critical care',[ ('Wounds and wound healing','Skin layers; fascia','Inflammation and healing phases','Vitamin C/protein','Granulation, scar, keloid','Analgesics, antibiotics only when indicated','SSI organisms','Medicolegal wound description','Tetanus and wound care','Describe wound; asepsis; dressing'), ('Surgical infection/abscess','Fascial spaces','Fever/sepsis physiology','CRP/lactate','Acute/chronic inflammation','Empiric then culture-guided antibiotics','Staph, anaerobes, gas gangrene','-','Hand hygiene; antibiotic stewardship','Fluctuation; I&D principles'), ('Fluids/electrolytes/nutrition','Venous access; compartments','Fluid shifts','Electrolytes, albumin','-','Crystalloids/colloids concepts; TPN risks','Line infection','-','ERAS/nutrition','Fluid chart; maintenance/deficit calculation'), ('Shock/polytrauma','Airway, chest, abdomen, pelvis','O2 delivery, shock classes','Lactate/ABG','Haemorrhage, DIC','Blood products, TXA','Sepsis','Injury certificate, chain of custody','Road safety','ABCDE, eFAST concept, trauma team'), ('Burns','Skin anatomy','Capillary leak','Acid-base/electrolytes','Burn depth/healing','Analgesia, tetanus, fluids','Pseudomonas etc.','Manner/percentage documentation','Fire safety','TBSA, Parkland, escharotomy red flags'), ('Anaesthesia/peri-op care','Airway anatomy','Resp/cardiovascular effects','-','Stress response','GA/LA, opioids, muscle relaxants','Asepsis','Consent','Pre-op optimisation','Airway assessment; checklist; post-op monitoring')]), ('Unit S2 - GI, HPB and endocrine surgery',[ ('Acute abdomen/appendicitis','Abdominal regions; appendix positions','Peritonitis physiology','WBC/electrolytes','Appendicitis/perforation','Analgesia, antibiotics','Gut flora','-','Early referral','Focused abdomen; imaging selection'), ('Intestinal obstruction','Bowel/mesentery','Fluid loss, third spacing','K/Cl/ABG','Strangulation/ischaemia','NG decompression, fluids, antibiotics','-','-','Hernia awareness','X-ray/CT features; resuscitate before surgery'), ('Hernia','Inguinal canal; femoral canal','Intra-abdominal pressure','-','Incarceration/strangulation','Analgesia, periop antibiotics','-','-','Avoid heavy strain; elective repair','Standing/cough impulse exam'), ('Gallstone/cholangitis','Biliary anatomy; Calot triangle','Bile flow','Bilirubin/LFTs','Cholecystitis/pancreatitis','Antibiotics, analgesia','Enteric organisms','-','Diet advice','Murphy sign; USG/LFT correlation'), ('Breast disease','Breast quadrants/lymphatics','Lactation','Receptor biology basics','Fibroadenoma, carcinoma staging','Endocrine therapy concepts','Mastitis organisms','-','Awareness/screening','Triple assessment; breast exam'), ('Thyroid/parathyroid','Thyroid, RLN, parathyroids','HPT axis; Ca regulation','TFT/Ca','Nodules/cancer','Thyroxine, antithyroid drugs','-','-','Iodine, post-op warning signs','Neck exam; post-thyroidectomy complications')]), ('Unit S3 - Urology, vascular, neuro and orthopaedics',[ ('Urinary stones/renal colic','Kidney/ureter constrictions','Renal pain','Stone chemistry','Obstruction/hydronephrosis','NSAID, alpha-blocker concepts','UTI','-','Hydration/metabolic prevention','Urine, USG/CT-KUB indications'), ('BPH/prostate cancer','Prostate and urethra','Micturition','PSA limits','Hyperplasia/malignancy','Alpha blockers, 5ARI','UTI','-','-','LUTS history; DRE principles'), ('Acute limb ischaemia/DVT','Arterial/venous anatomy','Perfusion/venous return','Lactate','Atherosclerosis, thrombosis','Heparin, antiplatelets','-','-','VTE prophylaxis','6 Ps; pulses; Doppler/ABI'), ('Head injury','Skull, meninges, brain','ICP/CPP','-','EDH/SDH/contusion','Hyperosmolar therapy concepts','-','Medicolegal documentation','Helmet safety','GCS; pupil exam; CT rules'), ('Fractures/dislocations','Bones, joints, nerve supply','Bone healing','Ca/Vit D','Osteomyelitis, nonunion','Analgesia, osteoporosis drugs','S aureus osteomyelitis','MLC in trauma','Fall prevention','X-ray ABCS; neurovascular checks'), ('Osteoarthritis/low back pain','Spine, hip, knee','Pain pathways','Vitamin D','Degeneration/red flags','NSAID safety, neuropathic agents','TB spine possibility','-','Ergonomics','Joint/spine examination')])], 'OBSTETRICS & GYNAECOLOGY': [ ('Unit O1 - Normal pregnancy, antenatal care and labour',[ ('Normal pregnancy','Uterus, pelvis, placenta','CV, renal, respiratory adaptations','hCG/placental hormones','Placental development','Safe medication principles','-','-','Diet, supplements, danger signs','ANC history; obstetric exam'), ('Antenatal care/screening','Fetal lie; pelvis','Maternal adaptations','Hb, glucose, blood group','Anaemia/HTN','IFA, calcium, vaccines','HIV, HBV, syphilis, UTI','Consent/confidentiality','ANC package, high-risk referral','BP, urine protein, fundal height'), ('Normal labour/partograph','Fetal skull; pelvic diameters','Uterine action; fetal circulation','-','-','Oxytocin safety','-','-','Birth preparedness','Leopolds; PV principles; partograph'), ('Puerperium/lactation','Breast, pelvic floor','Prolactin/oxytocin','-','Endometritis, VTE','Uterotonics, analgesia','Puerperal sepsis','-','Breastfeeding, postpartum contraception','Postnatal exam; counselling')]), ('Unit O2 - Obstetric complications',[ ('Hypertensive disorders','Placenta; renal circulation','BP/renal regulation','LFT, platelets, urine protein','Endothelial dysfunction/HELLP','MgSO4, labetalol/nifedipine','-','-','Aspirin risk prevention; warning signs','Severe features; MgSO4 toxicity check'), ('Gestational diabetes','Placenta/pancreas','Insulin resistance','OGTT, glucose targets','Macrosomia effects','Insulin; drug safety','-','-','Diet and postpartum follow-up','Glucose monitoring; fetal surveillance'), ('APH/placenta previa/abruption','Placental site','Maternal-fetal circulation','Hb, coagulation','Abruption/DIC','Anti-D, blood products','-','Documentation','Emergency transport','No PV in previa; resuscitation'), ('PPH','Uterus/placental bed','Uterine contraction; shock','CBC/coagulation','4 Ts: tone, trauma, tissue, thrombin','Oxytocin, misoprostol, TXA','Sepsis risk','MLC documentation','Birth planning','PPH protocol; bimanual massage'), ('Preterm labour/PROM/sepsis','Cervix/membranes','Fetal lung maturity','-','Chorioamnionitis','Steroids, tocolytics selective, antibiotics','GBS/ascending infection','-','Referral/neonatal preparedness','Speculum; fetal monitoring'), ('Ectopic pregnancy/abortion','Tubes; implantation','Early pregnancy physiology','beta-hCG trend','Tubal rupture','Anti-D, methotrexate criteria','Septic abortion','Consent/MTP documentation','Safe abortion care','Shock assessment; TVS/beta-hCG')]), ('Unit O3 - Gynaecology, infertility and oncology',[ ('Menstrual disorders/PCOS','Ovary, uterus','HPO axis','Insulin resistance','Endometrial hyperplasia/PCOS','COCP, progestin, metformin','-','-','Weight management','Menstrual history; endocrine work-up'), ('Infertility','Reproductive tract','Ovulation/fertilisation','AMH basics','Endometriosis','Ovulation induction','Genital TB/STI','Consent/ethics','Preconception care','Semen/ovulation/tubal assessment'), ('Fibroid/endometriosis/adenomyosis','Uterine anatomy','Hormonal cycling','-','Leiomyoma/endometrial implants','Hormonal therapy/NSAIDs','-','-','Anaemia control','Pelvic exam; USG correlation'), ('Ovarian masses','Ovarian anatomy','-','Tumour markers limitations','Benign vs malignant ovarian tumour','Chemo concepts','-','-','Genetic-risk counselling','Mass assessment; torsion red flags'), ('Cervical cancer/STIs','Cervix/transformation zone','-','-','CIN/carcinoma','HPV vaccine, STI therapy','HPV, gonorrhoea, chlamydia','Sexual assault documentation principles','Screening/vaccination/partner treatment','Speculum exam; Pap/HPV counselling'), ('Contraception/MTP','Pelvic anatomy','Fertility physiology','-','-','COCP, POP, EC, IUCD contraindications','STI protection','Consent/MTP law basics','Family planning','Eligibility counselling; method choice')])], 'PAEDIATRICS': [ ('Unit P1 - Growth, nutrition and newborn',[ ('Growth/development','Milestones; dentition','Growth hormone/puberty','Nutrition needs','Developmental delay causes','-','-','-','Growth monitoring/programmes','Plot chart; developmental screen'), ('PEM/micronutrients','-','Adaptive starvation','Protein, vitamins, minerals','Marasmus/kwashiorkor','Therapeutic feeds/supplements','-','-','IYCF/nutrition schemes','Anthropometry; SAM danger signs'), ('Neonatal resuscitation','Airway/fetal circulation','Transition at birth','Glucose, bilirubin','Birth asphyxia injury','Resuscitation drug principles','Sepsis prevention','Birth documentation','Essential newborn care','NRP sequence'), ('Neonatal jaundice','Liver/RBC circulation','Bilirubin handling','Unconjugated/conjugated bilirubin','Haemolysis/cholestasis','Phototherapy/IVIG concepts','Sepsis triggers','-','Breastfeeding support','Bilirubin chart; red flags'), ('Neonatal sepsis','-','Sepsis physiology','Glucose/CRP limits','Septic shock','Antibiotic dosing','Common neonatal pathogens','-','Hand hygiene/cord care','Danger signs; culture before antibiotic')]), ('Unit P2 - Common paediatric systems',[ ('ARI/asthma/bronchiolitis','Small airways','Age-specific respiratory mechanics','ABG concepts','Airway inflammation','O2, bronchodilator indications','RSV, pneumonia agents','-','Vaccines/smoke-free home','Resp distress signs; pulse oximetry'), ('Diarrhoea/dehydration','-','Fluid compartments','Na/K/glucose transport','-','ORS, zinc, antibiotics selective','Rotavirus/cholera/shigella','-','WASH/IMNCI','Classify dehydration; plan A/B/C'), ('Immunisation','Injection sites','Immune response','-','-','Vaccine contraindications/AEFI','Live/inactivated vaccines','-','National schedule/cold chain','Counselling; catch-up approach'), ('CHD/RHD','Cardiac embryology','Fetal circulation','-','RHD/cyanotic defects','Prostaglandin/penicillin concepts','Strep infection','-','Secondary prophylaxis','Murmur, cyanosis, HF assessment'), ('Nephrotic/UTI','Kidney/bladder','Glomerular filtration','Albumin/lipids','Minimal-change disease','Steroids, antibiotics','E coli, urine culture','-','Hygiene/renal follow-up','Urine collection; oedema/BP'), ('Meningitis/seizures/CP','CNS development','Neural excitability','Glucose/electrolytes','Cerebral injury','AEDs/antimicrobials','Age-specific pathogens','-','Rehab/early intervention','Neuro exam; LP and seizure protocol')]), ('Unit P3 - Haematology, endocrine and emergencies',[ ('Anaemia/thalassaemia','Marrow/spleen','O2 delivery','Iron/Hb synthesis','Microcytic/haemolytic patterns','Iron/transfusion/chelation basics','Malaria/hookworm','-','Nutrition/genetic counselling','CBC/smear; transfusion safety'), ('Diabetes/thyroid','Pancreas/thyroid','Endocrine axes','Glucose/TFT','Autoimmunity','Insulin/thyroxine','-','-','School and sick-day plan','DKA recognition; monitoring'), ('Poisoning/accidents','-','Toxidromes/airway','Acid-base, glucose','-','Antidotes/decontamination','-','MLC, preservation of samples','Injury prevention','ABCDE; poison history'), ('Paediatric emergency','Airway/access sites','Age-adjusted vitals','Dose calculation','Shock patterns','Weight-based drugs/fluids','Sepsis','-','Safety-net advice','Triage; BLS/PALS concepts')])], 'COMMUNITY MEDICINE, FORENSIC & AETCOM': [ ('Unit C1 - Insert into every clinical posting',[ ('Epidemiology and screening','-','Natural history','Rates/ratios','Risk factors','-','-','-','Sensitivity, specificity, predictive values; screening criteria','Explain screening outcome to patient'), ('Communicable diseases','-','Transmission dynamics','-','-','Antimicrobial stewardship','Surveillance, specimen collection','Notification duties','Outbreak control, vector/WASH measures','Line list; contact counselling'), ('NCD prevention','-','Risk-factor physiology','Lipids/glucose','Target-organ pathology','Adherence and adverse effects','-','-','Primordial-primary-secondary-tertiary prevention','Lifestyle counselling and referral'), ('Maternal-child health','-','Pregnancy/child growth','Nutrition','-','IFA/vaccines','-','-','ANC, institutional delivery, immunisation, IYCF','Risk communication'), ('Medico-legal/ethics','Relevant anatomy in injuries','-','Toxicology labs','Wound/healing age','Antidotes/sedation safety','Sexual offences/infection testing','Consent, confidentiality, MLC, injuries, death certificate','-','Clear records and empathetic communication')])] } D=Document(); sec=D.sections[0];sec.orientation=WD_ORIENT.LANDSCAPE;sec.page_width=Inches(11.69);sec.page_height=Inches(8.27);sec.top_margin=sec.bottom_margin=Inches(.42);sec.left_margin=sec.right_margin=Inches(.36) for name,size,color in [('Normal',8.5,'000000'),('Title',24,'17365D'),('Heading 1',17,'17365D'),('Heading 2',12,'1F4E78')]: st=D.styles[name];st.font.name='Arial';st.font.size=Pt(size);st.font.color.rgb=RGBColor.from_string(color) if name!='Normal':st.font.bold=True # cover p=D.add_paragraph();p.alignment=WD_ALIGN_PARAGRAPH.CENTER;r=p.add_run('FINAL-YEAR MBBS\nDETAILED INTEGRATED REVISION PLANNER');r.bold=True;r.font.name='Arial';r.font.size=Pt(25);r.font.color.rgb=RGBColor(23,54,93) p=D.add_paragraph('Chapter-by-chapter previous-year revision linked to final-year units');p.alignment=WD_ALIGN_PARAGRAPH.CENTER D.add_paragraph('PURPOSE: Print this, keep it with your clinical book, and use one row at a time. The coloured columns are not extra reading: they specify the exact older topic to revise after that clinical chapter. Blank cells mean no dedicated old-subject revision is needed.',style='Intense Quote') D.add_heading('Colour key',1);t=D.add_table(rows=2,cols=9);t.style='Table Grid';t.alignment=WD_TABLE_ALIGNMENT.CENTER for i,k in enumerate(ORDER):put(t.cell(0,i),k,True,8);shade(t.cell(0,i),C[k]);put(t.cell(1,i),FULL[k],False,7);shade(t.cell(1,i),C[k]) D.add_heading('How to work each row',1) steps=[('1. Clinical first','Read the final-year topic, including presentation, differential diagnosis, investigations, management and complications.'),('2. Integrate selectively','Read only the filled coloured cells. Spend 5-10 min per filled cell, not a full chapter from every old subject.'),('3. Actively retrieve','Close the book: explain mechanism, write first-line management, and interpret one relevant test.'),('4. Apply','Do the listed clinical action at the bedside, in a case discussion, or from a video/textbook image.'),('5. Spaced review','Mark C on completion, R1 after 7 days, R2 after 21 days, R3 before university exam.')] t=D.add_table(rows=1,cols=2);t.style='Table Grid' for i,x in enumerate(['Step','What to do']):put(t.cell(0,i),x,True,9,True);shade(t.cell(0,i),'1F4E78') for a,b in steps: row=t.add_row();put(row.cells[0],a,True,8);put(row.cells[1],b,False,8) D.add_paragraph('Suggested weekday format: 90-120 min clinical chapter | 45-60 min coloured integration | 20 min clinical action | 20-30 min questions. Saturday: consolidate all rows finished that week. Keep Sunday light or off.') # pages and tables for subject,units in U.items(): D.add_page_break();D.add_heading(subject,1) D.add_paragraph('Tick C when the row is first completed. Tick R1/R2/R3 after active recall, not passive rereading. Use the Notes column to record your weak link, a case seen, or an important mistake.') for unit,topics in units: D.add_heading(unit,2) t=D.add_table(rows=1,cols=15);t.style='Table Grid';t.alignment=WD_TABLE_ALIGNMENT.CENTER heads=['#','Clinical chapter']+ORDER+['C','R1','R2','R3','Notes / case seen'] widths=[.18,1.28,.62,.62,.62,.62,.62,.62,.52,.62,.78,.24,.24,.24,.24,.82] # actually 16 heads widths needs 16: corrected widths=[.18,1.30,.62,.62,.62,.62,.62,.62,.52,.62,.78,.24,.24,.24,.24,.82] # 2+9+5 =16 columns t._tbl.remove(t.rows[0]._tr) t.add_row() # recreate table with correct number impossible from 15 cols, use 16 now via new table D._body._body.remove(t._element) t=D.add_table(rows=1,cols=16);t.style='Table Grid';t.alignment=WD_TABLE_ALIGNMENT.CENTER for i,h in enumerate(heads): put(t.cell(0,i),h,True,6.7, i in (0,1,11,12,13,14,15)); shade(t.cell(0,i),'1F4E78' if i in (0,1,11,12,13,14,15) else C[ORDER[i-2]]) t.cell(0,i).width=Inches(widths[i]) repeat(t.rows[0]) for n,rowdata in enumerate(topics,1): clinical,*vals=rowdata row=t.add_row();no_split(row) vals2=[str(n),clinical]+vals+['☐','☐','☐','☐',''] for i,x in enumerate(vals2): put(row.cells[i],x,False,6.35 if 2<=i<=10 else 6.8);row.cells[i].width=Inches(widths[i]) if 2<=i<=10:shade(row.cells[i],C[ORDER[i-2]]) elif i in (0,11,12,13,14):shade(row.cells[i],'F2F2F2') # tracker D.add_page_break();D.add_heading('Master Unit Tracker',1) D.add_paragraph('Use this page to see whether the planner is balanced across all subjects. Complete a unit before moving into a full-system revision weekend.') t=D.add_table(rows=1,cols=7);t.style='Table Grid' for i,h in enumerate(['Subject','Unit','Start date','First complete','R1','R2','R3 / weak topics']):put(t.cell(0,i),h,True,8,True);shade(t.cell(0,i),'1F4E78') for sub,units in U.items(): for unit,_ in units: row=t.add_row() for i,x in enumerate([sub,unit,'','☐','☐','☐','☐ / ']):put(row.cells[i],x,False,8) # final daily sheet D.add_heading('Reusable daily chapter sheet',1) t=D.add_table(rows=7,cols=2);t.style='Table Grid' for i,(a,b) in enumerate([('Date / Unit / clinical chapter',''),('Presenting symptoms + differentials',''),('Mechanism in five lines',''),('Important investigation and why',''),('First-line management + emergency step',''),('Prevention, counselling, programme / legal issue',''),('Case seen, question mistakes, next review date','')]):put(t.cell(i,0),a,True,8);shade(t.cell(i,0),'D9EAF7');put(t.cell(i,1),b,False,8) for s in D.sections:page_number(s.footer.paragraphs[0]) OUT.parent.mkdir(parents=True,exist_ok=True);D.save(OUT);print(OUT,OUT.stat().st_size) PY python3 "/tmp/workspace/mbbs-integrated-planner/src/create_detailed_planner.py" python3 - <<'PY' from docx import Document from pathlib import Path p=Path('/tmp/workspace/mbbs-integrated-planner/output/Final_Year_MBBS_Detailed_Integrated_Revision_Planner.docx') d=Document(p) print('exists',p.exists(),'bytes',p.stat().st_size,'tables',len(d.tables),'paragraphs',len(d.paragraphs),'sections',len(d.sections)) print('table cols sample',len(d.tables[3].columns)) PY

Your credits are exhausted. You can purchase a top-up or subscribe to a plan to continue using Orris. If you're already subscribed, your daily credits will reset tomorrow.
This is a shared conversation. Sign in to Orris to start your own chat.