@erosolaraijs/cure 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/dist/bin/cure.d.ts +2 -5
  2. package/dist/bin/cure.d.ts.map +1 -1
  3. package/dist/bin/cure.js +360 -129
  4. package/dist/bin/cure.js.map +1 -1
  5. package/dist/clinician/decisionSupport.d.ts +325 -0
  6. package/dist/clinician/decisionSupport.d.ts.map +1 -0
  7. package/dist/clinician/decisionSupport.js +604 -0
  8. package/dist/clinician/decisionSupport.js.map +1 -0
  9. package/dist/clinician/index.d.ts +5 -0
  10. package/dist/clinician/index.d.ts.map +1 -0
  11. package/dist/clinician/index.js +5 -0
  12. package/dist/clinician/index.js.map +1 -0
  13. package/dist/compliance/index.d.ts +5 -0
  14. package/dist/compliance/index.d.ts.map +1 -0
  15. package/dist/compliance/index.js +5 -0
  16. package/dist/compliance/index.js.map +1 -0
  17. package/dist/index.d.ts +65 -0
  18. package/dist/index.d.ts.map +1 -0
  19. package/dist/index.js +102 -0
  20. package/dist/index.js.map +1 -0
  21. package/dist/integrations/clinicalTrials/index.d.ts +5 -0
  22. package/dist/integrations/clinicalTrials/index.d.ts.map +1 -0
  23. package/dist/integrations/clinicalTrials/index.js +5 -0
  24. package/dist/integrations/clinicalTrials/index.js.map +1 -0
  25. package/dist/integrations/ehr/index.d.ts +5 -0
  26. package/dist/integrations/ehr/index.d.ts.map +1 -0
  27. package/dist/integrations/ehr/index.js +5 -0
  28. package/dist/integrations/ehr/index.js.map +1 -0
  29. package/dist/integrations/genomics/index.d.ts +5 -0
  30. package/dist/integrations/genomics/index.d.ts.map +1 -0
  31. package/dist/integrations/genomics/index.js +5 -0
  32. package/dist/integrations/genomics/index.js.map +1 -0
  33. package/dist/ml/index.d.ts +5 -0
  34. package/dist/ml/index.d.ts.map +1 -0
  35. package/dist/ml/index.js +5 -0
  36. package/dist/ml/index.js.map +1 -0
  37. package/dist/ml/outcomePredictor.d.ts +297 -0
  38. package/dist/ml/outcomePredictor.d.ts.map +1 -0
  39. package/dist/ml/outcomePredictor.js +823 -0
  40. package/dist/ml/outcomePredictor.js.map +1 -0
  41. package/dist/orchestrator/index.d.ts +5 -0
  42. package/dist/orchestrator/index.d.ts.map +1 -0
  43. package/dist/orchestrator/index.js +5 -0
  44. package/dist/orchestrator/index.js.map +1 -0
  45. package/dist/orchestrator/realWorldOncology.d.ts +351 -0
  46. package/dist/orchestrator/realWorldOncology.d.ts.map +1 -0
  47. package/dist/orchestrator/realWorldOncology.js +425 -0
  48. package/dist/orchestrator/realWorldOncology.js.map +1 -0
  49. package/dist/patient/index.d.ts +5 -0
  50. package/dist/patient/index.d.ts.map +1 -0
  51. package/dist/patient/index.js +5 -0
  52. package/dist/patient/index.js.map +1 -0
  53. package/dist/patient/patientPortal.d.ts +337 -0
  54. package/dist/patient/patientPortal.d.ts.map +1 -0
  55. package/dist/patient/patientPortal.js +667 -0
  56. package/dist/patient/patientPortal.js.map +1 -0
  57. package/dist/safety/drugInteractions.d.ts +230 -0
  58. package/dist/safety/drugInteractions.d.ts.map +1 -0
  59. package/dist/safety/drugInteractions.js +697 -0
  60. package/dist/safety/drugInteractions.js.map +1 -0
  61. package/dist/safety/index.d.ts +5 -0
  62. package/dist/safety/index.d.ts.map +1 -0
  63. package/dist/safety/index.js +5 -0
  64. package/dist/safety/index.js.map +1 -0
  65. package/dist/validation/index.d.ts +5 -0
  66. package/dist/validation/index.d.ts.map +1 -0
  67. package/dist/validation/index.js +5 -0
  68. package/dist/validation/index.js.map +1 -0
  69. package/dist/validation/retrospectiveValidator.d.ts +246 -0
  70. package/dist/validation/retrospectiveValidator.d.ts.map +1 -0
  71. package/dist/validation/retrospectiveValidator.js +602 -0
  72. package/dist/validation/retrospectiveValidator.js.map +1 -0
  73. package/package.json +1 -1
  74. package/src/bin/cure.ts +412 -143
  75. package/src/clinician/decisionSupport.ts +949 -0
  76. package/src/clinician/index.ts +11 -0
  77. package/src/compliance/index.ts +19 -0
  78. package/src/integrations/clinicalTrials/index.ts +21 -0
  79. package/src/integrations/ehr/index.ts +32 -0
  80. package/src/integrations/genomics/index.ts +23 -0
  81. package/src/ml/index.ts +15 -0
  82. package/src/orchestrator/index.ts +11 -0
  83. package/src/orchestrator/realWorldOncology.ts +803 -0
  84. package/src/patient/index.ts +14 -0
  85. package/src/patient/patientPortal.ts +1039 -0
  86. package/src/safety/index.ts +14 -0
  87. package/src/validation/index.ts +10 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/compliance/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,sBAAsB,EACtB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACvB,MAAM,YAAY,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * HIPAA Compliance Module Exports
