Configure rules based medication dosage

Business context :

The ability of the doctor to specify certain rules like calculation of dosage based on the weight of the patient currently exist in the order set. We would like to extend the feature when the doctor is prescribing individual medication as well.

To calculate medication dosage prescribed for a patient based on weight of the patient (mg/kg).

Step 1 : Capture weight of the patient.

Step 2: Choose rule “mg/kg” .

Step 3 : Enter dose . For example “2” . This implies that 2mg per kg of total patient’s weight should be administered . For example, if the weight of the patient is 30 kg and the rule selected is mg/kg and the dose entered is 2 , then the system will multiple 30*2 = 60 mg which needs to be administered to the patient.

So here the dose is calculated based on the patient weight.

drug calculation.mov
Drug dosage calculation


Steps: (To Enable the rule field and the dropdown values)

  1. In config file openmrs/apps/clinical/medication.json include this “showRulesInMedication”: true. This config enables the Dosage Rule field in Medication Page in Order Drug accordion.

  2. To enable the drop-down. Follow this:

    1. Include the below values in rulesengine-concept.properties file

      1. concept.weight.uuid=${WEIGHT_CONCEPT_UUID}

      2. concept.height.uuid=${HEIGHT_CONCEPT_UUID}

  3. We have provided ability to set units for the dosage rules we select. If no units are mentioned then we will see all the units by default for that dosage rule.

    1. For Example: “mg/kg“ has “mg” and “ml” as their dosageRuleUnitsMap. Then in the medication dose units dropdown we will get only these two as the dropdown values.

 

Note:

In the medications Page, if you wish to prescribe a medication keeping frequency, duration and duration unit as optional, the route of those medication can be added in continuousMedicationRoutes configuration as shown below as an example.

{ ... "tabConfig": { ... }, "inputOptionsConfig": { "continuousMedicationRoutes": ["Intravenous", "Inhalation"] } }

 

The Bahmni documentation is licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)