The Medication Tab allows the user to create new Drug Orders for the patient. Medication is referred to as Drugs in OpenMRS. It also displays the past and active medications for the patient. The screenshot below displays an instance of the same:
You can configure multiple medication tabs with each tab being drug specific. The name of the tab tabConfigName needs to be defined in extensionParams. Using this tabConfigName, the tab specific configurations needs to be put in medication.json. Please look at MedicationTab Configurations for more details. The following is example configuration that configures two medication tabs.
The above config should be added to clinical extension.json.
The logged in user should have the privilege app:billing (For billing users to access prescription in MRS)
The first config is for the button "Open Quotation": This opens the ERP quotations for normal orders. "url" is the link to ERP quotation. The IP of the url to be changed to the implementation server's IP.
The second config is for "Open Dispensed Quotation". This opens the ERP quotations for the orders which are dispensed. The setting of "dispensed" flag in the url parameter to true or false opens the dispensed, non-dispensed quotations respectively.
Configure Conditional Notes Placeholder on Drug Stoppage
When a Drug is stopped on the Medication Tab, the user can select the Stop Order Reason concept from the drop down menu and by default the order reason notes will be enabled. To conditionally disable the stop order reason notes based on the stop order reason concept selected, please refer below example:
Add the condition under clinical formCondition.js for the required Stop OrderReason Concept.
For example, to enable stop order reason notes for "Other" and "Adverse event" reason concepts:
Name of the concept for which the reason notes should be enabled
If the section "Medication Stop Reason" is not defined, by default reason notes will be enabled for all reason concepts.
Configure Free-Text Drug Ordering
Please refer to Medications for further details about this configuration.
Configure Interval to Skip Display of Stop
The Drug-o-gram or The Drug Regimen Display Control is a widget that displays all the drugs that the patient has been treated with. This gives the clinician a bird’s eye view of all of the patient’s current and past medications.
In this configuration the Drug-o-gram will not display “Stop” if a medicine is stopped and restarted the same day or the next or in a configurable time (provided in hours in the STOPING_INTERVAL_HOURS key of groovy file). TreatmentRegimenExtension.groovy is a sample groovy file which should be placed in this path bahmni-config/openmrs/treatmentRegimenExtension/TreatmentRegimenExtension.groovy
Configure Fractional Dosage
Using dosages as mixed fractions like 2¾ instead of 2.75 is possible for both uniform and variable doses by configuring the following json in the file medication.json in openmrs/apps/clinical/ directory in the configuration repo.
The fractions have to be written in actual unicode characters like ¾ or ¼ not 3/4 or 1/4.
Setting 'showDoseFractions' to true at a tab level in tabConfig will accommodate an extra drop down. This will contain values from the configuration next to uniform dose controls only in the specified medication tab in consultation. By default it will not be displayed in any medication tab in Consultation
'doseFractions' that is mentioned at tab level is used to filter only those values from the master list specified in commonConfig
All the places where the dosage is displayed like medical history, observations, prints etc, will reflect this behavior of showing mixed fractions instead of real numbers.
The values in variable dosage will not have a drop down but the values entered will be interpreted according to the config and displayed accordingly.
The user still has the freedom to enter real numbers like 2.3 in the input field and to also choose a fraction. In such a case the number and the fraction is interpreted by adding them and the cumulative effect is recorded. If the result is not in the provided config, it is simply passed along as a real number and not converted to mixed fraction.
To disable this behavior, simply remove the key "showDoseFractions" or set it to "false" in that particular medication tab config in medication.json.
Configure Medication Display Controls
For more information on Display Controls that can be configured, please refer to this section.