3
+ */
4
+ export { HIPAAComplianceService } from './hipaa.js';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/compliance/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,sBAAsB,EAcvB,MAAM,YAAY,CAAC"}
@@ -0,0 +1,65 @@
1
+ /**
2
+ * AGI Core - Cure Cancer
3
+ *
4
+ * ██████╗██╗ ██╗██████╗ ███████╗ ██████╗ █████╗ ███╗ ██╗ ██████╗███████╗██████╗
5
+ * ██╔════╝██║ ██║██╔══██╗██╔════╝ ██╔════╝██╔══██╗████╗ ██║██╔════╝██╔════╝██╔══██╗
6
+ * ██║ ██║ ██║██████╔╝█████╗ ██║ ███████║██╔██╗ ██║██║ █████╗ ██████╔╝
7
+ * ██║ ██║ ██║██╔══██╗██╔══╝ ██║ ██╔══██║██║╚██╗██║██║ ██╔══╝ ██╔══██╗
8
+ * ╚██████╗╚██████╔╝██║ ██║███████╗ ╚██████╗██║ ██║██║ ╚████║╚██████╗███████╗██║ ██║
9
+ * ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝╚══════╝╚═╝ ╚═╝
10
+ *
11
+ * Comprehensive AI-powered precision oncology platform connecting:
12
+ * - Real genomic sequencing data (Foundation Medicine, Guardant, Tempus)
13
+ * - Hospital EHR systems (Epic, Cerner via HL7 FHIR)
14
+ * - Clinical trial registries (ClinicalTrials.gov)
15
+ * - HIPAA-compliant data handling
16
+ * - ML-powered outcome prediction
17
+ * - Drug safety and interaction checking
18
+ * - Clinician decision support
19
+ * - Patient portal interfaces
20
+ *
21
+ * @packageDocumentation
22
+ */
23
+ export { CancerTreatmentCapabilityModule, type CancerTreatmentOperationType, type CancerPatient, type CancerTreatmentOperation, type CancerTreatmentResult, type TreatmentProtocol, type DrugTarget, type ImmunotherapyProtocol, type CombinationTherapy, type CancerCureResult } from './capabilities/cancerTreatmentCapability.js';
24
+ export { RealWorldOncologyService, createRealWorldOncologyService, type RealWorldConfig, type RealWorldPatient, type ComprehensiveTreatmentPlan, type TreatmentOutcome } from './orchestrator/index.js';
25
+ export { FHIRClient, EpicAdapter, CernerAdapter, FHIRPatientSummary, CancerDiagnosis, CancerBiomarkers, TreatmentHistory, type FHIRConfig, type FHIRResource, type FHIRPatient, type FHIRObservation, type FHIRCondition, type FHIRMedicationRequest, type FHIRProcedure, type FHIRDiagnosticReport } from './integrations/ehr/index.js';
26
+ export { FoundationMedicineClient, GuardantHealthClient, TempusClient, UnifiedGenomicsService, type GenomicVariant, type CopyNumberAlteration, type GeneFusion, type GenomicReport, type TherapyMatch, type GenomicPlatformConfig } from './integrations/genomics/index.js';
27
+ export { ClinicalTrialsGovClient, PatientTrialMatcher, type ClinicalTrial, type TrialLocation, type TrialEligibility, type PatientTrialMatch, type TrialSearchCriteria, type ClinicalTrialsConfig } from './integrations/clinicalTrials/index.js';
28
+ export { HIPAAComplianceService, AuditLogger, ConsentManager, EncryptionService, AccessControlManager, DataMaskingService, type AuditLogEntry, type PatientConsent, type ConsentScope, type AccessPolicy, type AccessDecision, type HIPAAConfig } from './compliance/index.js';
29
+ export { OutcomePredictionService, ResponsePredictor, SurvivalPredictor, ToxicityPredictor, ResistancePredictor, TherapyRanker, type PredictionInput, type ResponsePrediction, type SurvivalPrediction, type ToxicityPrediction, type ResistancePrediction, type TherapyRanking, type ModelMetadata, type MLConfig } from './ml/index.js';
30
+ export { DrugSafetyService, DrugInteractionChecker, ContraindicationChecker, AllergyChecker, QTRiskAssessor, PharmacogenomicsChecker, BlackBoxWarningChecker, type DrugInteraction, type Contraindication, type AllergyAlert, type QTRiskAssessment, type PharmacogenomicAlert, type BlackBoxWarning, type SafetyCheckResult, type DrugSafetyConfig } from './safety/index.js';
31
+ export { RetrospectiveValidator, CohortLoader, ConcordanceAnalyzer, PredictionAccuracyAnalyzer, SubgroupAnalyzer, ValidationReportGenerator, type ValidationCohort, type PatientOutcome, type ConcordanceResult, type PredictionAccuracy, type SubgroupAnalysis, type ValidationReport, type ValidationConfig } from './validation/index.js';
32
+ export { ClinicalDecisionSupport, RecommendationEngine, OverrideManager, TumorBoardManager, RiskBenefitAnalyzer, ExplanationGenerator, type ClinicalRecommendation, type OverrideRecord, type TumorBoardCase, type RiskBenefitAnalysis, type RecommendationExplanation, type DecisionSupportConfig } from './clinician/index.js';
33
+ export { PatientPortalService, PatientAccountManager, TreatmentSummaryService, SymptomTracker, MedicationAdherenceTracker, QualityOfLifeAssessment, SecureMessaging, EducationalContentService, AppointmentRequestService, PatientDashboard, type PatientAccount, type TreatmentSummary, type SymptomEntry, type AdherenceRecord, type QoLAssessment, type SecureMessage, type EducationalContent, type AppointmentRequest, type PatientDashboardData, type PatientPortalConfig } from './patient/index.js';
34
+ /**
35
+ * Quick start factory to create a fully configured oncology service
36
+ *
37
+ * @example
38
+ * ```typescript
39
+ * import { createOncologyPlatform } from 'agi-core-cure-cancer';
40
+ *
41
+ * const platform = await createOncologyPlatform({
42
+ * ehr: {
43
+ * enabled: true,
44
+ * vendor: 'epic',
45
+ * baseUrl: 'https://epic.hospital.org/fhir',
46
+ * clientId: 'your-client-id'
47
+ * },
48
+ * genomics: {
49
+ * enabled: true,
50
+ * platforms: ['foundation', 'guardant']
51
+ * }
52
+ * });
53
+ *
54
+ * const plan = await platform.generateComprehensivePlan(patient, 'DR001');
55
+ * ```
56
+ */
57
+ export declare function createOncologyPlatform(config?: Partial<import('./orchestrator/index.js').RealWorldConfig>): Promise<RealWorldOncologyService>;
58
+ declare const _default: {
59
+ createOncologyPlatform: typeof createOncologyPlatform;
60
+ createRealWorldOncologyService: any;
61
+ CancerTreatmentCapabilityModule: any;
62
+ RealWorldOncologyService: any;
63
+ };
64
+ export default _default;
65
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAMH,OAAO,EACL,+BAA+B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,aAAa,EAClB,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACtB,MAAM,6CAA6C,CAAC;AAMrD,OAAO,EACL,wBAAwB,EACxB,8BAA8B,EAC9B,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,gBAAgB,EACtB,MAAM,yBAAyB,CAAC;AAOjC,OAAO,EACL,UAAU,EACV,WAAW,EACX,aAAa,EACb,kBA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BAKE"}
package/dist/index.js ADDED
@@ -0,0 +1,102 @@
1
+ /**
2
+ * AGI Core - Cure Cancer
3
+ *
4
+ * ██████╗██╗ ██╗██████╗ ███████╗ ██████╗ █████╗ ███╗ ██╗ ██████╗███████╗██████╗
5
+ * ██╔════╝██║ ██║██╔══██╗██╔════╝ ██╔════╝██╔══██╗████╗ ██║██╔════╝██╔════╝██╔══██╗
6
+ * ██║ ██║ ██║██████╔╝█████╗ ██║ ███████║██╔██╗ ██║██║ █████╗ ██████╔╝
7
+ * ██║ ██║ ██║██╔══██╗██╔══╝ ██║ ██╔══██║██║╚██╗██║██║ ██╔══╝ ██╔══██╗
8
+ * ╚██████╗╚██████╔╝██║ ██║███████╗ ╚██████╗██║ ██║██║ ╚████║╚██████╗███████╗██║ ██║
9
+ * ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝╚══════╝╚═╝ ╚═╝
10
+ *
11
+ * Comprehensive AI-powered precision oncology platform connecting:
12
+ * - Real genomic sequencing data (Foundation Medicine, Guardant, Tempus)
13
+ * - Hospital EHR systems (Epic, Cerner via HL7 FHIR)
14
+ * - Clinical trial registries (ClinicalTrials.gov)
15
+ * - HIPAA-compliant data handling
16
+ * - ML-powered outcome prediction
17
+ * - Drug safety and interaction checking
18
+ * - Clinician decision support
19
+ * - Patient portal interfaces
20
+ *
21
+ * @packageDocumentation
22
+ */
23
+ // ═══════════════════════════════════════════════════════════════════════════════
24
+ // CORE CAPABILITIES
25
+ // ═══════════════════════════════════════════════════════════════════════════════
26
+ export { CancerTreatmentCapabilityModule } from './capabilities/cancerTreatmentCapability.js';
27
+ // ═══════════════════════════════════════════════════════════════════════════════
28
+ // REAL-WORLD ORCHESTRATION
29
+ // ═══════════════════════════════════════════════════════════════════════════════
30
+ export { RealWorldOncologyService, createRealWorldOncologyService } from './orchestrator/index.js';
31
+ // ═══════════════════════════════════════════════════════════════════════════════
32
+ // INTEGRATIONS
33
+ // ═══════════════════════════════════════════════════════════════════════════════
34
+ // EHR Integration (HL7 FHIR)
35
+ export { FHIRClient, EpicAdapter, CernerAdapter, FHIRPatientSummary } from './integrations/ehr/index.js';
36
+ // Genomic Platforms
37
+ export { FoundationMedicineClient, GuardantHealthClient, TempusClient, UnifiedGenomicsService } from './integrations/genomics/index.js';
38
+ // Clinical Trials
39
+ export { ClinicalTrialsGovClient, PatientTrialMatcher } from './integrations/clinicalTrials/index.js';
40
+ // ═══════════════════════════════════════════════════════════════════════════════
41
+ // COMPLIANCE
42
+ // ═══════════════════════════════════════════════════════════════════════════════
43
+ export { HIPAAComplianceService, AuditLogger, ConsentManager, EncryptionService, AccessControlManager, DataMaskingService } from './compliance/index.js';
44
+ // ═══════════════════════════════════════════════════════════════════════════════
45
+ // MACHINE LEARNING
46
+ // ═══════════════════════════════════════════════════════════════════════════════
47
+ export { OutcomePredictionService, ResponsePredictor, SurvivalPredictor, ToxicityPredictor, ResistancePredictor, TherapyRanker } from './ml/index.js';
48
+ // ═══════════════════════════════════════════════════════════════════════════════
49
+ // SAFETY
50
+ // ═══════════════════════════════════════════════════════════════════════════════
51
+ export { DrugSafetyService, DrugInteractionChecker, ContraindicationChecker, AllergyChecker, QTRiskAssessor, PharmacogenomicsChecker, BlackBoxWarningChecker } from './safety/index.js';
52
+ // ═══════════════════════════════════════════════════════════════════════════════
53
+ // VALIDATION
54
+ // ═══════════════════════════════════════════════════════════════════════════════
55
+ export { RetrospectiveValidator, CohortLoader, ConcordanceAnalyzer, PredictionAccuracyAnalyzer, SubgroupAnalyzer, ValidationReportGenerator } from './validation/index.js';
56
+ // ═══════════════════════════════════════════════════════════════════════════════
57
+ // CLINICIAN SUPPORT
58
+ // ═══════════════════════════════════════════════════════════════════════════════
59
+ export { ClinicalDecisionSupport, RecommendationEngine, OverrideManager, TumorBoardManager, RiskBenefitAnalyzer, ExplanationGenerator } from './clinician/index.js';
60
+ // ═══════════════════════════════════════════════════════════════════════════════
61
+ // PATIENT PORTAL
62
+ // ═══════════════════════════════════════════════════════════════════════════════
63
+ export { PatientPortalService, PatientAccountManager, TreatmentSummaryService, SymptomTracker, MedicationAdherenceTracker, QualityOfLifeAssessment, SecureMessaging, EducationalContentService, AppointmentRequestService, PatientDashboard } from './patient/index.js';
64
+ // ═══════════════════════════════════════════════════════════════════════════════
65
+ // QUICK START FACTORY
66
+ // ═══════════════════════════════════════════════════════════════════════════════
67
+ /**
68
+ * Quick start factory to create a fully configured oncology service
69
+ *
70
+ * @example
71
+ * ```typescript
72
+ * import { createOncologyPlatform } from 'agi-core-cure-cancer';
73
+ *
74
+ * const platform = await createOncologyPlatform({
75
+ * ehr: {
76
+ * enabled: true,
77
+ * vendor: 'epic',
78
+ * baseUrl: 'https://epic.hospital.org/fhir',
79
+ * clientId: 'your-client-id'
80
+ * },
81
+ * genomics: {
82
+ * enabled: true,
83
+ * platforms: ['foundation', 'guardant']
84
+ * }
85
+ * });
86
+ *
87
+ * const plan = await platform.generateComprehensivePlan(patient, 'DR001');
88
+ * ```
89
+ */
90
+ export async function createOncologyPlatform(config) {
91
+ const service = createRealWorldOncologyService(config);
92
+ await service.initialize();
93
+ return service;
94
+ }
95
+ // Default export
96
+ export default {
97
+ createOncologyPlatform,
98
+ createRealWorldOncologyService,
99
+ CancerTreatmentCapabilityModule,
100
+ RealWorldOncologyService
101
+ };
102
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,kFAAkF;AAClF,oBAAoB;AACpB,kFAAkF;AAElF,OAAO,EACL,+BAA+B,EAUhC,MAAM,6CAA6C,CAAC;AAErD,kFAAkF;AAClF,2BAA2B;AAC3B,kFAAkF;AAElF,OAAO,EACL,wBAAwB,EACxB,8BAA8B,EAK/B,MAAM,yBAAyB,CAAC;AAEjC,kFAAkF;AAClF,eAAe;AACf,kF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c,EACd,0BAA0B,EAC1B,uBAAuB,EACvB,eAAe,EACf,yBAAyB,EACzB,yBAAyB,EACzB,gBAAgB,EAWjB,MAAM,oBAAoB,CAAC;AAE5B,kFAAkF;AAClF,sBAAsB;AACtB,kFAAkF;AAElF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,MAAmE;IAC9G,MAAM,OAAO,GAAG,8BAA8B,CAAC,MAAM,CAAC,CAAC;IACvD,MAAM,OAAO,CAAC,UAAU,EAAE,CAAC;IAC3B,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,iBAAiB;AACjB,eAAe;IACb,sBAAsB;IACtB,8BAA8B;IAC9B,+BAA+B;IAC/B,wBAAwB;CACzB,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Clinical Trials Integration Module Exports
3
+ */
4
+ export { ClinicalTrialsGovClient, type ClinicalTrial, type TrialStatus, type TrialPhase, type TrialIntervention, type TrialEligibility, type TrialLocation, type TrialSponsor, type TrialContact, type TrialArm, type TrialOutcome, type BiomarkerRequirement, type TrialSearchParams, type TrialSearchResult, type PatientProfile, type TrialMatch } from './clinicalTrialsGov.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/clinicalTrials/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,uBAAuB,EACvB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,UAAU,EAChB,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Clinical Trials Integration Module Exports
3
+ */
4
+ export { ClinicalTrialsGovClient } from './clinicalTrialsGov.js';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integrations/clinicalTrials/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,uBAAuB,EAgBxB,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * EHR Integration Module Exports
3
+ */
4
+ export { FHIRClient, EpicFHIRClient, CernerFHIRClient, createFHIRClient, type FHIRConfig, type FHIRPatient, type FHIRIdentifier, type FHIRHumanName, type FHIRAddress, type FHIRContactPoint, type FHIRCodeableConcept, type FHIRCoding, type FHIRExtension, type FHIRCondition, type FHIRObservation, type FHIRQuantity, type FHIRReference, type FHIRMedicationRequest, type FHIRDosage, type FHIRDiagnosticReport, type FHIRProcedure, type FHIRBundle, type FHIRResource, type CancerDiagnosis, type CancerBiomarkers, type TreatmentHistory, type AuditEvent } from './fhir.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/ehr/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,UAAU,EACf,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EAChB,MAAM,WAAW,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * EHR Integration Module Exports
3
+ */
4
+ export { FHIRClient, EpicFHIRClient, CernerFHIRClient, createFHIRClient } from './fhir.js';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integrations/ehr/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAwBjB,MAAM,WAAW,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Genomic Platform Integration Module Exports
3
+ */
4
+ export { FoundationMedicineClient, GuardantHealthClient, TempusClient, UnifiedGenomicsService, createGenomicClient, type GenomicTestOrder, type GenomicTestResult, type GenomicVariant, type CopyNumberAlteration, type GeneFusion, type GenomicBiomarker, type MSIResult, type TMBResult, type HRDResult, type LOHResult, type TherapyMatch, type ClinicalTrialMatch, type GenomicPlatformConfig } from './genomicPlatforms.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/genomics/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,wBAAwB,EACxB,oBAAoB,EACpB,YAAY,EACZ,sBAAsB,EACtB,mBAAmB,EACnB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC3B,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Genomic Platform Integration Module Exports
3
+ */
4
+ export { FoundationMedicineClient, GuardantHealthClient, TempusClient, UnifiedGenomicsService, createGenomicClient } from './genomicPlatforms.js';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integrations/genomics/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,wBAAwB,EACxB,oBAAoB,EACpB,YAAY,EACZ,sBAAsB,EACtB,mBAAmB,EAcpB,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Machine Learning Module Exports
3
+ */
4
+ export { OutcomePredictorService, type PatientFeatures, type TreatmentFeatures, type ResponsePrediction, type SurvivalPrediction, type ToxicityPrediction, type ResistancePrediction, type TherapyRanking, type MLModel, type ModelRegistry } from './outcomePredictor.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ml/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,uBAAuB,EACvB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,OAAO,EACZ,KAAK,aAAa,EACnB,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Machine Learning Module Exports
3
+ */
4
+ export { OutcomePredictorService } from './outcomePredictor.js';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ml/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,uBAAuB,EAUxB,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,297 @@
1
+ /**
2
+ * Machine Learning Outcome Prediction Infrastructure
3
+ *
4
+ * Provides ML-based prediction models for:
5
+ * - Treatment response prediction
6
+ * - Survival probability estimation
7
+ * - Toxicity risk assessment
8
+ * - Resistance prediction
9
+ * - Optimal therapy selection
10
+ *
11
+ * This module provides the infrastructure for training and deploying
12
+ * ML models. In production, models would be trained on real patient cohorts
13
+ * with proper validation and FDA clearance.
14
+ */
15
+ import { EventEmitter } from 'events';
16
+ export interface PatientFeatures {
17
+ age: number;
18
+ gender: 'male' | 'female';
19
+ ethnicity?: string;
20
+ bmi?: number;
21
+ cancerType: string;
22
+ histology?: string;
23
+ stage: 'I' | 'II' | 'III' | 'IV' | 'IA' | 'IB' | 'IIA' | 'IIB' | 'IIIA' | 'IIIB' | 'IIIC' | 'IVA' | 'IVB';
24
+ grade?: 1 | 2 | 3;
25
+ tumorSize?: number;
26
+ lymphNodeInvolvement?: number;
27
+ metastaticSites?: string[];
28
+ ecogStatus: 0 | 1 | 2 | 3 | 4;
29
+ genomicAlterations: {
30
+ gene: string;
31
+ alteration: string;
32
+ type: 'mutation' | 'amplification' | 'deletion' | 'fusion';
33
+ vaf?: number;
34
+ }[];
35
+ pdl1Score?: number;
36
+ pdl1ScoreType?: 'TPS' | 'CPS' | 'IC';
37
+ msiStatus?: 'MSI-H' | 'MSI-L' | 'MSS';
38
+ tmbValue?: number;
39
+ tmbStatus?: 'high' | 'low';
40
+ hrdScore?: number;
41
+ hrdStatus?: 'positive' | 'negative';
42
+ brcaStatus?: 'BRCA1' | 'BRCA2' | 'wild-type';
43
+ ldh?: number;
44
+ albumin?: number;
45
+ hemoglobin?: number;
46
+ neutrophils?: number;
47
+ lymphocytes?: number;
48
+ platelets?: number;
49
+ creatinine?: number;
50
+ bilirubin?: number;
51
+ alkalinePhosphatase?: number;
52
+ priorLines?: number;
53
+ priorTherapies?: string[];
54
+ priorResponse?: 'CR' | 'PR' | 'SD' | 'PD';
55
+ treatmentFreeInterval?: number;
56
+ comorbidityIndex?: number;
57
+ organFunction?: {
58
+ cardiac?: 'normal' | 'impaired';
59
+ hepatic?: 'normal' | 'impaired';
60
+ renal?: 'normal' | 'impaired';
61
+ pulmonary?: 'normal' | 'impaired';
62
+ };
63
+ }
64
+ export interface TreatmentFeatures {
65
+ regimen: string;
66
+ drugs: string[];
67
+ treatmentType: 'chemotherapy' | 'immunotherapy' | 'targeted' | 'combination' | 'radiation' | 'surgery' | 'car-t';
68
+ setting: 'neoadjuvant' | 'adjuvant' | 'first-line' | 'second-line' | 'third-line-plus' | 'maintenance';
69
+ dosing?: 'standard' | 'reduced' | 'dose-dense';
70
+ schedule?: string;
71
+ }
72
+ export interface ResponsePrediction {
73
+ predictedResponse: 'CR' | 'PR' | 'SD' | 'PD';
74
+ probabilities: {
75
+ completeResponse: number;
76
+ partialResponse: number;
77
+ stableDisease: number;
78
+ progressiveDisease: number;
79
+ };
80
+ confidence: number;
81
+ objectiveResponseRate: number;
82
+ diseaseControlRate: number;
83
+ timeToResponse?: {
84
+ median: number;
85
+ range: [number, number];
86
+ };
87
+ }
88
+ export interface SurvivalPrediction {
89
+ pfs: {
90
+ median: number;
91
+ sixMonth: number;
92
+ twelveMonth: number;
93
+ twentyFourMonth: number;
94
+ confidence: number;
95
+ hazardRatio?: number;
96
+ };
97
+ os: {
98
+ median: number;
99
+ twelveMonth: number;
100
+ twentyFourMonth: number;
101
+ fiveYear: number;
102
+ confidence: number;
103
+ hazardRatio?: number;
104
+ };
105
+ riskGroup: 'low' | 'intermediate-low' | 'intermediate-high' | 'high';
106
+ riskScore: number;
107
+ }
108
+ export interface ToxicityPrediction {
109
+ overallRisk: 'low' | 'moderate' | 'high';
110
+ grade3PlusRisk: number;
111
+ specificRisks: {
112
+ toxicity: string;
113
+ grade: 1 | 2 | 3 | 4 | 5;
114
+ probability: number;
115
+ timeToOnset?: {
116
+ median: number;
117
+ unit: 'days' | 'weeks' | 'cycles';
118
+ };
119
+ reversible: boolean;
120
+ management?: string;
121
+ }[];
122
+ iraeRisk?: {
123
+ any: number;
124
+ grade3Plus: number;
125
+ specificOrgans: {
126
+ organ: string;
127
+ risk: number;
128
+ }[];
129
+ };
130
+ doseModification?: {
131
+ recommended: boolean;
132
+ reduction: number;
133
+ reason: string;
134
+ };
135
+ }
136
+ export interface ResistancePrediction {
137
+ intrinsicResistanceRisk: number;
138
+ acquiredResistanceRisk: number;
139
+ predictedMechanisms: {
140
+ mechanism: string;
141
+ probability: number;
142
+ monitoringBiomarker?: string;
143
+ }[];
144
+ timeToResistance?: {
145
+ median: number;
146
+ range: [number, number];
147
+ };
148
+ nextLineOptions: {
149
+ therapy: string;
150
+ rationale: string;
151
+ expectedBenefit: number;
152
+ }[];
153
+ }
154
+ export interface TherapyRanking {
155
+ therapies: {
156
+ regimen: string;
157
+ drugs: string[];
158
+ rank: number;
159
+ predictions: {
160
+ responseRate: number;
161
+ pfsSurvival: number;
162
+ osSurvival: number;
163
+ toxicityRisk: number;
164
+ qualityOfLifeScore: number;
165
+ };
166
+ overallScore: number;
167
+ confidence: number;
168
+ matchingBiomarkers: string[];
169
+ fdaApproved: boolean;
170
+ nccnRecommended: boolean;
171
+ considerations: string[];
172
+ contraindications?: string[];
173
+ }[];
174
+ bestChoice: {
175
+ regimen: string;
176
+ rationale: string[];
177
+ };
178
+ }
179
+ export interface MLModel {
180
+ id: string;
181
+ name: string;
182
+ version: string;
183
+ type: 'classification' | 'regression' | 'survival' | 'ranking';
184
+ target: 'response' | 'pfs' | 'os' | 'toxicity' | 'resistance';
185
+ cancerTypes: string[];
186
+ performance: {
187
+ auc?: number;
188
+ accuracy?: number;
189
+ sensitivity?: number;
190
+ specificity?: number;
191
+ cIndex?: number;
192
+ calibration?: number;
193
+ brier?: number;
194
+ };
195
+ validation: {
196
+ method: 'cross-validation' | 'temporal' | 'external' | 'prospective';
197
+ cohortSize: number;
198
+ testSetSize: number;
199
+ validationDate: Date;
200
+ };
201
+ features: string[];
202
+ importantFeatures: {
203
+ feature: string;
204
+ importance: number;
205
+ }[];
206
+ status: 'development' | 'validation' | 'clinical-use' | 'deprecated';
207
+ regulatoryStatus?: 'not-submitted' | 'pending' | 'cleared' | '510k' | 'de-novo';
208
+ }
209
+ export interface ModelRegistry {
210
+ models: MLModel[];
211
+ getModel(id: string): MLModel | undefined;
212
+ getBestModel(target: MLModel['target'], cancerType: string): MLModel | undefined;
213
+ registerModel(model: MLModel): void;
214
+ }
215
+ export declare class OutcomePredictorService extends EventEmitter {
216
+ private modelRegistry;
217
+ private featureEncoders;
218
+ private predictionCache;
219
+ private cacheDuration;
220
+ constructor();
221
+ /**
222
+ * Predict treatment response
223
+ */
224
+ predictResponse(patient: PatientFeatures, treatment: TreatmentFeatures): Promise<ResponsePrediction>;
225
+ /**
226
+ * Predict survival outcomes
227
+ */
228
+ predictSurvival(patient: PatientFeatures, treatment: TreatmentFeatures): Promise<SurvivalPrediction>;
229
+ /**
230
+ * Predict toxicity risk
231
+ */
232
+ predictToxicity(patient: PatientFeatures, treatment: TreatmentFeatures): Promise<ToxicityPrediction>;
233
+ /**
234
+ * Predict resistance development
235
+ */
236
+ predictResistance(patient: PatientFeatures, treatment: TreatmentFeatures): Promise<ResistancePrediction>;
237
+ /**
238
+ * Rank treatment options
239
+ */
240
+ rankTherapies(patient: PatientFeatures, treatmentOptions: TreatmentFeatures[], preferences?: {
241
+ prioritizeEfficacy?: boolean;
242
+ prioritizeToxicity?: boolean;
243
+ prioritizeQoL?: boolean;
244
+ }): Promise<TherapyRanking>;
245
+ /**
246
+ * Get comprehensive prediction report
247
+ */
248
+ getComprehensivePrediction(patient: PatientFeatures, treatment: TreatmentFeatures): Promise<{
249
+ response: ResponsePrediction;
250
+ survival: SurvivalPrediction;
251
+ toxicity: ToxicityPrediction;
252
+ resistance: ResistancePrediction;
253
+ overallAssessment: {
254
+ recommendation: 'strongly-recommended' | 'recommended' | 'consider' | 'caution' | 'not-recommended';
255
+ rationale: string[];
256
+ caveats: string[];
257
+ alternativeOptions: string[];
258
+ };
259
+ }>;
260
+ private computeResponsePrediction;
261
+ private computeSurvivalPrediction;
262
+ private computeToxicityPrediction;
263
+ private computeResistancePrediction;
264
+ private initializeDefaultModels;
265
+ private initializeFeatureEncoders;
266
+ private encodeFeatures;
267
+ private getBestModel;
268
+ private hasBiomarkerMatch;
269
+ private hasImmunotherapyDrug;
270
+ private getDrugToxicityProfiles;
271
+ private getResistanceMechanisms;
272
+ private getNextLineOptions;
273
+ private estimateQoLScore;
274
+ private getMatchingBiomarkers;
275
+ private isBiomarkerRelevant;
276
+ private checkFDAApproval;
277
+ private checkNCCNRecommendation;
278
+ private getConsiderations;
279
+ private generateOverallAssessment;
280
+ private getCacheKey;
281
+ private getFromCache;
282
+ private setCache;
283
+ /**
284
+ * Register a new model
285
+ */
286
+ registerModel(model: MLModel): void;
287
+ /**
288
+ * Get model performance metrics
289
+ */
290
+ getModelMetrics(modelId: string): MLModel['performance'] | undefined;
291
+ /**
292
+ * List all available models
293
+ */
294
+ listModels(): MLModel[];
295
+ }
296
+ export default OutcomePredictorService;
297
+ //# sourceMappingURL=outcomePredictor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outcomePredictor.d.ts","sourceRoot":"","sources":["../../src/ml/outcomePredictor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAOtC,MAAM,WAAW,eAAe;IAE9B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IAGb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,GAAG,GAAG,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;IAC1G,KAAK,CAAC,EA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