Open sujaypatil96 opened 7 months ago
@sujaypatil96 we hacked on this a bit today. We observed that in the current code, survival time for Alive patients was often negative.
We think that is because last_follow_up means days since diagnosis (not days since birth): Via: https://docs.gdc.cancer.gov/Data_Dictionary/viewer/#?view=table-definition-view&id=diagnosis&anchor=days_to_last_follow_up "days_to_last_follow_up: Time interval from the date of last follow up to the date of initial pathologic diagnosis, represented as a calculated number of days."
So, we've changed the code accordingly. Does this look correct to you?
@justaddcoffee yup, the code makes sense to me. All that needs to be returned is the "days_to_last_follow_up".
Do we need to comment out the code that makes calls to _process_vital_status() here?
@sujaypatil96 is _process_vital_status() not being used? I just ran the code through a debugger and it seems this is still the way we are populating vital status for the phenopacket, right?
Notes from discussion with @justaddcoffee on 4/16.
If person/patient is "Alive" then we need a way of populating survival time in days, and we can do that as follows:
In the GDC API, the field that corresponds to each of the above variables is: