Can you tell me the topics which have come IN PSM chapter wise in tese papers I send you
cd /tmp/workspace/attachments/b0ed0c88-fa80-49e2-b122-1c5d4c9a7511/ python3 << 'EOF' import pdfplumber import os files = [ "DOC-20260413-WA0011_260802234828.pdf", "DOC-20260413-WA0012_260802234820.pdf", "DOC-20260709-WA0006_260802234807.pdf", "LNCT 2nd sessional paper (1).pdf", "1st sessional 3rd prof Lnct (1).pdf", "3rd year ln paper (1).pdf", "3rd prof university paper Lnct(2).pdf" ] base = "/tmp/workspace/attachments/b0ed0c88-fa80-49e2-b122-1c5d4c9a7511/" for f in files: path = base + f print(f"\n{'='*60}") print(f"FILE: {f}") print('='*60) try: with pdfplumber.open(path) as pdf: print(f"Pages: {len(pdf.pages)}") for i, page in enumerate(pdf.pages): text = page.extract_text() if text: print(f"\n--- Page {i+1} ---") print(text) else: print(f"\n--- Page {i+1}: [No text extracted] ---") except Exception as e: print(f"ERROR: {e}") EOF
python3 -c " import subprocess result = subprocess.run(['python3', '-c', 'import markitdown; print(\"ok\")'], capture_output=True, text=True) print(result.stdout, result.stderr) result2 = subprocess.run(['python3', '-c', 'import pytesseract; print(\"ok\")'], capture_output=True, text=True) print('pytesseract:', result2.stdout, result2.stderr) result3 = subprocess.run(['python3', '-c', 'import fitz; print(\"ok\")'], capture_output=True, text=True) print('pymupdf/fitz:', result3.stdout, result3.stderr) "
BASE="/tmp/workspace/attachments/b0ed0c88-fa80-49e2-b122-1c5d4c9a7511" # Try markitdown on the scanned/empty PDFs python3 << 'EOF' from markitdown import MarkItDown md = MarkItDown() files = [ "LNCT 2nd sessional paper (1).pdf", "1st sessional 3rd prof Lnct (1).pdf", "3rd prof university paper Lnct(2).pdf", "3rd year ln paper (1).pdf", ] base = "/tmp/workspace/attachments/b0ed0c88-fa80-49e2-b122-1c5d4c9a7511/" for f in files: path = base + f print(f"\n{'='*60}") print(f"FILE: {f}") print('='*60) try: result = md.convert(path) text = result.text_content if text and text.strip(): print(text[:3000]) else: print("[No text extracted by markitdown]") except Exception as e: print(f"ERROR: {e}") EOF
python3 << 'EOF' from pypdf import PdfReader from PIL import Image import io, os base = "/tmp/workspace/attachments/b0ed0c88-fa80-49e2-b122-1c5d4c9a7511/" outdir = "/tmp/workspace/psm_images/" os.makedirs(outdir, exist_ok=True) files = [ "LNCT 2nd sessional paper (1).pdf", "1st sessional 3rd prof Lnct (1).pdf", "3rd prof university paper Lnct(2).pdf", ] for fname in files: path = base + fname prefix = fname.replace(".pdf","").replace(" ","_").replace("(","").replace(")","") reader = PdfReader(path) print(f"\n{fname}: {len(reader.pages)} pages") for i, page in enumerate(reader.pages): for j, img_obj in enumerate(page.images): img_data = img_obj.data img = Image.open(io.BytesIO(img_data)) out_path = f"{outdir}{prefix}_page{i+1}_img{j+1}.png" img.save(out_path) print(f" Saved: {out_path} ({img.size})") EOF
# Start a simple HTTP server in background to serve images cd /tmp/workspace/psm_images/ python3 -m http.server 8765 & sleep 2 echo "Server started, PID: $!" ls /tmp/workspace/psm_images/
python3 << 'EOF' # Try extracting images from the 50-page scanned PDF from pypdf import PdfReader import io, os base = "/tmp/workspace/attachments/b0ed0c88-fa80-49e2-b122-1c5d4c9a7511/" outdir = "/tmp/workspace/psm_images/" fname = "3rd year ln paper (1).pdf" path = base + fname reader = PdfReader(path) print(f"{fname}: {len(reader.pages)} pages") # Extract first few pages images to check what's there for i in range(min(5, len(reader.pages))): page = reader.pages[i] imgs = list(page.images) print(f" Page {i+1}: {len(imgs)} images") for j, img_obj in enumerate(imgs): from PIL import Image img = Image.open(io.BytesIO(img_obj.data)) out_path = f"{outdir}ln3rd_page{i+1}_img{j+1}.png" img.save(out_path) print(f" Saved: {out_path} ({img.size})") EOF
| Topic | Paper | Type |
|---|---|---|
| Case-control study (steps, OR, advantages, limitations, biases) | P2 | LAQ |
| Randomized Controlled Trial - all steps; Vaccine trial | P3 | LAQ |
| Iceberg phenomenon | P1 | SAQ |
| Epidemiological determinants of measles + clinical features + prevention | P1 | SAQ |
| Screening - definition, criteria, characteristics, advantages, limitations | P2, P3 | LAQ |
| Difference: Screening test vs Diagnostic test | P2 | SAQ |
| Steps of investigation of an epidemic | P2 | SAQ |
| Sensitivity & Specificity (numerical: EEG & brain tumour data) | P2 | VSAQ |
| Incidence & Prevalence (definitions) | P2 | VSAQ |
| Epizootic & Epornithic (definitions) | P2 | VSAQ |
| Confounding - definition & how to remove | P3 | VSAQ |
| AFP Surveillance | P3 | SAQ |
| Integrated Disease Surveillance Project (IDSP) | P3 | SAQ |
| Vital events registration | P3 | VSAQ |
| Emerging diseases and examples | P3 | VSAQ |
| Phases in Public Health | P3 | SAQ |
| Topic | Paper | Type |
|---|---|---|
| Gaussian (Normal) distribution - definition | P1 | SAQ |
| Bar chart - definition | P1 | VSAQ |
| Histogram & Bar chart (difference/definition) | P2 | VSAQ |
| Sampling - definition, methods | P2 | SAQ |
| Types of learning | P2 | SAQ |
| Topic | Paper | Type |
|---|---|---|
| Case scenario: rice-watery diarrhoea (diagnosis, types, management, epidemiology, preventive measures) | P1 | LAQ |
| Epidemiology & control of Tuberculosis in India | P1 | SAQ |
| Post-Exposure Prophylaxis (PEP) of Rabies - bite classification, wound management, vaccine regimen, immunoglobulin | P1 | SAQ |
| Epidemiology of Leprosy (Indian classification, Madrid classification, prevention & control) | P2 | SAQ |
| National Vector Borne Disease Control Programme | P1 | LAQ |
| Polio-free India / "Polio free by 2030" | P3 | SAQ |
| National Leprosy Eradication Programme (organizational structure, initiatives, strategy) | P3 | SAQ |
| Amplifier host in zoonoses | P3 | VSAQ |
| Major malaria activities for areas with API > 5 | P3 | VSAQ |
| Weil's disease (definition) | P1 | VSAQ |
| Screening of cervical cancer | P3 | SAQ |
| Topic | Paper | Type |
|---|---|---|
| Classification of BP; Risk factors for hypertension & its prevention (case scenario: obese smoker with 150/100 mmHg) | P3 | LAQ |
| Epidemiology of lead poisoning - sources, clinical features, prevention | P2 | SAQ |
| Occupational diseases classification; Pneumoconiosis - detail + prevention | P2 | SAQ |
| Occupational hazards to medical professionals | P4 | SAQ |
| Topic | Paper | Type |
|---|---|---|
| Nutritional problems in public health | P1 | SAQ |
| Methods of assessment of nutritional status; WHO recommendations for prevention of PEM in community | P4 | LAQ |
| Food fortification with two examples | P1 | VSAQ |
| ICDS - beneficiaries & services | P1, P4 | SAQ |
| Topic | Paper | Type |
|---|---|---|
| Water quality criteria & standards | P1 | SAQ |
| Break-point chlorination | P1 | VSAQ |
| Methods of refuse/solid waste disposal | P1 | SAQ |
| Criteria for ideal disinfectant for water | P4 | VSAQ |
| Topic | Paper | Type |
|---|---|---|
| Vital events registration | P3 | VSAQ |
| Causes of high Maternal Mortality in India + preventive measures to bring down MMR | P4 | SAQ |
| Enumerate Biomedical Waste categories | P4 | SAQ |
| Topic | Paper | Type |
|---|---|---|
| Determinants of health - role of family, education & socioeconomic status | P2 | SAQ |
| Social problems in society | P2 | SAQ |
| Acculturation & social pathology | P4 | VSAQ |
| Eugenics & Euthenics | P4 | VSAQ |
| Topic | Paper | Type |
|---|---|---|
| National Vector Borne Disease Control Programme (NVBDCP) | P1 | LAQ |
| National Immunization Schedule | P3 | SAQ |
| National Leprosy Eradication Programme | P3 | SAQ |
| ICDS - beneficiaries & services | P1, P4 | SAQ |
| Cold chain | P2 | SAQ |
| Topic | Paper | Type |
|---|---|---|
| Planning cycle; Management methods & techniques | P4 | LAQ |
| Phases in Public Health | P3 | SAQ |
| Indian Public Health Standard for Community Health Center | P4 | SAQ |
| Triage | P3 | SAQ |
| NITI Aayog | P4 | VSAQ |
| Functions of UNICEF | P4 | VSAQ |
| UNICEF (definition/role) | P1 | VSAQ |
| Doctor-Patient Relationship | P3 | SAQ |
| Topic | Paper | Type |
|---|---|---|
| Methods of contraception | P4 | SAQ |
| Causes of high MMR in India + prevention | P4 | SAQ |
| Beneficiaries & services under ICDS | P1, P4 | SAQ |
| Haddon's Matrix Model (injury epidemiology) | P1 | SAQ |
| Child Mental Health / Behavioural problems in children + Child Welfare Rules 2016 (color coding) | P4 | SAQ |
| Topic | Paper | Type |
|---|---|---|
| Definition of PHC; Principles of PHC with examples | P4 | SAQ |
| Indian Public Health Standard for CHC | P4 | SAQ |
| Community Health Center standards | P4 | SAQ |
| Topic | Paper | Type |
|---|---|---|
| Types of mental illness, causes & preventive measures | P4 | SAQ |
| Topic | Paper | Type |
|---|---|---|
| Methods of communication | P4 | SAQ |
| Types of learning | P2 | SAQ |
| Topic | Papers |
|---|---|
| Screening (definition, criteria, types) | P2, P3 |
| ICDS - beneficiaries & services | P1, P4 |
| Leprosy (classification + control) | P2, P3 |