@erosolaraijs/cure 1.0.3 → 1.0.5

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.
package/src/index.ts ADDED
@@ -0,0 +1,268 @@
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
+ // ═══════════════════════════════════════════════════════════════════════════════
25
+ // CORE CAPABILITIES
26
+ // ═══════════════════════════════════════════════════════════════════════════════
27
+
28
+ export {
29
+ CancerTreatmentCapabilityModule,
30
+ type CancerTreatmentOperationType,
31
+ type CancerPatient,
32
+ type CancerTreatmentOperation,
33
+ type CancerTreatmentResult,
34
+ type TreatmentProtocol,
35
+ type DrugTarget,
36
+ type ImmunotherapyProtocol,
37
+ type CombinationTherapy,
38
+ type CancerCureResult
39
+ } from './capabilities/cancerTreatmentCapability.js';
40
+
41
+ // ═══════════════════════════════════════════════════════════════════════════════
42
+ // REAL-WORLD ORCHESTRATION
43
+ // ═══════════════════════════════════════════════════════════════════════════════
44
+
45
+ import {
46
+ RealWorldOncologyService as RWOService,
47
+ createRealWorldOncologyService as createRWOService,
48
+ type RealWorldConfig as RWConfig,
49
+ type RealWorldPatient,
50
+ type ComprehensiveTreatmentPlan,
51
+ type TreatmentOutcome
52
+ } from './orchestrator/realWorldOncology.js';
53
+
54
+ export {
55
+ RWOService as RealWorldOncologyService,
56
+ createRWOService as createRealWorldOncologyService
57
+ };
58
+ export type {
59
+ RWConfig as RealWorldConfig,
60
+ RealWorldPatient,
61
+ ComprehensiveTreatmentPlan,
62
+ TreatmentOutcome
63
+ };
64
+
65
+ // ═══════════════════════════════════════════════════════════════════════════════
66
+ // INTEGRATIONS
67
+ // ═══════════════════════════════════════════════════════════════════════════════
68
+
69
+ // EHR Integration (HL7 FHIR)
70
+ export {
71
+ FHIRClient,
72
+ EpicFHIRClient,
73
+ CernerFHIRClient,
74
+ createFHIRClient,
75
+ type FHIRConfig,
76
+ type FHIRPatient,
77
+ type FHIRIdentifier,
78
+ type FHIRHumanName,
79
+ type FHIRAddress,
80
+ type FHIRContactPoint,
81
+ type FHIRCodeableConcept,
82
+ type FHIRCoding,
83
+ type FHIRExtension,
84
+ type FHIRCondition,
85
+ type FHIRObservation,
86
+ type FHIRQuantity,
87
+ type FHIRReference,
88
+ type FHIRMedicationRequest,
89
+ type FHIRDosage,
90
+ type FHIRDiagnosticReport,
91
+ type FHIRProcedure,
92
+ type FHIRBundle,
93
+ type FHIRResource,
94
+ type CancerDiagnosis,
95
+ type CancerBiomarkers,
96
+ type TreatmentHistory,
97
+ type AuditEvent
98
+ } from './integrations/ehr/index.js';
99
+
100
+ // Genomic Platforms
101
+ export {
102
+ FoundationMedicineClient,
103
+ GuardantHealthClient,
104
+ TempusClient,
105
+ UnifiedGenomicsService,
106
+ createGenomicClient,
107
+ type GenomicTestOrder,
108
+ type GenomicTestResult,
109
+ type GenomicVariant,
110
+ type CopyNumberAlteration,
111
+ type GeneFusion,
112
+ type GenomicBiomarker,
113
+ type MSIResult,
114
+ type TMBResult,
115
+ type HRDResult,
116
+ type LOHResult,
117
+ type TherapyMatch,
118
+ type ClinicalTrialMatch,
119
+ type GenomicPlatformConfig
120
+ } from './integrations/genomics/index.js';
121
+
122
+ // Clinical Trials
123
+ export {
124
+ ClinicalTrialsGovClient,
125
+ type ClinicalTrial,
126
+ type TrialStatus,
127
+ type TrialPhase,
128
+ type TrialIntervention,
129
+ type TrialEligibility,
130
+ type TrialLocation,
131
+ type TrialSponsor,
132
+ type TrialContact,
133
+ type TrialArm,
134
+ type TrialOutcome,
135
+ type BiomarkerRequirement,
136
+ type TrialSearchParams,
137
+ type TrialSearchResult,
138
+ type PatientProfile,
139
+ type TrialMatch
140
+ } from './integrations/clinicalTrials/index.js';
141
+
142
+ // ═══════════════════════════════════════════════════════════════════════════════
143
+ // COMPLIANCE
144
+ // ═══════════════════════════════════════════════════════════════════════════════
145
+
146
+ export {
147
+ HIPAAComplianceService,
148
+ type AuditLogEntry,
149
+ type AuditEventType,
150
+ type AuditAction,
151
+ type PatientConsent,
152
+ type ConsentType,
153
+ type DataCategory,
154
+ type ConsentPurpose,
155
+ type AccessPolicy,
156
+ type AccessCondition,
157
+ type AccessDecision,
158
+ type EncryptionConfig,
159
+ type EncryptedData,
160
+ type DataMaskingConfig
161
+ } from './compliance/index.js';
162
+
163
+ // ═══════════════════════════════════════════════════════════════════════════════
164
+ // MACHINE LEARNING
165
+ // ═══════════════════════════════════════════════════════════════════════════════
166
+
167
+ export {
168
+ OutcomePredictorService,
169
+ type PatientFeatures,
170
+ type TreatmentFeatures,
171
+ type ResponsePrediction,
172
+ type SurvivalPrediction,
173
+ type ToxicityPrediction,
174
+ type ResistancePrediction,
175
+ type TherapyRanking,
176
+ type MLModel,
177
+ type ModelRegistry
178
+ } from './ml/index.js';
179
+
180
+ // ═══════════════════════════════════════════════════════════════════════════════
181
+ // SAFETY
182
+ // ═══════════════════════════════════════════════════════════════════════════════
183
+
184
+ export {
185
+ DrugSafetyService,
186
+ type Drug,
187
+ type CYP450Profile,
188
+ type DrugInteraction,
189
+ type Contraindication,
190
+ type DosingGuideline,
191
+ type AllergyCheck,
192
+ type SafetyAlert,
193
+ type PatientSafetyProfile
194
+ } from './safety/index.js';
195
+
196
+ // ═══════════════════════════════════════════════════════════════════════════════
197
+ // VALIDATION
198
+ // ═══════════════════════════════════════════════════════════════════════════════
199
+
200
+ export {
201
+ RetrospectiveValidationService,
202
+ type ValidationPatient,
203
+ type SystemRecommendation,
204
+ type ValidationResult,
205
+ type CohortAnalysis
206
+ } from './validation/index.js';
207
+
208
+ // ═══════════════════════════════════════════════════════════════════════════════
209
+ // CLINICIAN SUPPORT
210
+ // ═══════════════════════════════════════════════════════════════════════════════
211
+
212
+ export {
213
+ ClinicalDecisionSupportService,
214
+ type ClinicalRecommendation,
215
+ type ClinicianOverride,
216
+ type OverrideCategory,
217
+ type TumorBoardCase,
218
+ type AlertAcknowledgment
219
+ } from './clinician/index.js';
220
+
221
+ // ═══════════════════════════════════════════════════════════════════════════════
222
+ // PATIENT PORTAL
223
+ // ═══════════════════════════════════════════════════════════════════════════════
224
+
225
+ export {
226
+ PatientPortalService,
227
+ type PatientAccount,
228
+ type PatientTreatmentSummary,
229
+ type SymptomReport,
230
+ type MedicationAdherenceLog,
231
+ type QualityOfLifeAssessment,
232
+ type PatientMessage,
233
+ type EducationalContent,
234
+ type AppointmentRequest
235
+ } from './patient/index.js';
236
+
237
+ // ═══════════════════════════════════════════════════════════════════════════════
238
+ // QUICK START FACTORY
239
+ // ═══════════════════════════════════════════════════════════════════════════════
240
+
241
+ /**
242
+ * Quick start factory to create a fully configured oncology service
243
+ *
244
+ * @example
245
+ * ```typescript
246
+ * import { createOncologyPlatform } from 'agi-core-cure-cancer';
247
+ *
248
+ * const platform = await createOncologyPlatform({
249
+ * ehr: {
250
+ * enabled: true,
251
+ * vendor: 'epic',
252
+ * baseUrl: 'https://epic.hospital.org/fhir',
253
+ * clientId: 'your-client-id'
254
+ * },
255
+ * genomics: {
256
+ * enabled: true,
257
+ * platforms: ['foundation', 'guardant']
258
+ * }
259
+ * });
260
+ *
261
+ * const plan = await platform.generateComprehensivePlan(patient, 'DR001');
262
+ * ```
263
+ */
264
+ export async function createOncologyPlatform(config?: Partial<RWConfig>): Promise<RWOService> {
265
+ const service = createRWOService(config);
266
+ await service.initialize();
267
+ return service;
268
+ }