Configure Person Attributes


OpenMRS provides a way to customise attributes that can be captured for a person/patient. New attributes can be added via the admin screen of OpenMRS under /openmrs/admin/person/personAttributeType.list . If you prefer to add these values manually, insert new rows into the person_attribute_type table. 

Create/edit attribute

1. Navigate to the "Manage Person Attributes Types" link in OpenMRS Administration page.

2. Add "New Person Attribute Type". The "format" of the attribute will define the type of UI element to be shown. For e.g., if the attribute type is string, a textbox will be shown. Similarly, if it is of org.openmrs.Concept type, then a dropdown is displayed. If you choose type as Concept, then you will need to provide the ID (in the Foreign Key field) of the Concept whose values should be shown in the dropdown. The "values" are the "answers" for that Concept (from the Concept Dictionary). This Concept will be of type "Coded". See example setup here for Occupation on the demo server. The "label" on the UI is taken from the "Description" of the attribute.

The new Person Attribute Type page will be displayed as shown below:

Remove/ Retire Person Attributes

All the person attributes configured here will appear on the patient registration page.One can add new patient attributes following above steps.If one wants to remove them from the patient registration screen to hide any of these attributes temporarily, then one can retire the person attribute from the Openmrs Administration UI.

Retiring an attribute

1) GoTo Openmrs, Administration Page

2) Click on  "Manage Person Attributes Types

3) Click on the person attribute to retire

Person Attribute to retire

4) Click on Retire the Person attribute type

Retire Person attribute type

Reserved words for Bahmni Person Attribute

1) 'name' is a reserved word and cannot be used as Bahmni Person Attribute

On this Page


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