My current table is like this :
ID Patient_id Date Drug `n_distinct(Drug)`
1 A123 2014-01-01 5FU 1
2 A123 2014-01-02 fluorouracil 1
3 A123 2014-01-02 oxaliplatin 1
4 A125 2014-01-02 paracetamol 1
5 A126 2014-01-02 pantocid 1
6 B456 2014-01-02 thyronorm 1
7 B456 2015-06-01 fluorouracil 1
8 B456 2015-06-01 oxaliplatin 1
Basically i want to have three columns , Patient id , Date, All the Drugs that patient has consumed on that day in one row.
However, i want the table output to be like this :
ID Patient_id Date Drugs
1 A123 2014-01-01 5FU
2 A123 2014-01-02 fluorouracil,oxaliplatin
3 A125 2014-01-02 paracetamol
5 A126 2014-01-02 pantocid
6 B456 2014-01-02 thyronorm
7 B456 2015-06-01 fluorouracil, oxaliplatin
Please suggest.