Spaces:
Running
Running
Upload 3 files
Browse filesFiles changed (3)
- documents.jsonAdded+839
- index.html+199-19
- script.jsAdded+566
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839[
{
"Doc_ID_Type": "DIS-PLAN-RES", "Document_Name": "Research Plan/Proposal", "Phase": "Discovery", "Sub_Phase_Discipline": "Target ID / Hit ID / Lead Opt",
"Purpose_Key_Content": "Outlines objectives, rationale, methods, resources, and timelines for a specific research project or program.",
"Key_Metadata": "Project ID, Target ID, Therapeutic Area, PI Name, Budget Code",
"Input_Documents_Data_Sources": "Literature Review, Previous Internal Data, Strategic Goals",
"Output_Informs_Documents": "Project Initiation, Resource Allocation, Specific Experiments",
"Authoring_Department(s)": "Research Scientist, PI, Therapeutic Area Lead", "Review_Approval_Dept(s)": "Research Mgmt, Finance (budget)",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "Internal Strategy/Governance"
},
{
"Doc_ID_Type": "DIS-NOTE-ELN", "Document_Name": "Electronic Lab Notebook (ELN) Entry", "Phase": "Discovery, Preclinical", "Sub_Phase_Discipline": "All Research/Lab Disciplines",
"Purpose_Key_Content": "Contemporaneous record of experimental procedures, observations, raw data, and initial analysis.",
"Key_Metadata": "Experiment ID, Date, Scientist Name, Project ID, Compound/Batch ID",
"Input_Documents_Data_Sources": "Protocols, SOPs, Previous ELN Entries, Reagent Info",
"Output_Informs_Documents": "Raw Data Source for Reports, Patent Support, Troubleshooting",
"Authoring_Department(s)": "Bench Scientist, Researcher", "Review_Approval_Dept(s)": "Peer Reviewer, Lab Head (as needed)",
"Complexity_Authoring": "Low-Medium", "Regulatory_Significance": "Internal Quality, Patent Support, GLP (if applicable)"
},
{
"Doc_ID_Type": "DIS-REP-LIT", "Document_Name": "Literature Review Report", "Phase": "Discovery, Preclinical, Clinical", "Sub_Phase_Discipline": "All Disciplines",
"Purpose_Key_Content": "Systematic summary and analysis of published scientific literature on a specific topic (e.g., target, pathway, indication, competitor).",
"Key_Metadata": "Topic/Keywords, Date Range Searched, Databases Used",
"Input_Documents_Data_Sources": "Search Strategy, Scientific Databases",
"Output_Informs_Documents": "Research Plans, Target Validation, Protocol Design, IB Sections",
"Authoring_Department(s)": "Scientist, Medical Writer, Information Specialist", "Review_Approval_Dept(s)": "Therapeutic Area Lead, Discipline Lead",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "Internal Strategy, Regulatory Submissions (background)"
},
{
"Doc_ID_Type": "DIS-REP-TVAL", "Document_Name": "Target Validation Report", "Phase": "Discovery", "Sub_Phase_Discipline": "Target ID/Validation",
"Purpose_Key_Content": "Summarizes evidence validating a biological target for drug intervention. Includes genetic, pathway, literature, and experimental data.",
"Key_Metadata": "Target ID, Pathway Info, Key Assays Used, Validation Tier",
"Input_Documents_Data_Sources": "Literature Reviews, Internal Experimental Data (e.g., siRNA/CRISPR results), Bioinformatics Analysis Reports",
"Output_Informs_Documents": "Go/No-Go Decision for Target, Assay Development Plans, Research Proposals",
"Authoring_Department(s)": "Biology, Bioinformatics, Research Lead", "Review_Approval_Dept(s)": "Research Mgmt, Therapeutic Area Head",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "Internal R&D Strategy"
},
{
"Doc_ID_Type": "DIS-REP-BIOINF", "Document_Name": "Bioinformatics Analysis Report", "Phase": "Discovery, Preclinical, Clinical", "Sub_Phase_Discipline": "Bioinformatics / Computational Biology",
"Purpose_Key_Content": "Documents the methods, results, and interpretation of computational analyses (e.g., genomic, proteomic, pathway analysis).",
"Key_Metadata": "Analysis Type, Data Source (e.g., GEO ID), Software/Versions Used, Key Findings",
"Input_Documents_Data_Sources": "Raw Sequence Data, Microarray Data, Public Databases, ELN Data",
"Output_Informs_Documents": "Target Validation, Biomarker ID, Experimental Design, Publications",
"Authoring_Department(s)": "Bioinformatician, Computational Biologist", "Review_Approval_Dept(s)": "Biology Lead, Statistician (if complex)",
"Complexity_Authoring": "Medium-High", "Regulatory_Significance": "Internal R&D, Potential Biomarker Qualification"
},
{
"Doc_ID_Type": "DIS-PROT-ASSAY", "Document_Name": "Assay Development Protocol", "Phase": "Discovery", "Sub_Phase_Discipline": "Hit ID / Lead Opt",
"Purpose_Key_Content": "Details the plan to develop and validate a specific biological or biochemical assay for screening or characterization.",
"Key_Metadata": "Assay Type, Target ID, Detection Method, Key Reagents, Platform",
"Input_Documents_Data_Sources": "Target Validation Report, Literature on similar assays",
"Output_Informs_Documents": "Assay Development Report, Assay Validation Report",
"Authoring_Department(s)": "Assay Development Scientist, Biology", "Review_Approval_Dept(s)": "Research Lead",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "Internal R&D Quality"
},
{
"Doc_ID_Type": "DIS-REP-ASSAYDEV", "Document_Name": "Assay Development Report", "Phase": "Discovery", "Sub_Phase_Discipline": "Hit ID / Lead Opt",
"Purpose_Key_Content": "Documents the process and results of developing a new assay, including optimization experiments.",
"Key_Metadata": "Assay ID, Optimization Parameters, Final Conditions, Reagent Sources",
"Input_Documents_Data_Sources": "Assay Development Protocol, ELN Entries",
"Output_Informs_Documents": "Assay Validation Protocol/Report, Assay SOP",
"Authoring_Department(s)": "Assay Development Scientist, Biology", "Review_Approval_Dept(s)": "Research Lead",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "Internal R&D Quality"
},
{
"Doc_ID_Type": "DIS-PROT-ASSAYVAL", "Document_Name": "Assay Validation Protocol", "Phase": "Discovery", "Sub_Phase_Discipline": "Hit ID / Lead Opt",
"Purpose_Key_Content": "Defines the plan and acceptance criteria for validating the performance characteristics of an assay.",
"Key_Metadata": "Assay ID, Validation Parameters (e.g., Accuracy, Precision, Specificity, Robustness), Acceptance Criteria",
"Input_Documents_Data_Sources": "Assay Development Report",
"Output_Informs_Documents": "Assay Validation Report",
"Authoring_Department(s)": "Assay Development Scientist, QA (if needed)", "Review_Approval_Dept(s)": "Research Lead, QA (if needed)",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "Internal R&D Quality / HTS Readiness"
},
{
"Doc_ID_Type": "DIS-REP-ASSAYVAL", "Document_Name": "Assay Validation Report", "Phase": "Discovery", "Sub_Phase_Discipline": "Hit ID / Lead Opt",
"Purpose_Key_Content": "Documents the performance characteristics (e.g., Z', S/B, reproducibility, specificity) of a developed assay against pre-defined criteria.",
"Key_Metadata": "Assay ID, Validation Parameters Results, Pass/Fail Status, SOP Link",
"Input_Documents_Data_Sources": "Assay Validation Protocol, Raw Validation Data (ELN)",
"Output_Informs_Documents": "Screening Campaigns (HTS), Compound Profiling, Assay SOP",
"Authoring_Department(s)": "Assay Development Scientist, Biology", "Review_Approval_Dept(s)": "Research Lead, QA (if applicable)",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "Internal R&D Quality / HTS"
},
{
"Doc_ID_Type": "DIS-SOP-ASSAY", "Document_Name": "Assay Standard Operating Procedure (SOP)", "Phase": "Discovery, Preclinical", "Sub_Phase_Discipline": "Assay Development / Screening",
"Purpose_Key_Content": "Detailed step-by-step instructions for performing a validated assay consistently.",
"Key_Metadata": "SOP Number, Version, Effective Date, Assay ID",
"Input_Documents_Data_Sources": "Assay Validation Report",
"Output_Informs_Documents": "Assay Execution, Training Records",
"Authoring_Department(s)": "Assay Development Scientist, Technical Writer", "Review_Approval_Dept(s)": "QA, Research Lead",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "Internal Quality / GLP (if applicable)"
},
{
"Doc_ID_Type": "DIS-REP-HTS", "Document_Name": "High-Throughput Screening (HTS) Report", "Phase": "Discovery", "Sub_Phase_Discipline": "Hit ID",
"Purpose_Key_Content": "Summarizes results of a large-scale screening campaign to identify initial 'hits'. Includes campaign summary, hit list, QC metrics.",
"Key_Metadata": "Campaign ID, Library Screened, Target ID, Hit Criteria, Plate IDs, % Inhibition/Activity Cutoff",
"Input_Documents_Data_Sources": "Validated Assay Report/SOP, Compound Library Info, Raw Screening Data (LIMS)",
"Output_Informs_Documents": "Hit Confirmation Plans, Hit-to-Lead Team Initiation, Compound Triage Reports",
"Authoring_Department(s)": "HTS Group, Automation, Informatics", "Review_Approval_Dept(s)": "Research Lead, Chemistry Lead",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "Internal R&D Strategy"
},
{
"Doc_ID_Type": "DIS-REP-HITCONF", "Document_Name": "Hit Confirmation/Triage Report", "Phase": "Discovery", "Sub_Phase_Discipline": "Hit ID / Hit-to-Lead",
"Purpose_Key_Content": "Documents follow-up experiments to confirm activity and selectivity of initial HTS hits, often including dose-response curves.",
"Key_Metadata": "Hit IDs, Confirmation Assay Results (IC50/EC50), Selectivity Data",
"Input_Documents_Data_Sources": "HTS Report, Compound Structures, Follow-up Assay Data (ELN)",
"Output_Informs_Documents": "Selection of Hits for Hit-to-Lead Chemistry",
"Authoring_Department(s)": "Biology, HTS Group, Medicinal Chemistry", "Review_Approval_Dept(s)": "Research Lead",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "Internal R&D Strategy"
},
{
"Doc_ID_Type": "DIS-REP-SAR", "Document_Name": "Structure-Activity Relationship (SAR) Report", "Phase": "Discovery", "Sub_Phase_Discipline": "Hit-to-Lead / Lead Opt",
"Purpose_Key_Content": "Summarizes the relationship between chemical structure modifications and biological activity/properties for a series of compounds.",
"Key_Metadata": "Chemotype/Series ID, Key Structures, Biological Data (Potency, Selectivity), Physicochemical Properties (Solubility, Permeability)",
"Input_Documents_Data_Sources": "Compound Synthesis Records (ELN), Biological Assay Data, ADME Screening Data",
"Output_Informs_Documents": "Lead Candidate Selection Strategy, Next Synthesis Targets, Patent Drafts",
"Authoring_Department(s)": "Medicinal Chemistry, Biology, DMPK", "Review_Approval_Dept(s)": "Research Lead, Chemistry Lead",
"Complexity_Authoring": "Medium-High", "Regulatory_Significance": "Internal R&D Strategy, Patent Filings"
},
{
"Doc_ID_Type": "DIS-REP-LO", "Document_Name": "Lead Optimization Report", "Phase": "Discovery", "Sub_Phase_Discipline": "Lead Optimization",
"Purpose_Key_Content": "Comprehensive report detailing the optimization of a chemical series towards a preclinical candidate profile (potency, selectivity, PK, safety).",
"Key_Metadata": "Lead Series ID, Key Compounds Data (incl. In Vivo Efficacy, PK/PD, Prelim Safety), Rationale for Candidate Selection",
"Input_Documents_Data_Sources": "SAR Reports, In Vitro ADME/DMPK Reports, In Vivo PK Reports, Early Safety/Tox Screens, In Vivo Efficacy Reports",
"Output_Informs_Documents": "Preclinical Candidate Nomination Form/Report, Patent Filings",
"Authoring_Department(s)": "Medicinal Chemistry, Biology, DMPK, Early Safety", "Review_Approval_Dept(s)": "Research Mgmt, Patent Attorney, Preclinical Dev Team",
"Complexity_Authoring": "High", "Regulatory_Significance": "Internal R&D Governance"
},
{
"Doc_ID_Type": "DIS-REP-CANDSEL", "Document_Name": "Candidate Selection Report/Nomination Form", "Phase": "Discovery", "Sub_Phase_Discipline": "Lead Optimization",
"Purpose_Key_Content": "Formal document justifying the selection of a specific compound as a preclinical development candidate based on accumulated data.",
"Key_Metadata": "Candidate Compound ID, Backup Candidate(s), Target Profile Scorecard, Key Data Summary (Efficacy, PK, Safety, CMC tractability), Dev Plan Outline",
"Input_Documents_Data_Sources": "Lead Optimization Report, Key Study Reports (In Vivo Efficacy, PK, Tox), CMC Assessment",
"Output_Informs_Documents": "Preclinical Development Plan Initiation, Formal Handover to Development Teams",
"Authoring_Department(s)": "Research Leadership, Project Team Lead", "Review_Approval_Dept(s)": "Senior R&D Management, Development Leadership",
"Complexity_Authoring": "High", "Regulatory_Significance": "Internal R&D Governance Milestone"
},
{
"Doc_ID_Type": "PAT-DRAFT", "Document_Name": "Patent Draft", "Phase": "Discovery, Preclinical", "Sub_Phase_Discipline": "Legal / IP",
"Purpose_Key_Content": "Draft application describing novel inventions (e.g., new chemical entities, formulations, methods of use) for filing with patent offices.",
"Key_Metadata": "Invention Title, Inventors, Claims, Specification, Drawings",
"Input_Documents_Data_Sources": "ELN Entries, SAR Reports, Candidate Selection Data, Prior Art Search",
"Output_Informs_Documents": "Patent Filing with Patent Office (e.g., USPTO, EPO)",
"Authoring_Department(s)": "Patent Attorney/Agent, Inventors (Scientists)", "Review_Approval_Dept(s)": "Internal IP Committee, Senior Management",
"Complexity_Authoring": "High", "Regulatory_Significance": "Intellectual Property Protection"
},
{
"Doc_ID_Type": "PAT-FILED", "Document_Name": "Filed Patent Application", "Phase": "Discovery, Preclinical, Clinical", "Sub_Phase_Discipline": "Legal / IP",
"Purpose_Key_Content": "The patent application as filed with a national or regional patent office.",
"Key_Metadata": "Application Number, Filing Date, Title, Inventors",
"Input_Documents_Data_Sources": "Patent Draft",
"Output_Informs_Documents": "Patent Prosecution (Office Actions, Responses), Freedom-to-Operate Assessments",
"Authoring_Department(s)": "Patent Attorney/Agent", "Review_Approval_Dept(s)": "N/A (External Filing)",
"Complexity_Authoring": "N/A (Legal Process)", "Regulatory_Significance": "Intellectual Property Asset"
},
{
"Doc_ID_Type": "PRE-PLAN-DEV", "Document_Name": "Preclinical Development Plan", "Phase": "Preclinical", "Sub_Phase_Discipline": "Project Management / Cross-functional",
"Purpose_Key_Content": "High-level plan outlining the required non-clinical studies (Pharmacology, DMPK, Safety/Tox, CMC) to support clinical trials (IND/CTA).",
"Key_Metadata": "Candidate Compound ID, Target Indication, Target Clinical Phase Entry, Timelines, Resources",
"Input_Documents_Data_Sources": "Candidate Selection Report, Regulatory Strategy Outline",
"Output_Informs_Documents": "Study Protocol Development, Budgeting, Resource Allocation",
"Authoring_Department(s)": "Project Manager, Preclinical Lead (Tox, PK, Pharm), CMC Lead", "Review_Approval_Dept(s)": "Senior R&D Management",
"Complexity_Authoring": "High", "Regulatory_Significance": "Internal Strategy/Governance"
},
{
"Doc_ID_Type": "PRE-PROT-PHARM", "Document_Name": "Preclinical Pharmacology Study Protocol", "Phase": "Preclinical", "Sub_Phase_Discipline": "Pharmacology",
"Purpose_Key_Content": "Defines objectives, methods, animal models, and procedures for an in vivo efficacy or mechanism of action (MOA) study.",
"Key_Metadata": "Study ID, Compound ID, Animal Model, Dosing Regimen, Endpoints",
"Input_Documents_Data_Sources": "Candidate Selection Data, Literature, Preclinical Dev Plan",
"Output_Informs_Documents": "Pharmacology Study Conduct, Raw Data, Pharmacology Study Report",
"Authoring_Department(s)": "Pharmacology Scientist", "Review_Approval_Dept(s)": "IACUC/Ethics Committee, Research Lead",
"Complexity_Authoring": "Medium-High", "Regulatory_Significance": "Internal R&D, IND/CTA Enabling (Efficacy Rationale)"
},
{
"Doc_ID_Type": "PRE-REP-PHARM", "Document_Name": "Preclinical Pharmacology Study Report", "Phase": "Preclinical", "Sub_Phase_Discipline": "Pharmacology",
"Purpose_Key_Content": "Presents results, analysis, and interpretation of an in vivo efficacy or MOA study.",
"Key_Metadata": "Study ID, Key Findings (Efficacy, PD markers), Statistical Analysis",
"Input_Documents_Data_Sources": "Pharmacology Study Protocol, Raw Study Data (ELN, LIMS)",
"Output_Informs_Documents": "Candidate Advancement Decisions, IB, IND/CTA (Module 2.6, 4)",
"Authoring_Department(s)": "Pharmacology Scientist, Statistician", "Review_Approval_Dept(s)": "Research/Preclinical Lead",
"Complexity_Authoring": "Medium-High", "Regulatory_Significance": "Internal R&D, Submission Supporting (IND/CTA)"
},
{
"Doc_ID_Type": "PRE-PROT-PK", "Document_Name": "Preclinical Pharmacokinetics (PK) / ADME Study Protocol", "Phase": "Preclinical", "Sub_Phase_Discipline": "DMPK (Drug Metabolism & Pharmacokinetics)",
"Purpose_Key_Content": "Defines objectives and methods for assessing absorption, distribution, metabolism, excretion, and PK parameters in non-clinical species.",
"Key_Metadata": "Study ID, Species, Route of Administration, Dose Levels, Sampling Schedule, Bioanalytical Method ID",
"Input_Documents_Data_Sources": "Candidate Information, Preclinical Dev Plan",
"Output_Informs_Documents": "PK/ADME Study Conduct, Raw Data (Concentrations), PK/ADME Study Report",
"Authoring_Department(s)": "DMPK Scientist", "Review_Approval_Dept(s)": "IACUC/Ethics Committee (if in vivo), Preclinical Lead",
"Complexity_Authoring": "Medium-High", "Regulatory_Significance": "GLP (often for definitive studies), IND/CTA Enabling"
},
{
"Doc_ID_Type": "PRE-REP-PK", "Document_Name": "Preclinical Pharmacokinetics (PK) / ADME Study Report", "Phase": "Preclinical", "Sub_Phase_Discipline": "DMPK",
"Purpose_Key_Content": "Presents results (e.g., concentration-time profiles, PK parameters like AUC, Cmax, T1/2), analysis, and interpretation of PK/ADME studies.",
"Key_Metadata": "Study ID, Key PK Parameters, Metabolite ID results (if applicable), Bioanalytical Report Ref.",
"Input_Documents_Data_Sources": "PK/ADME Study Protocol, Raw Concentration Data, Bioanalytical Report",
"Output_Informs_Documents": "Human Dose Prediction, IB, IND/CTA (Module 2.6, 4), Toxicology Dose Selection",
"Authoring_Department(s)": "DMPK Scientist, Bioanalytical Scientist, Statistician (for modeling)", "Review_Approval_Dept(s)": "Preclinical Lead, QA (if GLP)",
"Complexity_Authoring": "High", "Regulatory_Significance": "GLP (often), Submission Critical (IND/CTA, NDA/BLA)"
},
{
"Doc_ID_Type": "PRE-PROT-TOX", "Document_Name": "Preclinical Toxicology Study Protocol", "Phase": "Preclinical", "Sub_Phase_Discipline": "Toxicology (Safety Assessment)",
"Purpose_Key_Content": "Defines the objectives, design, methodology, and procedures for a specific non-clinical safety study (e.g., single-dose, repeat-dose, genotox, safety pharm).",
"Key_Metadata": "Study ID, Species, Strain, Dose Levels, Duration, Test Article ID, GLP Status, Endpoints (Clinical Obs, Clin Path, Histopath)",
"Input_Documents_Data_Sources": "Candidate Selection Report, Preclinical Dev Plan, Formulation Report, PK Data (for dose selection)",
"Output_Informs_Documents": "Toxicology Study Conduct, Raw Data Collection, Toxicology Study Report",
"Authoring_Department(s)": "Toxicologist, Study Director", "Review_Approval_Dept(s)": "IACUC/Ethics Committee, QA (GLP), Preclinical Lead",
"Complexity_Authoring": "High", "Regulatory_Significance": "GLP, IND/CTA Enabling"
},
{
"Doc_ID_Type": "PRE-REP-TOX", "Document_Name": "Preclinical Toxicology Study Report", "Phase": "Preclinical", "Sub_Phase_Discipline": "Toxicology (Safety Assessment)",
"Purpose_Key_Content": "Presents the results, analysis, and interpretation of a non-clinical safety study. Includes findings, NOAEL, clinical signs, pathology.",
"Key_Metadata": "Study ID, GLP Compliance Statement, Key Findings (incl. NOAEL), Test Article ID, Pathology Report Ref.",
"Input_Documents_Data_Sources": "Toxicology Study Protocol, Raw Study Data (incl. Pathology, Clinical Pathology), Statistical Analysis Report (if applicable), Bioanalytical Report (if applicable)",
"Output_Informs_Documents": "Investigator's Brochure (IB), IND/CTA Application (CTD Module 2.4, 2.6, 4), Risk Assessment, Clinical Protocol Hazard Section",
"Authoring_Department(s)": "Toxicologist, Pathologist, Statistician, Study Director", "Review_Approval_Dept(s)": "QA (GLP), Preclinical Lead, Regulatory Affairs",
"Complexity_Authoring": "High", "Regulatory_Significance": "GLP, Submission Critical (IND/CTA, NDA/BLA)"
},
{
"Doc_ID_Type": "PRE-PROT-BIOA", "Document_Name": "Bioanalytical Method Validation Protocol", "Phase": "Preclinical, Clinical", "Sub_Phase_Discipline": "Bioanalysis / DMPK / CMC",
"Purpose_Key_Content": "Plan outlining procedures and acceptance criteria for validating an analytical method to quantify drug/metabolite in biological matrices (e.g., plasma, urine) or drug substance/product.",
"Key_Metadata": "Method ID, Analyte, Matrix, Validation Parameters (Accuracy, Precision, Selectivity, Stability, LLOQ), Instrument Type",
"Input_Documents_Data_Sources": "Assay Development Info, Regulatory Guidances (FDA/EMA)",
"Output_Informs_Documents": "Bioanalytical Method Validation Report, Method SOP",
"Authoring_Department(s)": "Bioanalytical Scientist, Analytical Chemist", "Review_Approval_Dept(s)": "QA, Method Development Lead",
"Complexity_Authoring": "Medium-High", "Regulatory_Significance": "GLP/GCP/GMP Compliance, Submission Supporting"
},
{
"Doc_ID_Type": "PRE-REP-BIOA", "Document_Name": "Bioanalytical Method Validation Report", "Phase": "Preclinical, Clinical", "Sub_Phase_Discipline": "Bioanalysis / DMPK / CMC",
"Purpose_Key_Content": "Documents the successful validation of a bioanalytical method according to the protocol and regulatory guidelines.",
"Key_Metadata": "Method ID, Validation Summary (Pass/Fail for each parameter), SOP Reference",
"Input_Documents_Data_Sources": "Bioanalytical Method Validation Protocol, Raw Validation Data",
"Output_Informs_Documents": "Sample Analysis (PK/Tox/Clinical studies), Method SOP, Regulatory Submissions (CTD Modules 2, 4, 5)",
"Authoring_Department(s)": "Bioanalytical Scientist, Analytical Chemist", "Review_Approval_Dept(s)": "QA, Method Development Lead",
"Complexity_Authoring": "Medium-High", "Regulatory_Significance": "GLP/GCP/GMP Compliance, Submission Critical"
},
{
"Doc_ID_Type": "PRE-REP-CMC-PROCDEV", "Document_Name": "CMC Process Development Report (API/DS)", "Phase": "Preclinical, Clinical", "Sub_Phase_Discipline": "CMC (Chemistry, Manufacturing, Controls)",
"Purpose_Key_Content": "Describes the development of the manufacturing process for the drug substance (API). Route selection, optimization, impurity control, KPPs.",
"Key_Metadata": "API Name, Process Stage (e.g., Route Scouting, Optimization), Key Process Parameters (KPPs), Critical Quality Attributes (CQAs), Impurity Profile",
"Input_Documents_Data_Sources": "Lead Optimization Reports, Early Formulation Data, Analytical Methods",
"Output_Informs_Documents": "API Specifications, Manufacturing Batch Records (Dev), Tech Transfer Documents, CTD Module 3",
"Authoring_Department(s)": "Process Chemistry, Chemical Engineering", "Review_Approval_Dept(s)": "Analytical Development, QA, CMC Lead",
"Complexity_Authoring": "High", "Regulatory_Significance": "GMP (later stages), Submission Critical (IND/CTA, NDA/BLA)"
},
{
"Doc_ID_Type": "PRE-REP-CMC-FORMDEV", "Document_Name": "CMC Formulation Development Report (DP)", "Phase": "Preclinical, Clinical", "Sub_Phase_Discipline": "CMC (Formulation Development)",
"Purpose_Key_Content": "Documents the development and selection of the drug product formulation (e.g., tablet, capsule, injectable), including excipient compatibility, process development.",
"Key_Metadata": "Product Name, Formulation Composition, Dosage Form, Manufacturing Process Outline, Stability Assessment",
"Input_Documents_Data_Sources": "API Characterization Data, Preclinical PK/Tox Needs (e.g., vehicle), Target Product Profile (TPP)",
"Output_Informs_Documents": "Drug Product Specification, Manufacturing Batch Records (Dev), Stability Protocols, CTD Module 3",
"Authoring_Department(s)": "Formulation Scientist, Process Engineer", "Review_Approval_Dept(s)": "Analytical Development, QA, CMC Lead, Clinical Supply Lead",
"Complexity_Authoring": "High", "Regulatory_Significance": "GMP (later stages), Submission Critical (IND/CTA, NDA/BLA)"
},
{
"Doc_ID_Type": "PRE-SPEC-API", "Document_Name": "Drug Substance (API) Specification", "Phase": "Preclinical, Clinical, Post-Approval", "Sub_Phase_Discipline": "CMC / QA",
"Purpose_Key_Content": "Defines the list of tests, analytical procedures, and acceptance criteria required for release of the API. Based on ICH Q6A.",
"Key_Metadata": "API Name, Specification Number, Version, Effective Date, Tests (e.g., Appearance, ID, Assay, Impurities, Residual Solvents), Methods, Acceptance Criteria",
"Input_Documents_Data_Sources": "API Process Development Reports, Analytical Method Validation Reports, Stability Data, Reference Standard Cert.",
"Output_Informs_Documents": "API Batch Release Testing, Certificate of Analysis (CoA), Stability Program, CTD Module 3",
"Authoring_Department(s)": "Analytical Development, CMC Lead", "Review_Approval_Dept(s)": "QA, Regulatory Affairs",
"Complexity_Authoring": "High", "Regulatory_Significance": "GMP, Submission Critical"
},
{
"Doc_ID_Type": "PRE-SPEC-DP", "Document_Name": "Drug Product Specification", "Phase": "Preclinical, Clinical, Post-Approval", "Sub_Phase_Discipline": "CMC / QA",
"Purpose_Key_Content": "Defines the list of tests, analytical procedures, and acceptance criteria required for release of the Drug Product. Based on ICH Q6A/B.",
"Key_Metadata": "Product Name, Dosage Form, Strength, Specification Number, Version, Effective Date, Tests (e.g., Appearance, ID, Assay, Content Uniformity, Dissolution, Impurities), Methods, Acceptance Criteria",
"Input_Documents_Data_Sources": "DP Formulation/Process Development Reports, Analytical Method Validation Reports, Stability Data, API Spec, Reference Standard Cert.",
"Output_Informs_Documents": "DP Batch Release Testing, Certificate of Analysis (CoA), Stability Program, CTD Module 3",
"Authoring_Department(s)": "Analytical Development, Formulation Dev, CMC Lead", "Review_Approval_Dept(s)": "QA, Regulatory Affairs",
"Complexity_Authoring": "High", "Regulatory_Significance": "GMP, Submission Critical"
},
{
"Doc_ID_Type": "PRE-PROT-CMC-STAB", "Document_Name": "CMC Stability Protocol", "Phase": "Preclinical, Clinical, Post-Approval", "Sub_Phase_Discipline": "CMC / QA",
"Purpose_Key_Content": "Plan outlining the stability studies to be performed on API or DP, including batches, storage conditions (ICH), testing schedule, and tests to be performed.",
"Key_Metadata": "API/Product Name, Protocol Number, Batches Included, Storage Conditions, Pull Schedule, Specification Ref.",
"Input_Documents_Data_Sources": "API/DP Specifications, Formulation Report, Regulatory Guidances (ICH Q1)",
"Output_Informs_Documents": "Stability Study Execution, Stability Report",
"Authoring_Department(s)": "Stability Coordinator, Analytical Dev / Formulation Dev", "Review_Approval_Dept(s)": "QA, CMC Lead",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "GMP, Submission Critical"
},
{
"Doc_ID_Type": "PRE-REP-CMC-STAB", "Document_Name": "CMC Stability Report", "Phase": "Preclinical, Clinical, Post-Approval", "Sub_Phase_Discipline": "CMC",
"Purpose_Key_Content": "Summarizes stability data for API or DP under defined storage conditions. Supports shelf-life/retest date determination. Includes data tables, trends, justification for shelf life.",
"Key_Metadata": "API/Product Name, Batch Numbers, Storage Conditions, Stability Timepoints, Specification Link, Proposed Shelf Life/Retest Date",
"Input_Documents_Data_Sources": "Stability Protocols, Raw Stability Data (Analytical Results), Specifications",
"Output_Informs_Documents": "Shelf-Life Assignment, Regulatory Submissions (IND/CTD M3, NDA/MAA), Product Labeling, Certificate of Analysis",
"Authoring_Department(s)": "Analytical Development, Stability Coordinator, Statistician (trending)", "Review_Approval_Dept(s)": "QA, CMC Lead, Regulatory Affairs",
"Complexity_Authoring": "High", "Regulatory_Significance": "GMP, Submission Critical"
},
{
"Doc_ID_Type": "PRE-RECORD-BATCH-DEV", "Document_Name": "Development Batch Record", "Phase": "Preclinical, Clinical", "Sub_Phase_Discipline": "CMC (Manufacturing)",
"Purpose_Key_Content": "Record documenting the manufacturing steps performed for a specific development or non-GMP batch of API or DP.",
"Key_Metadata": "Product Name, Batch Number, Date, Process Steps, In-Process Controls (IPCs), Raw Material Lots, Operator Signatures",
"Input_Documents_Data_Sources": "Process Development Report, Master Batch Record (if available)",
"Output_Informs_Documents": "CMC Development Reports, Tech Transfer, Characterization of Batch",
"Authoring_Department(s)": "Process Chemist/Engineer, Formulation Scientist, Manufacturing Operator", "Review_Approval_Dept(s)": "CMC Lead",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "Non-GMP (but good practice)"
},
{
"Doc_ID_Type": "PRE-RECORD-BATCH-GMP", "Document_Name": "GMP Master Batch Record (MBR)", "Phase": "Clinical, Post-Approval", "Sub_Phase_Discipline": "CMC (Manufacturing) / QA",
"Purpose_Key_Content": "Approved template instruction set for manufacturing a specific API or DP under GMP conditions.",
"Key_Metadata": "Product Name, MBR Number, Version, Effective Date, Detailed Process Steps, IPCs, Material Specs",
"Input_Documents_Data_Sources": "Process Development/Validation Reports, Specifications",
"Output_Informs_Documents": "GMP Batch Production Record (Executed)",
"Authoring_Department(s)": "Process Development, Manufacturing Science/Tech Transfer", "Review_Approval_Dept(s)": "Manufacturing, QA",
"Complexity_Authoring": "High", "Regulatory_Significance": "GMP Critical"
},
{
"Doc_ID_Type": "PRE-RECORD-BATCH-GMP-EXE", "Document_Name": "Executed GMP Batch Production Record (BPR)", "Phase": "Clinical, Post-Approval", "Sub_Phase_Discipline": "CMC (Manufacturing) / QA",
"Purpose_Key_Content": "Completed record documenting the actual manufacturing steps, materials used, conditions, and results for a specific GMP batch. Includes deviations, investigations.",
"Key_Metadata": "Product Name, Batch Number, MBR Ref, Start/End Dates, Actual Results, Operator/Verifier Signatures, Deviation Refs",
"Input_Documents_Data_Sources": "GMP Master Batch Record (MBR), Raw Material CoAs, Logbooks",
"Output_Informs_Documents": "Batch Release Decision by QA, Certificate of Analysis (CoA), Regulatory Submissions (supportive data), Annual Product Review (APR/PQR)",
"Authoring_Department(s)": "Manufacturing Operators/Supervisors", "Review_Approval_Dept(s)": "Manufacturing Lead, QA Review/Approval",
"Complexity_Authoring": "High", "Regulatory_Significance": "GMP Critical, Batch Release Prerequisite"
},
{
"Doc_ID_Type": "PRE-CoA", "Document_Name": "Certificate of Analysis (CoA)", "Phase": "Preclinical, Clinical, Post-Approval", "Sub_Phase_Discipline": "QA / QC",
"Purpose_Key_Content": "Document certifying that a specific batch of API, DP, or critical material meets its pre-defined specifications.",
"Key_Metadata": "Product/Material Name, Batch/Lot Number, Date of Manufacture, Expiry/Retest Date, Specification Ref, Test Results, QC/QA Approval Signature",
"Input_Documents_Data_Sources": "Executed Batch Record (for DP/API), QC Testing Results (LIMS)",
"Output_Informs_Documents": "Batch Release, Clinical Supply Shipment, Use in Further Manufacturing/Studies",
"Authoring_Department(s)": "QC Analyst/Manager", "Review_Approval_Dept(s)": "QA Manager/Director",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "GMP/GLP/GCP Critical, Required for Release/Use"
},
{
"Doc_ID_Type": "PRE-REP-TECHTRAN", "Document_Name": "Technology Transfer Report", "Phase": "Preclinical, Clinical, Post-Approval", "Sub_Phase_Discipline": "CMC (Manufacturing Science / Tech Transfer)",
"Purpose_Key_Content": "Documents the transfer of manufacturing process knowledge and analytical methods from a sending unit (e.g., R&D) to a receiving unit (e.g., GMP plant, CMO).",
"Key_Metadata": "Product Name, Process/Method Transferred, Sending/Receiving Sites, Key Transfer Activities, Success Criteria, Gap Analysis",
"Input_Documents_Data_Sources": "Process Development Reports, Analytical Method Validation Reports, MBR Drafts, Specifications",
"Output_Informs_Documents": "GMP Manufacturing at Receiving Site, Process Validation Activities",
"Authoring_Department(s)": "Tech Transfer Lead, Sending/Receiving Unit SMEs (Mfg, QC, Eng)", "Review_Approval_Dept(s)": "QA, Site Heads",
"Complexity_Authoring": "High", "Regulatory_Significance": "GMP, Critical for successful manufacturing scale-up/transfer"
},
{
"Doc_ID_Type": "IB", "Document_Name": "Investigator's Brochure", "Phase": "Preclinical, Clinical (All Phases)", "Sub_Phase_Discipline": "Clinical Development / Regulatory Affairs",
"Purpose_Key_Content": "Compilation of non-clinical and clinical data relevant to the study of the investigational product in humans. Provided to investigators. Updated periodically.",
"Key_Metadata": "Product Name, Version Number, Effective Date, Edition Number",
"Input_Documents_Data_Sources": "All relevant Preclinical Reports (Tox, Pharm, ADME, CMC), Prior Clinical Study Reports (if any), Safety Updates (e.g., SUSARs, DSURs), Literature",
"Output_Informs_Documents": "Clinical Study Conduct (Investigator Reference), EC/IRB Submissions, Regulatory Submissions (IND/CTA updates), Basis for ICF Risk Section",
"Authoring_Department(s)": "Medical Writer, Preclinical Lead, Clinical Lead, CMC Lead, Safety Physician", "Review_Approval_Dept(s)": "Regulatory Affairs, QA, Senior Management",
"Complexity_Authoring": "High", "Regulatory_Significance": "GCP, Submission Critical (IND/CTA)"
},
{
"Doc_ID_Type": "REG-PLAN-STRAT", "Document_Name": "Regulatory Strategy Plan", "Phase": "Discovery, Preclinical, Clinical", "Sub_Phase_Discipline": "Regulatory Affairs",
"Purpose_Key_Content": "High-level document outlining the planned regulatory pathway(s) for product development and approval in target regions (e.g., US, EU, Japan). Includes HTA interactions, special designations.",
"Key_Metadata": "Product Name, Target Indication(s), Target Regions, Key Regulatory Milestones (e.g., Pre-IND, IND, EOP2, Pre-NDA), Planned Designations (Orphan, BTD)",
"Input_Documents_Data_Sources": "Target Product Profile (TPP), Preclinical Dev Plan, Clinical Dev Plan (CDP), Competitor Intelligence",
"Output_Informs_Documents": "IND/CTA Planning, Meeting Requests, Agency Interactions, Clinical Protocol Design",
"Authoring_Department(s)": "Regulatory Affairs Lead", "Review_Approval_Dept(s)": "Senior R&D Management, Commercial Lead",
"Complexity_Authoring": "High", "Regulatory_Significance": "Internal Strategy/Governance"
},
{
"Doc_ID_Type": "REG-MEET-REQ", "Document_Name": "Regulatory Agency Meeting Request (e.g., Type B/C, Scientific Advice)", "Phase": "Preclinical, Clinical", "Sub_Phase_Discipline": "Regulatory Affairs",
"Purpose_Key_Content": "Formal request submitted to a health authority (e.g., FDA, EMA) to obtain guidance on specific development questions.",
"Key_Metadata": "Product Name, Meeting Type, Proposed Dates, List of Questions, Attendee List",
"Input_Documents_Data_Sources": "Regulatory Strategy, Specific Development Questions/Data",
"Output_Informs_Documents": "Meeting Briefing Book, Agency Meeting Granted/Denied",
"Authoring_Department(s)": "Regulatory Affairs Lead", "Review_Approval_Dept(s)": "Cross-functional Team (Clin, Nonclin, CMC, Stats)",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "Regulatory Interaction"
},
{
"Doc_ID_Type": "REG-MEET-BRIEF", "Document_Name": "Regulatory Agency Meeting Briefing Book/Package", "Phase": "Preclinical, Clinical", "Sub_Phase_Discipline": "Regulatory Affairs / Cross-functional",
"Purpose_Key_Content": "Comprehensive package of information provided to the agency in advance of a scheduled meeting. Includes background, data summaries, specific questions.",
"Key_Metadata": "Product Name, Meeting Date, Application Number (if any), Detailed Background, Data Summaries (Nonclinical, CMC, Clinical), Specific Questions for Agency",
"Input_Documents_Data_Sources": "Meeting Request, Key Study Reports/Summaries, Proposed Development Plans (e.g., Phase 3 design)",
"Output_Informs_Documents": "Agency Meeting Conduct, Agency Meeting Minutes",
"Authoring_Department(s)": "Regulatory Affairs Lead, Medical Writer, SMEs (Clin, Nonclin, CMC, Stats)", "Review_Approval_Dept(s)": "Senior R&D Management",
"Complexity_Authoring": "High", "Regulatory_Significance": "Regulatory Interaction Critical"
},
{
"Doc_ID_Type": "REG-MEET-MIN", "Document_Name": "Regulatory Agency Meeting Minutes (Sponsor & Agency Versions)", "Phase": "Preclinical, Clinical", "Sub_Phase_Discipline": "Regulatory Affairs",
"Purpose_Key_Content": "Official record of discussions, agreements, and advice received during a meeting with a health authority.",
"Key_Metadata": "Product Name, Meeting Date, Application Number (if any), Attendees, Key Discussion Points, Agreements, Action Items",
"Input_Documents_Data_Sources": "Agency Meeting Conduct, Briefing Book",
"Output_Informs_Documents": "Updates to Regulatory Strategy, Clinical Protocol Amendments, IND/CTA Amendments, Development Plan Adjustments",
"Authoring_Department(s)": "Regulatory Affairs Lead (+/- Agency)", "Review_Approval_Dept(s)": "Internal Team Review, Senior Management",
"Complexity_Authoring": "High", "Regulatory_Significance": "Regulatory Interaction Record, Future Submission Reference"
},
{
"Doc_ID_Type": "REG-SUB-IND", "Document_Name": "Investigational New Drug (IND) Application (US)", "Phase": "Preclinical (End), Clinical Phase 1", "Sub_Phase_Discipline": "Regulatory Affairs / Cross-functional",
"Purpose_Key_Content": "Submission to FDA to request authorization to administer an investigational drug to humans. Includes preclinical data, CMC info, clinical protocol. (eCTD Format: Modules 1-5 Preclinical/CMC/Protocol Focus)",
"Key_Metadata": "Product Name, IND Number (assigned by FDA), Submission Type (Original, Amendment), Sequence Number",
"Input_Documents_Data_Sources": "IB, Preclinical Reports (Tox, PK, Pharm), CMC Reports (Mfg, Specs, Stability), Phase 1 Protocol, FDA Forms (1571, 1572)",
"Output_Informs_Documents": "Authorization to start Clinical Trials in US, IND Maintenance (Amendments, Annual Reports)",
"Authoring_Department(s)": "Regulatory Affairs Lead, SMEs (Nonclin, CMC, Clin Ops, Medical)", "Review_Approval_Dept(s)": "Senior Management, QA",
"Complexity_Authoring": "High", "Regulatory_Significance": "Submission Critical (FDA)"
},
{
"Doc_ID_Type": "REG-SUB-CTA", "Document_Name": "Clinical Trial Application (CTA) (EU/Other Regions)", "Phase": "Preclinical (End), Clinical Phase 1", "Sub_Phase_Discipline": "Regulatory Affairs / Cross-functional",
"Purpose_Key_Content": "Submission to National Competent Authorities (NCAs) and Ethics Committees (ECs) in Europe (via CTIS) or other regions to request authorization for a clinical trial. Content varies but similar basis to IND.",
"Key_Metadata": "Product Name, EudraCT/CTIS Number, Submission Type, Countries",
"Input_Documents_Data_Sources": "IB, Preclinical Data Summary, CMC Data Summary (IMPD), Clinical Protocol, ICF, Local Forms",
"Output_Informs_Documents": "Authorization to start Clinical Trials in specific countries, CTA Maintenance (Amendments)",
"Authoring_Department(s)": "Regulatory Affairs Lead, SMEs (Nonclin, CMC, Clin Ops, Medical), Local Affiliates", "Review_Approval_Dept(s)": "Senior Management, QA",
"Complexity_Authoring": "High", "Regulatory_Significance": "Submission Critical (NCA/EC)"
},
{
"Doc_ID_Type": "REG-SUB-IMPD", "Document_Name": "Investigational Medicinal Product Dossier (IMPD)", "Phase": "Preclinical (End), Clinical", "Sub_Phase_Discipline": "CMC / Regulatory Affairs",
"Purpose_Key_Content": "Document providing detailed CMC information for the investigational product, required for CTAs in Europe and other regions. Can be full or simplified.",
"Key_Metadata": "Product Name, Version, Sections (Quality/CMC data)",
"Input_Documents_Data_Sources": "CMC Development Reports, Specifications, Stability Reports, Batch Records Info",
"Output_Informs_Documents": "CTA Submission (Part of), Updates via Amendments",
"Authoring_Department(s)": "CMC SMEs, Regulatory CMC Writer", "Review_Approval_Dept(s)": "QA, Regulatory Affairs",
"Complexity_Authoring": "High", "Regulatory_Significance": "Submission Critical (CTA)"
},
{
"Doc_ID_Type": "CLI-PLAN-CDP", "Document_Name": "Clinical Development Plan (CDP)", "Phase": "Clinical (All Phases)", "Sub_Phase_Discipline": "Clinical Development / Medical Affairs",
"Purpose_Key_Content": "Overall strategy document outlining the sequence of clinical trials (Phase 1-3) and related activities needed to demonstrate safety and efficacy for regulatory approval in target indication(s).",
"Key_Metadata": "Product Name, Target Indication(s), Target Product Profile (TPP), Planned Studies (Phase 1, 2, 3), Timelines, High-level Budget/Resources",
"Input_Documents_Data_Sources": "Target Product Profile, Preclinical Data Summary, Regulatory Strategy",
"Output_Informs_Documents": "Clinical Study Protocol Development, Resource Planning, Budgeting",
"Authoring_Department(s)": "Clinical Lead, Medical Director, Statistician, Regulatory Affairs, Clin Ops Lead", "Review_Approval_Dept(s)": "Senior R&D Management, Commercial Lead",
"Complexity_Authoring": "High", "Regulatory_Significance": "Internal Strategy/Governance"
},
{
"Doc_ID_Type": "CLI-PLAN-TPP", "Document_Name": "Target Product Profile (TPP)", "Phase": "Discovery (late), Preclinical, Clinical", "Sub_Phase_Discipline": "Clinical Development / Commercial / Medical Affairs",
"Purpose_Key_Content": "Document outlining the desired characteristics of the drug product upon approval. Includes target indication, efficacy, safety, dosing, formulation attributes. Guides development decisions.",
"Key_Metadata": "Product Concept Name, Target Indication, Key Efficacy/Safety Attributes (Minimal vs Ideal), Dosing/Administration, Competitive Context",
"Input_Documents_Data_Sources": "Market Research, Medical Need Assessment, Early Scientific Data, Regulatory Landscape",
"Output_Informs_Documents": "Clinical Development Plan, Clinical Protocol Design (Endpoints), CMC Formulation Goals",
"Authoring_Department(s)": "Commercial Lead, Medical Affairs Lead, Clinical Lead, Regulatory Lead", "Review_Approval_Dept(s)": "Senior Management",
"Complexity_Authoring": "High", "Regulatory_Significance": "Internal Strategy/Governance"
},
{
"Doc_ID_Type": "CLI-PROT-P1", "Document_Name": "Clinical Study Protocol (Phase 1)", "Phase": "Clinical Phase 1", "Sub_Phase_Discipline": "Clinical Operations / Medical",
"Purpose_Key_Content": "Details the plan for a Phase 1 trial (e.g., SAD/MAD, PK, Food Effect, BA/BE). Objectives, design, patient population/healthy volunteers, procedures, endpoints, basic stats.",
"Key_Metadata": "Protocol ID, Version, Study Title, Phase, Indication (if specific), Planned Enrollment, Schema",
"Input_Documents_Data_Sources": "IB, Preclinical Data Summary, Statistical Input, Regulatory Feedback/IND/CTA",
"Output_Informs_Documents": "IRB/EC Submission, CTA/IND Submission, ICF Development, CRF Design, SAP Outline, Clinical Study Conduct",
"Authoring_Department(s)": "Medical Monitor/Clinical Scientist, Statistician, Clin Ops Lead", "Review_Approval_Dept(s)": "Legal, Regulatory Affairs, Safety, Senior Management",
"Complexity_Authoring": "High", "Regulatory_Significance": "GCP, Submission Critical"
},
{
"Doc_ID_Type": "CLI-PROT-P2", "Document_Name": "Clinical Study Protocol (Phase 2)", "Phase": "Clinical Phase 2", "Sub_Phase_Discipline": "Clinical Operations / Medical",
"Purpose_Key_Content": "Details the plan for a Phase 2 trial (e.g., Dose-finding, Proof-of-Concept). Objectives (often efficacy focus), design (e.g., randomized, controlled), patient population, endpoints (primary/secondary), procedures, detailed stats section.",
"Key_Metadata": "Protocol ID, Version, Study Title, Phase, Indication, Planned Enrollment, Randomization Scheme, Blinding",
"Input_Documents_Data_Sources": "IB, Phase 1 Data Report(s), Preclinical Efficacy Rationale, TPP, Statistical Input, Regulatory Feedback (e.g., EOP1)",
"Output_Informs_Documents": "IRB/EC Submission, CTA/IND Submission/Amendment, ICF Development, CRF Design, SAP, Clinical Study Conduct",
"Authoring_Department(s)": "Medical Monitor/Clinical Scientist, Statistician, Clin Ops Lead", "Review_Approval_Dept(s)": "Legal, Regulatory Affairs, Safety, Senior Management",
"Complexity_Authoring": "High", "Regulatory_Significance": "GCP, Submission Critical"
},
{
"Doc_ID_Type": "CLI-PROT-P3", "Document_Name": "Clinical Study Protocol (Phase 3)", "Phase": "Clinical Phase 3", "Sub_Phase_Discipline": "Clinical Operations / Medical",
"Purpose_Key_Content": "Details the plan for a Phase 3 pivotal trial (Confirmatory efficacy & safety). Large scale, often randomized, controlled, multi-center. Objectives, rigorous design, specific patient population, primary/key secondary endpoints, detailed statistical analysis plan summary.",
"Key_Metadata": "Protocol ID, Version, Study Title, Phase, Indication, Planned Enrollment, Statistical Power Calculation, Blinding, DMC Charter Ref",
"Input_Documents_Data_Sources": "IB, Phase 2 Data Report(s), TPP, Statistical Input, Regulatory Feedback (e.g., EOP2 Agreement, SPA)",
"Output_Informs_Documents": "IRB/EC Submission, CTA/IND Submission/Amendment, ICF Development, CRF Design, SAP, Clinical Study Conduct",
"Authoring_Department(s)": "Medical Monitor/Clinical Scientist, Statistician, Clin Ops Lead", "Review_Approval_Dept(s)": "Legal, Regulatory Affairs, Safety, Senior Management",
"Complexity_Authoring": "High", "Regulatory_Significance": "GCP, Submission Critical (NDA/BLA/MAA Basis)"
},
{
"Doc_ID_Type": "ICF", "Document_Name": "Informed Consent Form", "Phase": "Clinical (All Phases)", "Sub_Phase_Discipline": "Clinical Operations / Legal / Ethics",
"Purpose_Key_Content": "Document for potential trial participants outlining study purpose, procedures, risks, benefits, confidentiality, voluntariness, rights. Must be approved by EC/IRB.",
"Key_Metadata": "Protocol ID, Version, Site/Country Specific variations, Language, EC/IRB Approval Stamp/Date",
"Input_Documents_Data_Sources": "Clinical Study Protocol, IB (Safety Section), Local Regulatory/EC Templates & Requirements",
"Output_Informs_Documents": "Participant Enrollment Process, IRB/EC Approval Documentation",
"Authoring_Department(s)": "Clinical Operations, Medical Writer, Legal", "Review_Approval_Dept(s)": "IRB/EC, Sponsor Ethics Review (if applicable)",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "GCP, Regulatory/Ethics Approval Critical"
},
{
"Doc_ID_Type": "CRF", "Document_Name": "Case Report Form (Paper or eCRF Specification)", "Phase": "Clinical (All Phases)", "Sub_Phase_Discipline": "Data Management / Clinical Operations",
"Purpose_Key_Content": "Tool used to collect data from each participant in a clinical trial as required by the protocol. Paper form or specifications for electronic version (eCRF).",
"Key_Metadata": "Protocol ID, CRF Version, Module/Visit Structure, Variable Definitions, Data Entry Fields, Edit Checks (for eCRF)",
"Input_Documents_Data_Sources": "Clinical Study Protocol, Schedule of Assessments",
"Output_Informs_Documents": "Data Collection at Sites, Database Build (for eCRF), Data Management Plan (DMP), Statistical Analysis (Data Source)",
"Authoring_Department(s)": "Data Manager, Clinical Scientist (content input), CRF Designer/Programmer (eCRF)", "Review_Approval_Dept(s)": "Clinical Lead, Statistician, Clin Ops",
"Complexity_Authoring": "Medium-High", "Regulatory_Significance": "GCP, Data Integrity Critical"
},
{
"Doc_ID_Type": "CLI-PLAN-DMP", "Document_Name": "Data Management Plan (DMP)", "Phase": "Clinical (All Phases)", "Sub_Phase_Discipline": "Data Management",
"Purpose_Key_Content": "Describes all data management activities for a clinical trial: database design, data collection methods, edit checks, query process, data coding (MedDRA, WHODrug), SAE reconciliation, database lock procedures.",
"Key_Metadata": "Protocol ID, DMP Version, Database Platform, Coding Dictionaries/Versions, Data Review Plan, Lock Procedures",
"Input_Documents_Data_Sources": "Clinical Study Protocol, CRF Specifications, SAP (variable list)",
"Output_Informs_Documents": "Database Build/UAT, Data Cleaning Activities, Database Lock Readiness",
"Authoring_Department(s)": "Lead Data Manager", "Review_Approval_Dept(s)": "Clinical Lead, Statistician, Clin Ops, Safety/PV",
"Complexity_Authoring": "High", "Regulatory_Significance": "GCP, Data Integrity Critical"
},
{
"Doc_ID_Type": "CLI-PLAN-SAP", "Document_Name": "Statistical Analysis Plan (SAP)", "Phase": "Clinical (All Phases)", "Sub_Phase_Discipline": "Biostatistics",
"Purpose_Key_Content": "Detailed plan outlining how the clinical trial data will be analyzed. Defines analysis populations (ITT, PP), endpoints derivation, statistical methods, sensitivity analyses, handling of missing data, table/listing/figure (TLF) shells.",
"Key_Metadata": "Protocol ID, SAP Version, Analysis Timepoints (e.g., Interim, Final), Statistical Software",
"Input_Documents_Data_Sources": "Clinical Study Protocol, CRF (variable definitions), DMP (data structure)",
"Output_Informs_Documents": "Statistical Programming (SAS/R code), TLF Generation, Clinical Study Report (CSR), Data Monitoring Committee (DMC) Analysis",
"Authoring_Department(s)": "Biostatistician", "Review_Approval_Dept(s)": "Clinical Lead, Medical Monitor, Data Management, Regulatory Affairs (if complex)",
"Complexity_Authoring": "High", "Regulatory_Significance": "GCP, Submission Critical (CSR Basis), DMC Charter Input"
},
{
"Doc_ID_Type": "CLI-PLAN-SMP", "Document_Name": "Safety Management Plan / Safety Monitoring Plan", "Phase": "Clinical (All Phases)", "Sub_Phase_Discipline": "Pharmacovigilance / Safety / Clinical",
"Purpose_Key_Content": "Describes how safety data (AEs, SAEs, AESIs) will be collected, managed, reviewed, reported (e.g., SUSARs), and reconciled during a clinical trial.",
"Key_Metadata": "Protocol ID, SMP Version, Definitions (AE, SAE), Reporting Timelines, Reconciliation Process, AESI List",
"Input_Documents_Data_Sources": "Clinical Study Protocol, IB, Company SOPs for PV",
"Output_Informs_Documents": "Safety Data Collection & Processing, SUSAR Reporting, DSUR/Annual Report Input, CSR Safety Section",
"Authoring_Department(s)": "Safety Physician/Scientist, Clinical Lead", "Review_Approval_Dept(s)": "Regulatory Affairs, QA",
"Complexity_Authoring": "High", "Regulatory_Significance": "GCP/GVP, Regulatory Compliance Critical"
},
{
"Doc_ID_Type": "CLI-PLAN-MON", "Document_Name": "Clinical Monitoring Plan", "Phase": "Clinical (All Phases)", "Sub_Phase_Discipline": "Clinical Operations",
"Purpose_Key_Content": "Outlines the strategy, methods, frequency, and intensity of monitoring activities to oversee trial conduct at clinical sites, ensuring GCP compliance and data quality (e.g., SDV, central monitoring).",
"Key_Metadata": "Protocol ID, Monitoring Plan Version, Monitoring Types (On-site, Remote, Central), SDV % Strategy, Key Risk Indicators (KRIs)",
"Input_Documents_Data_Sources": "Clinical Study Protocol, Risk Assessment (RBM), Company Monitoring SOPs",
"Output_Informs_Documents": "Site Monitoring Visits, Monitoring Visit Reports, Issue Escalation",
"Authoring_Department(s)": "Clinical Research Associate (CRA) Lead / Clinical Trial Manager (CTM)", "Review_Approval_Dept(s)": "Clin Ops Management, QA (GCP Compliance)",
"Complexity_Authoring": "Medium-High", "Regulatory_Significance": "GCP, Trial Oversight Critical"
},
{
"Doc_ID_Type": "CLI-REP-MONVISIT", "Document_Name": "Monitoring Visit Report", "Phase": "Clinical (All Phases)", "Sub_Phase_Discipline": "Clinical Operations",
"Purpose_Key_Content": "Report completed by a CRA after a monitoring visit (selection, initiation, interim, close-out) detailing findings, issues, action items, and site compliance.",
"Key_Metadata": "Protocol ID, Site ID, Visit Date, Visit Type, Summary of Findings, Action Items/Follow-up",
"Input_Documents_Data_Sources": "Monitoring Plan, Site Data/Documents Reviewed, Previous Reports",
"Output_Informs_Documents": "Site Management, Issue Resolution/Tracking, TMF Filing, Sponsor Oversight Documentation",
"Authoring_Department(s)": "Clinical Research Associate (CRA)", "Review_Approval_Dept(s)": "CRA Lead / CTM Review/Approval",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "GCP, Trial Oversight Documentation"
},
{
"Doc_ID_Type": "CLI-REP-SITEFEAS", "Document_Name": "Site Feasibility / Selection Report", "Phase": "Clinical (All Phases)", "Sub_Phase_Discipline": "Clinical Operations",
"Purpose_Key_Content": "Report summarizing the assessment and selection of clinical trial sites, based on feasibility questionnaires, site capabilities, investigator experience, patient population access.",
"Key_Metadata": "Protocol ID, Site ID, Investigator Name, Key Feasibility Metrics, Selection Rationale",
"Input_Documents_Data_Sources": "Protocol Synopsis, Site Feasibility Questionnaire Results, Site Qualification Visit Reports",
"Output_Informs_Documents": "Site Initiation, Contract/Budget Negotiation",
"Authoring_Department(s)": "Clinical Trial Manager (CTM), CRA", "Review_Approval_Dept(s)": "Clin Ops Management",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "GCP, Trial Execution Planning"
},
{
"Doc_ID_Type": "CLI-CHARTER-DMC", "Document_Name": "Data Monitoring Committee (DMC/DSMB) Charter", "Phase": "Clinical (Phase 2/3, sometimes P1)", "Sub_Phase_Discipline": "Biostatistics / Clinical / Safety",
"Purpose_Key_Content": "Defines the roles, responsibilities, composition, procedures, data access, and meeting schedule for the independent committee reviewing accumulating trial data for safety and/or efficacy.",
"Key_Metadata": "Protocol ID, DMC Charter Version, Committee Member List, Meeting Frequency, Stopping Rules/Guidelines",
"Input_Documents_Data_Sources": "Clinical Study Protocol, SAP (for analysis plan), Safety Monitoring Plan",
"Output_Informs_Documents": "DMC Meetings, DMC Recommendations, Interim Analysis Conduct",
"Authoring_Department(s)": "Biostatistician, Clinical Lead, Safety Lead", "Review_Approval_Dept(s)": "Sponsor Senior Management, Legal (Indemnification)",
"Complexity_Authoring": "High", "Regulatory_Significance": "GCP, Independent Oversight Critical"
},
{
"Doc_ID_Type": "CLI-REP-DMC", "Document_Name": "Data Monitoring Committee (DMC/DSMB) Meeting Minutes/Recommendations", "Phase": "Clinical (Phase 2/3, sometimes P1)", "Sub_Phase_Discipline": "Biostatistics / Clinical / Safety",
"Purpose_Key_Content": "Record of DMC meetings, including data reviewed (often blinded), deliberations, and formal recommendations to the sponsor (e.g., continue, modify, stop trial).",
"Key_Metadata": "Protocol ID, DMC Meeting Date, Data Cutoff Date, Summary of Data Reviewed, DMC Recommendation",
"Input_Documents_Data_Sources": "DMC Charter, Interim Analysis Reports (Statistician Output)",
"Output_Informs_Documents": "Sponsor Decision on Trial Continuation/Modification, Regulatory Reporting (if applicable), CSR Section",
"Authoring_Department(s)": "DMC Chair (Minutes Draft), Sponsor Statistician/Clin Lead (Facilitation)", "Review_Approval_Dept(s)": "Sponsor Senior Management (Action on Recommendations)",
"Complexity_Authoring": "High", "Regulatory_Significance": "GCP, Trial Integrity & Participant Safety Critical"
},
{
"Doc_ID_Type": "CLI-REP-INTERIM", "Document_Name": "Interim Analysis Report", "Phase": "Clinical (Phase 2/3 often)", "Sub_Phase_Discipline": "Biostatistics",
"Purpose_Key_Content": "Report presenting the results of a pre-planned statistical analysis performed on accumulating trial data before formal trial completion. Used for DMC review or internal decisions.",
"Key_Metadata": "Protocol ID, Analysis Timepoint, Data Cutoff Date, Statistical Methods Used, Key Efficacy/Safety Results",
"Input_Documents_Data_Sources": "SAP (Interim Section), Cleaned Interim Dataset",
"Output_Informs_Documents": "DMC Review, Potential Early Stopping Decision, Adaptive Design Modifications",
"Authoring_Department(s)": "Biostatistician", "Review_Approval_Dept(s)": "Internal Review Team (Stat Lead, Clin Lead)",
"Complexity_Authoring": "High", "Regulatory_Significance": "GCP, Pre-specified in SAP, Potential Impact on Trial"
},
{
"Doc_ID_Type": "CLI-REP-CSR", "Document_Name": "Clinical Study Report (CSR)", "Phase": "Clinical (All Phases)", "Sub_Phase_Discipline": "Clinical Development / Medical Writing",
"Purpose_Key_Content": "ICH E3 compliant comprehensive report detailing the conduct, results (efficacy & safety), and interpretation of a completed clinical trial. Includes appendices with protocol, SAP, sample CRF, etc.",
"Key_Metadata": "Protocol ID, Study Title, ICH E3 Structure Compliance Statement, Phase, Synopsis",
"Input_Documents_Data_Sources": "CSP, SAP, Final Clinical Database (Locked), Tables/Listings/Figures (TLFs), IB, Safety Reports, DMC Reports, Literature",
"Output_Informs_Documents": "Regulatory Submissions (CTD Module 5), Publications/Presentations, Future Clinical Development Plans, IB Updates, Safety Labeling Updates",
"Authoring_Department(s)": "Medical Writer, Clinical Lead, Biostatistician, Safety Physician, Clin Ops Lead, Data Manager", "Review_Approval_Dept(s)": "QA (GCP Compliance), Regulatory Affairs, Senior Management",
"Complexity_Authoring": "High", "Regulatory_Significance": "GCP, Submission Critical (NDA/BLA/MAA)"
},
{
"Doc_ID_Type": "eTMF-INDEX", "Document_Name": "Electronic Trial Master File (eTMF) Index/Structure", "Phase": "Clinical (All Phases)", "Sub_Phase_Discipline": "Clinical Operations / TMF Management",
"Purpose_Key_Content": "Defines the standardized structure, naming conventions, and metadata requirements for organizing and filing essential trial documents in the eTMF system (often based on DIA TMF Reference Model).",
"Key_Metadata": "TMF Structure Version, Section/Artifact List, Naming Conventions, Required Metadata Fields",
"Input_Documents_Data_Sources": "DIA TMF Reference Model, Company SOPs",
"Output_Informs_Documents": "TMF Filing/QC Activities, Inspection Readiness",
"Authoring_Department(s)": "TMF Manager/Specialist, Clin Ops Lead", "Review_Approval_Dept(s)": "QA (GCP Compliance)",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "GCP, Inspection Readiness Critical"
},
{
"Doc_ID_Type": "REG-SUB-NDA", "Document_Name": "New Drug Application (NDA) / Biologics License Application (BLA) (US)", "Phase": "Regulatory Submission", "Sub_Phase_Discipline": "Regulatory Affairs / Cross-functional",
"Purpose_Key_Content": "Comprehensive submission to FDA requesting approval to market a new drug or biologic. Includes all nonclinical, CMC, clinical data, labeling. (eCTD Format: Modules 1-5)",
"Key_Metadata": "Product Name, NDA/BLA Number (assigned), Submission Type (e.g., 505(b)(1)), Sequence Number",
"Input_Documents_Data_Sources": "All CSRs, Nonclinical Reports, CMC Data Package (M3), Proposed Labeling, Integrated Summaries (ISS/ISE - M5, M2), FDA Forms",
"Output_Informs_Documents": "FDA Review Cycle (PDUFA clock), Facility Inspections, Labeling Negotiations, Approval/Rejection",
"Authoring_Department(s)": "Regulatory Affairs Lead, SMEs (All disciplines), Medical Writers", "Review_Approval_Dept(s)": "Senior Management, Legal, Commercial",
"Complexity_Authoring": "High", "Regulatory_Significance": "Submission Critical (FDA Market Approval)"
},
{
"Doc_ID_Type": "REG-SUB-MAA", "Document_Name": "Marketing Authorisation Application (MAA) (EU)", "Phase": "Regulatory Submission", "Sub_Phase_Discipline": "Regulatory Affairs / Cross-functional",
"Purpose_Key_Content": "Comprehensive submission to EMA (or national agency via MRP/DCP) requesting approval to market a new medicinal product in Europe. Similar scope to NDA/BLA. (eCTD Format: Modules 1-5)",
"Key_Metadata": "Product Name, Procedure Type (Centralised, MRP, DCP), Application Number (assigned), Sequence Number",
"Input_Documents_Data_Sources": "All CSRs, Nonclinical Reports, CMC Data Package (M3), Proposed SmPC/PIL/Labeling, Risk Management Plan (RMP), Pediatric Investigation Plan (PIP) Compliance",
"Output_Informs_Documents": "EMA/CHMP Review Cycle, Rapporteur/Co-Rapporteur Assessment, Clock Stops, Inspections, Approval/Rejection",
"Authoring_Department(s)": "Regulatory Affairs Lead, SMEs (All disciplines), Medical Writers, PV Lead (RMP), Pediatric Coordinator (PIP)", "Review_Approval_Dept(s)": "Senior Management, Legal, Commercial",
"Complexity_Authoring": "High", "Regulatory_Significance": "Submission Critical (EMA/EU Market Approval)"
},
{
"Doc_ID_Type": "REG-CTD-M1", "Document_Name": "CTD Module 1 (Administrative Information)", "Phase": "Regulatory Submission", "Sub_Phase_Discipline": "Regulatory Affairs",
"Purpose_Key_Content": "Region-specific administrative information (forms, cover letters, certifications, labeling - varies by region US/EU/JP etc.).",
"Key_Metadata": "Product Name, Application Type/Number, Region Specific Forms (e.g., 356h, EU Application Form), Proposed Labeling/SmPC/PIL",
"Input_Documents_Data_Sources": "Regulatory Strategy, Submission Plan, Final Proposed Labeling",
"Output_Informs_Documents": "Regulatory Agency Processing, Review Initiation",
"Authoring_Department(s)": "Regulatory Affairs Operations/Publisher, RA Lead", "Review_Approval_Dept(s)": "RA Management",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "Submission Critical (Administrative)"
},
{
"Doc_ID_Type": "REG-CTD-M2", "Document_Name": "CTD Module 2 (Summaries)", "Phase": "Regulatory Submission", "Sub_Phase_Discipline": "Medical Writing / SMEs / Regulatory Affairs",
"Purpose_Key_Content": "Summaries of Quality (M2.3), Nonclinical (M2.4 Overview, M2.6 Summaries), and Clinical (M2.5 Overview, M2.7 Summaries) data presented in Modules 3, 4, and 5.",
"Key_Metadata": "Product Name, Application Type/Number, Specific Summary Doc (e.g., 2.7.3 Summary of Clinical Efficacy)",
"Input_Documents_Data_Sources": "CSRs, Nonclinical Reports, CMC Reports, Integrated Summaries (ISS/ISE)",
"Output_Informs_Documents": "Key Review Document for Agencies, Basis for Assessment Reports",
"Authoring_Department(s)": "Medical Writers, SMEs (Clin, Nonclin, CMC, PK, Stats), RA Lead", "Review_Approval_Dept(s)": "Senior SMEs, RA Management",
"Complexity_Authoring": "High", "Regulatory_Significance": "Submission Critical (Core Agency Review Content)"
},
{
"Doc_ID_Type": "REG-CTD-M3", "Document_Name": "CTD Module 3 (Quality / CMC)", "Phase": "Regulatory Submission", "Sub_Phase_Discipline": "CMC / Regulatory Affairs",
"Purpose_Key_Content": "Contains all detailed CMC information for Drug Substance and Drug Product (Manufacturing, Characterization, Controls, Stability, Container Closure, etc.).",
"Key_Metadata": "Product Name, Application Type/Number, Section Reference (e.g., 3.2.P.2 Pharmaceutical Development)",
"Input_Documents_Data_Sources": "CMC Development Reports, Validation Reports, Batch Records, Stability Reports, Specifications, CoAs",
"Output_Informs_Documents": "Regulatory Agency Quality Review, Basis for Approval of Mfg/Controls, Inspections",
"Authoring_Department(s)": "CMC SMEs (Chem, Analyt, Form, Mfg, QA), Regulatory CMC Writer", "Review_Approval_Dept(s)": "QA, CMC Leadership, RA Lead",
"Complexity_Authoring": "High", "Regulatory_Significance": "GMP, Submission Critical (Quality Approval Basis)"
},
{
"Doc_ID_Type": "REG-CTD-M4", "Document_Name": "CTD Module 4 (Nonclinical Study Reports)", "Phase": "Regulatory Submission", "Sub_Phase_Discipline": "Nonclinical / Regulatory Affairs",
"Purpose_Key_Content": "Contains all nonclinical study reports (Pharmacology, PK, Toxicology).",
"Key_Metadata": "Product Name, Application Type/Number, Study Report Identifier",
"Input_Documents_Data_Sources": "Final GLP/Non-GLP Nonclinical Study Reports",
"Output_Informs_Documents": "Regulatory Agency Nonclinical Review",
"Authoring_Department(s)": "Nonclinical SMEs (Tox, PK, Pharm), Medical Writer (if formatting), RA Publisher", "Review_Approval_Dept(s)": "Nonclinical Leadership, RA Lead",
"Complexity_Authoring": "Medium (compilation), High (content)", "Regulatory_Significance": "GLP (where applicable), Submission Critical (Safety Basis)"
},
{
"Doc_ID_Type": "REG-CTD-M5", "Document_Name": "CTD Module 5 (Clinical Study Reports)", "Phase": "Regulatory Submission", "Sub_Phase_Discipline": "Clinical / Biostatistics / Medical Writing / Regulatory Affairs",
"Purpose_Key_Content": "Contains all clinical study reports (PK, PD, Efficacy/Safety Phases 1-3), ISS/ISE, literature references.",
"Key_Metadata": "Product Name, Application Type/Number, CSR Identifier, ISS/ISE Documents",
"Input_Documents_Data_Sources": "Final CSRs, Statistical Analysis Outputs for ISS/ISE, Literature Reprints",
"Output_Informs_Documents": "Regulatory Agency Clinical/Statistical Review, Basis for Efficacy/Safety Approval",
"Authoring_Department(s)": "Medical Writers, Statisticians (ISS/ISE), Clinical Leads, RA Publisher", "Review_Approval_Dept(s)": "Clinical/Stats Leadership, RA Lead",
"Complexity_Authoring": "High", "Regulatory_Significance": "GCP, Submission Critical (Efficacy/Safety Approval Basis)"
},
{
"Doc_ID_Type": "REG-ISS", "Document_Name": "Integrated Summary of Safety (ISS)", "Phase": "Regulatory Submission", "Sub_Phase_Discipline": "Clinical Safety / Biostatistics / Medical Writing",
"Purpose_Key_Content": "Integrates safety data across multiple clinical trials to provide an overall assessment of the product's safety profile. (Part of CTD M5 & summarized in M2)",
"Key_Metadata": "Product Name, Application Number, Data Cutoff Date, Pooling Strategy",
"Input_Documents_Data_Sources": "Multiple CSRs, Final Clinical Databases, Safety Management Plan",
"Output_Informs_Documents": "Regulatory Agency Safety Review, Product Labeling (Safety Sections)",
"Authoring_Department(s)": "Safety Physician, Statistician, Medical Writer", "Review_Approval_Dept(s)": "Clinical Lead, PV Head, RA Lead",
"Complexity_Authoring": "High", "Regulatory_Significance": "GCP, Submission Critical (Labeling/Approval)"
},
{
"Doc_ID_Type": "REG-ISE", "Document_Name": "Integrated Summary of Efficacy (ISE)", "Phase": "Regulatory Submission", "Sub_Phase_Discipline": "Clinical Development / Biostatistics / Medical Writing",
"Purpose_Key_Content": "Integrates efficacy data across multiple clinical trials (usually pivotal Phase 3) to provide robust evidence of effectiveness. (Part of CTD M5 & summarized in M2)",
"Key_Metadata": "Product Name, Application Number, Data Cutoff Date, Pooling Strategy, Key Endpoints Analysis",
"Input_Documents_Data_Sources": "Multiple CSRs (esp. Pivotal Trials), Final Clinical Databases, SAPs",
"Output_Informs_Documents": "Regulatory Agency Efficacy Review, Product Labeling (Efficacy Sections, Indication)",
"Authoring_Department(s)": "Clinical Lead, Statistician, Medical Writer", "Review_Approval_Dept(s)": "Stats Head, RA Lead",
"Complexity_Authoring": "High", "Regulatory_Significance": "GCP, Submission Critical (Labeling/Approval)"
},
{
"Doc_ID_Type": "REG-LABEL-US", "Document_Name": "Prescribing Information (PI) / US Package Insert", "Phase": "Regulatory Submission, Post-Approval", "Sub_Phase_Discipline": "Regulatory Affairs / Medical / Clinical / Safety / Commercial",
"Purpose_Key_Content": "FDA-approved labeling document providing information for safe and effective use of the drug. Includes Indications, Dosage, Contraindications, Warnings, AEs, Clinical Studies sections.",
"Key_Metadata": "Product Name, NDA/BLA Number, Version/Date, Sections (per PLR format)",
"Input_Documents_Data_Sources": "ISS, ISE, Key CSRs, Final Approved Data",
"Output_Informs_Documents": "Marketed Product Use, FDA Website, Promotional Material Review",
"Authoring_Department(s)": "Regulatory Labeling Lead, Medical Writer, SMEs (Clin, Safety, PK), Commercial Input", "Review_Approval_Dept(s)": "Negotiation with FDA, Internal Review Committee",
"Complexity_Authoring": "High", "Regulatory_Significance": "FDA Approved, Legally Binding Document"
},
{
"Doc_ID_Type": "REG-LABEL-EU", "Document_Name": "Summary of Product Characteristics (SmPC) / Package Leaflet (PIL) / Outer Labeling (EU)", "Phase": "Regulatory Submission, Post-Approval", "Sub_Phase_Discipline": "Regulatory Affairs / Medical / Clinical / Safety / Commercial",
"Purpose_Key_Content": "EMA/NCA-approved documents. SmPC is for HCPs, PIL is for patients. Provides key info on use, risks, benefits. Structure defined by QRD templates.",
"Key_Metadata": "Product Name, MA Number, Version/Date, Sections (per QRD template)",
"Input_Documents_Data_Sources": "ISS, ISE, Key CSRs, RMP, Final Approved Data, Usability Testing (PIL)",
"Output_Informs_Documents": "Marketed Product Use, EMA/NCA Website, Promotional Material Review",
"Authoring_Department(s)": "Regulatory Labeling Lead, Medical Writer, SMEs (Clin, Safety, PK), PV (RMP link), Commercial Input", "Review_Approval_Dept(s)": "Negotiation with EMA/NCA (CHMP Opinions), Internal Review Committee",
"Complexity_Authoring": "High", "Regulatory_Significance": "EMA/NCA Approved, Legally Binding Document"
},
{
"Doc_ID_Type": "REG-RTQ", "Document_Name": "Response to Regulatory Questions (RTQ) / Information Request (IR)", "Phase": "Regulatory Submission Review Phase", "Sub_Phase_Discipline": "Regulatory Affairs + SMEs",
"Purpose_Key_Content": "Formal response document addressing questions raised by a health authority during review of a submission (e.g., IND, NDA, MAA).",
"Key_Metadata": "Application Number, Question Reference, Submission Sequence, Date",
"Input_Documents_Data_Sources": "Regulatory Question Letter/Email, Internal Data/Reports/Re-analysis, SME Input",
"Output_Informs_Documents": "Regulatory Agency Review of Response, Potential Clock Stop/Restart, Potential for Approval/Rejection/Label Changes",
"Authoring_Department(s)": "Regulatory Affairs Lead, Relevant SMEs (Clin, Nonclin, CMC, Stats, Safety)", "Review_Approval_Dept(s)": "Senior Management, Legal (if needed)",
"Complexity_Authoring": "High", "Regulatory_Significance": "Submission Critical (Direct Agency Interaction)"
},
{
"Doc_ID_Type": "REG-AMD", "Document_Name": "Amendment / Variation", "Phase": "Pre/Post-Approval", "Sub_Phase_Discipline": "Regulatory Affairs + SMEs",
"Purpose_Key_Content": "Submission to update an existing application (e.g., IND Amendment for new protocol; NDA/MAA Variation for CMC change or safety update).",
"Key_Metadata": "Application Number, Amendment/Variation Type (e.g., Protocol, CMC Change - Type IA/IB/II), Submission Sequence",
"Input_Documents_Data_Sources": "New Protocol, New CMC Data, New Safety Data (DSUR), Updated IB",
"Output_Informs_Documents": "Regulatory Agency Review/Approval/Acknowledgement (depending on type), Implementation of Change",
"Authoring_Department(s)": "Regulatory Affairs Lead, Relevant SMEs", "Review_Approval_Dept(s)": "QA (for CMC changes), Safety Committee (for safety changes)",
"Complexity_Authoring": "Medium-High", "Regulatory_Significance": "Regulatory Compliance Critical"
},
{
"Doc_ID_Type": "REG-AR", "Document_Name": "IND Annual Report / DSUR (Development Safety Update Report)", "Phase": "Clinical (Annual)", "Sub_Phase_Discipline": "Regulatory Affairs / Safety / Clinical",
"Purpose_Key_Content": "Periodic report submitted to regulatory agencies summarizing trial progress and cumulative safety information for an investigational product. DSUR is ICH standard.",
"Key_Metadata": "IND Number / Product Name, Reporting Period, Summary of Clinical Activity, Cumulative Safety Data Analysis",
"Input_Documents_Data_Sources": "Ongoing CSRs/Interim Data, Global Safety Database, IB",
"Output_Informs_Documents": "Continued Authorization for IND/CTAs, Agency Safety Review",
"Authoring_Department(s)": "Regulatory Affairs Lead, Safety Physician/Scientist, Clinical Lead, Medical Writer", "Review_Approval_Dept(s)": "PV Head, Senior Management",
"Complexity_Authoring": "High", "Regulatory_Significance": "GCP/GVP, Regulatory Requirement"
},
{
"Doc_ID_Type": "REG-PIP", "Document_Name": "Pediatric Investigation Plan (PIP) (EU) / Pediatric Study Plan (PSP) (US)", "Phase": "Clinical (Early Phase 2/End of Phase 2)", "Sub_Phase_Discipline": "Regulatory Affairs / Clinical / Pediatric Experts",
"Purpose_Key_Content": "Plan submitted to EMA (PIP) or FDA (PSP) outlining how the drug will be studied in pediatric populations. Agreement required for MAA/NDA submission (unless waived/deferred).",
"Key_Metadata": "Product Name, Indication, Proposed Pediatric Studies (PK, Safety, Efficacy), Timelines, Waiver/Deferral Request (if applicable)",
"Input_Documents_Data_Sources": "Adult Clinical Data, Preclinical Data, Pediatric Disease Knowledge, Modeling/Simulation Data",
"Output_Informs_Documents": "Agreement with EMA (PDCO) / FDA, Pediatric Study Conduct, MAA/NDA Filing Prerequisite",
"Authoring_Department(s)": "Regulatory Affairs Lead, Clinical Lead, Pediatrician/Expert, PK Modeler", "Review_Approval_Dept(s)": "Senior Management",
"Complexity_Authoring": "High", "Regulatory_Significance": "Regulatory Requirement (EU/US)"
},
{
"Doc_ID_Type": "REG-ODD", "Document_Name": "Orphan Drug Designation Application", "Phase": "Preclinical / Clinical", "Sub_Phase_Discipline": "Regulatory Affairs",
"Purpose_Key_Content": "Application submitted to FDA or EMA requesting special status for a drug intended to treat a rare disease/condition, providing development incentives.",
"Key_Metadata": "Product Name, Rare Disease/Condition, Rationale (Prevalence, Medical Need, Scientific Justification)",
"Input_Documents_Data_Sources": "Preclinical Data (Proof of Concept), Clinical Data (if available), Epidemiology Data, Literature",
"Output_Informs_Documents": "ODD Granted/Denied, Development Incentives (Market Exclusivity, Fee Waivers)",
"Authoring_Department(s)": "Regulatory Affairs Lead, Medical/Clinical Lead", "Review_Approval_Dept(s)": "Senior Management",
"Complexity_Authoring": "Medium-High", "Regulatory_Significance": "Regulatory Strategy/Incentive"
},
{
"Doc_ID_Type": "REG-RMP", "Document_Name": "Risk Management Plan (RMP) (EU/Other Regions)", "Phase": "Regulatory Submission, Post-Approval", "Sub_Phase_Discipline": "Pharmacovigilance / Safety / Regulatory Affairs",
"Purpose_Key_Content": "Document describing the known/potential risks of a drug, plans for characterizing risks further (pharmacovigilance activities), and measures to minimize risks (Risk Minimization Measures - RMM). Required for MAA.",
"Key_Metadata": "Product Name, Version, Safety Specification (Risks), PV Plan, RMMs",
"Input_Documents_Data_Sources": "ISS, CSRs, Preclinical Data, Epidemiological Data",
"Output_Informs_Documents": "EMA/NCA Review/Approval, Post-Marketing PV Activities, Implementation of RMMs, Periodic Updates (with PSUR)",
"Authoring_Department(s)": "PV Lead/Safety Physician, Regulatory Affairs, Medical Writer, Clinical Lead", "Review_Approval_Dept(s)": "Senior Management, QA",
"Complexity_Authoring": "High", "Regulatory_Significance": "GVP, Submission Critical (MAA), Post-Marketing Requirement"
},
{
"Doc_ID_Type": "PMS-PSUR", "Document_Name": "Periodic Safety Update Report (PSUR/PBRER)", "Phase": "Post-Marketing", "Sub_Phase_Discipline": "Pharmacovigilance / Safety",
"Purpose_Key_Content": "Periodic report summarizing global interval and cumulative safety data for an approved product. Assesses benefit-risk balance. ICH E2C(R2) defines PBRER format.",
"Key_Metadata": "Product Name, Reporting Period (Interval), Data Lock Point, Reference Safety Info (e.g., Label), Global Sales Data",
"Input_Documents_Data_Sources": "Global Safety Database, Clinical Study Data (ongoing/completed), Literature, Spontaneous Reports, RMP",
"Output_Informs_Documents": "Regulatory Agency Review, Signal Detection, Label Updates, RMP Updates, Benefit-Risk Assessment",
"Authoring_Department(s)": "Pharmacovigilance / Safety Physician, Medical Writer, Epidemiologist (if needed)", "Review_Approval_Dept(s)": "Regulatory Affairs, QA, Qualified Person PV (EU), Senior Management",
"Complexity_Authoring": "High", "Regulatory_Significance": "GVP, Regulatory Requirement"
},
{
"Doc_ID_Type": "PMS-PV-SIGNAL", "Document_Name": "Signal Detection/Evaluation Report", "Phase": "Post-Marketing", "Sub_Phase_Discipline": "Pharmacovigilance / Safety",
"Purpose_Key_Content": "Internal report documenting the process of detecting, validating, prioritizing, and assessing potential new safety signals from various data sources.",
"Key_Metadata": "Potential Signal Topic, Data Sources Reviewed, Assessment Findings, Recommended Actions (e.g., Further analysis, Label change, Study)",
"Input_Documents_Data_Sources": "Safety Databases, Literature, Clinical Data, Health Authority Websites",
"Output_Informs_Documents": "Input to PSURs, RMP Updates, Potential Label Changes, Regulatory Notifications (if urgent)",
"Authoring_Department(s)": "PV Scientist/Physician, Epidemiologist", "Review_Approval_Dept(s)": "PV Management, Safety Committee",
"Complexity_Authoring": "Medium-High", "Regulatory_Significance": "GVP, Internal Process/Regulatory Expectation"
},
{
"Doc_ID_Type": "PMS-AUDIT-GXP", "Document_Name": "GCP/GLP/GMP Audit Report", "Phase": "All Phases", "Sub_Phase_Discipline": "Quality Assurance (QA)",
"Purpose_Key_Content": "Report documenting findings from an audit conducted by QA (or external auditor) to assess compliance of a study, site, vendor, or internal process against GxP regulations and SOPs.",
"Key_Metadata": "Audit Scope, Audit Date, Auditee, Auditors, Findings (Observations classified by severity), Recommendations, CAPA references",
"Input_Documents_Data_Sources": "Audit Plan, Applicable Regulations/SOPs, Documents/Processes Reviewed",
"Output_Informs_Documents": "Corrective and Preventive Action (CAPA) Plan, Compliance Improvement, Vendor Qualification Documentation",
"Authoring_Department(s)": "Lead Auditor", "Review_Approval_Dept(s)": "QA Management, Auditee Management (for response)",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "GCP/GLP/GMP Compliance Oversight"
},
{
"Doc_ID_Type": "PMS-CAPA", "Document_Name": "Corrective and Preventive Action (CAPA) Plan/Record", "Phase": "All Phases", "Sub_Phase_Discipline": "QA / Operational Depts",
"Purpose_Key_Content": "Record documenting actions taken to address deviations or audit findings, including root cause analysis, corrective actions, preventive actions, effectiveness checks.",
"Key_Metadata": "Deviation/Audit Finding Ref, Root Cause Analysis, CAPA Details, Owner, Due Date, Effectiveness Check Results",
"Input_Documents_Data_Sources": "Deviation Report, Audit Report",
"Output_Informs_Documents": "Resolution of Non-compliance, Process Improvement, Closure of Audit Finding",
"Authoring_Department(s)": "Owner of CAPA (Operational Dept)", "Review_Approval_Dept(s)": "QA Approval/Oversight",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "Quality Management System (QMS) Core Process"
},
{
"Doc_ID_Type": "QMS-SOP", "Document_Name": "Standard Operating Procedure (SOP)", "Phase": "All Phases", "Sub_Phase_Discipline": "QA / Functional Depts",
"Purpose_Key_Content": "Document providing detailed, written instructions for performing specific routine operations or activities to ensure consistency and compliance.",
"Key_Metadata": "SOP Title, SOP Number, Version, Effective Date, Author/Owner Dept, Step-by-Step Procedures",
"Input_Documents_Data_Sources": "Process Knowledge, Regulatory Requirements, Best Practices",
"Output_Informs_Documents": "Standardized Process Execution, Training Material, Audit Reference",
"Authoring_Department(s)": "SME from Functional Dept, Technical Writer", "Review_Approval_Dept(s)": "Functional Dept Head, QA Approval",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "GCP/GLP/GMP & QMS Requirement"
},
{
"Doc_ID_Type": "QMS-TRAINREC", "Document_Name": "Training Record", "Phase": "All Phases", "Sub_Phase_Discipline": "All Personnel / HR / QA",
"Purpose_Key_Content": "Documentation confirming that personnel have been trained on specific SOPs, regulations, protocols, or job functions.",
"Key_Metadata": "Employee Name, Training Topic (SOP#, Protocol#), Date Trained, Trainer Signature/Method, Assessment (if applicable)",
"Input_Documents_Data_Sources": "SOPs, Protocols, Training Materials",
"Output_Informs_Documents": "Evidence of Qualified Personnel, Inspection Readiness",
"Authoring_Department(s)": "Employee, Trainer, Supervisor, LMS Admin", "Review_Approval_Dept(s)": "N/A (Record)",
"Complexity_Authoring": "Low", "Regulatory_Significance": "GCP/GLP/GMP Requirement"
},
{
"Doc_ID_Type": "PM-PLAN", "Document_Name": "Project Management Plan / Integrated Development Plan", "Phase": "All Phases", "Sub_Phase_Discipline": "Project Management",
"Purpose_Key_Content": "Overarching plan integrating timelines, resources, budget, risks, and milestones across all functional areas for the entire development program.",
"Key_Metadata": "Product Name, Project Goals, Key Milestones (Gantt Chart), Budget Summary, Resource Allocation, Risk Register, Communication Plan",
"Input_Documents_Data_Sources": "Functional Plans (Clin Dev, Nonclin, CMC, Reg), TPP",
"Output_Informs_Documents": "Project Tracking, Budget Management, Resource Allocation, Risk Mitigation, Governance Updates",
"Authoring_Department(s)": "Project Manager", "Review_Approval_Dept(s)": "Project Team, Senior Management/Governance Committee",
"Complexity_Authoring": "High", "Regulatory_Significance": "Internal Governance/Operations"
},
{
"Doc_ID_Type": "PM-RISKREG", "Document_Name": "Risk Register", "Phase": "All Phases", "Sub_Phase_Discipline": "Project Management / Cross-functional",
"Purpose_Key_Content": "Living document identifying potential risks to the project (timeline, budget, technical, regulatory), their likelihood and impact, and planned mitigation/contingency actions.",
"Key_Metadata": "Risk ID, Risk Description, Category, Likelihood, Impact, Mitigation Plan, Owner, Status",
"Input_Documents_Data_Sources": "Project Team Input, Functional Plans, Past Experience",
"Output_Informs_Documents": "Proactive Risk Management, Input to Project Plans, Governance Reporting",
"Authoring_Department(s)": "Project Manager, Project Team Members", "Review_Approval_Dept(s)": "Project Team Review",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "Internal Governance/Best Practice"
},
{
"Doc_ID_Type": "CLI-MAN-IMPHANDLE", "Document_Name": "IMP Handling Manual", "Phase": "Clinical (All Phases)", "Sub_Phase_Discipline": "Clinical Supply / Site Staff",
"Purpose_Key_Content": "Provides instructions for site staff on receiving, storing, dispensing, returning, and accounting for the Investigational Medicinal Product.",
"Key_Metadata": "Protocol ID, Product Name, Storage Conditions, Dispensing Instructions, Accountability Procedures",
"Input_Documents_Data_Sources": "CLI-PROT, CMC-LABEL-IMP, PRE-REP-CMC-STAB",
"Output_Informs_Documents": "Site Training, IMP Handling at Site, CLI-LOG-IMPACC",
"Authoring_Department(s)": "Clinical Supply Lead, Clinical Operations", "Review_Approval_Dept(s)": "QA",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "GCP/GMP (Drug Accountability, Storage)"
},
{
"Doc_ID_Type": "CMC-LABEL-IMP", "Document_Name": "IMP Label Specification/Approval", "Phase": "Clinical (All Phases)", "Sub_Phase_Discipline": "CMC / Regulatory Affairs / Clinical Supply",
"Purpose_Key_Content": "Defines the content and layout of labels applied to the Investigational Medicinal Product, ensuring compliance with regulations (e.g., Annex 13 in EU).",
"Key_Metadata": "Product Name, Protocol ID, Batch Number Placement, Storage Conditions, Expiry Date Format, Warning Statements, Regulatory Compliance Checklist",
"Input_Documents_Data_Sources": "CLI-PROT, Regulatory Guidelines (e.g., Annex 13), PRE-SPEC-DP",
"Output_Informs_Documents": "IMP Packaging and Labeling Operations, Release of IMP for Clinical Use",
"Authoring_Department(s)": "Clinical Supply/Packaging, Regulatory Affairs", "Review_Approval_Dept(s)": "QA, CMC Lead",
"Complexity_Authoring": "Medium", "Regulatory_Significance": "GCP/GMP, Regulatory Compliance Critical"
},
{
"Doc_ID_Type": "CLI-LOG-IMPACC", "Document_Name": "IMP Accountability Log", "Phase": "Clinical (All Phases)", "Sub_Phase_Discipline": "Site Staff / Clinical Supply / Monitoring",
"Purpose_Key_Content": "Log maintained at the clinical site (or centrally) to track receipt, dispensing, return, and destruction of Investigational Medicinal Product for each participant.",
"Key_Metadata": "Protocol ID, Site ID, Participant ID, Date, Amount Dispensed/Returned, Batch/Lot Number, Pharmacist/Staff Signature",
"Input_Documents_Data_Sources": "Dispensing Records, Return Records, CLI-MAN-IMPHANDLE",
"Output_Informs_Documents": "Monitoring Visit Reports (CLI-REP-MONVISIT), Drug Reconciliation, LOG-IMPDESTRUCT",
"Authoring_Department(s)": "Site Pharmacist/Coordinator", "Review_Approval_Dept(s)": "Monitor (CRA)",
"Complexity_Authoring": "Low (per entry)", "Regulatory_Significance": "GCP (Essential Document)"
},
{
"Doc_ID_Type": "CLI-FIN-BUDGET", "Document_Name": "Clinical Trial Budget", "Phase": "Clinical (All Phases)", "Sub_Phase_Discipline": "Clinical Operations / Finance",
"Purpose_Key_Content": "Detailed breakdown of planned costs associated with conducting a clinical trial, including site payments, vendor costs, internal resources, and contingency.",
"Key_Metadata": "Protocol ID, Budget Version, Cost Categories (e.g., Site Fees, Monitoring, Data Management, IMP), Total Cost Estimate",
"Input_Documents_Data_Sources": "CLI-PROT, Site Contracts Drafts, Vendor Proposals, PM-PLAN Resource Allocation",
"Output_Informs_Documents": "Contract Negotiations (CLI-AGREE-CT), Financial Accruals, Project Budget Tracking",
"Authoring_Department(s)": "Clinical Outsourcing/Contracts, Clinical Trial Manager, Finance", "Review_Approval_Dept(s)": "Clin Ops Management, Finance Management",
"Complexity_Authoring": "High", "Regulatory_Significance": "Internal Governance / Financial Control"
},
{
"Doc_ID_Type": "VEND-AGREE-CRO", "Document_Name": "CRO Master Service Agreement / Work Order", "Phase": "All Phases (as applicable)", "Sub_Phase_Discipline": "Legal / Outsourcing / Functional Dept",
"Purpose_Key_Content": "Legal contract outlining the terms, conditions, scope of work, responsibilities, and payment terms between the sponsor and a Contract Research Organization (CRO) or other key vendor.",
"Key_Metadata": "Vendor Name, Agreement Date, Scope of Work ID, Service Level Agreements (SLAs), Payment Milestones",
"Input_Documents_Data_Sources": "Vendor Qualification Report (QA-REP-VENDORQUAL), Request for Proposal (RFP) Responses, Budget Approvals",
"Output_Informs_Documents": "Vendor Performance Management, Invoice Processing, Sponsor Oversight Activities",
"Authoring_Department(s)": "Sponsor Legal/Contracts Dept, Outsourcing Manager", "Review_Approval_Dept(s)": "Functional Area Head (using vendor), Finance",
"Complexity_Authoring": "High", "Regulatory_Significance": "GCP/GLP/GMP (Vendor Oversight Documentation)"
}
]12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>DocMap Agent - R&D Accelerator</title> <script src="https://cdn.tailwindcss.com"></script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lucide-static@latest/font/Lucide.css"><script src="https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js"></script><style>/* Custom Styles (Includes styles from PharmaDoc Navigator v2 + Home Page styles) */@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');body {font-family: 'Inter', sans-serif;background-color: #f9fafb; /* gray-50 */}.doc-link, .flow-link { cursor: pointer; color: #2563eb; text-decoration: underline; font-weight: 500; }.doc-link:hover, .flow-link:hover { color: #1d4ed8; }.custom-scroll::-webkit-scrollbar { width: 6px; height: 6px; }.custom-scroll::-webkit-scrollbar-track { background: #e5e7eb; border-radius: 3px; }.custom-scroll::-webkit-scrollbar-thumb { background: #9ca3af; border-radius: 3px; }.custom-scroll::-webkit-scrollbar-thumb:hover { background: #6b7280; }.lucide { vertical-align: -0.125em; display: inline-block; margin-right: 0.35rem; }.main-tab { transition: all 0.2s ease-in-out; border-bottom-width: 3px; border-color: transparent; }.main-tab.active { border-color: #2563eb; color: #1e40af; font-weight: 600; }#documentGraphContainerInModal, #flowsContainer { min-height: 200px; }.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; background-color: rgba(0,0,0,0.5); align-items: center; justify-content: center; }.modal-content { background-color: #fefefe; padding: 0; border: 1px solid #888; width: 90%; max-width: 1000px; border-radius: 8px; position: relative; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }.modal-header { padding: 1rem 1.5rem; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }.modal-title { font-size: 1.25rem; font-weight: 600; color: #374151; }.modal-close { color: #9ca3af; background: none; border: none; font-size: 1.75rem; font-weight: bold; cursor: pointer; padding: 0; line-height: 1; }.modal-close:hover, .modal-close:focus { color: #1f2937; text-decoration: none; }.modal-body { padding: 1.5rem; overflow-y: auto; flex-grow: 1; }.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }.nav-button { background-color: #e5e7eb; color: #374151; padding: 0.5rem 1rem; border: none; border-radius: 0.375rem; font-weight: 500; cursor: pointer; transition: background-color 0.2s; }.nav-button:hover:not(:disabled) { background-color: #d1d5db; }.nav-button:disabled { opacity: 0.5; cursor: not-allowed; }.mermaid text, .mermaid tspan { user-select: text !important; -webkit-user-select: text !important; -moz-user-select: text !important; -ms-user-select: text !important; }.mermaid .node { cursor: pointer; }.hidden-container { display: none !important; }/* Dashboard Card Specific Styles */.dashboard-card { transition: all 0.3s ease; }.dashboard-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); } /* Tailwind shadow-lg */</style><link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🗺️</text></svg>"> </head><body class="flex flex-col h-screen"><header class="bg-gradient-to-r from-blue-600 to-indigo-700 text-white shadow-md p-4 flex items-center justify-between flex-shrink-0"><div class="flex items-center space-x-3"><span id="logo-placeholder" class="inline-block bg-white rounded-full p-1 leading-none"><i class="lucide lucide-map text-blue-700 text-2xl"></i> </span><h1 class="text-2xl font-bold">DocMap Agent</h1></div><div class="flex items-center space-x-4"><button id="homeButton" class="text-white hover:text-blue-200 flex items-center text-sm"><i class="lucide lucide-home"></i> Home</button><div class="relative hidden md:block"> <input type="text" id="headerSearchInput" placeholder="Search all docs..." class="bg-blue-500 placeholder-blue-200 text-white rounded-full py-1.5 px-4 pl-10 text-sm focus:outline-none focus:ring-2 focus:ring-white"><i class="lucide lucide-search absolute left-3 top-1/2 transform -translate-y-1/2 text-blue-200"></i></div><button class="text-white hover:text-blue-200"><i class="lucide lucide-settings text-xl"></i></button></div></header><div class="bg-gray-100 border-b border-gray-200 px-4 py-2 text-sm flex-shrink-0"><nav id="breadcrumbNav" aria-label="Breadcrumb"><span class="text-gray-500">Home</span></nav></div><main id="mainContentArea" class="flex-1 overflow-y-auto p-4 md:p-6"><section id="home" class="space-y-6"><div class="bg-white rounded-lg shadow p-6 text-center"><h2 class="text-2xl font-semibold text-gray-800 mb-2">Welcome to DocMap Agent</h2><p class="text-gray-600">A comprehensive R&D document authoring accelerator</p></div><div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6"><div data-target-view="documentViewWrapper" data-initial-tab="All" class="dashboard-card bg-white rounded-lg shadow p-6 text-center cursor-pointer flex flex-col items-center"><i class="lucide lucide-book-open text-4xl text-blue-500 mb-4"></i><h3 class="text-lg font-semibold text-gray-700 mb-2">Document Catalog</h3><p class="text-sm text-gray-500 mb-4 flex-grow">Browse and search all document types across R&D phases.</p><button class="bg-blue-500 hover:bg-blue-600 text-white font-medium py-2 px-4 rounded-md text-sm w-full">Explore</button></div><div data-target-view="flowsViewWrapper" data-initial-tab="Flows" class="dashboard-card bg-white rounded-lg shadow p-6 text-center cursor-pointer flex flex-col items-center"><i class="lucide lucide-git-fork text-4xl text-purple-500 mb-4"></i><h3 class="text-lg font-semibold text-gray-700 mb-2">Process Visualization</h3><p class="text-sm text-gray-500 mb-4 flex-grow">Visualize document workflows and dependencies.</p><button class="bg-purple-500 hover:bg-purple-600 text-white font-medium py-2 px-4 rounded-md text-sm w-full">Explore</button></div><div class="dashboard-card bg-white rounded-lg shadow p-6 text-center flex flex-col items-center opacity-70 cursor-not-allowed"><i class="lucide lucide-clipboard-check text-4xl text-yellow-500 mb-4"></i><h3 class="text-lg font-semibold text-gray-700 mb-2">Assessment Tools</h3><p class="text-sm text-gray-500 mb-4 flex-grow">Evaluate document ecosystem and identify gaps (Coming Soon).</p><button disabled class="bg-yellow-400 text-white font-medium py-2 px-4 rounded-md text-sm w-full cursor-not-allowed">Explore</button></div><div class="dashboard-card bg-white rounded-lg shadow p-6 text-center flex flex-col items-center opacity-70 cursor-not-allowed"><i class="lucide lucide-file-text text-4xl text-green-500 mb-4"></i><h3 class="text-lg font-semibold text-gray-700 mb-2">Document Blueprints</h3><p class="text-sm text-gray-500 mb-4 flex-grow">Access templates and prompt libraries (Coming Soon).</p><button disabled class="bg-green-400 text-white font-medium py-2 px-4 rounded-md text-sm w-full cursor-not-allowed">Explore</button></div></div><div class="bg-white rounded-lg shadow p-4 mt-6"><h3 class="font-semibold text-gray-700 mb-3">Recent Activity</h3><ul class="text-sm text-gray-600 space-y-1"><li><span class="text-gray-400 mr-2">[Date]</span>Comprehensive document database loaded.</li><li><span class="text-gray-400 mr-2">[Date]</span>Flow visualization examples configured.</li></ul></div></section><section id="documentViewWrapper" class="hidden-container flex flex-col flex-1 gap-4 overflow-hidden"><div class="bg-white rounded-lg shadow p-3 flex-shrink-0"><div id="mainTabsDocView" class="flex space-x-4 border-b border-gray-200 overflow-x-auto custom-scroll pb-1"><span class="text-gray-500">Loading phases...</span></div></div><div class="relative flex-shrink-0 bg-white rounded-lg shadow p-4"><input type="text" id="searchInputDocView" placeholder="Search documents in selected phase (or all)..." class="w-full pl-10 pr-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-sm"><i class="lucide lucide-search absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 ml-4"></i></div><div id="documentListDocView" class="bg-white rounded-lg shadow flex-1 overflow-y-auto custom-scroll p-4"><p class="text-gray-500 text-center py-4">Select a phase tab above.</p></div></section><section id="flowsViewWrapper" class="hidden-container flex-1 bg-white rounded-lg shadow p-4 overflow-hidden flex flex-col gap-4"><h2 class="text-xl font-semibold text-gray-700 mb-2 flex items-center flex-shrink-0"><i class="lucide lucide-git-fork mr-2 text-purple-600"></i> Process Flows</h2><div class="flex flex-1 gap-4 overflow-hidden"><div class="w-full md:w-1/4 border-r pr-4 border-gray-200 overflow-y-auto custom-scroll"><h3 class="font-semibold mb-2 text-gray-600">Available Flows:</h3><ul id="flowsList" class="space-y-1 text-sm"><li>Loading flows...</li></ul><button id="showExampleFlowBtnFlowView" class="mt-4 bg-gray-100 text-gray-700 hover:bg-gray-200 font-medium py-1.5 px-3 rounded-md shadow-sm text-xs flex items-center w-full text-left"><i class="lucide lucide-presentation"></i> Show Example P1 Flow</button></div><div id="flowsContainer" class="w-full md:w-3/4 overflow-auto custom-scroll bg-gray-50 rounded"><p id="flowPlaceholder" class="text-gray-500 text-center py-10 px-4">Select a flow from the list to view the process graph.</p><div id="mermaidFlowGraph" class="mermaid w-full h-full p-4"></div></div></div></section></main><div id="exampleFlowModal" class="modal"><div class="modal-content"><div class="modal-header"><h2 class="modal-title">Example Flow: Phase 1 SAD Study Documents</h2><button class="modal-close" id="closeExampleModalBtn">×</button></div><div class="modal-body custom-scroll"><div id="exampleMermaidGraph" class="mermaid text-sm"></div></div></div></div><div id="detailsModal" class="modal"><div class="modal-content"><div class="modal-header"><h2 id="detailsModalTitle" class="modal-title">Document Details</h2><button class="modal-close" id="closeDetailsModalBtn">×</button></div><div class="modal-body custom-scroll"><div id="detailsModalContent" class="flex flex-col md:flex-row gap-6"><div id="documentDetailsInModal" class="w-full md:w-1/2"><div id="detailsContentInModal" class="text-gray-600 text-sm"></div></div><div id="documentGraphContainerInModal" class="w-full md:w-1/2 border-t md:border-t-0 md:border-l pt-4 md:pt-0 md:pl-6 border-gray-200"><h3 class="text-lg font-semibold text-gray-700 mb-4 flex items-center"><i class="lucide lucide-git-merge mr-2 text-green-600"></i> Document Connections</h3><div id="graphContentInModal" class="text-gray-600 text-sm mb-4"></div><div id="mermaidGraphInModal" class="mermaid w-full"></div></div></div></div><div class="modal-footer"><button id="prevDocBtn" class="nav-button" disabled><i class="lucide lucide-arrow-left"></i> Previous</button><button id="nextDocBtn" class="nav-button" disabled>Next <i class="lucide lucide-arrow-right"></i></button></div></div></div><script src="script.js"></script></body></html>
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566// DocMap Agent - Enhanced Script with Home Page
// Initialize Mermaid
mermaid.initialize({ startOnLoad: false, theme: 'base', securityLevel: 'loose', /* Allow clicks */ themeVariables: {
primaryColor: '#eff6ff', // blue-50
primaryTextColor: '#1e3a8a', // blue-900
primaryBorderColor: '#60a5fa', // blue-400
lineColor: '#6b7280', // gray-500
secondaryColor: '#f1f5f9', // slate-100
tertiaryColor: '#e0f2fe' // sky-100
}});
// --- Global Variables ---
let documentsData = [];
const flowDefinitions = { // Keep example flows from v2
"p1_sad": `graph TD; subgraph Preclinical & Setup; IB(IB v1):::input --> CLI-PROT-P1(Phase 1 Protocol):::core; PRE-REP-TOX(Tox Report):::input --> IB; PRE-REP-PK(PK Report):::input --> IB; PRE-REP-CMC-STAB(Stability Report):::input --> IB; CLI-PROT-P1 --> REG-SUB-IND(IND / CTA):::output; CLI-PROT-P1 --> ICF(Informed Consent Form):::output; CLI-PROT-P1 --> CRF(eCRF Spec):::output; CLI-PROT-P1 --> CLI-PLAN-SAP(Stat Analysis Plan):::output; CLI-PROT-P1 --> CLI-PLAN-DMP(Data Mgt Plan):::output; CLI-PROT-P1 --> CLI-MAN-IMPHANDLE(IMP Handling Manual):::output; CLI-PROT-P1 --> CMC-LABEL-IMP(IMP Label Spec):::output; end; subgraph Execution & Reporting; ICF --> SiteOps[Site Operations / Enrollment]; CRF --> SiteOps; CLI-MAN-IMPHANDLE --> SiteOps; CMC-LABEL-IMP --> SiteOps; CLI-PLAN-DMP --> SiteOps; SiteOps --> ClinicalData[(Clinical Database)]; CLI-PLAN-SAP --> Analysis[Statistical Analysis]; ClinicalData --> Analysis; Analysis --> CLI-REP-CSR(Phase 1 CSR):::core; ClinicalData --> CLI-REP-CSR; IB --> CLI-REP-CSR; end; subgraph Updates & Follow-on; CLI-REP-CSR --> IB_v2(IB Update v2):::output; CLI-REP-CSR --> REG-AR(IND Annual Report / DSUR):::output; CLI-REP-CSR --> CLI-PLAN-CDP(Clinical Dev Plan Update):::output; end; classDef input fill:#f3e8ff,stroke:#a855f7,color:#581c87; classDef core fill:#e0f2fe,stroke:#38bdf8,color:#075985; classDef output fill:#f0fdf4,stroke:#4ade80,color:#15803d; click IB call displayDetailsAndGraphFromGraph("IB") "View Details"; click PRE-REP-TOX call displayDetailsAndGraphFromGraph("PRE-REP-TOX") "View Details"; click PRE-REP-PK call displayDetailsAndGraphFromGraph("PRE-REP-PK") "View Details"; click PRE-REP-CMC-STAB call displayDetailsAndGraphFromGraph("PRE-REP-CMC-STAB") "View Details"; click CLI-PROT-P1 call displayDetailsAndGraphFromGraph("CLI-PROT-P1") "View Details"; click REG-SUB-IND call displayDetailsAndGraphFromGraph("REG-SUB-IND") "View Details"; click ICF call displayDetailsAndGraphFromGraph("ICF") "View Details"; click CRF call displayDetailsAndGraphFromGraph("CRF") "View Details"; click CLI-PLAN-SAP call displayDetailsAndGraphFromGraph("CLI-PLAN-SAP") "View Details"; click CLI-PLAN-DMP call displayDetailsAndGraphFromGraph("CLI-PLAN-DMP") "View Details"; click CLI-MAN-IMPHANDLE call displayDetailsAndGraphFromGraph("CLI-MAN-IMPHANDLE") "View Details"; click CMC-LABEL-IMP call displayDetailsAndGraphFromGraph("CMC-LABEL-IMP") "View Details"; click CLI-REP-CSR call displayDetailsAndGraphFromGraph("CLI-REP-CSR") "View Details"; click IB_v2 call displayDetailsAndGraphFromGraph("IB") "View Details (Latest IB)"; click REG-AR call displayDetailsAndGraphFromGraph("REG-AR") "View Details"; click CLI-PLAN-CDP call displayDetailsAndGraphFromGraph("CLI-PLAN-CDP") "View Details";`,
"nda_submission": `graph TD; subgraph Inputs; CSRs(All Phase 1-3 CSRs):::input --> REG-ISS(ISS):::core; CSRs --> REG-ISE(ISE):::core; NonClinReps(All Nonclinical Reports):::input --> REG-CTD-M2(CTD Module 2 Summaries):::core; CMCDataPkg(Full CMC Data Package):::input --> REG-CTD-M3(CTD Module 3 Quality):::core; ProposedLabel(Proposed Label / SmPC):::input --> REG-CTD-M1(CTD Module 1 Admin & Label):::core; end; subgraph CTD_Assembly; REG-ISS --> REG-CTD-M5(CTD Module 5 Clinical):::output; REG-ISE --> REG-CTD-M5; CSRs --> REG-CTD-M5; NonClinReps --> REG-CTD-M4(CTD Module 4 Nonclinical):::output; REG-CTD-M1 --> FullSubmission[eCTD Submission Package]; REG-CTD-M2 --> FullSubmission; REG-CTD-M3 --> FullSubmission; REG-CTD-M4 --> FullSubmission; REG-CTD-M5 --> FullSubmission; end; subgraph Submission_Output; FullSubmission --> REG-SUB-NDA(NDA / MAA Submission):::final; REG-SUB-NDA --> AgencyReview{Agency Review}; AgencyReview --> REG-RTQ(Responses to Questions):::input; REG-RTQ --> AgencyReview; AgencyReview --> ApprovalDecision[Approval / Rejection]; end; classDef input fill:#fef9c3,stroke:#eab308,color:#854d0e; classDef core fill:#e0f2fe,stroke:#38bdf8,color:#075985; classDef output fill:#f0fdf4,stroke:#4ade80,color:#15803d; classDef final fill:#fee2e2,stroke:#f87171,color:#991b1b; click CSRs call displayDetailsAndGraphFromGraph("CLI-REP-CSR") "View CSR Details (Example)"; click NonClinReps call displayDetailsAndGraphFromGraph("PRE-REP-TOX") "View Tox Report (Example)"; click CMCDataPkg call displayDetailsAndGraphFromGraph("PRE-REP-CMC-PROCDEV") "View CMC Report (Example)"; click ProposedLabel call displayDetailsAndGraphFromGraph("REG-LABEL-US") "View Label Details (Example)"; click REG-ISS call displayDetailsAndGraphFromGraph("REG-ISS") "View Details"; click REG-ISE call displayDetailsAndGraphFromGraph("REG-ISE") "View Details"; click REG-CTD-M1 call displayDetailsAndGraphFromGraph("REG-CTD-M1") "View Details"; click REG-CTD-M2 call displayDetailsAndGraphFromGraph("REG-CTD-M2") "View Details"; click REG-CTD-M3 call displayDetailsAndGraphFromGraph("REG-CTD-M3") "View Details"; click REG-CTD-M4 call displayDetailsAndGraphFromGraph("REG-CTD-M4") "View Details"; click REG-CTD-M5 call displayDetailsAndGraphFromGraph("REG-CTD-M5") "View Details"; click REG-SUB-NDA call displayDetailsAndGraphFromGraph("REG-SUB-NDA") "View Details"; click REG-RTQ call displayDetailsAndGraphFromGraph("REG-RTQ") "View Details";`
};
// --- DOM Elements Cache ---
const mainContentArea = document.getElementById('mainContentArea');
const homeSection = document.getElementById('home');
const documentViewWrapper = document.getElementById('documentViewWrapper');
const flowsViewWrapper = document.getElementById('flowsViewWrapper');
const searchInputDocView = document.getElementById('searchInputDocView');
const mainTabsDocViewContainer = document.getElementById('mainTabsDocView');
const documentListDocViewContainer = document.getElementById('documentListDocView');
const flowsListContainer = document.getElementById('flowsList');
const mermaidFlowGraphContainer = document.getElementById('mermaidFlowGraph');
const flowPlaceholder = document.getElementById('flowPlaceholder');
const showExampleFlowBtnFlowView = document.getElementById('showExampleFlowBtnFlowView');
const homeButton = document.getElementById('homeButton'); // Added Home Button
const breadcrumbNav = document.getElementById('breadcrumbNav'); // Breadcrumb container
// Modals are same as before
const showExampleFlowBtnHeader = document.getElementById('showExampleFlowBtn'); // Button in header
const exampleFlowModal = document.getElementById('exampleFlowModal');
const exampleMermaidGraphContainer = document.getElementById('exampleMermaidGraph');
const closeExampleModalBtn = document.getElementById('closeExampleModalBtn');
const detailsModal = document.getElementById('detailsModal');
const detailsModalTitle = document.getElementById('detailsModalTitle');
const detailsContentInModal = document.getElementById('detailsContentInModal');
const graphContentInModal = document.getElementById('graphContentInModal');
const mermaidGraphContainerInModal = document.getElementById('mermaidGraphInModal');
const closeDetailsModalBtn = document.getElementById('closeDetailsModalBtn');
const prevDocBtn = document.getElementById('prevDocBtn');
const nextDocBtn = document.getElementById('nextDocBtn');
// --- State Variables ---
let currentVisibleView = 'home'; // Tracks which main section is visible ('home', 'documentViewWrapper', 'flowsViewWrapper')
let currentDocViewTab = 'All'; // Track the active tab within the document view ('All', 'Discovery', ...)
let currentSelectedDocId = null;
let currentSelectedFlowId = null;
let currentDocListIndices = { prev: null, next: null };
// --- Utility Functions (Adapted) ---
function getDocNameById(docId) {
const doc = documentsData.find(d => d.Doc_ID_Type === docId);
return doc ? (doc.Document_Name.split('(')[0].trim() || doc.Document_Name) : docId;
}
function extractDocIDs(text) {
if (!text || documentsData.length === 0) return [];
const knownIDs = new Set(documentsData.map(doc => doc.Doc_ID_Type));
const potentialIDs = text.match(/[A-Z0-9]+(?:-[A-Z0-9]+)*\b/g) || []; // Use word boundary \b
return potentialIDs.filter(id => knownIDs.has(id));
}
function getComplexityIcon(complexity) {
switch (complexity?.toLowerCase()) { /* Same as before */
case 'low': return '<i class="lucide lucide-bar-chart text-green-500" title="Low Complexity"></i>';
case 'low-medium': return '<i class="lucide lucide-bar-chart-2 text-lime-500" title="Low-Medium Complexity"></i>';
case 'medium': return '<i class="lucide lucide-bar-chart-3 text-yellow-500" title="Medium Complexity"></i>';
case 'medium-high': return '<i class="lucide lucide-bar-chart-4 text-orange-500" title="Medium-High Complexity"></i>';
case 'high': return '<i class="lucide lucide-bar-chart-big text-red-500" title="High Complexity"></i>';
default: return '';
}
}
function getRegulatoryIcon(significance) { /* Same as before */
if (!significance) return '';
const lowerSig = significance.toLowerCase();
if (lowerSig.includes('submission critical')) return '<i class="lucide lucide-shield-check text-red-600" title="Submission Critical"></i>';
if (lowerSig.includes('gcp')) return '<i class="lucide lucide-clipboard-check text-blue-600" title="GCP Relevant"></i>';
if (lowerSig.includes('glp')) return '<i class="lucide lucide-flask-conical text-purple-600" title="GLP Relevant"></i>';
if (lowerSig.includes('gmp')) return '<i class="lucide lucide-factory text-indigo-600" title="GMP Relevant"></i>';
if (lowerSig.includes('gvp')) return '<i class="lucide lucide-activity text-teal-600" title="GVP Relevant"></i>';
if (lowerSig.includes('regulatory requirement')) return '<i class="lucide lucide-shield-alert text-orange-600" title="Regulatory Requirement"></i>';
if (lowerSig.includes('internal')) return '<i class="lucide lucide-home text-gray-500" title="Internal Governance/Strategy"></i>';
return '<i class="lucide lucide-shield text-gray-400" title="Regulatory Significance"></i>';
}
function getMainTabIcon(tabName) { /* Same as before */
if (!tabName) return '<i class="lucide lucide-file-question"></i>';
const lowerTab = tabName.toLowerCase();
if (lowerTab.includes('discovery')) return '<i class="lucide lucide-search"></i>';
if (lowerTab.includes('preclinical')) return '<i class="lucide lucide-flask-conical"></i>';
if (lowerTab === 'clinical development') return '<i class="lucide lucide-users"></i>';
if (lowerTab === 'regulatory submission') return '<i class="lucide lucide-file-check-2"></i>';
if (lowerTab === 'post-marketing & quality') return '<i class="lucide lucide-recycle"></i>';
if (lowerTab.includes('flows')) return '<i class="lucide lucide-git-fork"></i>';
if (lowerTab.includes('all')) return '<i class="lucide lucide-layers"></i>';
return '<i class="lucide lucide-folder-open"></i>';
}
function linkDocumentIDsForDetails(text) { /* Same as before */
if (!text || documentsData.length === 0) return 'N/A';
const knownIDs = new Set(documentsData.map(doc => doc.Doc_ID_Type));
let linkedText = text.replace(/(\b[A-Z0-9]+(?:-[A-Z0-9]+)*\b)/g, (match) => {
if (knownIDs.has(match)) {
return `<span class="doc-link" data-doc-id="${match}">${match}</span>`;
}
return match;
});
return linkedText;
}
// --- Core Rendering & View Switching ---
// NEW: Function to switch between major views (Home, Documents, Flows)
function switchToView(viewId, initialTab = null) {
console.log(`Switching view to: ${viewId}, Initial Tab: ${initialTab}`);
currentVisibleView = viewId;
// Hide all main sections
homeSection.classList.add('hidden-container');
documentViewWrapper.classList.add('hidden-container');
flowsViewWrapper.classList.add('hidden-container');
// Show the target section
const targetSection = document.getElementById(viewId);
if (targetSection) {
targetSection.classList.remove('hidden-container');
// Handle specific view initializations
if (viewId === 'documentViewWrapper') {
currentDocViewTab = initialTab || 'All'; // Set the tab for document view
renderDocumentViewTabs(); // Render the tabs within this view
renderDocumentList(); // Render the list based on the tab
} else if (viewId === 'flowsViewWrapper') {
renderFlowsList();
// Optionally display a default flow or keep placeholder
mermaidFlowGraphContainer.innerHTML = '';
flowPlaceholder.style.display = 'block';
currentSelectedFlowId = null;
} else { // Home view
currentDocViewTab = 'All'; // Reset doc view tab when going home
}
} else {
console.error(`Target view section not found: ${viewId}. Defaulting to home.`);
homeSection.classList.remove('hidden-container');
currentVisibleView = 'home';
}
updateBreadcrumb(); // Update breadcrumb based on the current view
clearSelection(); // Clear specific doc selection when switching main views
}
// NEW: Function to update breadcrumbs
function updateBreadcrumb() {
breadcrumbNav.innerHTML = ''; // Clear existing
const homeLink = `<a href="#" data-view-target="home" class="text-blue-600 hover:underline">Home</a>`;
if (currentVisibleView === 'home') {
breadcrumbNav.innerHTML = `<span class="text-gray-500">Home</span>`;
} else if (currentVisibleView === 'documentViewWrapper') {
breadcrumbNav.innerHTML = `${homeLink} <span class="mx-2 text-gray-400">/</span> <span class="text-gray-500">Document Catalog (${currentDocViewTab})</span>`;
} else if (currentVisibleView === 'flowsViewWrapper') {
breadcrumbNav.innerHTML = `${homeLink} <span class="mx-2 text-gray-400">/</span> <span class="text-gray-500">Process Flows</span>`;
}
}
// UPDATED: Function to render tabs ONLY within the Document View section
function renderDocumentViewTabs() {
const phaseMap = { /* Same phaseMap as in renderDocumentList */
'Discovery': 'Discovery', 'Preclinical': 'Preclinical',
'Clinical Phase 1': 'Clinical Development', 'Clinical Phase 2': 'Clinical Development', 'Clinical Phase 3': 'Clinical Development', 'Clinical (All Phases)': 'Clinical Development',
'Regulatory Submission': 'Regulatory Submission', 'Regulatory Submission Review Phase': 'Regulatory Submission',
'Post-Marketing': 'Post-Marketing & Quality', 'All Phases': 'Post-Marketing & Quality',
'Discovery, Preclinical': 'Discovery', 'Preclinical, Clinical': 'Preclinical',
'Preclinical (End), Clinical Phase 1': 'Preclinical', 'Discovery (late), Preclinical, Clinical': 'Discovery',
'Pre/Post-Approval':'Regulatory Submission', 'Clinical (Annual)': 'Clinical Development',
'Preclinical / Clinical':'Preclinical', 'Clinical (Early Phase 2/End of Phase 2)': 'Clinical Development'
};
const uniquePhases = [...new Set(documentsData.map(doc => phaseMap[doc.Phase] || 'Other'))];
const tabOrder = ['All', 'Discovery', 'Preclinical', 'Clinical Development', 'Regulatory Submission', 'Post-Marketing & Quality', 'Other']; // No 'Flows' here
const sortedTabs = tabOrder.filter(tab => uniquePhases.includes(tab) || tab === 'All');
uniquePhases.forEach(phase => { if (!sortedTabs.includes(phase)) sortedTabs.push(phase); });
let tabsHtml = '';
sortedTabs.forEach(tabName => {
const isActive = tabName === currentDocViewTab; // Use currentDocViewTab state
tabsHtml += `
<button
data-tab-name="${tabName}"
class="main-tab doc-view-tab px-4 py-2 text-sm font-medium text-gray-500 hover:text-gray-700 focus:outline-none whitespace-nowrap ${isActive ? 'active' : ''}"
>
${getMainTabIcon(tabName)} ${tabName}
</button>
`;
});
mainTabsDocViewContainer.innerHTML = tabsHtml;
// Add event listeners to THESE tabs
mainTabsDocViewContainer.querySelectorAll('.doc-view-tab').forEach(tab => {
tab.addEventListener('click', () => {
currentDocViewTab = tab.dataset.tabName; // Update the doc view tab state
renderDocumentViewTabs(); // Re-render tabs for active style
renderDocumentList(); // Re-render list for the new tab
updateBreadcrumb(); // Update breadcrumb text
clearSelection(); // Clear specific doc selection
});
});
}
// UPDATED: Function to render the document list based on the ACTIVE DOC VIEW TAB and search
function renderDocumentList() {
// This function should only render if documentViewWrapper is the current view
if (currentVisibleView !== 'documentViewWrapper') return;
const phaseMap = { /* Same phaseMap */
'Discovery': 'Discovery', 'Preclinical': 'Preclinical',
'Clinical Phase 1': 'Clinical Development', 'Clinical Phase 2': 'Clinical Development', 'Clinical Phase 3': 'Clinical Development', 'Clinical (All Phases)': 'Clinical Development',
'Regulatory Submission': 'Regulatory Submission', 'Regulatory Submission Review Phase': 'Regulatory Submission',
'Post-Marketing': 'Post-Marketing & Quality', 'All Phases': 'Post-Marketing & Quality',
'Discovery, Preclinical': 'Discovery', 'Preclinical, Clinical': 'Preclinical',
'Preclinical (End), Clinical Phase 1': 'Preclinical', 'Discovery (late), Preclinical, Clinical': 'Discovery',
'Pre/Post-Approval':'Regulatory Submission', 'Clinical (Annual)': 'Clinical Development',
'Preclinical / Clinical':'Preclinical', 'Clinical (Early Phase 2/End of Phase 2)': 'Clinical Development'
};
const searchTerm = searchInputDocView.value.toLowerCase(); // Use the correct search input
let filteredDocs = documentsData;
// Apply phase filter based on currentDocViewTab
if (currentDocViewTab !== 'All') {
filteredDocs = filteredDocs.filter(doc => {
const primaryPhase = phaseMap[doc.Phase] || 'Other';
return primaryPhase === currentDocViewTab;
});
}
// Apply search filter
if (searchTerm) {
filteredDocs = filteredDocs.filter(doc =>
doc.Document_Name.toLowerCase().includes(searchTerm) ||
doc.Doc_ID_Type.toLowerCase().includes(searchTerm) ||
(doc.Sub_Phase_Discipline && doc.Sub_Phase_Discipline.toLowerCase().includes(searchTerm)) ||
(doc.Purpose_Key_Content && doc.Purpose_Key_Content.toLowerCase().includes(searchTerm)) ||
(doc["Authoring_Department(s)"] && doc["Authoring_Department(s)"].toLowerCase().includes(searchTerm)) ||
(doc.Key_Metadata && doc.Key_Metadata.toLowerCase().includes(searchTerm))
);
}
// Render logic (same as before, but uses documentListDocViewContainer)
let listHtml = '';
if (filteredDocs.length === 0) {
listHtml = `<p class="text-gray-500 text-center py-4">No documents found ${searchTerm ? 'matching search in' : 'for'} ${currentDocViewTab === 'All' ? 'any phase' : currentDocViewTab}.</p>`;
} else {
const sortedDocs = filteredDocs.sort((a, b) => a.Document_Name.localeCompare(b.Document_Name));
listHtml = '<ul class="divide-y divide-gray-200">';
sortedDocs.forEach(doc => {
const isSelected = doc.Doc_ID_Type === currentSelectedDocId;
listHtml += `
<li data-doc-id="${doc.Doc_ID_Type}" class="doc-list-item px-3 py-2 hover:bg-blue-50 cursor-pointer text-sm flex justify-between items-center ${isSelected ? 'bg-blue-100 font-semibold' : ''}">
<span class="flex items-center min-w-0">
<i class="lucide lucide-file-text text-gray-400 mr-2 flex-shrink-0"></i>
<span class="truncate" title="${doc.Document_Name} (${doc.Doc_ID_Type})">${doc.Document_Name} <span class="text-xs text-gray-500 ml-1">(${doc.Doc_ID_Type})</span></span>
</span>
<span class="flex items-center space-x-1 flex-shrink-0 ml-2">
${getComplexityIcon(doc.Complexity_Authoring)}
${getRegulatoryIcon(doc.Regulatory_Significance)}
</span>
</li>`;
});
listHtml += '</ul>';
}
if(documentListDocViewContainer) {
documentListDocViewContainer.innerHTML = listHtml;
} else {
console.error("documentListDocViewContainer element not found!");
return;
}
// Add event listeners for items in THIS list
document.querySelectorAll('#documentListDocView li.doc-list-item').forEach(item => {
item.addEventListener('click', () => {
currentSelectedDocId = item.dataset.docId;
displayDetailsInModal(currentSelectedDocId);
renderDocumentList(); // Re-render list for selection highlight
});
});
}
// UPDATED: findNextPrevDocs uses the correct container based on current view
function findNextPrevDocs(currentId) {
const listItems = documentListDocViewContainer.querySelectorAll('li[data-doc-id]'); // Always use DocView list
const docIds = Array.from(listItems).map(li => li.dataset.docId);
const currentIndex = docIds.indexOf(currentId);
if (currentIndex === -1 || docIds.length <= 1) {
return { prev: null, next: null };
}
const prevIndex = currentIndex > 0 ? currentIndex - 1 : docIds.length - 1;
const nextIndex = currentIndex < docIds.length - 1 ? currentIndex + 1 : 0;
return {
prev: docIds[prevIndex],
next: docIds[nextIndex]
};
}
// displayDetailsInModal remains largely the same, uses comprehensive data keys
async function displayDetailsInModal(docId) {
const doc = documentsData.find(d => d.Doc_ID_Type === docId);
if (!doc) return;
currentSelectedDocId = docId;
detailsModalTitle.textContent = `${doc.Document_Name} (${doc.Doc_ID_Type})`;
detailsContentInModal.innerHTML = `
<div class="space-y-3 text-gray-700">
<div><strong>Phase:</strong> ${doc.Phase || 'N/A'}</div>
<div><strong>Discipline:</strong> ${doc.Sub_Phase_Discipline || 'N/A'}</div>
<div><strong class="block mb-1 text-gray-800">Purpose / Key Content:</strong><div class="bg-gray-100 p-2 rounded text-xs max-h-24 overflow-y-auto custom-scroll">${doc.Purpose_Key_Content || 'N/A'}</div></div>
<div><strong class="block mb-1 text-gray-800">Key Metadata:</strong><div class="bg-gray-100 p-2 rounded text-xs">${doc.Key_Metadata || 'N/A'}</div></div>
<div><strong class="block mb-1 text-gray-800">Input Docs/Data:</strong><div class="bg-gray-100 p-2 rounded text-xs">${linkDocumentIDsForDetails(doc.Input_Documents_Data_Sources)}</div></div>
<div><strong class="block mb-1 text-gray-800">Output/Informs Docs:</strong><div class="bg-gray-100 p-2 rounded text-xs">${linkDocumentIDsForDetails(doc.Output_Informs_Documents)}</div></div>
<div><strong>Authoring Dept(s):</strong> ${doc['Authoring_Department(s)'] || 'N/A'}</div>
<div><strong>Review/Approval Dept(s):</strong> ${doc['Review_Approval_Dept(s)'] || 'N/A'}</div>
<div class="flex items-center"><strong>Complexity:</strong> <span class="ml-2">${getComplexityIcon(doc.Complexity_Authoring)} ${doc.Complexity_Authoring || 'N/A'}</span></div>
<div class="flex items-center"><strong>Reg. Significance:</strong> <span class="ml-2">${getRegulatoryIcon(doc.Regulatory_Significance)} ${doc.Regulatory_Significance || 'N/A'}</span></div>
</div>
`;
// Add event listeners to links within the modal body
detailsContentInModal.querySelectorAll('.doc-link').forEach(link => {
link.addEventListener('click', (e) => {
displayDetailsInModal(e.target.dataset.docId);
// Optionally update the main list highlight if visible
if (currentVisibleView === 'documentViewWrapper') {
renderDocumentList();
}
});
});
// Generate and Display Connection Graph (Mermaid)
graphContentInModal.innerHTML = '';
mermaidGraphContainerInModal.innerHTML = ''; // Clear previous graph
const inputIDs = extractDocIDs(doc.Input_Documents_Data_Sources);
const outputIDs = extractDocIDs(doc.Output_Informs_Documents);
let mermaidDefinition = 'graph TD;\n';
const centerNodeName = getDocNameById(doc.Doc_ID_Type);
mermaidDefinition += ` ${doc.Doc_ID_Type}("${centerNodeName}\\n(${doc.Doc_ID_Type})");\n`;
mermaidDefinition += ` style ${doc.Doc_ID_Type} fill:#e0f2fe,stroke:#38bdf8,stroke-width:2px,color:#075985;\n`;
mermaidDefinition += ` click ${doc.Doc_ID_Type} call displayDetailsAndGraphFromModal("${doc.Doc_ID_Type}") "View Details";\n`; // Keep using modal callback
inputIDs.forEach(inputId => {
const inputNodeName = getDocNameById(inputId);
mermaidDefinition += ` ${inputId}("${inputNodeName}\\n(${inputId})") --> ${doc.Doc_ID_Type};\n`;
mermaidDefinition += ` style ${inputId} fill:#f1f5f9,stroke:#94a3b8,color:#334155;\n`;
mermaidDefinition += ` click ${inputId} call displayDetailsAndGraphFromModal("${inputId}") "View Details";\n`;
});
outputIDs.forEach(outputId => {
const outputNodeName = getDocNameById(outputId);
mermaidDefinition += ` ${doc.Doc_ID_Type} --> ${outputId}("${outputNodeName}\\n(${outputId})");\n`;
mermaidDefinition += ` style ${outputId} fill:#f1f5f9,stroke:#94a3b8,color:#334155;\n`;
mermaidDefinition += ` click ${outputId} call displayDetailsAndGraphFromModal("${outputId}") "View Details";\n`;
});
if (inputIDs.length === 0 && outputIDs.length === 0) {
graphContentInModal.innerHTML = '<p class="text-sm text-gray-500">No direct document connections found in the data.</p>';
} else {
try {
const graphId = `mermaid-modal-graph-${docId}-${Date.now()}`;
const { svg } = await mermaid.render(graphId, mermaidDefinition);
mermaidGraphContainerInModal.innerHTML = svg;
} catch (error) {
console.error("Mermaid rendering error in modal:", error);
graphContentInModal.innerHTML = `<p class="text-red-500 text-sm">Error rendering connection graph.</p>`;
mermaidGraphContainerInModal.innerHTML = `<pre class="text-xs bg-gray-100 p-2 rounded mt-2 overflow-auto">${mermaidDefinition}</pre>`;
}
}
// Setup Next/Prev Buttons
currentDocListIndices = findNextPrevDocs(docId);
prevDocBtn.disabled = !currentDocListIndices.prev;
nextDocBtn.disabled = !currentDocListIndices.next;
// Show Modal
detailsModal.style.display = 'flex';
// Only re-render list if doc view is active
if (currentVisibleView === 'documentViewWrapper') {
renderDocumentList();
}
}
// Callbacks from Mermaid graphs
window.displayDetailsAndGraphFromGraph = async (docId) => {
console.log("Graph node clicked (main flow or example):", docId);
await displayDetailsInModal(docId); // Always show in modal
setTimeout(() => {
// If the doc list view is active, scroll the item into view
if (currentVisibleView === 'documentViewWrapper') {
const listItem = document.querySelector(`#documentListDocView li[data-doc-id="${docId}"]`);
listItem?.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
}
}, 100);
};
window.displayDetailsAndGraphFromModal = async (docId) => {
console.log("Modal graph node clicked:", docId);
await displayDetailsInModal(docId); // Update current modal
setTimeout(() => {
if (currentVisibleView === 'documentViewWrapper') {
const listItem = document.querySelector(`#documentListDocView li[data-doc-id="${docId}"]`);
listItem?.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
}
}, 100);
};
function clearSelection() {
currentSelectedDocId = null;
if (currentVisibleView === 'documentViewWrapper') {
renderDocumentList(); // Update list highlight
}
}
// Flows View Functions (renderFlowsList, displayFlowGraph) remain the same as PharmaDoc v2 version provided previously
function renderFlowsList() { /* Same as before */
let flowsHtml = '';
const flowDisplayTitles = {"p1_sad": "Phase 1 SAD Study", "nda_submission": "Simplified NDA/MAA Submission"};
Object.keys(flowDefinitions).forEach(id => {
const title = flowDisplayTitles[id] || `Flow ${id}`;
const isSelected = id === currentSelectedFlowId;
flowsHtml += `<li><span class="flow-link ${isSelected ? 'font-bold text-blue-700' : ''}" data-flow-id="${id}">${title}</span></li>`;
});
flowsListContainer.innerHTML = flowsHtml;
flowsListContainer.querySelectorAll('.flow-link').forEach(link => {
link.addEventListener('click', (e) => {
const flowId = e.target.dataset.flowId;
currentSelectedFlowId = flowId;
displayFlowGraph(flowId);
renderFlowsList();
});
});
}
async function displayFlowGraph(flowId) { /* Same as before */
const definition = flowDefinitions[flowId];
if (!definition) {
mermaidFlowGraphContainer.innerHTML = '<p class="text-red-500">Flow definition not found.</p>';
flowPlaceholder.style.display = 'none'; return;
}
flowPlaceholder.style.display = 'none';
mermaidFlowGraphContainer.innerHTML = '<p class="text-center text-gray-500 py-5">Rendering flow graph...</p>';
try {
if (flowsViewWrapper.classList.contains('hidden-container')) return;
const clickableDefinition = definition.replace(/click ([A-Z0-9_\-]+) call displayDetailsAndGraphFromGraph/g,'click $1 call displayDetailsAndGraphFromGraph');
const graphId = `mermaid-flow-${flowId}-${Date.now()}`;
const { svg } = await mermaid.render(graphId, clickableDefinition);
mermaidFlowGraphContainer.innerHTML = svg;
} catch (error) {
console.error(`Mermaid rendering error for flow ${flowId}:`, error);
mermaidFlowGraphContainer.innerHTML = `<p class="text-red-500">Error rendering flow graph.</p><pre class="text-xs bg-gray-100 p-2 rounded mt-2 overflow-auto">${definition}</pre>`;
}
}
// Example Flow Modal Functions (showExampleFlow) remain same as PharmaDoc v2 version
async function showExampleFlow() { /* Same as before */
const exampleDefinition = flowDefinitions['p1_sad'];
try {
const clickableDefinition = exampleDefinition.replace(/click ([A-Z0-9_\-]+) call displayDetailsAndGraphFromGraph/g, 'click $1 call displayDetailsAndGraphFromModal');
const graphId = `example-mermaid-graph-render-${Date.now()}`;
const { svg } = await mermaid.render(graphId, clickableDefinition);
exampleMermaidGraphContainer.innerHTML = svg;
exampleFlowModal.style.display = "flex";
} catch (error) {
console.error("Mermaid rendering error for example:", error);
exampleMermaidGraphContainer.innerHTML = `<p class="text-red-500">Error rendering example flow graph.</p>`;
exampleFlowModal.style.display = "flex";
}
}
// --- Event Listeners ---
// Search input specific to document view
searchInputDocView?.addEventListener('input', renderDocumentList);
// Home button listener
homeButton?.addEventListener('click', () => switchToView('home'));
// Breadcrumb listener (delegated)
breadcrumbNav?.addEventListener('click', (e) => {
if (e.target.tagName === 'A' && e.target.dataset.viewTarget) {
e.preventDefault();
switchToView(e.target.dataset.viewTarget);
}
});
// Dashboard card listeners (delegated to main content area)
mainContentArea?.addEventListener('click', (e) => {
const card = e.target.closest('.dashboard-card[data-target-view]');
if (card) {
const targetView = card.dataset.targetView;
const initialTab = card.dataset.initialTab; // Get initial tab if specified
if (targetView) {
switchToView(targetView, initialTab);
}
}
});
// Example Flow Buttons (Header and Flow View)
showExampleFlowBtnHeader?.addEventListener('click', showExampleFlow);
showExampleFlowBtnFlowView?.addEventListener('click', showExampleFlow);
// Modal Close Listeners
closeExampleModalBtn?.addEventListener('click', () => exampleFlowModal.style.display = "none");
window.addEventListener('click', (event) => { if (event.target == exampleFlowModal) exampleFlowModal.style.display = "none"; });
closeDetailsModalBtn?.addEventListener('click', () => { detailsModal.style.display = "none"; clearSelection(); });
window.addEventListener('click', (event) => { if (event.target == detailsModal) { detailsModal.style.display = "none"; clearSelection(); } });
// Modal Next/Prev Button Listeners
prevDocBtn?.addEventListener('click', () => { if (currentDocListIndices.prev) displayDetailsInModal(currentDocListIndices.prev); });
nextDocBtn?.addEventListener('click', () => { if (currentDocListIndices.next) displayDetailsInModal(currentDocListIndices.next); });
// --- Initialization ---
document.addEventListener('DOMContentLoaded', async () => {
console.log("DOM Loaded. Fetching data...");
mainContentArea.innerHTML += '<div id="loadingSpinner" class="text-center p-10"><i class="lucide lucide-loader-2 animate-spin text-4xl text-blue-500"></i><p>Loading Data...</p></div>'; // Add loading spinner
try {
const response = await fetch('documents.json');
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
documentsData = await response.json();
console.log(`Successfully loaded ${documentsData.length} documents from documents.json`);
// Remove spinner and initialize UI
document.getElementById('loadingSpinner')?.remove();
switchToView('home'); // Start on the 'Home' view
} catch (error) {
console.error("Failed to load documents.json:", error);
document.getElementById('loadingSpinner')?.remove();
// Display error message more prominently
mainContentArea.innerHTML = `<div class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded relative m-4" role="alert">
<strong class="font-bold">Error!</strong>
<span class="block sm:inline">Could not load document database (documents.json). Please ensure the file exists in the same folder and is valid JSON.</span>
<p class="text-xs mt-1">(${error.message})</p>
</div>`;
}
});documents.jsonAdded+839
index.html+199-19
script.jsAdded+566