@erosolaraijs/cure 2.3.0 → 2.4.0

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 (68) hide show
  1. package/README.md +321 -26
  2. package/dist/bin/cure.js +114 -1
  3. package/dist/bin/cure.js.map +1 -1
  4. package/dist/capabilities/clinicalTrialMatchingModule.d.ts +150 -0
  5. package/dist/capabilities/clinicalTrialMatchingModule.d.ts.map +1 -0
  6. package/dist/capabilities/clinicalTrialMatchingModule.js +436 -0
  7. package/dist/capabilities/clinicalTrialMatchingModule.js.map +1 -0
  8. package/dist/capabilities/cureValidationFramework.d.ts +195 -0
  9. package/dist/capabilities/cureValidationFramework.d.ts.map +1 -0
  10. package/dist/capabilities/cureValidationFramework.js +577 -0
  11. package/dist/capabilities/cureValidationFramework.js.map +1 -0
  12. package/dist/capabilities/emergencyOncology.d.ts +97 -0
  13. package/dist/capabilities/emergencyOncology.d.ts.map +1 -0
  14. package/dist/capabilities/emergencyOncology.js +1824 -0
  15. package/dist/capabilities/emergencyOncology.js.map +1 -0
  16. package/dist/capabilities/index.d.ts +11 -0
  17. package/dist/capabilities/index.d.ts.map +1 -1
  18. package/dist/capabilities/index.js +22 -0
  19. package/dist/capabilities/index.js.map +1 -1
  20. package/dist/capabilities/multimodalOncologyModule.d.ts +149 -0
  21. package/dist/capabilities/multimodalOncologyModule.d.ts.map +1 -0
  22. package/dist/capabilities/multimodalOncologyModule.js +701 -0
  23. package/dist/capabilities/multimodalOncologyModule.js.map +1 -0
  24. package/dist/capabilities/palliativeCareModule.d.ts +216 -0
  25. package/dist/capabilities/palliativeCareModule.d.ts.map +1 -0
  26. package/dist/capabilities/palliativeCareModule.js +1160 -0
  27. package/dist/capabilities/palliativeCareModule.js.map +1 -0
  28. package/dist/capabilities/precisionMedicineModule.d.ts +151 -0
  29. package/dist/capabilities/precisionMedicineModule.d.ts.map +1 -0
  30. package/dist/capabilities/precisionMedicineModule.js +758 -0
  31. package/dist/capabilities/precisionMedicineModule.js.map +1 -0
  32. package/dist/capabilities/specialPopulationsModule.d.ts +126 -0
  33. package/dist/capabilities/specialPopulationsModule.d.ts.map +1 -0
  34. package/dist/capabilities/specialPopulationsModule.js +574 -0
  35. package/dist/capabilities/specialPopulationsModule.js.map +1 -0
  36. package/dist/capabilities/survivorshipManagement.d.ts +178 -0
  37. package/dist/capabilities/survivorshipManagement.d.ts.map +1 -0
  38. package/dist/capabilities/survivorshipManagement.js +983 -0
  39. package/dist/capabilities/survivorshipManagement.js.map +1 -0
  40. package/dist/capabilities/treatmentSequencing.d.ts +140 -0
  41. package/dist/capabilities/treatmentSequencing.d.ts.map +1 -0
  42. package/dist/capabilities/treatmentSequencing.js +1689 -0
  43. package/dist/capabilities/treatmentSequencing.js.map +1 -0
  44. package/dist/capabilities/universalHealthFramework.d.ts +108 -0
  45. package/dist/capabilities/universalHealthFramework.d.ts.map +1 -0
  46. package/dist/capabilities/universalHealthFramework.js +615 -0
  47. package/dist/capabilities/universalHealthFramework.js.map +1 -0
  48. package/dist/compliance/hipaa.d.ts.map +1 -1
  49. package/dist/compliance/hipaa.js +7 -16
  50. package/dist/compliance/hipaa.js.map +1 -1
  51. package/dist/tools/index.d.ts +31 -0
  52. package/dist/tools/index.d.ts.map +1 -0
  53. package/dist/tools/index.js +1373 -0
  54. package/dist/tools/index.js.map +1 -0
  55. package/package.json +3 -2
  56. package/src/bin/cure.ts +130 -1
  57. package/src/capabilities/clinicalTrialMatchingModule.ts +600 -0
  58. package/src/capabilities/emergencyOncology.ts +1945 -0
  59. package/src/capabilities/index.ts +181 -0
  60. package/src/capabilities/multimodalOncologyModule.ts +873 -0
  61. package/src/capabilities/palliativeCareModule.ts +1438 -0
  62. package/src/capabilities/precisionMedicineModule.ts +952 -0
  63. package/src/capabilities/specialPopulationsModule.ts +711 -0
  64. package/src/capabilities/survivorshipManagement.ts +1213 -0
  65. package/src/capabilities/treatmentSequencing.ts +1878 -0
  66. package/src/capabilities/universalHealthFramework.ts +739 -0
  67. package/src/compliance/hipaa.ts +7 -15
  68. package/src/tools/index.ts +1628 -0
