Versions Compared

Key

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

...

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

...