I already reviewed the code you shared. However, I would like to handle quantity calculation for different dosage forms (tablet, syrup, capsule, cream, injection, etc.), not just tablets.
Is there any recommended approach or idea to extend the logic for these dosage forms? For example, handling syrup in ml or by bottle size, creams by grams/tube, and injections by vial/ml.
You can extend this in your app or even better enhance the existing functionality and create a pull request. Anyways it would help us if you create an issue with your requirement