The present invention relates to a method of preparing N-substituted salicylamides or derivatives thereof and their derivatives, e. Applications of the present invention are particularly useful in prescribing and distributing lifestyle drugs where an actual physical examination is not necessarily required, but are similarly useful for all prescription medications. Each conductor of a set of the third plurality sets of conductors either connects, physically, to one pin in each of a plurality of functional blocks or, through a third set of switches, to a subsequent fourth set of conductors.