@erosolaraijs/cure 1.0.2 → 1.0.4

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 (69) hide show
  1. package/dist/bin/cure.d.ts +1 -1
  2. package/dist/bin/cure.js +155 -66
  3. package/dist/bin/cure.js.map +1 -1
  4. package/dist/clinician/index.d.ts +1 -1
  5. package/dist/clinician/index.d.ts.map +1 -1
  6. package/dist/clinician/index.js +1 -1
  7. package/dist/clinician/index.js.map +1 -1
  8. package/dist/compliance/index.d.ts +1 -1
  9. package/dist/compliance/index.d.ts.map +1 -1
  10. package/dist/compliance/index.js +1 -1
  11. package/dist/compliance/index.js.map +1 -1
  12. package/dist/index.d.ts +60 -0
  13. package/dist/index.d.ts.map +1 -0
  14. package/dist/index.js +96 -0
  15. package/dist/index.js.map +1 -0
  16. package/dist/integrations/clinicalTrials/index.d.ts +1 -1
  17. package/dist/integrations/clinicalTrials/index.d.ts.map +1 -1
  18. package/dist/integrations/clinicalTrials/index.js +1 -1
  19. package/dist/integrations/clinicalTrials/index.js.map +1 -1
  20. package/dist/integrations/ehr/index.d.ts +1 -1
  21. package/dist/integrations/ehr/index.d.ts.map +1 -1
  22. package/dist/integrations/ehr/index.js +1 -1
  23. package/dist/integrations/ehr/index.js.map +1 -1
  24. package/dist/integrations/genomics/index.d.ts +1 -1
  25. package/dist/integrations/genomics/index.d.ts.map +1 -1
  26. package/dist/integrations/genomics/index.js +1 -1
  27. package/dist/integrations/genomics/index.js.map +1 -1
  28. package/dist/ml/index.d.ts +1 -1
  29. package/dist/ml/index.d.ts.map +1 -1
  30. package/dist/ml/index.js +1 -1
  31. package/dist/ml/index.js.map +1 -1
  32. package/dist/orchestrator/index.d.ts +5 -0
  33. package/dist/orchestrator/index.d.ts.map +1 -0
  34. package/dist/orchestrator/index.js +5 -0
  35. package/dist/orchestrator/index.js.map +1 -0
  36. package/dist/orchestrator/realWorldOncology.d.ts +351 -0
  37. package/dist/orchestrator/realWorldOncology.d.ts.map +1 -0
  38. package/dist/orchestrator/realWorldOncology.js +425 -0
  39. package/dist/orchestrator/realWorldOncology.js.map +1 -0
  40. package/dist/patient/index.d.ts +1 -1
  41. package/dist/patient/index.d.ts.map +1 -1
  42. package/dist/patient/index.js +1 -1
  43. package/dist/patient/index.js.map +1 -1
  44. package/dist/safety/index.d.ts +1 -1
  45. package/dist/safety/index.d.ts.map +1 -1
  46. package/dist/safety/index.js +1 -1
  47. package/dist/safety/index.js.map +1 -1
  48. package/dist/validation/index.d.ts +1 -1
  49. package/dist/validation/index.d.ts.map +1 -1
  50. package/dist/validation/index.js +1 -1
  51. package/dist/validation/index.js.map +1 -1
  52. package/package.json +1 -1
  53. package/src/bin/cure.ts +166 -70
  54. package/src/clinician/index.ts +11 -0
  55. package/src/compliance/index.ts +19 -0
  56. package/src/index.ts +268 -0
  57. package/src/integrations/clinicalTrials/index.ts +21 -0
  58. package/src/integrations/ehr/index.ts +32 -0
  59. package/src/integrations/genomics/index.ts +23 -0
  60. package/src/ml/index.ts +15 -0
  61. package/src/orchestrator/index.ts +11 -0
  62. package/src/orchestrator/realWorldOncology.ts +803 -0
  63. package/src/patient/index.ts +14 -0
  64. package/src/safety/index.ts +14 -0
  65. package/src/validation/index.ts +10 -0
  66. package/dist/integrations/index.d.ts +0 -7
  67. package/dist/integrations/index.d.ts.map +0 -1
  68. package/dist/integrations/index.js +0 -10
  69. package/dist/integrations/index.js.map +0 -1