@@ -0,0 +1,1213 @@
1
+ /**
2
+ * Comprehensive Cancer Survivorship and Late Effects Management
3
+ *
4
+ * ╔═══════════════════════════════════════════════════════════════════════════════╗
5
+ * ║ SURVIVORSHIP CARE - ENSURING CURE AND QUALITY OF LIFE ║
6
+ * ╠═══════════════════════════════════════════════════════════════════════════════╣
7
+ * ║ This module provides: ║
8
+ * ║ - Surveillance protocols for recurrence detection ║
9
+ * ║ - Late effects screening and management ║
10
+ * ║ - Secondary malignancy prevention ║
11
+ * ║ - Psychosocial support frameworks ║
12
+ * ║ - Fertility and family planning guidance ║
13
+ * ║ - Rehabilitation and quality of life optimization ║
14
+ * ╚═══════════════════════════════════════════════════════════════════════════════╝
15
+ */
16
+
17
+ // ═══════════════════════════════════════════════════════════════════════════════
18
+ // SURVIVORSHIP DEFINITIONS
19
+ // ═══════════════════════════════════════════════════════════════════════════════
20
+
21
+ export interface SurvivorshipCareplan {
22
+ cancerType: string;
23
+ stage: string;
24
+ treatmentReceived: TreatmentSummary;
25
+ surveillanceProtocol: SurveillanceProtocol;
26
+ lateEffectsScreening: LateEffectsScreening[];
27
+ secondaryMalignancyScreening: SecondaryMalignancyScreen[];
28
+ psychosocialSupport: PsychosocialPlan;
29
+ rehabilitationNeeds: RehabilitationPlan;
30
+ healthMaintenanceRecommendations: HealthMaintenance[];
31
+ }
32
+
33
+ export interface TreatmentSummary {
34
+ surgery: SurgicalSummary[];
35
+ radiation: RadiationSummary[];
36
+ systemicTherapy: SystemicTherapySummary[];
37
+ transplant?: TransplantSummary;
38
+ otherTreatments: string[];
39
+ }
40
+
41
+ export interface SurgicalSummary {
42
+ procedure: string;
43
+ date: string;
44
+ findings: string;
45
+ complications: string[];
46
+ longTermConsiderations: string[];
47
+ }
48
+
49
+ export interface RadiationSummary {
50
+ site: string;
51
+ modality: 'EBRT' | 'IMRT' | 'SBRT' | 'Proton' | 'Brachytherapy' | 'TBI';
52
+ totalDose: string;
53
+ fractions: number;
54
+ completionDate: string;
55
+ acuteToxicities: string[];
56
+ expectedLateEffects: string[];
57
+ }
58
+
59
+ export interface SystemicTherapySummary {
60
+ agentClass: string;
61
+ specificAgents: string[];
62
+ cumulativeDoses?: Record<string, string>;
63
+ duration: string;
64
+ completionDate: string;
65
+ significantToxicities: string[];
66
+ expectedLateEffects: string[];
67
+ }
68
+
69
+ export interface TransplantSummary {
70
+ type: 'Autologous' | 'Allogeneic';
71
+ source: 'Bone Marrow' | 'PBSC' | 'Cord Blood';
72
+ date: string;
73
+ conditioning: string;
74
+ gvhdHistory?: string;
75
+ immuneReconstitution: string;
76
+ }
77
+
78
+ export interface SurveillanceProtocol {
79
+ recurrenceRisk: 'Low' | 'Intermediate' | 'High';
80
+ duration: string;
81
+ visits: SurveillanceVisit[];
82
+ discontinuationCriteria: string[];
83
+ }
84
+
85
+ export interface SurveillanceVisit {
86
+ timing: string;
87
+ components: SurveillanceComponent[];
88
+ purpose: string;
89
+ }
90
+
91
+ export interface SurveillanceComponent {
92
+ type: 'History/Physical' | 'Laboratory' | 'Imaging' | 'Endoscopy' | 'Biomarker';
93
+ specific: string;
94
+ frequency: string;
95
+ rationale: string;
96
+ }
97
+
98
+ export interface LateEffectsScreening {
99
+ system: OrganSystem;
100
+ risks: LateEffectRisk[];
101
+ screeningProtocol: ScreeningItem[];
102
+ managementGuidance: ManagementGuideline[];
103
+ }
104
+
105
+ export type OrganSystem =
106
+ | 'Cardiovascular'
107
+ | 'Pulmonary'
108
+ | 'Endocrine'
109
+ | 'Neurologic'
110
+ | 'Musculoskeletal'
111
+ | 'Renal'
112
+ | 'Hepatic'
113
+ | 'Auditory'
114
+ | 'Ophthalmologic'
115
+ | 'Dermatologic'
116
+ | 'Reproductive'
117
+ | 'Immunologic'
118
+ | 'Gastrointestinal'
119
+ | 'Cognitive';
120
+
121
+ export interface LateEffectRisk {
122
+ effect: string;
123
+ causingAgents: string[];
124
+ riskLevel: 'Low' | 'Moderate' | 'High';
125
+ typicalOnset: string;
126
+ reversibility: 'Reversible' | 'Partially Reversible' | 'Irreversible' | 'Often Irreversible';
127
+ }
128
+
129
+ export interface ScreeningItem {
130
+ test: string;
131
+ startTiming: string;
132
+ frequency: string;
133
+ abnormalThreshold: string;
134
+ action: string;
135
+ }
136
+
137
+ export interface ManagementGuideline {
138
+ condition: string;
139
+ interventions: string[];
140
+ referralIndications: string[];
141
+ preventiveMeasures: string[];
142
+ }
143
+
144
+ export interface SecondaryMalignancyScreen {
145
+ malignancyType: string;
146
+ riskFactors: string[];
147
+ latencyPeriod: string;
148
+ screeningRecommendation: string;
149
+ frequency: string;
150
+ }
151
+
152
+ export interface PsychosocialPlan {
153
+ riskFactors: string[];
154
+ assessmentTools: string[];
155
+ supportResources: SupportResource[];
156
+ interventions: PsychosocialIntervention[];
157
+ }
158
+
159
+ export interface SupportResource {
160
+ type: string;
161
+ description: string;
162
+ accessInstructions: string;
163
+ }
164
+
165
+ export interface PsychosocialIntervention {
166
+ indication: string;
167
+ intervention: string;
168
+ expectedBenefit: string;
169
+ }
170
+
171
+ export interface RehabilitationPlan {
172
+ physicalNeeds: RehabilitationNeed[];
173
+ vocationalConsiderations: string[];
174
+ adaptiveEquipment: string[];
175
+ exerciseRecommendations: ExerciseRecommendation[];
176
+ }
177
+
178
+ export interface RehabilitationNeed {
179
+ area: string;
180
+ assessment: string;
181
+ intervention: string;
182
+ goals: string[];
183
+ }
184
+
185
+ export interface ExerciseRecommendation {
186
+ type: 'Aerobic' | 'Resistance' | 'Flexibility' | 'Balance';
187
+ frequency: string;
188
+ intensity: string;
189
+ duration: string;
190
+ precautions: string[];
191
+ benefits: string[];
192
+ }
193
+
194
+ export interface HealthMaintenance {
195
+ category: string;
196
+ recommendations: string[];
197
+ frequency: string;
198
+ }
199
+
200
+ // ═══════════════════════════════════════════════════════════════════════════════
201
+ // SURVEILLANCE PROTOCOLS BY CANCER TYPE
202
+ // ═══════════════════════════════════════════════════════════════════════════════
203
+
204
+ export const SURVEILLANCE_PROTOCOLS: Record<string, SurveillanceProtocol> = {
205
+ 'breast-early-stage': {
206
+ recurrenceRisk: 'Low',
207
+ duration: '10 years after diagnosis, then routine care',
208
+ visits: [
209
+ {
210
+ timing: 'Year 1-3: Every 3-6 months',
211
+ components: [
212
+ { type: 'History/Physical', specific: 'Symptom review, breast/chest wall/axilla exam', frequency: 'Every 3-6 months', rationale: 'Early recurrence detection' },
213
+ { type: 'Imaging', specific: 'Mammogram', frequency: 'Annual', rationale: 'Ipsilateral (if BCT) and contralateral screening' },
214
+ { type: 'Laboratory', specific: 'Consider CBC, CMP if on endocrine therapy', frequency: 'Annual', rationale: 'Treatment monitoring' }
215
+ ],
216
+ purpose: 'Early recurrence detection, treatment adherence'
217
+ },
218
+ {
219
+ timing: 'Year 4-5: Every 6-12 months',
220
+ components: [
221
+ { type: 'History/Physical', specific: 'Symptom review, exam', frequency: 'Every 6-12 months', rationale: 'Recurrence surveillance' },
222
+ { type: 'Imaging', specific: 'Mammogram', frequency: 'Annual', rationale: 'Continued surveillance' }
223
+ ],
224
+ purpose: 'Ongoing surveillance'
225
+ },
226
+ {
227
+ timing: 'Year 6-10: Annual',
228
+ components: [
229
+ { type: 'History/Physical', specific: 'Annual exam', frequency: 'Annual', rationale: 'Late recurrence' },
230
+ { type: 'Imaging', specific: 'Mammogram', frequency: 'Annual', rationale: 'Continued surveillance' }
231
+ ],
232
+ purpose: 'Late recurrence detection'
233
+ },
234
+ {
235
+ timing: 'Beyond 10 years: Routine screening',
236
+ components: [
237
+ { type: 'Imaging', specific: 'Mammogram per guidelines', frequency: 'Annual', rationale: 'General breast cancer screening' }
238
+ ],
239
+ purpose: 'Transition to routine care'
240
+ }
241
+ ],
242
+ discontinuationCriteria: ['Patient preference', 'Limited life expectancy', 'Transition to palliative goals']
243
+ },
244
+
245
+ 'colorectal-stage-ii-iii': {
246
+ recurrenceRisk: 'Intermediate',
247
+ duration: '5 years, then routine screening',
248
+ visits: [
249
+ {
250
+ timing: 'Year 1-2: Every 3-6 months',
251
+ components: [
252
+ { type: 'History/Physical', specific: 'Symptom review, abdominal exam', frequency: 'Every 3-6 months', rationale: 'Early recurrence detection' },
253
+ { type: 'Biomarker', specific: 'CEA', frequency: 'Every 3-6 months', rationale: 'Rising CEA may indicate recurrence' },
254
+ { type: 'Imaging', specific: 'CT chest/abdomen/pelvis', frequency: 'Every 6-12 months', rationale: 'Metastatic surveillance' },
255
+ { type: 'Endoscopy', specific: 'Colonoscopy at 1 year post-surgery', frequency: 'Year 1', rationale: 'Anastomotic/metachronous lesions' }
256
+ ],
257
+ purpose: 'High-risk recurrence period'
258
+ },
259
+ {
260
+ timing: 'Year 3-5: Every 6 months',
261
+ components: [
262
+ { type: 'History/Physical', specific: 'Exam', frequency: 'Every 6 months', rationale: 'Continued surveillance' },
263
+ { type: 'Biomarker', specific: 'CEA', frequency: 'Every 6 months', rationale: 'Recurrence marker' },
264
+ { type: 'Imaging', specific: 'CT annually', frequency: 'Annual', rationale: 'Metastatic surveillance' },
265
+ { type: 'Endoscopy', specific: 'Colonoscopy at 3 years, 5 years', frequency: 'Year 3, 5', rationale: 'Metachronous lesions' }
266
+ ],
267
+ purpose: 'Continued surveillance'
268
+ },
269
+ {
270
+ timing: 'Beyond 5 years',
271
+ components: [
272
+ { type: 'Endoscopy', specific: 'Colonoscopy every 3-5 years', frequency: 'Every 3-5 years', rationale: 'Metachronous cancer screening' }
273
+ ],
274
+ purpose: 'Transition to routine colonoscopy surveillance'
275
+ }
276
+ ],
277
+ discontinuationCriteria: ['5 years without recurrence for intensive surveillance', 'Poor candidate for salvage therapy']
278
+ },
279
+
280
+ 'lung-nsclc-resected': {
281
+ recurrenceRisk: 'High',
282
+ duration: '5 years, potentially lifelong',
283
+ visits: [
284
+ {
285
+ timing: 'Year 1-2: Every 3-6 months',
286
+ components: [
287
+ { type: 'History/Physical', specific: 'Symptom review, pulmonary exam', frequency: 'Every 3-6 months', rationale: 'Early recurrence detection' },
288
+ { type: 'Imaging', specific: 'Chest CT with contrast', frequency: 'Every 6 months', rationale: 'Thoracic recurrence/second primary' }
289
+ ],
290
+ purpose: 'High recurrence risk period'
291
+ },
292
+ {
293
+ timing: 'Year 3-5: Every 6 months',
294
+ components: [
295
+ { type: 'History/Physical', specific: 'Exam', frequency: 'Every 6 months', rationale: 'Surveillance' },
296
+ { type: 'Imaging', specific: 'Chest CT', frequency: 'Every 6-12 months', rationale: 'Continued surveillance' }
297
+ ],
298
+ purpose: 'Ongoing recurrence risk'
299
+ },
300
+ {
301
+ timing: 'Beyond 5 years',
302
+ components: [
303
+ { type: 'Imaging', specific: 'Annual low-dose CT', frequency: 'Annual', rationale: 'Second primary lung cancer screening' }
304
+ ],
305
+ purpose: 'Second primary detection'
306
+ }
307
+ ],
308
+ discontinuationCriteria: ['Poor PS precluding further treatment', 'Patient preference']
309
+ },
310
+
311
+ 'lymphoma-hodgkin': {
312
+ recurrenceRisk: 'Low',
313
+ duration: '5 years, then long-term late effects monitoring',
314
+ visits: [
315
+ {
316
+ timing: 'Year 1-2: Every 3-6 months',
317
+ components: [
318
+ { type: 'History/Physical', specific: 'Symptom review (B symptoms), lymph node exam', frequency: 'Every 3-6 months', rationale: 'Early relapse detection' },
319
+ { type: 'Laboratory', specific: 'CBC, ESR, CMP', frequency: 'Every 3-6 months', rationale: 'Marrow function, inflammation' },
320
+ { type: 'Imaging', specific: 'CT or PET/CT', frequency: 'Every 6-12 months (consider less if low risk)', rationale: 'Recurrence detection' }
321
+ ],
322
+ purpose: 'Early relapse detection'
323
+ },
324
+ {
325
+ timing: 'Year 3-5: Every 6-12 months',
326
+ components: [
327
+ { type: 'History/Physical', specific: 'Exam', frequency: 'Every 6-12 months', rationale: 'Surveillance' },
328
+ { type: 'Laboratory', specific: 'CBC', frequency: 'Annual', rationale: 'Screen for secondary MDS/AML' }
329
+ ],
330
+ purpose: 'Reduced intensity surveillance'
331
+ },
332
+ {
333
+ timing: 'Beyond 5 years: Lifelong',
334
+ components: [
335
+ { type: 'History/Physical', specific: 'Annual with late effects focus', frequency: 'Annual', rationale: 'Late effects monitoring' }
336
+ ],
337
+ purpose: 'Late effects surveillance (cardiac, secondary malignancy)'
338
+ }
339
+ ],
340
+ discontinuationCriteria: ['Patient preference', 'Limited life expectancy from other causes']
341
+ },
342
+
343
+ 'testicular-germ-cell': {
344
+ recurrenceRisk: 'Intermediate',
345
+ duration: '10 years (most relapses in first 2 years)',
346
+ visits: [
347
+ {
348
+ timing: 'Year 1: Every 2-3 months',
349
+ components: [
350
+ { type: 'History/Physical', specific: 'Symptom review, testicular exam', frequency: 'Every 2-3 months', rationale: 'Early relapse detection' },
351
+ { type: 'Biomarker', specific: 'AFP, HCG, LDH', frequency: 'Every 2-3 months', rationale: 'Tumor marker surveillance' },
352
+ { type: 'Imaging', specific: 'CT abdomen/pelvis', frequency: 'Every 3-6 months (protocol dependent)', rationale: 'Retroperitoneal surveillance' }
353
+ ],
354
+ purpose: 'Highest risk period'
355
+ },
356
+ {
357
+ timing: 'Year 2-5: Every 3-6 months',
358
+ components: [
359
+ { type: 'History/Physical', specific: 'Exam', frequency: 'Every 3-6 months', rationale: 'Surveillance' },
360
+ { type: 'Biomarker', specific: 'Tumor markers', frequency: 'Every 3-6 months', rationale: 'Recurrence detection' },
361
+ { type: 'Imaging', specific: 'CT annually', frequency: 'Annual', rationale: 'Surveillance imaging' }
362
+ ],
363
+ purpose: 'Continued surveillance'
364
+ },
365
+ {
366
+ timing: 'Year 6-10: Annual',
367
+ components: [
368
+ { type: 'History/Physical', specific: 'Exam', frequency: 'Annual', rationale: 'Late relapse rare but possible' },
369
+ { type: 'Biomarker', specific: 'Tumor markers', frequency: 'Annual', rationale: 'Late relapse detection' }
370
+ ],
371
+ purpose: 'Late relapse surveillance'
372
+ }
373
+ ],
374
+ discontinuationCriteria: ['10 years without relapse', 'Patient preference']
375
+ },
376
+
377
+ 'melanoma-resected': {
378
+ recurrenceRisk: 'Intermediate',
379
+ duration: 'Lifelong (risk of late recurrence and new primaries)',
380
+ visits: [
381
+ {
382
+ timing: 'Year 1-2: Every 3-6 months',
383
+ components: [
384
+ { type: 'History/Physical', specific: 'Complete skin exam, lymph node exam', frequency: 'Every 3-6 months', rationale: 'Local/regional recurrence, new primaries' },
385
+ { type: 'Imaging', specific: 'Consider CT or PET/CT for stage IIB+ every 3-12 months', frequency: 'Per stage', rationale: 'Distant recurrence' }
386
+ ],
387
+ purpose: 'Early recurrence detection'
388
+ },
389
+ {
390
+ timing: 'Year 3-5: Every 6-12 months',
391
+ components: [
392
+ { type: 'History/Physical', specific: 'Skin and node exam', frequency: 'Every 6-12 months', rationale: 'Surveillance' },
393
+ { type: 'Imaging', specific: 'CT annually for high-risk', frequency: 'Annual', rationale: 'Distant surveillance' }
394
+ ],
395
+ purpose: 'Ongoing surveillance'
396
+ },
397
+ {
398
+ timing: 'Beyond 5 years: Lifelong',
399
+ components: [
400
+ { type: 'History/Physical', specific: 'Annual dermatologic exam', frequency: 'Annual', rationale: 'Second primaries, late recurrence' }
401
+ ],
402
+ purpose: 'Lifelong skin surveillance'
403
+ }
404
+ ],
405
+ discontinuationCriteria: ['Patient preference - skin exams should continue indefinitely']
406
+ }
407
+ };
408
+
409
+ // ═══════════════════════════════════════════════════════════════════════════════
410
+ // LATE EFFECTS SCREENING PROTOCOLS
411
+ // ═══════════════════════════════════════════════════════════════════════════════
412
+
413
+ export const LATE_EFFECTS_PROTOCOLS: LateEffectsScreening[] = [
414
+ {
415
+ system: 'Cardiovascular',
416
+ risks: [
417
+ {
418
+ effect: 'Cardiomyopathy',
419
+ causingAgents: ['Anthracyclines (doxorubicin, daunorubicin)', 'Trastuzumab', 'Chest radiation'],
420
+ riskLevel: 'High',
421
+ typicalOnset: 'Months to years after treatment',
422
+ reversibility: 'Partially Reversible'
423
+ },
424
+ {
425
+ effect: 'Coronary Artery Disease',
426
+ causingAgents: ['Chest/mediastinal radiation', 'Cisplatin', 'Hormonal therapy'],
427
+ riskLevel: 'Moderate',
428
+ typicalOnset: '5-20 years post-treatment',
429
+ reversibility: 'Irreversible'
430
+ },
431
+ {
432
+ effect: 'Valvular Heart Disease',
433
+ causingAgents: ['Chest radiation'],
434
+ riskLevel: 'Moderate',
435
+ typicalOnset: '10-20 years post-radiation',
436
+ reversibility: 'Irreversible'
437
+ },
438
+ {
439
+ effect: 'Arrhythmias',
440
+ causingAgents: ['Anthracyclines', 'Targeted therapies (ibrutinib)', 'Radiation'],
441
+ riskLevel: 'Moderate',
442
+ typicalOnset: 'Variable',
443
+ reversibility: 'Partially Reversible'
444
+ }
445
+ ],
446
+ screeningProtocol: [
447
+ {
448
+ test: 'Echocardiogram',
449
+ startTiming: 'Baseline, then 6-12 months after anthracycline completion',
450
+ frequency: 'Every 1-5 years based on risk and baseline function',
451
+ abnormalThreshold: 'LVEF <50% or decline >10% from baseline',
452
+ action: 'Cardio-oncology referral, consider ACE-I/ARB/BB'
453
+ },
454
+ {
455
+ test: 'Lipid Panel',
456
+ startTiming: 'Annually after treatment',
457
+ frequency: 'Annual',
458
+ abnormalThreshold: 'Per standard guidelines',
459
+ action: 'Lifestyle modification, statin if indicated'
460
+ },
461
+ {
462
+ test: 'Blood Pressure',
463
+ startTiming: 'Every visit',
464
+ frequency: 'Every visit',
465
+ abnormalThreshold: '≥130/80',
466
+ action: 'Lifestyle modification, antihypertensive therapy'
467
+ },
468
+ {
469
+ test: 'ECG',
470
+ startTiming: 'If arrhythmia symptoms',
471
+ frequency: 'As needed',
472
+ abnormalThreshold: 'Arrhythmia, prolonged QTc',
473
+ action: 'Cardiology referral'
474
+ }
475
+ ],
476
+ managementGuidance: [
477
+ {
478
+ condition: 'Asymptomatic LV dysfunction',
479
+ interventions: ['ACE-I or ARB', 'Beta-blocker', 'Exercise as tolerated'],
480
+ referralIndications: ['LVEF <40%', 'Symptoms of heart failure', 'Significant decline'],
481
+ preventiveMeasures: ['Cardiovascular risk factor modification', 'Exercise', 'Dexrazoxane during anthracycline (selected cases)']
482
+ },
483
+ {
484
+ condition: 'Heart failure',
485
+ interventions: ['Guideline-directed medical therapy', 'Heart failure specialist referral'],
486
+ referralIndications: ['All symptomatic HF'],
487
+ preventiveMeasures: ['Early detection and intervention']
488
+ }
489
+ ]
490
+ },
491
+ {
492
+ system: 'Pulmonary',
493
+ risks: [
494
+ {
495
+ effect: 'Pulmonary Fibrosis',
496
+ causingAgents: ['Bleomycin', 'Busulfan', 'Carmustine', 'Radiation to chest'],
497
+ riskLevel: 'Moderate',
498
+ typicalOnset: 'Months to years',
499
+ reversibility: 'Irreversible'
500
+ },
501
+ {
502
+ effect: 'Pneumonitis',
503
+ causingAgents: ['Immune checkpoint inhibitors', 'mTOR inhibitors', 'Radiation'],
504
+ riskLevel: 'Moderate',
505
+ typicalOnset: 'Weeks to months',
506
+ reversibility: 'Partially Reversible'
507
+ },
508
+ {
509
+ effect: 'Restrictive Lung Disease',
510
+ causingAgents: ['Chest radiation', 'Thoracic surgery'],
511
+ riskLevel: 'Moderate',
512
+ typicalOnset: 'Years',
513
+ reversibility: 'Irreversible'
514
+ }
515
+ ],
516
+ screeningProtocol: [
517
+ {
518
+ test: 'Pulmonary Function Tests (PFTs)',
519
+ startTiming: 'Baseline and post-treatment for high-risk agents',
520
+ frequency: 'Every 1-2 years for high-risk, as needed for others',
521
+ abnormalThreshold: 'DLCO <60% predicted or decline >15%',
522
+ action: 'Pulmonology referral, oxygen evaluation'
523
+ },
524
+ {
525
+ test: 'Symptom Assessment',
526
+ startTiming: 'Every visit',
527
+ frequency: 'Every visit',
528
+ abnormalThreshold: 'New dyspnea, cough, decreased exercise tolerance',
529
+ action: 'PFTs, imaging, pulmonology referral'
530
+ },
531
+ {
532
+ test: 'Chest X-ray or CT',
533
+ startTiming: 'If symptomatic',
534
+ frequency: 'As needed',
535
+ abnormalThreshold: 'New infiltrates, fibrosis, nodules',
536
+ action: 'Pulmonology referral'
537
+ }
538
+ ],
539
+ managementGuidance: [
540
+ {
541
+ condition: 'Pulmonary fibrosis',
542
+ interventions: ['Supportive care', 'Oxygen if hypoxic', 'Pulmonary rehabilitation'],
543
+ referralIndications: ['Symptomatic fibrosis', 'Hypoxia'],
544
+ preventiveMeasures: ['Avoid additional lung toxins', 'Smoking cessation', 'Influenza and pneumococcal vaccination']
545
+ }
546
+ ]
547
+ },
548
+ {
549
+ system: 'Endocrine',
550
+ risks: [
551
+ {
552
+ effect: 'Hypothyroidism',
553
+ causingAgents: ['Neck radiation', 'TKIs (sunitinib, sorafenib)', 'Immune checkpoint inhibitors', 'Radioiodine'],
554
+ riskLevel: 'High',
555
+ typicalOnset: 'Months to years',
556
+ reversibility: 'Irreversible'
557
+ },
558
+ {
559
+ effect: 'Hyperthyroidism (transient)',
560
+ causingAgents: ['Immune checkpoint inhibitors'],
561
+ riskLevel: 'Moderate',
562
+ typicalOnset: 'Weeks to months',
563
+ reversibility: 'Reversible'
564
+ },
565
+ {
566
+ effect: 'Adrenal Insufficiency',
567
+ causingAgents: ['Immune checkpoint inhibitors', 'Prolonged steroids', 'Brain radiation'],
568
+ riskLevel: 'Moderate',
569
+ typicalOnset: 'Variable',
570
+ reversibility: 'Often Irreversible'
571
+ },
572
+ {
573
+ effect: 'Hypogonadism',
574
+ causingAgents: ['Alkylating agents', 'GnRH agonists', 'Pelvic/gonadal radiation', 'Orchiectomy/oophorectomy'],
575
+ riskLevel: 'High',
576
+ typicalOnset: 'During or after treatment',
577
+ reversibility: 'Often Irreversible'
578
+ },
579
+ {
580
+ effect: 'Growth Hormone Deficiency',
581
+ causingAgents: ['Cranial radiation (>18 Gy)'],
582
+ riskLevel: 'High',
583
+ typicalOnset: 'Months to years',
584
+ reversibility: 'Irreversible'
585
+ },
586
+ {
587
+ effect: 'Diabetes/Glucose Intolerance',
588
+ causingAgents: ['Steroids', 'L-asparaginase', 'mTOR inhibitors', 'Pancreatectomy'],
589
+ riskLevel: 'Moderate',
590
+ typicalOnset: 'During treatment or after',
591
+ reversibility: 'Partially Reversible'
592
+ }
593
+ ],
594
+ screeningProtocol: [
595
+ {
596
+ test: 'TSH',
597
+ startTiming: 'Annually after neck radiation or thyroid-toxic therapy',
598
+ frequency: 'Annual',
599
+ abnormalThreshold: 'TSH elevated or suppressed',
600
+ action: 'Free T4, endocrine referral if needed'
601
+ },
602
+ {
603
+ test: 'Morning Cortisol',
604
+ startTiming: 'If fatigue, hypotension, or high-risk for adrenal insufficiency',
605
+ frequency: 'As indicated',
606
+ abnormalThreshold: '<3 mcg/dL indicates insufficiency, 3-15 needs stim test',
607
+ action: 'ACTH stimulation test, endocrine referral'
608
+ },
609
+ {
610
+ test: 'Sex Hormones (Testosterone, Estradiol, FSH, LH)',
611
+ startTiming: '6-12 months post-treatment if at risk',
612
+ frequency: 'Annual if abnormal or symptomatic',
613
+ abnormalThreshold: 'Low testosterone or estradiol with elevated FSH/LH',
614
+ action: 'Endocrine referral, consider hormone replacement'
615
+ },
616
+ {
617
+ test: 'HbA1c or Fasting Glucose',
618
+ startTiming: 'Annually',
619
+ frequency: 'Annual',
620
+ abnormalThreshold: 'HbA1c ≥5.7% or FG ≥100',
621
+ action: 'Diabetes prevention/management'
622
+ },
623
+ {
624
+ test: 'Bone Density (DEXA)',
625
+ startTiming: 'Baseline if on hormonal therapy or at risk',
626
+ frequency: 'Every 1-2 years',
627
+ abnormalThreshold: 'T-score ≤-2.5 (osteoporosis) or ≤-1.0 (osteopenia)',
628
+ action: 'Calcium/Vitamin D, consider bisphosphonate'
629
+ }
630
+ ],
631
+ managementGuidance: [
632
+ {
633
+ condition: 'Hypothyroidism',
634
+ interventions: ['Levothyroxine replacement'],
635
+ referralIndications: ['Complex dosing', 'Pregnancy'],
636
+ preventiveMeasures: ['Regular monitoring']
637
+ },
638
+ {
639
+ condition: 'Adrenal insufficiency',
640
+ interventions: ['Hydrocortisone replacement', 'Stress dosing education'],
641
+ referralIndications: ['All cases'],
642
+ preventiveMeasures: ['Medical alert bracelet']
643
+ },
644
+ {
645
+ condition: 'Premature ovarian insufficiency',
646
+ interventions: ['Hormone replacement therapy (if appropriate)', 'Calcium/Vitamin D'],
647
+ referralIndications: ['Fertility counseling', 'HRT management'],
648
+ preventiveMeasures: ['Fertility preservation before treatment']
649
+ }
650
+ ]
651
+ },
652
+ {
653
+ system: 'Cognitive',
654
+ risks: [
655
+ {
656
+ effect: 'Chemotherapy-related cognitive impairment ("chemo brain")',
657
+ causingAgents: ['Many chemotherapy agents', 'Hormonal therapy'],
658
+ riskLevel: 'Moderate',
659
+ typicalOnset: 'During or after treatment',
660
+ reversibility: 'Partially Reversible'
661
+ },
662
+ {
663
+ effect: 'Radiation-induced cognitive decline',
664
+ causingAgents: ['Whole brain radiation', 'Cranial radiation'],
665
+ riskLevel: 'High',
666
+ typicalOnset: 'Months to years',
667
+ reversibility: 'Irreversible'
668
+ }
669
+ ],
670
+ screeningProtocol: [
671
+ {
672
+ test: 'Cognitive symptom assessment',
673
+ startTiming: 'Every visit',
674
+ frequency: 'Every visit',
675
+ abnormalThreshold: 'Subjective complaints affecting function',
676
+ action: 'Formal neuropsychological testing'
677
+ },
678
+ {
679
+ test: 'Neuropsychological testing',
680
+ startTiming: 'If symptomatic or high-risk',
681
+ frequency: 'As indicated',
682
+ abnormalThreshold: 'Objective deficits',
683
+ action: 'Cognitive rehabilitation, neurology referral'
684
+ }
685
+ ],
686
+ managementGuidance: [
687
+ {
688
+ condition: 'Cognitive impairment',
689
+ interventions: ['Cognitive rehabilitation', 'Memory strategies', 'Occupational therapy', 'Consider methylphenidate or modafinil'],
690
+ referralIndications: ['Significant functional impairment'],
691
+ preventiveMeasures: ['Memantine during WBRT (limited evidence)', 'Hippocampal-sparing radiation techniques']
692
+ }
693
+ ]
694
+ },
695
+ {
696
+ system: 'Reproductive',
697
+ risks: [
698
+ {
699
+ effect: 'Infertility',
700
+ causingAgents: ['Alkylating agents', 'Pelvic/gonadal radiation', 'Gonadectomy'],
701
+ riskLevel: 'High',
702
+ typicalOnset: 'During treatment',
703
+ reversibility: 'Often Irreversible'
704
+ },
705
+ {
706
+ effect: 'Premature menopause',
707
+ causingAgents: ['Alkylating chemotherapy', 'Pelvic radiation', 'Oophorectomy'],
708
+ riskLevel: 'High',
709
+ typicalOnset: 'During or after treatment',
710
+ reversibility: 'Irreversible'
711
+ }
712
+ ],
713
+ screeningProtocol: [
714
+ {
715
+ test: 'FSH, LH, AMH (females), Testosterone (males)',
716
+ startTiming: '6-12 months post-treatment',
717
+ frequency: 'As needed',
718
+ abnormalThreshold: 'Elevated FSH, low AMH (females); low testosterone (males)',
719
+ action: 'Reproductive endocrinology referral if family planning desired'
720
+ },
721
+ {
722
+ test: 'Semen analysis (males)',
723
+ startTiming: '1-2 years post-treatment if fertility desired',
724
+ frequency: 'As needed',
725
+ abnormalThreshold: 'Azoospermia or oligospermia',
726
+ action: 'Urology/reproductive medicine referral'
727
+ }
728
+ ],
729
+ managementGuidance: [
730
+ {
731
+ condition: 'Infertility',
732
+ interventions: ['Assisted reproductive technologies', 'Use of cryopreserved gametes/embryos', 'Donor options', 'Adoption counseling'],
733
+ referralIndications: ['Desire for biological children'],
734
+ preventiveMeasures: ['Fertility preservation before treatment (sperm banking, oocyte/embryo cryopreservation)']
735
+ }
736
+ ]
737
+ },
738
+ {
739
+ system: 'Auditory',
740
+ risks: [
741
+ {
742
+ effect: 'Ototoxicity/Hearing Loss',
743
+ causingAgents: ['Cisplatin', 'Carboplatin (high doses)', 'Cranial radiation'],
744
+ riskLevel: 'High',
745
+ typicalOnset: 'During or after treatment',
746
+ reversibility: 'Irreversible'
747
+ },
748
+ {
749
+ effect: 'Tinnitus',
750
+ causingAgents: ['Platinum agents'],
751
+ riskLevel: 'Moderate',
752
+ typicalOnset: 'During treatment',
753
+ reversibility: 'Often Irreversible'
754
+ }
755
+ ],
756
+ screeningProtocol: [
757
+ {
758
+ test: 'Audiometry',
759
+ startTiming: 'Baseline and post-treatment for platinum recipients',
760
+ frequency: 'As needed based on symptoms',
761
+ abnormalThreshold: 'High-frequency hearing loss',
762
+ action: 'Audiology referral, hearing aids if indicated'
763
+ }
764
+ ],
765
+ managementGuidance: [
766
+ {
767
+ condition: 'Hearing loss',
768
+ interventions: ['Hearing aids', 'Cochlear implants (severe cases)', 'Communication strategies'],
769
+ referralIndications: ['Symptomatic hearing loss'],
770
+ preventiveMeasures: ['Sodium thiosulfate (pediatric, localized tumors)', 'Avoid noise exposure']
771
+ }
772
+ ]
773
+ }
774
+ ];
775
+
776
+ // ═══════════════════════════════════════════════════════════════════════════════
777
+ // SECONDARY MALIGNANCY SCREENING
778
+ // ═══════════════════════════════════════════════════════════════════════════════
779
+
780
+ export const SECONDARY_MALIGNANCY_SCREENING: SecondaryMalignancyScreen[] = [
781
+ {
782
+ malignancyType: 'Breast Cancer',
783
+ riskFactors: ['Chest/mediastinal radiation (especially <30 years old)', 'BRCA mutation carriers'],
784
+ latencyPeriod: '8-10 years post-radiation',
785
+ screeningRecommendation: 'Annual mammogram + breast MRI starting 8 years post-RT or age 25 (whichever later)',
786
+ frequency: 'Annual'
787
+ },
788
+ {
789
+ malignancyType: 'Thyroid Cancer',
790
+ riskFactors: ['Neck/chest radiation (especially pediatric)'],
791
+ latencyPeriod: '5-20 years',
792
+ screeningRecommendation: 'Annual thyroid exam, consider thyroid ultrasound',
793
+ frequency: 'Annual exam, US as indicated'
794
+ },
795
+ {
796
+ malignancyType: 'Therapy-related MDS/AML',
797
+ riskFactors: ['Alkylating agents', 'Topoisomerase II inhibitors', 'Prior chemoradiation'],
798
+ latencyPeriod: '2-10 years (alkylators 5-10y, topo II 2-3y)',
799
+ screeningRecommendation: 'Annual CBC with differential',
800
+ frequency: 'Annual for 10 years'
801
+ },
802
+ {
803
+ malignancyType: 'Lung Cancer',
804
+ riskFactors: ['Smoking history', 'Chest radiation', 'Alkylating agents'],
805
+ latencyPeriod: '5-20 years',
806
+ screeningRecommendation: 'Low-dose CT if smoking history meets criteria (separate from cancer surveillance)',
807
+ frequency: 'Annual LDCT per USPSTF criteria'
808
+ },
809
+ {
810
+ malignancyType: 'Colorectal Cancer',
811
+ riskFactors: ['Abdominal/pelvic radiation', 'Lynch syndrome'],
812
+ latencyPeriod: '10-15 years',
813
+ screeningRecommendation: 'Colonoscopy per guidelines, may start earlier if radiation exposure',
814
+ frequency: 'Every 5-10 years or per findings'
815
+ },
816
+ {
817
+ malignancyType: 'Skin Cancer (non-melanoma and melanoma)',
818
+ riskFactors: ['Radiation (any site)', 'Immunosuppression', 'PUVA therapy'],
819
+ latencyPeriod: 'Variable',
820
+ screeningRecommendation: 'Annual dermatologic exam',
821
+ frequency: 'Annual'
822
+ },
823
+ {
824
+ malignancyType: 'Sarcoma',
825
+ riskFactors: ['Prior radiation therapy'],
826
+ latencyPeriod: '10-20 years',
827
+ screeningRecommendation: 'Clinical exam of radiation field, imaging if symptomatic',
828
+ frequency: 'Every visit'
829
+ },
830
+ {
831
+ malignancyType: 'Bladder Cancer',
832
+ riskFactors: ['Cyclophosphamide', 'Ifosfamide'],
833
+ latencyPeriod: '5-15 years',
834
+ screeningRecommendation: 'Urinalysis for hematuria, cystoscopy if hematuria',
835
+ frequency: 'Annual urinalysis'
836
+ }
837
+ ];
838
+
839
+ // ═══════════════════════════════════════════════════════════════════════════════
840
+ // PSYCHOSOCIAL SUPPORT FRAMEWORK
841
+ // ═══════════════════════════════════════════════════════════════════════════════
842
+
843
+ export const PSYCHOSOCIAL_SUPPORT_FRAMEWORK: PsychosocialPlan = {
844
+ riskFactors: [
845
+ 'Young age at diagnosis',
846
+ 'Intensive treatment',
847
+ 'Visible disfigurement',
848
+ 'Pre-existing mental health conditions',
849
+ 'Limited social support',
850
+ 'Financial hardship',
851
+ 'Loss of employment',
852
+ 'Relationship difficulties',
853
+ 'Fertility impact'
854
+ ],
855
+ assessmentTools: [
856
+ 'Distress Thermometer',
857
+ 'PHQ-9 (depression)',
858
+ 'GAD-7 (anxiety)',
859
+ 'FACT-G (quality of life)',
860
+ 'FACIT-Fatigue',
861
+ 'Fear of Cancer Recurrence Inventory',
862
+ 'Cancer Worry Scale'
863
+ ],
864
+ supportResources: [
865
+ {
866
+ type: 'Individual Counseling',
867
+ description: 'One-on-one therapy with licensed mental health professional experienced in oncology',
868
+ accessInstructions: 'Referral through oncology social work or direct contact with cancer center psychology'
869
+ },
870
+ {
871
+ type: 'Support Groups',
872
+ description: 'Peer support groups for cancer survivors (in-person or virtual)',
873
+ accessInstructions: 'Cancer center resources, American Cancer Society, CancerCare'
874
+ },
875
+ {
876
+ type: 'Financial Counseling',
877
+ description: 'Assistance with insurance, disability, employment issues',
878
+ accessInstructions: 'Oncology social work, Patient Advocate Foundation'
879
+ },
880
+ {
881
+ type: 'Nutrition Counseling',
882
+ description: 'Registered dietitian specializing in oncology',
883
+ accessInstructions: 'Referral through oncology team'
884
+ },
885
+ {
886
+ type: 'Sexual Health Counseling',
887
+ description: 'Address treatment-related sexual dysfunction',
888
+ accessInstructions: 'Gynecologic oncology, urology, certified sexual health counselor'
889
+ },
890
+ {
891
+ type: 'Palliative Care/Supportive Care',
892
+ description: 'Symptom management and quality of life focus',
893
+ accessInstructions: 'Referral through oncology team'
894
+ },
895
+ {
896
+ type: 'Cancer Rehabilitation',
897
+ description: 'Physical, occupational, speech therapy for cancer-related impairments',
898
+ accessInstructions: 'Physiatry referral, cancer rehabilitation programs'
899
+ }
900
+ ],
901
+ interventions: [
902
+ {
903
+ indication: 'Depression (PHQ-9 ≥10)',
904
+ intervention: 'Psychotherapy (CBT, supportive), consider antidepressant medication',
905
+ expectedBenefit: 'Improved mood, functioning, quality of life'
906
+ },
907
+ {
908
+ indication: 'Anxiety (GAD-7 ≥10)',
909
+ intervention: 'CBT, relaxation training, consider anxiolytic medication',
910
+ expectedBenefit: 'Reduced anxiety, improved coping'
911
+ },
912
+ {
913
+ indication: 'Fear of recurrence',
914
+ intervention: 'Fear of Cancer Recurrence CBT, mindfulness-based interventions',
915
+ expectedBenefit: 'Reduced fear, improved quality of life'
916
+ },
917
+ {
918
+ indication: 'Fatigue',
919
+ intervention: 'Exercise program, sleep hygiene, energy conservation, consider methylphenidate',
920
+ expectedBenefit: 'Improved energy, function'
921
+ },
922
+ {
923
+ indication: 'Sleep disturbance',
924
+ intervention: 'CBT-I (cognitive behavioral therapy for insomnia), sleep hygiene',
925
+ expectedBenefit: 'Improved sleep quality'
926
+ },
927
+ {
928
+ indication: 'Body image concerns',
929
+ intervention: 'Individual therapy, support groups, prosthetics/reconstruction counseling',
930
+ expectedBenefit: 'Improved self-image, adjustment'
931
+ }
932
+ ]
933
+ };
934
+
935
+ // ═══════════════════════════════════════════════════════════════════════════════
936
+ // EXERCISE AND REHABILITATION
937
+ // ═══════════════════════════════════════════════════════════════════════════════
938
+
939
+ export const EXERCISE_RECOMMENDATIONS: ExerciseRecommendation[] = [
940
+ {
941
+ type: 'Aerobic',
942
+ frequency: '3-5 days per week',
943
+ intensity: 'Moderate intensity (64-76% max HR, somewhat hard)',
944
+ duration: '150 minutes/week moderate or 75 minutes/week vigorous',
945
+ precautions: [
946
+ 'Start slowly if deconditioned',
947
+ 'Avoid high-impact if bone metastases or lymphedema',
948
+ 'Monitor for cardiac symptoms if prior cardiotoxic therapy',
949
+ 'May need medical clearance for vigorous exercise'
950
+ ],
951
+ benefits: [
952
+ 'Reduced fatigue',
953
+ 'Improved cardiovascular fitness',
954
+ 'Better quality of life',
955
+ 'Reduced risk of recurrence (breast, colon)',
956
+ 'Improved mood and sleep'
957
+ ]
958
+ },
959
+ {
960
+ type: 'Resistance',
961
+ frequency: '2-3 days per week',
962
+ intensity: '60-80% 1-rep max, 8-12 repetitions, 2-3 sets',
963
+ duration: '20-30 minutes per session',
964
+ precautions: [
965
+ 'Avoid heavy lifting if lymphedema risk (may do gradual progressive)',
966
+ 'Avoid if severe thrombocytopenia (<50K)',
967
+ 'Modify if bone metastases',
968
+ 'Proper form to prevent injury'
969
+ ],
970
+ benefits: [
971
+ 'Maintain/improve muscle mass',
972
+ 'Improved functional capacity',
973
+ 'Reduced fatigue',
974
+ 'Improved bone density'
975
+ ]
976
+ },
977
+ {
978
+ type: 'Flexibility',
979
+ frequency: 'Daily or most days',
980
+ intensity: 'Stretch to point of mild discomfort, not pain',
981
+ duration: '10-15 minutes',
982
+ precautions: [
983
+ 'Gentle stretching post-surgery',
984
+ 'Avoid overstretching if radiation fibrosis'
985
+ ],
986
+ benefits: [
987
+ 'Improved range of motion',
988
+ 'Reduced stiffness',
989
+ 'Improved posture'
990
+ ]
991
+ },
992
+ {
993
+ type: 'Balance',
994
+ frequency: '2-3 days per week',
995
+ intensity: 'Challenging but safe',
996
+ duration: '10-15 minutes',
997
+ precautions: [
998
+ 'Use support if peripheral neuropathy',
999
+ 'Fall prevention strategies'
1000
+ ],
1001
+ benefits: [
1002
+ 'Reduced fall risk (especially if neuropathy)',
1003
+ 'Improved function'
1004
+ ]
1005
+ }
1006
+ ];
1007
+
1008
+ // ═══════════════════════════════════════════════════════════════════════════════
1009
+ // HEALTH MAINTENANCE RECOMMENDATIONS
1010
+ // ═══════════════════════════════════════════════════════════════════════════════
1011
+
1012
+ export const HEALTH_MAINTENANCE_RECOMMENDATIONS: HealthMaintenance[] = [
1013
+ {
1014
+ category: 'Vaccinations',
1015
+ recommendations: [
1016
+ 'Annual influenza vaccine',
1017
+ 'Pneumococcal vaccine (PCV20 or PCV15 + PPSV23)',
1018
+ 'COVID-19 vaccine series and boosters',
1019
+ 'Shingrix (recombinant zoster vaccine) - 2 doses',
1020
+ 'Tdap and Td boosters',
1021
+ 'Hepatitis B if not immune',
1022
+ 'HPV vaccine if eligible (≤26, or 27-45 with shared decision making)'
1023
+ ],
1024
+ frequency: 'Per CDC guidelines; annual flu, others per schedule'
1025
+ },
1026
+ {
1027
+ category: 'Lifestyle Modifications',
1028
+ recommendations: [
1029
+ 'Smoking cessation (if applicable)',
1030
+ 'Limit alcohol (≤1 drink/day women, ≤2 drinks/day men)',
1031
+ 'Maintain healthy weight (BMI 18.5-24.9)',
1032
+ 'Heart-healthy diet (Mediterranean, DASH)',
1033
+ 'Regular physical activity (per exercise recommendations)',
1034
+ 'Sun protection (sunscreen, protective clothing)',
1035
+ 'Stress management techniques'
1036
+ ],
1037
+ frequency: 'Ongoing'
1038
+ },
1039
+ {
1040
+ category: 'Age-appropriate Cancer Screening',
1041
+ recommendations: [
1042
+ 'Breast: Mammography per guidelines (may be modified based on prior treatment)',
1043
+ 'Colorectal: Colonoscopy or alternative per guidelines',
1044
+ 'Cervical: Pap/HPV testing per guidelines if cervix present',
1045
+ 'Prostate: Shared decision making per guidelines',
1046
+ 'Lung: Low-dose CT if meets USPSTF criteria',
1047
+ 'Skin: Annual dermatologic exam (especially if prior treatment)'
1048
+ ],
1049
+ frequency: 'Per age-appropriate guidelines'
1050
+ },
1051
+ {
1052
+ category: 'Bone Health',
1053
+ recommendations: [
1054
+ 'Calcium 1000-1200 mg/day (diet + supplements if needed)',
1055
+ 'Vitamin D 600-800 IU/day (may need higher if deficient)',
1056
+ 'Weight-bearing exercise',
1057
+ 'DEXA scan if on aromatase inhibitors, GnRH agonists, or steroids',
1058
+ 'Bisphosphonate or denosumab if osteoporosis'
1059
+ ],
1060
+ frequency: 'Daily supplements; DEXA every 1-2 years if at risk'
1061
+ },
1062
+ {
1063
+ category: 'Cardiovascular Health',
1064
+ recommendations: [
1065
+ 'Blood pressure monitoring and control',
1066
+ 'Lipid management per guidelines',
1067
+ 'Diabetes prevention/management',
1068
+ 'Aspirin if indicated for cardiovascular prevention',
1069
+ 'Cardiac-protective diet'
1070
+ ],
1071
+ frequency: 'Regular monitoring per guidelines'
1072
+ },
1073
+ {
1074
+ category: 'Dental Health',
1075
+ recommendations: [
1076
+ 'Regular dental care',
1077
+ 'Dental evaluation before bisphosphonates/denosumab',
1078
+ 'Avoid invasive dental procedures on bisphosphonates/denosumab (or discuss with oncology)',
1079
+ 'Manage xerostomia if radiation to H&N'
1080
+ ],
1081
+ frequency: 'Every 6-12 months'
1082
+ }
1083
+ ];
1084
+
1085
+ // ═══════════════════════════════════════════════════════════════════════════════
1086
+ // SURVIVORSHIP CARE ENGINE
1087
+ // ═══════════════════════════════════════════════════════════════════════════════
1088
+
1089
+ export class SurvivorshipCareEngine {
1090
+ getSurveillanceProtocol(cancerType: string): SurveillanceProtocol | undefined {
1091
+ return SURVEILLANCE_PROTOCOLS[cancerType];
1092
+ }
1093
+
1094
+ getLateEffectsScreening(treatments: string[]): LateEffectsScreening[] {
1095
+ const relevantScreenings: LateEffectsScreening[] = [];
1096
+
1097
+ for (const screening of LATE_EFFECTS_PROTOCOLS) {
1098
+ const hasRelevantExposure = screening.risks.some(risk =>
1099
+ risk.causingAgents.some(agent =>
1100
+ treatments.some(t => t.toLowerCase().includes(agent.toLowerCase()) ||
1101
+ agent.toLowerCase().includes(t.toLowerCase()))
1102
+ )
1103
+ );
1104
+ if (hasRelevantExposure) {
1105
+ relevantScreenings.push(screening);
1106
+ }
1107
+ }
1108
+
1109
+ return relevantScreenings;
1110
+ }
1111
+
1112
+ getSecondaryMalignancyScreening(treatmentHistory: { chemotherapy: string[]; radiation: string[] }): SecondaryMalignancyScreen[] {
1113
+ const relevantScreens: SecondaryMalignancyScreen[] = [];
1114
+
1115
+ for (const screen of SECONDARY_MALIGNANCY_SCREENING) {
1116
+ const hasRisk = screen.riskFactors.some(factor => {
1117
+ const factorLower = factor.toLowerCase();
1118
+ const hasChemoRisk = treatmentHistory.chemotherapy.some(c =>
1119
+ factorLower.includes(c.toLowerCase()) || c.toLowerCase().includes(factorLower)
1120
+ );
1121
+ const hasRadRisk = treatmentHistory.radiation.some(r =>
1122
+ factorLower.includes(r.toLowerCase()) || r.toLowerCase().includes(factorLower)
1123
+ );
1124
+ return hasChemoRisk || hasRadRisk;
1125
+ });
1126
+ if (hasRisk) {
1127
+ relevantScreens.push(screen);
1128
+ }
1129
+ }
1130
+
1131
+ return relevantScreens;
1132
+ }
1133
+
1134
+ generateSurvivorshipCarePlan(
1135
+ cancerType: string,
1136
+ stage: string,
1137
+ treatmentSummary: TreatmentSummary
1138
+ ): SurvivorshipCareplan {
1139
+ const surveillanceKey = `${cancerType.toLowerCase().replace(/\s+/g, '-')}-${stage.toLowerCase().replace(/\s+/g, '-')}`;
1140
+ const surveillanceProtocol = SURVEILLANCE_PROTOCOLS[surveillanceKey] || {
1141
+ recurrenceRisk: 'Intermediate' as const,
1142
+ duration: 'Per oncologist recommendation',
1143
+ visits: [],
1144
+ discontinuationCriteria: []
1145
+ };
1146
+
1147
+ // Collect all treatment agents for late effects screening
1148
+ const allAgents: string[] = [];
1149
+ for (const sys of treatmentSummary.systemicTherapy) {
1150
+ allAgents.push(...sys.specificAgents, sys.agentClass);
1151
+ }
1152
+ for (const rad of treatmentSummary.radiation) {
1153
+ allAgents.push(rad.site, rad.modality);
1154
+ }
1155
+
1156
+ const lateEffectsScreening = this.getLateEffectsScreening(allAgents);
1157
+
1158
+ const chemoAgents = treatmentSummary.systemicTherapy.flatMap(s => s.specificAgents);
1159
+ const radSites = treatmentSummary.radiation.map(r => r.site);
1160
+ const secondaryMalignancyScreening = this.getSecondaryMalignancyScreening({
1161
+ chemotherapy: chemoAgents,
1162
+ radiation: radSites
1163
+ });
1164
+
1165
+ const rehabilitationNeeds: RehabilitationPlan = {
1166
+ physicalNeeds: [],
1167
+ vocationalConsiderations: [
1168
+ 'Discuss return to work timeline',
1169
+ 'May need workplace accommodations',
1170
+ 'Consider vocational rehabilitation if career change needed'
1171
+ ],
1172
+ adaptiveEquipment: [],
1173
+ exerciseRecommendations: EXERCISE_RECOMMENDATIONS
1174
+ };
1175
+
1176
+ // Add specific rehab needs based on treatment
1177
+ if (treatmentSummary.surgery.some(s => s.procedure.toLowerCase().includes('mastectomy'))) {
1178
+ rehabilitationNeeds.physicalNeeds.push({
1179
+ area: 'Upper extremity',
1180
+ assessment: 'Range of motion, strength, lymphedema risk',
1181
+ intervention: 'Physical therapy, lymphedema precautions',
1182
+ goals: ['Full shoulder ROM', 'Lymphedema prevention', 'Return to function']
1183
+ });
1184
+ }
1185
+
1186
+ return {
1187
+ cancerType,
1188
+ stage,
1189
+ treatmentReceived: treatmentSummary,
1190
+ surveillanceProtocol,
1191
+ lateEffectsScreening,
1192
+ secondaryMalignancyScreening,
1193
+ psychosocialSupport: PSYCHOSOCIAL_SUPPORT_FRAMEWORK,
1194
+ rehabilitationNeeds,
1195
+ healthMaintenanceRecommendations: HEALTH_MAINTENANCE_RECOMMENDATIONS
1196
+ };
1197
+ }
1198
+
1199
+ getExerciseRecommendations(): ExerciseRecommendation[] {
1200
+ return EXERCISE_RECOMMENDATIONS;
1201
+ }
1202
+
1203
+ getHealthMaintenanceRecommendations(): HealthMaintenance[] {
1204
+ return HEALTH_MAINTENANCE_RECOMMENDATIONS;
1205
+ }
1206
+
1207
+ getPsychosocialResources(): PsychosocialPlan {
1208
+ return PSYCHOSOCIAL_SUPPORT_FRAMEWORK;
1209
+ }
1210
+ }
1211
+
1212
+ // Export singleton instance
1213
+ export const survivorshipCareEngine = new SurvivorshipCareEngine();