Tb and pre existing liver disease full details for md exam answer 15 marks from this pdf
python3 << 'EOF' import pdfplumber # Search for TB and liver disease content in…
Extract ALL text content about "TB and pre-existing liver disease" from two PDF textbooks. PDF 1 (Sharma Mohan - 1003 pages): /home/daytona/workspace/attachments/b6aded86-f634-4998-b7e1-309ba621e7ca/Sharma mohan latest_compressed-compressed (1).pdf PDF 2 (Tomans TB WHO - 352 pages): /home/daytona/workspace/attachments/b6aded86-f634-4998-b7e1-309ba621e7ca/Tomans TB who.pdf Your task: 1. Search both PDFs for pages containing keywords: "liver disease", "hepatic", "hepatotoxicity", "chronic liver", "cirrhosis", "hepatitis", "liver failure", "jaundice", "liver function", "pre-existing liver", "DILI", "drug-induced liver" 2. Extract the FULL text of all relevant pages/sections from BOTH PDFs 3. Return ALL extracted text verbatim so it can be used to write a comprehensive MD exam answer Use this Python approach: ```python import pdfplumber def search_pdf(path, keywords): results = [] with pdfplumber.open(path) as pdf: for i, page in enumerate(pdf.pages): text = page.extract_text() if text: text_lower = text.lower() if any(kw.lower() in text_lower for kw in keywords): results.append((i+1, text)) return results keywords = ["liver disease", "hepatic", "hepatotoxicity", "chronic liver", "cirrhosis", "hepatitis", "liver failure", "jaundice", "liver function", "pre-existing liver", "DILI", "drug-induced liver", "liver disorder", "antituberculosis", "anti-tuberculosis", "isoniazid", "rifampicin", "pyrazinamide", "PZA", "INH", "RIF"] pdf1 = "/home/daytona/workspace/attachments/b6aded86-f634-4998-b7e1-309ba621e7ca/Sharma mohan latest_compressed-compressed (1).pdf" pdf2 = "/home/daytona/workspace/attachments/b6aded86-f634-4998-b7e1-309ba621e7ca/Tomans TB who.pdf" results1 = search_pdf(pdf1, ["liver disease", "hepatic", "hepatotoxicity", "chronic liver", "cirrhosis", "pre-existing liver", "DILI"]) results2 = search_pdf(pdf2, ["liver disease", "hepatic", "hepatotoxicity", "chronic liver", "cirrhosis", "pre-existing liver", "DILI"]) ``` Focus especially on: - Sections titled "TB with liver disease", "Pre-existing liver disease", "Hepatotoxicity of anti-TB drugs" - Drug-induced liver injury (DILI) from TB drugs (INH, Rifampicin, Pyrazinamide, Ethambutol) - Management protocols, monitoring, alternative regimens - Clinical guidelines for treating TB in patients with liver disease Return ALL extracted text from relevant pages, clearly labeled with page numbers and which PDF they came from. Do NOT summarize - return the raw extracted text.
python3 << 'EOF' import pdfplumber keywords = [ "liver disease", "hepatic",…
python3 << 'EOF' import pdfplumber, sys keywords = [ "liver disease", "hepa…
python3 << 'EOF' import pdfplumber, gc keywords = [ "liver disease", "hepat…
# Try pdftotext command-line approach instead - much more memory efficient pdf1=…
pdf1="/home/daytona/workspace/attachments/b6aded86-f634-4998-b7e1-309ba621e7ca/S…
pdf1="/home/daytona/workspace/attachments/b6aded86-f634-4998-b7e1-309ba621e7ca/S…
pdf2="/home/daytona/workspace/attachments/b6aded86-f634-4998-b7e1-309ba621e7ca/T…
python3 << 'PYEOF' import re keywords = [ "liver disease", "hepatic", "hepa…
# Now do a more focused search - specifically on liver disease/hepatotoxicity se…
wc -l /tmp/sharma_focused.txt /tmp/tomans_focused.txt
# Let's get the table of contents sections for liver/hepatic to understand chapt…
# Now let's identify the most important pages - specifically those discussing TB…
wc -l /tmp/sharma_key_pages.txt /tmp/tomans_key_pages.txt
# Find exact line ranges for the key sections in sharma_key_pages.txt python3 <<…
An error occurred (validationException) when calling the ConverseStream operation: The model returned the following errors: Output blocked by content filtering policy
We encountered an error while processing your request. Please try again or reach out to us for help.
Can u get answer plz
python3 << 'EOF' import pdfplumber pdf1 = "/home/daytona/workspace/attachments/…
python3 << 'EOF' import pdfplumber # Search only Toman's (smaller, 352 pages) f…
python3 -c " import pdfplumber pdf2 = '/home/daytona/workspace/attachments/b6ade…
python3 -c " import pdfplumber pdf2 = '/home/daytona/workspace/attachments/b6ade…
python3 -c " import pdfplumber pdf2 = '/home/daytona/workspace/attachments/b6ade…
python3 -c " import pdfplumber pdf2 = '/home/daytona/workspace/attachments/b6ade…
python3 -c " import pdfplumber pdf1 = '/home/daytona/workspace/attachments/b6ade…
python3 -c " import pdfplumber pdf1 = '/home/daytona/workspace/attachments/b6ade…
python3 -c " import pdfplumber pdf1 = '/home/daytona/workspace/attachments/b6ade…
python3 -c " import pdfplumber pdf1 = '/home/daytona/workspace/attachments/b6ade…
python3 -c " import pdfplumber pdf1 = '/home/daytona/workspace/attachments/b6ade…
python3 -c " import pdfplumber pdf1 = '/home/daytona/workspace/attachments/b6ade…
python3 -c " import pdfplumber pdf1 = '/home/daytona/workspace/attachments/b6ade…
python3 -c " import pdfplumber pdf1 = '/home/daytona/workspace/attachments/b6ade…
python3 -c " import pdfplumber pdf1 = '/home/daytona/workspace/attachments/b6ade…
| Day | Drug and Dose |
|---|---|
| 1 | Isoniazid 50 mg |
| 2 | Isoniazid 300 mg |
| 3 | RH (half tablet) |
| 4 | RH (one tablet) |
| 5 | RH full dose |
| 6 | Day 5 + Pyrazinamide (half tablet) |
| 7 | Day 5 + Pyrazinamide (one tablet) |
| 8 | Day 5 + Pyrazinamide (full dose) |
| 9 | Day 8 + Ethambutol (half tablet) |
| 10 | Day 8 + Ethambutol (one tablet) |
| 11 | Day 8 + Ethambutol (full dose) |
| 12 | Full dose HRZE |
| Regimen | Details | Duration |
|---|---|---|
| 2HRE/6HE | INH + RIF + Ethambutol (2 months) → INH + Ethambutol (6 months) | 8 months |
| 2HRES/6HE | INH + RIF + Ethambutol + Streptomycin → INH + Ethambutol | 8 months |
| Regimen | Details | Duration |
|---|---|---|
| 2HSE/10HE | INH + Streptomycin + Ethambutol (2 months) → INH + Ethambutol (10 months) | 12 months |
| Severity of Liver Disease | Regimen | Duration | Hepatotoxic Drugs Used |
|---|---|---|---|
| Mild / compensated | Standard 2HRZE/4HR | 6 months | 3 (H, R, Z) |
| Established chronic liver disease | 2HRE/6HE or 2HRES/6HE | 8 months | 2 (H, R) — No PZA |
| Severe (ascites, portal HTN) | 2HSE/10HE | 12 months | 1 (H only) — No R, No PZA |
| Acute viral hepatitis — mild TB | Defer TB treatment | Until hepatitis resolves | None |
| Acute viral hepatitis — severe TB | 3 months SE → 6HR | 9 months | Only after hepatitis resolves |
| Acute liver failure (DILI) | SE ± fluoroquinolone (non-hepatotoxic bridge) | Until LFTs normalise | None |