Treatment of chronic liver disease
You are a medical research assistant. Search the medical textbook library database for comprehensive content on the treatment of chronic liver disease. Use query_library_db and read_file tools. Key books to search: - Sleisenger and Fordtran's Gastrointestinal and Liver Disease (ISBN 9780323609623) - Goldman-Cecil Medicine (ISBN 9780323930345) - Harrison's Principles of Internal Medicine (ISBN 9781265977061) - Washington Manual of Medical Therapeutics (ISBN 9781975190620) ## Step 1: Find relevant sections using headings_fts Run these SQL queries to find treatment sections: ```sql SELECT title, book_isbn, '/textbooks/' || block_file_path AS file_path, line_number, para_line_ranges, para_count FROM headings_fts WHERE headings_fts MATCH 'chronic liver disease' ORDER BY rank LIMIT 10 ``` ```sql SELECT title, book_isbn, '/textbooks/' || block_file_path AS file_path, line_number, para_line_ranges, para_count FROM headings_fts WHERE headings_fts MATCH 'cirrhosis treatment management' ORDER BY rank LIMIT 10 ``` ```sql SELECT book_title, section_heading, '/textbooks/' || block_file_path AS file_path, line_start, line_end, snippet(paragraphs_fts, 0, '>>>', '<<<', '...', 30) as snippet FROM paragraphs_fts WHERE paragraphs_fts MATCH 'chronic liver disease treatment' ORDER BY rank LIMIT 10 ``` ```sql SELECT book_title, section_heading, '/textbooks/' || block_file_path AS file_path, line_start, line_end, snippet(paragraphs_fts, 0, '>>>', '<<<', '...', 30) as snippet FROM paragraphs_fts WHERE paragraphs_fts MATCH 'cirrhosis management portal hypertension' ORDER BY rank LIMIT 10 ``` ```sql SELECT book_title, section_heading, '/textbooks/' || block_file_path AS file_path, line_start, line_end, snippet(paragraphs_fts, 0, '>>>', '<<<', '...', 30) as snippet FROM paragraphs_fts WHERE paragraphs_fts MATCH 'liver transplantation chronic liver disease' ORDER BY rank LIMIT 10 ``` ## Step 2: Read the most relevant sections Once you have file paths and line numbers, read those sections using read_file with offset and limit. Read 100 lines at a time. Focus on sections covering: - General management principles - Specific etiologies (NAFLD/NASH, alcoholic liver disease, viral hepatitis, autoimmune, cholestatic) - Complications management (ascites, varices, hepatic encephalopathy, HRS, SBP) - Nutritional support - Liver transplantation criteria ## Step 3: Return a detailed synthesis Return a comprehensive, well-organized summary covering ALL major aspects of chronic liver disease treatment, with specific drugs, doses where available, and references to the source books. Structure your response with clear headings.