Design looks slick and I'm glad it's solving a problem that you have, but as someone who works in medtech I have to say - actually selling this as a product would probably be classed as a "Bold Move".
The product you are marketing is controlling the dispensing of a drug, so is pretty unambiguously a Medical Device. The details vary by country and exactly which category this ends up in, but you are almost certainly required by law to seek approval from the regulators for any jurisdiction that you are marketing this product in. I'm not totally clear if "selling designs to produce a Device" would attract the same level of scrutiny as "selling a Device", but generally I'd recommend not screwing with the FDA.