Let me explain the situation. Consider having the following situation, where I have a group of patients with the same patient_id, the starting and ending dates of some thera