Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In case of IPD patients, the drugs are procured from the "mini stores" inside the hospital and does not need to be printed.

To print medications, select the checkboxes corresponding to the medications you want to print. The print button will only be enabled if at least one medication is selected. By default, all medications will be selected. If you don’t want all medications to be selected, you need to configure it accordingly (see the config section for details).

...

Sample PDF file generated from the medication page with the list of selected medications,

...

Configure Medication Print Feature:

Below configuration required to be added to clinical/app.json in the config section to enable print medication functionality.

...

Field Name

Description

Optional

printDiagnosis

This is type of diagnosis we want to print in the prescription.

For eg: if we want to show the diagnosis which are primary and confirmed, we need to give the order as PRIMARY and certainity as CONFIRMED

Yes

observationsConcepts

This is a list of concepts. This is to fetch the latest observation captured for the patients for the given concepts which can then be consumed in the custom template to show values like patient's height, weight, etc..

Yes

templateUrl

This field is required for the custom template to be used for printing the prescriptions. If we want a default Bahmni's template and not the custom one, we need to remove this config

Yes

autoSelectNotAllowed

This is a boolean value and can be used to auto select all the prescriptions by default on the load of the page and vice versa before printing.

If we set it as false true , then we need to select the check boxes manually.

If we set it as true false or omit this config, then all the checkboxes of the medications are selected by default.

NoYes

Note: If we want to show these custom options like diagnosis, observations, etc. in the pdf, then we need to give a custom template that’ll include html elements with appropriate css to show these data. One can refer this sample html (medicationPrint.html) below

...