package/dist/index.js ADDED
@@ -0,0 +1,96 @@
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
+ import { RealWorldOncologyService as RWOService, createRealWorldOncologyService as createRWOService } from './orchestrator/realWorldOncology.js';
31
+ export { RWOService as RealWorldOncologyService, createRWOService as createRealWorldOncologyService };
32
+ // ═══════════════════════════════════════════════════════════════════════════════
33
+ // INTEGRATIONS
34
+ // ═══════════════════════════════════════════════════════════════════════════════
35
+ // EHR Integration (HL7 FHIR)
36
+ export { FHIRClient, EpicFHIRClient, CernerFHIRClient, createFHIRClient } from './integrations/ehr/index.js';
37
+ // Genomic Platforms
38
+ export { FoundationMedicineClient, GuardantHealthClient, TempusClient, UnifiedGenomicsService, createGenomicClient } from './integrations/genomics/index.js';
39
+ // Clinical Trials
40
+ export { ClinicalTrialsGovClient } from './integrations/clinicalTrials/index.js';
41
+ // ═══════════════════════════════════════════════════════════════════════════════
42
+ // COMPLIANCE
43
+ // ═══════════════════════════════════════════════════════════════════════════════
44
+ export { HIPAAComplianceService } from './compliance/index.js';
45
+ // ═══════════════════════════════════════════════════════════════════════════════
46
+ // MACHINE LEARNING
47
+ // ═══════════════════════════════════════════════════════════════════════════════
48
+ export { OutcomePredictorService } from './ml/index.js';
49
+ // ═══════════════════════════════════════════════════════════════════════════════
50
+ // SAFETY
51
+ // ═══════════════════════════════════════════════════════════════════════════════
52
+ export { DrugSafetyService } from './safety/index.js';
53
+ // ═══════════════════════════════════════════════════════════════════════════════
54
+ // VALIDATION
55
+ // ═══════════════════════════════════════════════════════════════════════════════
56
+ export { RetrospectiveValidationService } from './validation/index.js';
57
+ // ═══════════════════════════════════════════════════════════════════════════════
58
+ // CLINICIAN SUPPORT
59
+ // ═══════════════════════════════════════════════════════════════════════════════
60
+ export { ClinicalDecisionSupportService } from './clinician/index.js';
61
+ // ═══════════════════════════════════════════════════════════════════════════════
62
+ // PATIENT PORTAL
63
+ // ═══════════════════════════════════════════════════════════════════════════════
64
+ export { PatientPortalService } from './patient/index.js';
65
+ // ═══════════════════════════════════════════════════════════════════════════════
66
+ // QUICK START FACTORY
67
+ // ═══════════════════════════════════════════════════════════════════════════════
68
+ /**
69
+ * Quick start factory to create a fully configured oncology service
70
+ *
71
+ * @example
72
+ * ```typescript
73
+ * import { createOncologyPlatform } from 'agi-core-cure-cancer';
74
+ *
75
+ * const platform = await createOncologyPlatform({
76
+ * ehr: {
77
+ * enabled: true,
78
+ * vendor: 'epic',
79
+ * baseUrl: 'https://epic.hospital.org/fhir',
80
+ * clientId: 'your-client-id'
81
+ * },
82
+ * genomics: {
83
+ * enabled: true,
84
+ * platforms: ['foundation', 'guardant']
85
+ * }
86
+ * });
87
+ *
88
+ * const plan = await platform.generateComprehensivePlan(patient, 'DR001');
89
+ * ```
90
+ */
91
+ export async function createOncologyPlatform(config) {
92
+ const service = createRWOService(config);
93
+ await service.initialize();
94
+ return service;
95
+ }
96
+ //# 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,IAAI,UAAU,EACtC,8BAA8B,IAAI,gBAAgB,EAKnD,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,UAAU,IAAI,wBAAwB,EACtC,gBAAgB,IAAI,8BAA8B,EACnD,CAAC;AAQF,kFAAkF;AAClF,eAAe;AACf,kFAAkF;AAElF,6BAA6B;AAC7B,OAAO,EACL,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAwBjB,MAAM,6BAA6B,CAAC;AAErC,oBAAoB;AACpB,OAAO,EACL,wBAAwB,EACxB,oBAAoB,EACpB,YAAY,EACZ,sBAAsB,EACtB,mBAAmB,EAcpB,MAAM,kCAAkC,CAAC;AAE1C,kBAAkB;AAClB,OAAO,EACL,uBAAuB,EAgBxB,MAAM,wCAAwC,CAAC;AAEhD,kFAAkF;AAClF,aAAa;AACb,kFAAkF;AAElF,OAAO,EACL,sBAAsB,EAcvB,MAAM,uBAAuB,CAAC;AAE/B,kFAAkF;AAClF,mBAAmB;AACnB,kFAAkF;AAElF,OAAO,EACL,uBAAuB,EAUxB,MAAM,eAAe,CAAC;AAEvB,kFAAkF;AAClF,SAAS;AACT,kFAAkF;AAElF,OAAO,EACL,iBAAiB,EASlB,MAAM,mBAAmB,CAAC;AAE3B,kFAAkF;AAClF,aAAa;AACb,kFAAkF;AAElF,OAAO,EACL,8BAA8B,EAK/B,MAAM,uBAAuB,CAAC;AAE/B,kFAAkF;AAClF,oBAAoB;AACpB,kFAAkF;AAElF,OAAO,EACL,8BAA8B,EAM/B,MAAM,sBAAsB,CAAC;AAE9B,kFAAkF;AAClF,iBAAiB;AACjB,kFAAkF;AAElF,OAAO,EACL,oBAAoB,EASrB,MAAM,oBAAoB,CAAC;AAE5B,kFAAkF;AAClF,sBAAsB;AACtB,kFAAkF;AAElF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,MAA0B;IACrE,MAAM,OAAO,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACzC,MAAM,OAAO,CAAC,UAAU,EAAE,CAAC;IAC3B,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Clinical Trials Integration Module Exports
3
3
  */
