Your data structure is called categorical multiple response set (MRC). Each variable is "next answer" and the values are the responses (or, better, numeric response codes).
Another structure to store the same data is dichotomous multiple response set (MRD). Each variable is the response variant (the medication, in your case) and values are binary - selected / true / yes (1) and not selected / false / no (0).
Both ways to hold multiple response data are used. MRC is not suited for some analyses, for example, using the variables as predictors in a regression. MRD is not parsimonious: if categories (response variants) are many, many columns (variables) are needed.
MRC is able to store multiple instances of the same category (such as potential answers to question "gadgets of which manufacturers do you own?").
Any good statistical software must provide:
- A way to analyze (tabulate) both structures.
- A way to quickly convert one structure into the other.
So, consult with the documentation or manuals of the software you use.