imsweb / algorithms

Java implementation of cancer-related algorithms (NHIA, NAPIIA, Survival Time, etc...)
Other
6 stars 6 forks source link

Add new algorithm to compute the duration between DX date and Initial Treatment date #148

Closed depryf closed 2 years ago

depryf commented 2 years ago

This will be a SEER-owned algorithm. It will be used for the SEER submission.

The algorithm will use the Date of Diagnosis [390] and Date Initial RX SEER [1260] and compute a duration in days between the two.

000-996 - value in days 997 - 997+ days 998 - no treatment 999 - treatment could not be calculated due to unknown dates

Item Name: Days from Diagnosis to Treatment Item XML ID: daysToTreatment Item Number: to be provided by the library caller Length: 3 Type: digits (left-zero-padded)

depryf commented 2 years ago

The requirements changed a bit.

000-997 - value in days 998 - 998+ days 999 - value could not be calculated

This is available with version 4.1 of the library.