rcai commited on
Commit
3fa4af9
·
verified ·
1 Parent(s): e62e621

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +13 -0
test.py CHANGED
@@ -379,3 +379,16 @@ Please structure the output like this:
379
  "Country": "Egypt"
380
  }
381
  ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
379
  "Country": "Egypt"
380
  }
381
  ]
382
+
383
+
384
+ Step 11. **HARD CONSTRAINT – Secondary cancer aggregation (windowed by the selected progression event)**
385
+ • For EACH selected tumor-response event, collect the DISTINCT secondary cancer types whose diagnosis dates fall within a ±30-day window around that event’s date_of_disease_progression_assessment.
386
+ • Let D be the anchor date for the event:
387
+ - If date_of_disease_progression_assessment is present, D = that date.
388
+ - If it is null, determine D using Step 13 (start_date_of_treatment or date_of_secondary_cancer_diagnosis fallback for that event).
389
+ • Window is inclusive: [D−30 days, D+30 days].
390
+ • Output these types in an ARRAY field named secondary_cancer_types_within_30d_of_progression (empty array if none).
391
+
392
+
393
+ "secondary_cancer_types_within_30d_of_progression": []
394
+