/** * Clinical Trial Matching Engine * * ╔═══════════════════════════════════════════════════════════════════════════════╗ * ║ CLINICAL TRIAL MATCHING - CONNECTING PATIENTS TO NOVEL THERAPIES ║ * ╠═══════════════════════════════════════════════════════════════════════════════╣ * ║ This module provides: ║ * ║ - Biomarker-to-trial mapping ║ * ║ - Eligibility criteria assessment ║ * ║ - Trial phase and mechanism matching ║ * ║ - Geographic and logistical feasibility ║ * ║ - Basket, umbrella, and platform trial navigation ║ * ╚═══════════════════════════════════════════════════════════════════════════════╝ */ export interface ClinicalTrial { nctId: string; title: string; phase: TrialPhase; status: TrialStatus; trialType: TrialType; sponsor: string; conditions: string[]; interventions: TrialIntervention[]; eligibilityCriteria: EligibilityCriteria; locations: TrialLocation[]; biomarkerRequirements: BiomarkerCriterion[]; primaryEndpoint: string; estimatedEnrollment: number; studyStartDate: string; estimatedCompletionDate: string; } export type TrialPhase = 'Early Phase 1' | 'Phase 1' | 'Phase 1/2' | 'Phase 2' | 'Phase 2/3' | 'Phase 3' | 'Phase 4'; export type TrialStatus = 'Recruiting' | 'Active, not recruiting' | 'Enrolling by invitation' | 'Not yet recruiting' | 'Completed' | 'Suspended' | 'Terminated' | 'Withdrawn'; export type TrialType = 'Interventional' | 'Basket' | 'Umbrella' | 'Platform' | 'Expanded Access'; export interface TrialIntervention { type: 'Drug' | 'Biological' | 'Device' | 'Radiation' | 'Procedure' | 'Combination'; name: string; mechanism: string; targetedPathway?: string; novelty: 'First-in-class' | 'Next-generation' | 'Combination' | 'New indication'; } export interface EligibilityCriteria { ageRange: { min: number; max: number; }; gender: 'All' | 'Male' | 'Female'; performanceStatus: { scale: 'ECOG' | 'Karnofsky'; maxValue: number; }; priorTherapyRequirements: PriorTherapyRequirement[]; organFunctionRequirements: OrganFunctionRequirement[]; exclusionCriteria: string[]; inclusionCriteria: string[]; } export interface PriorTherapyRequirement { requirement: 'Required' | 'Allowed' | 'Excluded'; therapyType: string; details: string; } export interface OrganFunctionRequirement { organ: string; parameter: string; requirement: string; } export interface TrialLocation { facility: string; city: string; state: string; country: string; status: 'Recruiting' | 'Not yet recruiting' | 'Completed'; contactName?: string; contactPhone?: string; contactEmail?: string; } export interface BiomarkerCriterion { biomarker: string; requirement: 'Required' | 'Preferred' | 'Excluded'; testMethod: string[]; details?: string; } export interface PatientTrialProfile { cancerType: string; histology: string; stage: string; biomarkers: PatientBiomarker[]; priorTherapies: string[]; currentLine: number; age: number; performanceStatus: number; organFunction: OrganFunctionStatus; location: { country: string; state?: string; city?: string; }; willingToTravel: boolean; maxTravelDistance?: number; preferences: TrialPreferences; } export interface PatientBiomarker { name: string; status: 'Positive' | 'Negative' | 'Unknown'; value?: string | number; method?: string; } export interface OrganFunctionStatus { renalFunction: 'Normal' | 'Mild impairment' | 'Moderate impairment' | 'Severe impairment'; hepaticFunction: 'Normal' | 'Mild impairment' | 'Moderate impairment' | 'Severe impairment'; cardiacFunction: 'Normal' | 'Reduced' | 'Severely reduced'; bonemarrowFunction: 'Normal' | 'Reduced'; } export interface TrialPreferences { preferredPhases: TrialPhase[]; acceptPlaceboArm: boolean; preferLocalTrials: boolean; interestedMechanisms: string[]; } export interface TrialMatch { trial: ClinicalTrial; matchScore: number; matchDetails: MatchDetail[]; eligibilityStatus: 'Likely Eligible' | 'Possibly Eligible' | 'Likely Ineligible' | 'Need More Info'; barriers: string[]; nextSteps: string[]; } export interface MatchDetail { criterion: string; status: 'Met' | 'Not Met' | 'Partial' | 'Unknown'; explanation: string; } export declare const TRIAL_DATABASE: ClinicalTrial[]; export declare class ClinicalTrialMatchingEngine { private trials; findMatchingTrials(patient: PatientTrialProfile): TrialMatch[]; private evaluateTrialMatch; findTrialsByBiomarker(biomarker: string): ClinicalTrial[]; findTrialsByMechanism(mechanism: string): ClinicalTrial[]; findBasketTrials(): ClinicalTrial[]; findPediatricTrials(): ClinicalTrial[]; getTrialById(nctId: string): ClinicalTrial | undefined; generateTrialSearchStrategy(patient: PatientTrialProfile): { searchTerms: string[]; recommendedDatabases: string[]; searchTips: string[]; }; } export declare const clinicalTrialMatchingEngine: ClinicalTrialMatchingEngine; //# sourceMappingURL=clinicalTrialMatchingModule.d.ts.map