I have a hospital based dataset which conatins information on patient details. Right from their visit, drugs, diagnosis, lab tests, and death info etc.
So, now I would like to compute their follow up time from the date of the 1st visit to last visit (when they visited hospital for the last time).
How can I do this? I couldn't find any tutorials online. While I did fine one resource but am not sure how can this be implemented in python?
There should be some readymade packages or tools which could this, but am unable to locate it.
I am trying to calculate something as shown in table 4
in this paper
Can guide me with this?