Versions Compared

Key

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

Create a New Person Attribute Type

  • Go to Administration screen
  • Click Manage Person Attributes Types
  • Click Add New Person Attribute
  • Field definitions:
    • Name: Any string you want to recognize this type by. Spaces should not be used
    • Format: Most likely it will be java.lang.String. Other possibilities are org.openmrs.User, org.openmrs.Concept, and org.openmrs.util.AttributableDate (version 1.4)
    • Foreign Key: The only time a foreign key value is needed is when you are using a separate table for the answers. A good example of this is the Civil Status attribute that links to the concept civil status for its possible answers, see here on how to implement it More information about coded concepts is available elsewhere on the wiki.  
    • Searchable: Whether or not this attribute is included in searches
    • Description: Text blob describing this type
    • Edit privilege:The privilege needed by user to edit this person attribute.

Listing and Viewing of Person Attribute Types

...