Hi,
I have data that list presecriptions that have been filled from variouus pharmacies. It has the following variables:
- Patient id
- Medication name
- Pharmacy id
- Presecription Date
I want to:
1. counting number of patients who got the same "medication name" from more than one pharmacy.
2. if possible, how to limit number 1 to those who got the same medication (from more than one pharmacy) within one year i.e. the time difference between the 2 prescriptions is 1 year or less.
Is this possible?
Thanks!!
I have data that list presecriptions that have been filled from variouus pharmacies. It has the following variables:
- Patient id
- Medication name
- Pharmacy id
- Presecription Date
I want to:
1. counting number of patients who got the same "medication name" from more than one pharmacy.
2. if possible, how to limit number 1 to those who got the same medication (from more than one pharmacy) within one year i.e. the time difference between the 2 prescriptions is 1 year or less.
Is this possible?
Thanks!!
Comment