4
- export { ClinicalTrialsGovClient, PatientTrialMatcher, type ClinicalTrial, type TrialLocation, type TrialEligibility, type PatientTrialMatch, type TrialSearchCriteria, type ClinicalTrialsConfig } from './clinicalTrialsGov.js';
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
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/clinicalTrials/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EAC1B,MAAM,wBAAwB,CAAC"}
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"}
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Clinical Trials Integration Module Exports
3
3
  */
4
- export { ClinicalTrialsGovClient, PatientTrialMatcher } from './clinicalTrialsGov.js';
4
+ export { ClinicalTrialsGovClient } from './clinicalTrialsGov.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integrations/clinicalTrials/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EAOpB,MAAM,wBAAwB,CAAC"}
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"}
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * EHR Integration Module Exports
3
3
  */
4
- 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 './fhir.js';
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
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/ehr/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,UAAU,EACV,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAClB,KAAK,oBAAoB,EAC1B,MAAM,WAAW,CAAC"}
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"}
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * EHR Integration Module Exports
3
3
  */
4
- export { FHIRClient, EpicAdapter, CernerAdapter, FHIRPatientSummary } from './fhir.js';
4
+ export { FHIRClient, EpicFHIRClient, CernerFHIRClient, createFHIRClient } from './fhir.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integrations/ehr/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,UAAU,EACV,WAAW,EACX,aAAa,EACb,kBAAkB,EAYnB,MAAM,WAAW,CAAC"}
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"}
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Genomic Platform Integration Module Exports
3
3
  */
4
- export { FoundationMedicineClient, GuardantHealthClient, TempusClient, UnifiedGenomicsService, type GenomicVariant, type CopyNumberAlteration, type GeneFusion, type GenomicReport, type TherapyMatch, type GenomicPlatformConfig } from './genomicPlatforms.js';
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
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC3B,MAAM,uBAAuB,CAAC"}
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"}
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Genomic Platform Integration Module Exports
3
3
  */
