MCPcopy Create free account

hub / github.com/RASAAS/docmcp-knowledge / functions

Functions497 in github.com/RASAAS/docmcp-knowledge

↓ 2 callersFunctionsave_discovered_urls
(data: dict)
scripts/fetch_nmpa_fulltext.py:438
↓ 2 callersMethodsearch
(self, query: str, num: int = 10)
scripts/fetch_updates.py:815
↓ 2 callersMethodslugify
Convert text to URL-safe slug.
scripts/migrate_wordpress.py:179
↓ 2 callersFunctionsource_url_to_html_url
Convert a EUR-Lex source URL to the HTML full text URL (fallback).
scripts/fetch_eurlex_fulltext.py:75
↓ 2 callersFunctionsplit_into_segments
Split markdown text into translatable and non-translatable segments. Returns list of {"text": str, "translate": bool, "type": str}
scripts/translate_fulltext.py:69
↓ 2 callersFunctionsplit_into_table_blocks
Split lines into alternating non-table and table blocks. Returns list of ('text'|'table', [lines]) tuples.
scripts/postprocess_fulltext.py:33
↓ 2 callersFunctionstrip_year_revision
Remove year/revision markers for comparison.
scripts/analyze_unmatched.py:18
↓ 2 callersFunctionstrip_year_revision
(title: str)
scripts/recover_missing_fulltext.py:23
↓ 2 callersFunctionstrip_year_revision
(title: str)
scripts/fix_missing_slugs.py:30
↓ 2 callersFunctiontranslate_document
Translate a Chinese markdown document to English.
scripts/translate_fulltext.py:193
↓ 1 callersFunction_build_announcement_url_pool
Pool URLs from all entries sharing the same announcement number. Returns a mapping of entry_id -> set of sibling URLs (excluding spam).
scripts/fetch_nmpa_fulltext.py:115
↓ 1 callersFunction_build_spam_url_set
Identify URLs that appear 20+ times across discoveries -- generic/catalog files.
scripts/fetch_nmpa_fulltext.py:87
↓ 1 callersFunction_check_attachment_body_mismatch
Detect if text has the expected title in header but body content is actually about a different guidance document (NMPA attachment pattern). R
scripts/fetch_nmpa_fulltext.py:550
↓ 1 callersMethod_check_rss
(self, source_id: str, source: dict)
scripts/tier2_checkers.py:478
↓ 1 callersMethod_check_weekly_alert
(self, source_id: str, source: dict)
scripts/tier2_checkers.py:428
↓ 1 callersFunction_clean_markdown
Post-process the converted markdown, preserving base64 content images.
scripts/fetch_imdrf_fulltext.py:138
↓ 1 callersFunction_collapse_blank_lines
(text: str)
scripts/clean_fda_fulltext.py:271
↓ 1 callersFunction_compress_image
Compress image and return as base64 data URI HTML <img> tag.
scripts/fetch_imdrf_fulltext.py:65
↓ 1 callersFunction_compute_diff
Compare fetched data with existing and return a diff report.
scripts/fetch_nifdc_standards.py:243
↓ 1 callersMethod_detect_base_url
Extract base URL from the board list page URL.
scripts/fetch_updates.py:2392
↓ 1 callersFunction_diff_entries
(old: list[dict], new: list[dict])
scripts/parse_exemption_to_json.py:139
↓ 1 callersFunction_extract_footnotes
Extract inline footnotes and collect them at end of document. Footnotes in FDA PDFs appear as lines starting with a number followed by text l
scripts/clean_fda_fulltext.py:203
↓ 1 callersFunction_extract_general_info
(text: str)
scripts/fetch_standards_overview.py:128
↓ 1 callersMethod_extract_site_domain
Extract domain from 'site:domain.com' in query, if present.
scripts/fetch_updates.py:860
↓ 1 callersFunction_extract_unmatched_body
Extract body content from an _unmatched/ file (skip comment headers).
scripts/fetch_nmpa_fulltext.py:930
↓ 1 callersFunction_fix_broken_list_items
Fix list items where the bullet is on one line and content on the next.
scripts/clean_fda_fulltext.py:255
↓ 1 callersMethod_format_date
(date_str: str)
scripts/fetch_updates.py:1462
↓ 1 callersMethod_format_date
Convert YYYYMMDD to YYYY-MM-DD.
scripts/fetch_updates.py:1569
↓ 1 callersFunction_get_changed_slugs
Get slugs for fulltext files changed in this PR (git diff vs base).
scripts/validate_content_match.py:35
↓ 1 callersMethod_get_local_standards_count
Get current harmonised standards count from local _index.json.
scripts/fetch_updates.py:2679
↓ 1 callersFunction_get_outline_level
Extract outline level from paragraph XML (w:outlineLvl).
scripts/fetch_nmpa_fulltext.py:1299
↓ 1 callersMethod_google_search
(self, query: str, num: int)
scripts/fetch_nmpa_fulltext.py:393
↓ 1 callersFunction_is_doc_format
Check if bytes represent an OLE2 .doc file (not .docx).
scripts/fetch_nmpa_fulltext.py:240
↓ 1 callersFunction_is_docx_format
Check if bytes represent a .docx (ZIP-based) file.
scripts/fetch_nmpa_fulltext.py:245
↓ 1 callersMethod_is_medical_device
(self, record: dict)
scripts/fetch_updates.py:1849
↓ 1 callersMethod_load
(self)
scripts/fetch_updates.py:415
↓ 1 callersMethod_load_all
(self)
scripts/fetch_updates.py:483
↓ 1 callersFunction_load_existing
Load existing standards.json into a dict keyed by standard number.
scripts/fetch_nifdc_standards.py:229
↓ 1 callersFunction_load_existing_entries
()
scripts/parse_exemption_to_json.py:128
↓ 1 callersMethod_load_state
(self)
scripts/fetch_updates.py:2806
↓ 1 callersFunction_make_session
()
scripts/fetch_nifdc_standards.py:71
↓ 1 callersFunction_normalize_doc_number
Normalize announcement number to group siblings from the same notice.
scripts/fetch_nmpa_fulltext.py:108
↓ 1 callersFunction_normalize_section_headings
Convert roman numeral section headers to proper markdown headings.
scripts/clean_fda_fulltext.py:262
↓ 1 callersFunction_normalize_status
Map Chinese status labels to canonical English flags. 现行 -> active 即将实施 -> upcoming (still active) 其它 -> other
scripts/fetch_nifdc_standards.py:143
↓ 1 callersFunction_para_to_markdown
(text: str, style_name: str, para)
scripts/fetch_nmpa_fulltext.py:1323
↓ 1 callersMethod_parse_alerts
(html: str)
scripts/tier2_checkers.py:247
↓ 1 callersMethod_parse_announcements
Parse announcements page, filter for medical-device-related entries. HSA announcement structure: <a href="/announcements/..."><div><h3>Title<
scripts/tier2_checkers.py:994
↓ 1 callersMethod_parse_atom
Parse Atom XML feed into list of entry dicts.
scripts/fetch_updates.py:1789
↓ 1 callersMethod_parse_csv
(text: str)
scripts/tier2_checkers.py:371
↓ 1 callersMethod_parse_entries
Parse article blocks from EC Latest Updates page.
scripts/fetch_updates.py:1317
↓ 1 callersMethod_parse_entries
Parse news entries from CDRH News page.
scripts/fetch_updates.py:1662
↓ 1 callersMethod_parse_entries_regex
Fallback regex parser.
scripts/fetch_updates.py:1688
↓ 1 callersFunction_parse_flattened_body
Parse EUR-Lex pages with flattened body format (no eli-container). Some consolidated regulations (e.g. CLP) serve content directly under <bod
scripts/fetch_eurlex_fulltext.py:358
↓ 1 callersMethod_parse_guidance_page
Extract guidance documents with GN/GL identifiers and dates. Looks for patterns like: - GN-15-R13 Guidance on Medical Device Product
scripts/tier2_checkers.py:811
↓ 1 callersMethod_parse_links
Extract meaningful links from an HTML page.
scripts/fetch_updates.py:2525
↓ 1 callersFunction_parse_listing_page
Parse one listing page. Returns (rows, page_info). The NIFDC page structures data across **multiple** ``<table>`` elements, one per classific
scripts/fetch_nifdc_standards.py:104
↓ 1 callersMethod_parse_mdcg_refs
Extract all MDCG document references from EC page HTML. The EC page uses <tr class="ecl-table__row"> with cells: - data-ecl-table-h
scripts/fetch_updates.py:1151
↓ 1 callersMethod_parse_news
Parse MFDS English board page (supports m_40, m_41, m_61).
scripts/fetch_updates.py:2398
↓ 1 callersMethod_parse_recall_table
Parse PMDA Japanese recall table page. Table columns: [0] recall_num, [1] pub_date, [2] device_type, [3] generic_name, [4] product_na
scripts/fetch_updates.py:2263
↓ 1 callersMethod_parse_rss
(content: bytes)
scripts/tier2_checkers.py:141
↓ 1 callersMethod_parse_table
(html: str)
scripts/tier2_checkers.py:684
↓ 1 callersMethod_parse_table_page
Parse PMDA table-based pages (safety info, precautions, alerts).
scripts/fetch_updates.py:2120
↓ 1 callersMethod_parse_weekly_page
Parse SFDA weekly alert page. PDF links have empty text -- WU number and date are encoded in the URL-encoded href path, e.g.:
scripts/tier2_checkers.py:551
↓ 1 callersMethod_parse_whatsnew
Parse PMDA What's New page -- list items with date, category, and title.
scripts/fetch_updates.py:2003
↓ 1 callersFunction_rejoin_broken_paragraphs
Rejoin lines that were broken by PDF extraction. If a line ends with a lowercase letter, comma, or similar continuation character and the nex
scripts/clean_fda_fulltext.py:153
↓ 1 callersFunction_remove_page_markers
(text: str)
scripts/clean_fda_fulltext.py:134
↓ 1 callersFunction_remove_preface_and_cover
Remove cover page, preface, and preamble -- everything before the first real section. Strategy: find the FDA boilerplate 'This guidance represent
scripts/clean_fda_fulltext.py:94
↓ 1 callersFunction_remove_repeated_headers
(text: str)
scripts/clean_fda_fulltext.py:140
↓ 1 callersFunction_remove_stray_page_numbers
Remove standalone page numbers (single number on its own line).
scripts/clean_fda_fulltext.py:147
↓ 1 callersFunction_remove_toc
Remove Table of Contents block.
scripts/clean_fda_fulltext.py:59
↓ 1 callersFunction_resolve_source_name
Resolve human-readable source name from URL domain.
scripts/report_to_news.py:268
↓ 1 callersMethod_same_url
Check if a local path was created for this URL (via cache).
scripts/download_images.py:249
↓ 1 callersMethod_save_state
(self)
scripts/fetch_updates.py:2815
↓ 1 callersMethod_sparql_latest_consolidated
Query CELLAR SPARQL for the latest consolidated version date of CID 2021/1182. Returns date string like '20260407' or empty string on failure
scripts/fetch_updates.py:2659
↓ 1 callersFunction_stable_id
(number: str)
scripts/fetch_nifdc_standards.py:159
↓ 1 callersFunction_table_has_content
Check if table contains any meaningful text.
scripts/fetch_eurlex_fulltext.py:159
↓ 1 callersFunction_table_to_markdown
(table)
scripts/fetch_nmpa_fulltext.py:1397
↓ 1 callersMethod_vertex_search
(self, query: str, num: int)
scripts/fetch_nmpa_fulltext.py:355
↓ 1 callersMethod_web_search_check
Dispatch web search to Vertex AI (preferred), fallback to Google CSE.
scripts/fetch_updates.py:2820
↓ 1 callersFunctionanalyze
(doc_id)
scripts/get_image_context.py:30
↓ 1 callersFunctionanalyze
()
scripts/test_playwright_cmde.py:27
↓ 1 callersFunctionanalyze
(doc_id)
scripts/analyze_image_locations.py:32
↓ 1 callersMethodanalyze
(self, doc_id: str, registry_entry: Optional[dict], new_items: list)
scripts/fetch_updates.py:2704
↓ 1 callersMethodanalyze_versions
(self, updates: list)
scripts/fetch_updates.py:2959
↓ 1 callersMethodapi_get
(self, endpoint: str, params: Optional[dict] = None)
scripts/migrate_wordpress.py:108
↓ 1 callersFunctionapply_specific_fixes
Apply document-specific fixes to clean up severe OCR and layout conversion issues seen in certain MDR and MDCG guidance PDFs (e.g. 2019-16).
scripts/postprocess_fulltext.py:593
↓ 1 callersFunctionbatch_convert
Batch convert PDFs listed in an _index.json file. Only converts entries that: 1. Have a source_url pointing to a PDF 2. Don't alread
scripts/convert_mdcg_pdf.py:192
↓ 1 callersFunctionbatch_segments
Group translatable segments into API-friendly batches.
scripts/translate_fulltext.py:123
↓ 1 callersFunctionbuild_file_info
Build info list from .zh.md files with frontmatter data.
scripts/migrate_nmpa_fulltext.py:73
↓ 1 callersMethodbuild_front_matter
Build YAML front matter metadata from WordPress doc.
scripts/migrate_wordpress.py:187
↓ 1 callersFunctionbuild_news_item_from_single
Build one RegulatoryNewsItem from a SINGLE detection item.
scripts/report_to_news.py:303
↓ 1 callersFunctionbuild_tree
Build {l1_code: {l2_code: [items]}} structure.
scripts/generate_classification_pages.py:54
↓ 1 callersFunctioncall_llm_summary_single
Call LLM to generate bilingual summary for a SINGLE news item.
scripts/report_to_news.py:199
↓ 1 callersFunctioncategorize_title
Guess category from title keywords.
scripts/expand_index_v2.py:62
↓ 1 callersMethodcheck_all
(self)
scripts/fetch_updates.py:2952
↓ 1 callersMethodcheck_source
(self, source_id: str, source: dict)
scripts/fetch_updates.py:2830
↓ 1 callersFunctioncheck_url
Check URL accessibility. Returns status string.
scripts/verify_news.py:110
↓ 1 callersFunctionclassify
(title: str)
scripts/build_nmpa_guidance_index.py:248
↓ 1 callersFunctionclassify_source
(url: str)
scripts/check_standards_versions.py:63
↓ 1 callersFunctionclean_footnotes
(text)
scripts/remove_footnote_links.py:11
← previousnext →101–200 of 497, ranked by callers