Versions Compared

Key

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

Purpose and Benefits

In Bahmni, patient registration cards can be printed out to serve as a method of identification in places where the patient's records cannot be accessed through the application. 

Different implementations require different configurations of the registration print functionality. 

Steps

The print functionality for registration appears in the registration module as shown below :


To configure Registration print, navigate to https://github.com/Bahmni/default-config/blob/master/openmrs/apps/registration/app.json

The app.json contains the following snippet which can be changed to fit the implementation : 

Code Block
languagejs
linenumberstrue
"printOptions": [
            {
				"translationKey": "REG_CARD_PRINT",
				"templateUrl": "/bahmni_config/openmrs/apps/registration/registrationCardLayout/print.html",
				"shortcutKey": "p"
			},
            {
				"label": "P<u>r</u>int Supplemental Paper",
				"templateUrl": "/bahmni_config/openmrs/apps/registration/supplementalPaperLayout/print.html",
				"shortcutKey": "r"
			}

 

printOptions is an array that defines the print buttons. 

 

printOptions 
translationKey

If the label should be internationalized, then a translationKey should be provided. The Key should be defined in locale.json.

Example1:

translationKey: "REG_CARD_PRINT"

REG_CARD_PRINT should be defined in locale.json like REG_CARD_PRINT: 'Print Reg Card'

 

label

If Internationalization is not required, then use label instead of translationKey for showing the label in print button.

If translationKey and label both are provided then translationKey will take the precedence.

Example:
label:  'Print Reg Card'

templateUrlThis will define the path for the html that has the data for printing.
shortcutKeyThis can be used to provide a keyboard shortcut for print button.

 

 

 

Tip
iconfalse
titleOn this Page

Table of Contents

Panel
titleColorwhite
titleBGColor#668D3C
titleFeature Details

Patient Registration - Feature Guide

Panel
titleColorwhite
titleBGColor#668D3C
titleUsage Details

Registration - User Guide