4
- export { FoundationMedicineClient, GuardantHealthClient, TempusClient, UnifiedGenomicsService } from './genomicPlatforms.js';
4
+ export { FoundationMedicineClient, GuardantHealthClient, TempusClient, UnifiedGenomicsService, createGenomicClient } from './genomicPlatforms.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +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,EAOvB,MAAM,uBAAuB,CAAC"}
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"}
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Machine Learning Module Exports
3
3
  */
4
- export { OutcomePredictionService, ResponsePredictor, SurvivalPredictor, ToxicityPredictor, ResistancePredictor, TherapyRanker, type PredictionInput, type ResponsePrediction, type SurvivalPrediction, type ToxicityPrediction, type ResistancePrediction, type TherapyRanking, type ModelMetadata, type MLConfig } from './outcomePredictor.js';
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
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ml/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACd,MAAM,uBAAuB,CAAC"}
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"}
package/dist/ml/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Machine Learning Module Exports
3
3
  */
4
- export { OutcomePredictionService, ResponsePredictor, SurvivalPredictor, ToxicityPredictor, ResistancePredictor, TherapyRanker } from './outcomePredictor.js';
4
+ export { OutcomePredictorService } from './outcomePredictor.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ml/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EASd,MAAM,uBAAuB,CAAC"}
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,5 @@
1
+ /**
2
+ * Orchestrator Module - Real-World Oncology Service
3
+ */
4
+ export { RealWorldOncologyService, createRealWorldOncologyService, type RealWorldConfig, type RealWorldPatient, type ComprehensiveTreatmentPlan, type TreatmentOutcome } from './realWorldOncology.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/orchestrator/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,wBAAwB,EACxB,8BAA8B,EAC9B,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,gBAAgB,EACtB,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Orchestrator Module - Real-World Oncology Service
3
+ */
4
+ export { RealWorldOncologyService, createRealWorldOncologyService } from './realWorldOncology.js';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/orchestrator/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,wBAAwB,EACxB,8BAA8B,EAK/B,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,351 @@
1
+ /**
2
+ * Real-World Oncology Orchestration Service
3
+ *
4
+ * ██████╗ ███████╗ █████╗ ██╗ ██╗ ██╗ ██████╗ ██████╗ ██╗ ██████╗
5
+ * ██╔══██╗██╔════╝██╔══██╗██║ ██║ ██║██╔═══██╗██╔══██╗██║ ██╔══██╗
6
+ * ██████╔╝█████╗ ███████║██║ ██║ █╗ ██║██║ ██║██████╔╝██║ ██║ ██║
7
+ * ██╔══██╗██╔══╝ ██╔══██║██║ ██║███╗██║██║ ██║██╔══██╗██║ ██║ ██║
8
+ * ██║ ██║███████╗██║ ██║███████╗ ╚███╔███╔╝╚██████╔╝██║ ██║███████╗██████╔╝
9
+ * ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚══════╝ ╚══╝╚══╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═════╝
10
+ * ██████╗ ███╗ ██╗ ██████╗ ██████╗ ██╗ ██████╗ ██████╗██╗ ██╗
11
+ * ██╔═══██╗████╗ ██║██╔════╝██╔═══██╗██║ ██╔═══██╗██╔════╝╚██╗ ██╔╝
12
+ * ██║ ██║██╔██╗ ██║██║ ██║ ██║██║ ██║ ██║██║ ███╗╚████╔╝
13
+ * ██║ ██║██║╚██╗██║██║ ██║ ██║██║ ██║ ██║██║ ██║ ╚██╔╝
14
+ * ╚██████╔╝██║ ╚████║╚██████╗╚██████╔╝███████╗╚██████╔╝╚██████╔╝ ██║
15
+ * ╚═════╝ ╚═╝ ╚═══╝ ╚═════╝ ╚═════╝ ╚══════╝ ╚═════╝ ╚═════╝ ╚═╝
16
+ *
17
+ * This service orchestrates all components of the real-world precision oncology system:
18
+ * - EHR Integration (Epic, Cerner via HL7 FHIR)
19
+ * - Genomic Platforms (Foundation Medicine, Guardant Health, Tempus)
20
+ * - Clinical Trials (ClinicalTrials.gov)
21
+ * - HIPAA Compliance (Audit, Consent, Encryption, Access Control)
22
+ * - ML Outcome Prediction (Response, Survival, Toxicity, Resistance)
23
+ * - Drug Safety (Interactions, Contraindications, Pharmacogenomics)
24
+ * - Validation Framework (Retrospective validation, Concordance analysis)
25
+ * - Clinician Decision Support (Recommendations, Overrides, Tumor Board)
26
+ * - Patient Portal (Symptoms, Adherence, QoL, Messaging)
27
+ */
28
+ import { CancerCureResult } from '../capabilities/cancerTreatmentCapability.js';
29
+ export interface RealWorldConfig {
30
+ ehr: {
31
+ enabled: boolean;
32
+ vendor: 'epic' | 'cerner' | 'other';
33
+ baseUrl: string;
34
+ clientId: string;
35
+ clientSecret?: string;
36
+ };
37
+ genomics: {
38
+ enabled: boolean;
39
+ platforms: ('foundation' | 'guardant' | 'tempus')[];
40
+ };
41
+ clinicalTrials: {
42
+ enabled: boolean;
43
+ maxDistance?: number;
44
+ };
45
+ compliance: {
46
+ enabled: boolean;
47
+ encryptionKey?: string;
48
+ auditRetentionDays: number;
49
+ };
50
+ ml: {
51
+ enabled: boolean;
52
+ modelVersion: string;
53
+ };
54
+ safety: {
55
+ enabled: boolean;
56
+ strictMode: boolean;
57
+ };
58
+ }
59
+ export interface RealWorldPatient {
60
+ id: string;
61
+ mrn?: string;
62
+ demographics: {
63
+ firstName: string;
64
+ lastName: string;
65
+ dateOfBirth: Date;
66
+ gender: 'male' | 'female' | 'other';
67
+ ethnicity?: string;
68
+ address?: {
69
+ city: string;
70
+ state: string;
71
+ zipCode: string;
72
+ country: string;
73
+ };
74
+ };
75
+ diagnosis: {
76
+ cancerType: string;
77
+ stage: string;
78
+ diagnosisDate: Date;
79
+ histology?: string;
80
+ grade?: string;
81
+ primarySite?: string;
82
+ metastaticSites?: string[];
83
+ };
84
+ genomics?: {
85
+ testDate?: Date;
86
+ platform?: string;
87
+ mutations: string[];
88
+ biomarkers: Record<string, any>;
89
+ msiStatus?: 'MSI-H' | 'MSS';
90
+ tmbLevel?: 'High' | 'Low';
91
+ tmbValue?: number;
92
+ pdl1Expression?: number;
93
+ hrdStatus?: boolean;
94
+ hrdScore?: number;
95
+ };
96
+ treatments?: {
97
+ treatmentId: string;
98
+ regimen: string;
99
+ startDate: Date;
100
+ endDate?: Date;
101
+ response?: 'CR' | 'PR' | 'SD' | 'PD';
102
+ discontinuationReason?: string;
103
+ }[];
104
+ medications?: {
105
+ name: string;
106
+ dose: string;
107
+ frequency: string;
108
+ startDate: Date;
109
+ }[];
110
+ comorbidities?: string[];
111
+ allergies?: string[];
112
+ performanceStatus?: 0 | 1 | 2 | 3 | 4;
113
+ labValues?: {
114
+ testName: string;
115
+ value: number;
116
+ unit: string;
117
+ date: Date;
118
+ isAbnormal: boolean;
119
+ }[];
120
+ }
121
+ export interface ComprehensiveTreatmentPlan {
122
+ patientId: string;
123
+ planId: string;
124
+ createdAt: Date;
125
+ createdBy: string;
126
+ coreRecommendation: CancerCureResult;
127
+ ehrData?: {
128
+ source: string;
129
+ lastSync: Date;
130
+ patientSummary: any;
131
+ };
132
+ genomicData?: {
133
+ platforms: string[];
134
+ lastUpdated: Date;
135
+ unifiedReport: any;
136
+ therapyMatches: any[];
137
+ };
138
+ clinicalTrials?: {
139
+ matchingTrials: {
140
+ nctId: string;
141
+ title: string;
142
+ phase: string;
143
+ eligibilityScore: number;
144
+ distance?: number;
145
+ }[];
146
+ searchDate: Date;
147
+ };
148
+ predictions?: {
149
+ responseProb: {
150
+ CR: number;
151
+ PR: number;
152
+ SD: number;
153
+ PD: number;
154
+ };
155
+ survivalEstimates: {
156
+ pfs: {
157
+ median: number;
158
+ ci95: [number, number];
159
+ };
160
+ os: {
161
+ median: number;
162
+ ci95: [number, number];
163
+ };
164
+ };
165
+ toxicityRisks: {
166
+ toxicity: string;
167
+ grade34Risk: number;
168
+ mitigationStrategy: string;
169
+ }[];
170
+ resistancePrediction: {
171
+ mechanism: string;
172
+ probability: number;
173
+ timeToResistance?: number;
174
+ }[];
175
+ };
176
+ safetyAssessment?: {
177
+ interactions: {
178
+ drug1: string;
179
+ drug2: string;
180
+ severity: 'major' | 'moderate' | 'minor';
181
+ description: string;
182
+ }[];
183
+ contraindications: {
184
+ drug: string;
185
+ reason: string;
186
+ severity: 'absolute' | 'relative';
187
+ }[];
188
+ pharmacogenomics: {
189
+ gene: string;
190
+ variant: string;
191
+ implication: string;
192
+ recommendation: string;
193
+ }[];
194
+ overallSafetyScore: number;
195
+ };
196
+ decisionSupport?: {
197
+ evidenceLevel: 'Category 1' | 'Category 2A' | 'Category 2B' | 'Category 3';
198
+ guidelines: string[];
199
+ alternativeOptions: {
200
+ regimen: string;
201
+ rationale: string;
202
+ tradeoffs: string;
203
+ }[];
204
+ tumorBoardRequired: boolean;
205
+ };
206
+ patientSummary?: {
207
+ treatmentGoal: string;
208
+ whatToExpect: string;
209
+ sideEffectsToWatch: string[];
210
+ questionsForDoctor: string[];
211
+ supportResources: string[];
212
+ };
213
+ compliance?: {
214
+ consentStatus: 'obtained' | 'pending' | 'declined';
215
+ consentDate?: Date;
216
+ auditLogId: string;
217
+ accessLog: {
218
+ userId: string;
219
+ action: string;
220
+ timestamp: Date;
221
+ }[];
222
+ };
223
+ status: 'draft' | 'pending_review' | 'approved' | 'active' | 'completed' | 'discontinued';
224
+ approvedBy?: string;
225
+ approvedAt?: Date;
226
+ }
227
+ export interface TreatmentOutcome {
228
+ patientId: string;
229
+ planId: string;
230
+ response: {
231
+ assessmentDate: Date;
232
+ recistResponse: 'CR' | 'PR' | 'SD' | 'PD';
233
+ targetLesions: {
234
+ lesionId: string;
235
+ baselineSize: number;
236
+ currentSize: number;
237
+ percentChange: number;
238
+ }[];
239
+ newLesions: boolean;
240
+ };
241
+ survival: {
242
+ progressionDate?: Date;
243
+ deathDate?: Date;
244
+ lastFollowUpDate: Date;
245
+ pfsMonths?: number;
246
+ osMonths?: number;
247
+ };
248
+ toxicities: {
249
+ toxicityType: string;
250
+ grade: 1 | 2 | 3 | 4 | 5;
251
+ onsetDate: Date;
252
+ resolvedDate?: Date;
253
+ interventionRequired: boolean;
254
+ doseModification: 'none' | 'reduction' | 'delay' | 'discontinuation';
255
+ }[];
256
+ qualityOfLife: {
257
+ assessmentDate: Date;
258
+ instrument: 'FACT-G' | 'EORTC-QLQ-C30' | 'PRO-CTCAE' | 'other';
259
+ totalScore: number;
260
+ domainScores: Record<string, number>;
261
+ }[];
262
+ adherence: {
263
+ overallAdherence: number;
264
+ missedDoses: number;
265
+ reasonsForMissing: string[];
266
+ };
267
+ }
268
+ export declare class RealWorldOncologyService {
269
+ private config;
270
+ private cancerCapability;
271
+ private ehrService;
272
+ private genomicsService;
273
+ private trialsService;
274
+ private complianceService;
275
+ private mlService;
276
+ private safetyService;
277
+ private validationService;
278
+ private decisionSupportService;
279
+ private patientPortalService;
280
+ constructor(config?: Partial<RealWorldConfig>);
281
+ private mergeDefaultConfig;
282
+ /**
283
+ * Initialize all enabled services
284
+ */
285
+ initialize(): Promise<void>;
286
+ private initializeEHR;
287
+ private initializeGenomics;
288
+ private initializeClinicalTrials;
289
+ private initializeCompliance;
290
+ private initializeML;
291
+ private initializeSafety;
292
+ /**
293
+ * Generate a comprehensive treatment plan for a patient
294
+ */
295
+ generateComprehensivePlan(patient: RealWorldPatient, clinicianId: string, options?: {
296
+ includeTrials?: boolean;
297
+ includePredictions?: boolean;
298
+ includeSafetyCheck?: boolean;
299
+ requireTumorBoard?: boolean;
300
+ }): Promise<ComprehensiveTreatmentPlan>;
301
+ /**
302
+ * Record treatment outcome for validation
303
+ */
304
+ recordOutcome(outcome: TreatmentOutcome): Promise<void>;
305
+ /**
306
+ * Validate system predictions against actual outcomes
307
+ */
308
+ runValidation(cohortCriteria: {
309
+ cancerTypes?: string[];
310
+ stages?: string[];
311
+ dateRange?: {
312
+ start: Date;
313
+ end: Date;
314
+ };
315
+ minPatients?: number;
316
+ }): Promise<{
317
+ cohortSize: number;
318
+ concordanceRate: number;
319
+ responseAUC: number;
320
+ survivalCIndex: number;
321
+ calibrationError: number;
322
+ subgroupResults: Record<string, any>;
323
+ }>;
324
+ private logAccess;
325
+ private fetchEHRData;
326
+ private aggregateGenomicData;
327
+ private findMatchingTrials;
328
+ private generatePredictions;
329
+ private performSafetyAssessment;
330
+ private generateDecisionSupport;
331
+ private createPatientSummary;
332
+ /**
333
+ * Convert internal patient type to CancerPatient for the capability module
334
+ */
335
+ private toCancerPatient;
336
+ private calculateAge;
337
+ /**
338
+ * Get system status and health check
339
+ */
340
+ getSystemStatus(): Promise<{
341
+ status: 'healthy' | 'degraded' | 'unhealthy';
342
+ services: Record<string, {
343
+ status: string;
344
+ latency?: number;
345
+ }>;
346
+ lastValidation?: Date;
347
+ modelVersion: string;
348
+ }>;
349
+ }
350
+ export declare function createRealWorldOncologyService(config?: Partial<RealWorldConfig>): RealWorldOncologyService;
351
+ //# sourceMappingURL=realWorldOncology.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"realWorldOncology.d.ts","sourceRoot":"","sources":["../../src/orchestrator/realWorldOncology.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAmC,gBAAgB,EAAiB,MAAM,8CAA8C,CAAC;AAGhI,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE;QACH,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;QACpC,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,QAAQ,EAAE;QACR,OAAO,EAAE,OAAO,CAAC;QACjB,SAAS,EAAE,CAAC,YAAY,GAAG,UAAU,GAAG,QAAQ,CAAC,EAAE,CAAC;KACrD,CAAC;IACF,cAAc,EAAE;QACd,OAAO,EAAE,OAAO,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,UAAU,EAAE;QACV,OAAO,EAAE,OAAO,CAAC;QACjB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,kBAAkB,EAAE,MAAM,CAAC;KAC5B,CAAC;IACF,EAAE,EAAE;QACF,OAAO,EAAE,OAAO,CAAC;QACjB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IAC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