You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Thanks for open-sourcing the code and your models! It's very useful!
I want to automatically replace the found dates (in the notes) with shifted dates (e.g. by 1 day). I tried to add a custom deid_strategy which returns the original dates and nothing for other entity types, and convert the date string to datetime, add 1 day and then convert it back to string (in TextDeid.__get_deid_text), using the code below. The model seems to find all types of dates including *days e.g. "Friday".
I am wondering if there is a better way to replace the dates automatically using your code?
As far as I can tell, the way you described it might be the approach I would use to replace/shift the dates.
You will have to modify the get_deid_text function to do the date processing you want. You might need to use rege if you don't want to shift dates like "Friday".
Unfortunately, I don't think there is an easier way, but if you do think there is a better way, please do let us know! Thank you.
Hi! Thanks for open-sourcing the code and your models! It's very useful!
I want to automatically replace the found dates (in the notes) with shifted dates (e.g. by 1 day). I tried to add a custom
deid_strategy
which returns the original dates and nothing for other entity types, and convert the date string to datetime, add 1 day and then convert it back to string (inTextDeid.__get_deid_text
), using the code below. The model seems to find all types of dates including *days e.g. "Friday".I am wondering if there is a better way to replace the dates automatically using your code?
The text was updated successfully, but these errors were encountered: