I don\'t have any code to share, because I am having trouble conceptualizing how to do this.
I have a dataframe that contains patient ids and medication ids as well a