Can't you generate mcqs in PDF
, Generate 200 mcqs of gynea and obs 100 each , reference book is Ten teachers,mcqs should be of U world,Usmle style and like UHS( University of Health Sciences, Lahore)off course,and should cover every single imp topic, concept with explanation ( that's why I'm saying smartly generate them),now plz in pdf ( mcqs should be like next best step of management, investigation of choice, diagnosis etc mcqs distractor should be added as well) In two pdfs 100 each gyne and obs respectively
Generate 100 high-quality Gynaecology MCQs in UWorld/USMLE/UHS (University of Health Sciences Lahore) style and save them as a PDF at /home/daytona/workspace/gynaecology_mcqs/Gynaecology_100_MCQs.pdf ## TASK OVERVIEW Create 100 clinical-vignette style MCQs covering ALL important Gynaecology topics from the Ten Teachers curriculum (reference: Berek & Novak's Gynecology). Each MCQ must be clinical-scenario based (like UWorld/USMLE/UHS), with 5 options (A-E), correct answer, and a detailed explanation. ## MCQ STYLE REQUIREMENTS - Clinical vignette format: 3-6 line patient scenario with age, presenting complaint, relevant history, examination findings, and/or investigations - 5 options (A, B, C, D, E) — ONE best answer - Include plausible distractors (common wrong answers students pick) - Question types MUST include: next best step in management, investigation of choice, diagnosis, mechanism, drug of choice, complication, prognosis, contraindication - Explanation: 4-6 lines explaining WHY the correct answer is right AND why each distractor is wrong ## TOPICS TO COVER (distribute 100 MCQs across ALL these topics): 1. Menstrual cycle and disorders (amenorrhoea primary/secondary, dysmenorrhoea, menorrhagia, oligomenorrhoea) - 10 MCQs 2. Polycystic Ovarian Syndrome (PCOS) - diagnosis, Rotterdam criteria, management - 5 MCQs 3. Endometriosis - presentation, investigation, staging, treatment - 5 MCQs 4. Uterine fibroids (leiomyomas) - types, complications, management - 5 MCQs 5. Cervical pathology - CIN, cervical cancer staging, HPV, colposcopy, LLETZ - 6 MCQs 6. Endometrial cancer - risk factors, investigation, staging, treatment - 5 MCQs 7. Ovarian tumours - benign and malignant, tumour markers, FIGO staging - 8 MCQs 8. Vulvar and vaginal conditions - vulvovaginitis, lichen sclerosus, vaginal cancer - 4 MCQs 9. Pelvic inflammatory disease (PID) - diagnosis, organisms, treatment - 5 MCQs 10. Sexually transmitted infections - chlamydia, gonorrhoea, syphilis, herpes, trichomoniasis - 5 MCQs 11. Contraception - types, failure rates, indications, contraindications, emergency contraception - 7 MCQs 12. Ectopic pregnancy - diagnosis, management (medical vs surgical), risk factors - 5 MCQs 13. Miscarriage (threatened, inevitable, incomplete, missed, recurrent) - 5 MCQs 14. Infertility - causes, investigations (male and female), ovulation induction, IVF - 5 MCQs 15. Prolapse (uterovaginal) - types, grading, conservative and surgical management - 4 MCQs 16. Urinary incontinence - stress vs urge, investigations, management - 4 MCQs 17. Menopause - symptoms, HRT indications/contraindications, osteoporosis - 5 MCQs 18. Gestational trophoblastic disease - hydatidiform mole, choriocarcinoma, beta-hCG - 4 MCQs 19. Benign ovarian cysts - functional, dermoid, PCOS, management - 4 MCQs 20. Gynaecological emergencies (ovarian torsion, ruptured ectopic, septic abortion) - 4 MCQs ## SAMPLE MCQ FORMAT (follow this exactly): **Q1.** A 28-year-old woman presents with 6 months of secondary amenorrhoea. She has acne, hirsutism, and weight gain. BMI is 29. Pelvic ultrasound shows bilateral enlarged ovaries with multiple small peripheral follicles. Serum LH:FSH ratio is 3:1. Which of the following is the most appropriate initial management? A. Clomiphene citrate B. Metformin alone C. Combined oral contraceptive pill D. Ovarian drilling E. GnRH analogue **Correct Answer: C** **Explanation:** This patient meets Rotterdam criteria for PCOS (oligo/anovulation + hyperandrogenism + polycystic ovaries on USS). The combined OCP is first-line for cycle regulation, reducing androgen levels, and managing symptoms like acne and hirsutism when fertility is NOT the immediate goal. Metformin (B) alone is used when insulin resistance is the primary concern or for ovulation induction in obese PCOS, but OCP is preferred for symptom control. Clomiphene (A) is for ovulation induction when fertility is desired. Ovarian drilling (D) is a surgical option for clomiphene-resistant PCOS. GnRH analogue (E) is used for endometriosis and IVF protocols. --- ## PDF CREATION INSTRUCTIONS Use Python with reportlab to create a professional PDF. Here is the exact Python script structure to use: ```python from reportlab.lib.pagesizes import A4 from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle from reportlab.lib.units import cm from reportlab.lib import colors from reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer, HRFlowable, PageBreak from reportlab.lib.enums import TA_LEFT, TA_CENTER, TA_JUSTIFY import os os.makedirs('/home/daytona/workspace/gynaecology_mcqs', exist_ok=True) doc = SimpleDocTemplate( '/home/daytona/workspace/gynaecology_mcqs/Gynaecology_100_MCQs.pdf', pagesize=A4, rightMargin=2*cm, leftMargin=2*cm, topMargin=2*cm, bottomMargin=2*cm ) ``` The PDF must include: - Title page: "GYNAECOLOGY - 100 MCQs" / "Ten Teachers Style / UWorld / USMLE / UHS" / "Reference: Berek & Novak's Gynecology, Ten Teachers" - All 100 MCQs numbered Q1-Q100 - Each question clearly formatted with bold question stem, options A-E, bold "Correct Answer:", bold "Explanation:" section - Answer Key summary at the end (Q1-A, Q2-C, etc. in a table) - Professional formatting with clear section headers per topic group ## OUTPUT Return the exact file path of the created PDF: /home/daytona/workspace/gynaecology_mcqs/Gynaecology_100_MCQs.pdf Also confirm the number of MCQs written and any errors encountered.
Generate 100 high-quality Obstetrics MCQs in UWorld/USMLE/UHS (University of Health Sciences Lahore) style and save them as a PDF at /home/daytona/workspace/obstetrics_mcqs/Obstetrics_100_MCQs.pdf ## TASK OVERVIEW Create 100 clinical-vignette style MCQs covering ALL important Obstetrics topics from the Ten Teachers curriculum (reference: Creasy & Resnik's Maternal-Fetal Medicine). Each MCQ must be clinical-scenario based (like UWorld/USMLE/UHS), with 5 options (A-E), correct answer, and a detailed explanation. ## MCQ STYLE REQUIREMENTS - Clinical vignette format: 3-6 line patient scenario with gestational age, presenting complaint, relevant history, examination findings, and/or investigations - 5 options (A, B, C, D, E) — ONE best answer - Include plausible distractors (common wrong answers students pick) - Question types MUST include: next best step in management, investigation of choice, diagnosis, mechanism, drug of choice, complication, prognosis, contraindication - Explanation: 4-6 lines explaining WHY the correct answer is right AND why each distractor is wrong ## TOPICS TO COVER (distribute 100 MCQs across ALL these topics): 1. Normal pregnancy - physiology, ANC schedule, booking visit, dating, USS - 5 MCQs 2. Hyperemesis gravidarum - diagnosis, management, complications - 3 MCQs 3. Hypertensive disorders of pregnancy - gestational HTN, pre-eclampsia, eclampsia, HELLP - 10 MCQs 4. Antepartum haemorrhage - placenta praevia vs abruption, diagnosis, management - 8 MCQs 5. Ectopic pregnancy (obstetric context) and miscarriage types - 5 MCQs 6. Multiple pregnancy - twins, complications (TTTS, cord entanglement), management - 5 MCQs 7. Preterm labour - diagnosis, tocolysis, corticosteroids, cervical cerclage - 6 MCQs 8. Prelabour rupture of membranes (PROM/PPROM) - 5 MCQs 9. Gestational diabetes - screening, diagnosis (OGTT), management, fetal effects - 7 MCQs 10. Anaemia in pregnancy - iron deficiency, folate, sickle cell, thalassaemia - 5 MCQs 11. Infections in pregnancy - TORCH, GBS, HIV, malaria, listeria, UTI - 6 MCQs 12. Rhesus incompatibility - anti-D, Kleihauer-Betke, haemolytic disease of newborn - 4 MCQs 13. Normal labour - stages, Bishop score, partogram, CTG interpretation - 6 MCQs 14. Induction of labour - indications, methods (prostaglandins, oxytocin, ARM) - 4 MCQs 15. Dystocia and obstructed labour - causes, management, McRoberts, shoulder dystocia - 4 MCQs 16. Fetal monitoring - CTG features (baseline, variability, decelerations, accelerations) - 5 MCQs 17. Instrumental delivery - forceps vs ventouse, indications, contraindications - 3 MCQs 18. Caesarean section - indications, types, complications - 4 MCQs 19. Postpartum haemorrhage (PPH) - primary/secondary, causes (4 Ts), management - 7 MCQs 20. Puerperal sepsis and postpartum complications - 4 MCQs 21. Intrauterine growth restriction (IUGR/FGR) - causes, Doppler, management - 5 MCQs 22. Stillbirth and perinatal mortality - causes, investigation - 3 MCQs ## SAMPLE MCQ FORMAT (follow this exactly): **Q1.** A 32-year-old primigravida at 36 weeks gestation presents with sudden onset severe headache, epigastric pain, and visual disturbances. BP is 168/110 mmHg on two readings 4 hours apart. Urine dipstick shows 3+ proteinuria. Platelets are 88,000/μL, ALT 145 U/L, LDH 890 U/L. What is the most appropriate immediate management? A. Oral labetalol and outpatient monitoring B. IV magnesium sulphate and plan for delivery C. Oral nifedipine and repeat BP in 24 hours D. Emergency caesarean section without further workup E. IV hydralazine only and observation **Correct Answer: B** **Explanation:** This patient has HELLP syndrome (Haemolysis - elevated LDH, Elevated Liver enzymes - elevated ALT, Low Platelets <100,000). This is a severe form of pre-eclampsia requiring IV magnesium sulphate for seizure prophylaxis and expedited delivery after maternal stabilisation. Oral labetalol (A) is insufficient for this severity and HELLP requires inpatient management and delivery. Oral nifedipine (C) is not adequate here; HELLP with thrombocytopaenia and liver involvement requires urgent delivery. Emergency CS without workup (D) is not correct — magnesium sulphate must be given first. IV hydralazine alone (E) addresses only the BP but ignores the seizure risk and the need for delivery planning. --- ## PDF CREATION INSTRUCTIONS Use Python with reportlab to create a professional PDF. Here is the exact Python script structure to use: ```python from reportlab.lib.pagesizes import A4 from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle from reportlab.lib.units import cm from reportlab.lib import colors from reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer, HRFlowable, PageBreak from reportlab.lib.enums import TA_LEFT, TA_CENTER, TA_JUSTIFY import os os.makedirs('/home/daytona/workspace/obstetrics_mcqs', exist_ok=True) doc = SimpleDocTemplate( '/home/daytona/workspace/obstetrics_mcqs/Obstetrics_100_MCQs.pdf', pagesize=A4, rightMargin=2*cm, leftMargin=2*cm, topMargin=2*cm, bottomMargin=2*cm ) ``` The PDF must include: - Title page: "OBSTETRICS - 100 MCQs" / "Ten Teachers Style / UWorld / USMLE / UHS" / "Reference: Creasy & Resnik's Maternal-Fetal Medicine, Ten Teachers" - All 100 MCQs numbered Q1-Q100 - Each question clearly formatted with bold question stem, options A-E, bold "Correct Answer:", bold "Explanation:" section - Answer Key summary at the end (Q1-A, Q2-C, etc. in a table) - Professional formatting with clear section headers per topic group ## OUTPUT Return the exact file path of the created PDF: /home/daytona/workspace/obstetrics_mcqs/Obstetrics_100_MCQs.pdf Also confirm the number of MCQs written and any errors encountered.
mkdir -p /home/daytona/workspace/gynaecology_mcqs && pip install reportlab -q
mkdir -p /home/daytona/workspace/obstetrics_mcqs && pip install reportlab -q