Frappe Healthcare: Quantity Calculation for Tablets, Syrups, Injections, etc

Hi everyone,

I am currently using “Frappe Healthcare (Marley Health v15.1.3, HEAD)”.

While prescribing drugs in the Patient Encounter, I noticed that the system calculates the quantity for medications. But I am not clear on:

  • How the system calculates the prescribed “quantity” for different “dosage forms”(tablet, syrup, capsule, cream, injection, etc.)
  • Whether this is based on a standard logic in the framework or needs to be customized per dosage form.
  • If there are any recommended practices for handling dosage-specific quantities (e.g., tablets vs. ml for syrup).

Could someone explain how the calculation works in the current version, or if I need to configure/customize this?

9 Likes

Currently the calculation is done only for tablets. Here’s the link to source code

4 Likes

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.

1 Like

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

1 Like