I have a table like so -
patient_id date org
I5434 2020-06-05 Methodist Hospital
ertw4 2020-08-03 New York Hospital
ouiku35 2020-08-30 Tristar
ouiku35 2020-01-05 Tristar
ouiku35 2020-04-22 Tristar
The output I am needing is
quarter count
2020Q1 1
2020Q2 1
2020Q3 1
3rd record in the table above is not counted because it is the same patient in prior quarters at the same hospital
