Wiki Spaces


Get Help from Others

Q&A: Ask OpenMRS
Discussion: OpenMRS Talk
Real-Time: IRC Chat | Slack


Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

<html><head><title></title></head><body>h1. Adding A New Patient Identifier Field

You can look at pre-existing identifier fields in your system or on the demo website for examples. If the patient identifier type has already been defined within a field, then you should try to re-use the existing field if possible; otherwise, follow these steps to create a new identifier field:

  1. Go to Administration → Manage Fields
  2. Click "Add New Field"
  3. Create your field with the following information

    Field Name

    Enter a name for the field, e.g. "Medical Record Number"


    Describe the field to help other administrators and users — e.g., "Unique patient identifier for Wilson Hospital"

    Field Type

    Database element


    Table = <tt>patient_identifier</tt>, Attribute = <tt>identifier</tt>

    Default value


    Unknown macro: {patient.getPatientIdentifier(*1*).getIdentifier()}

    </tt>, replacing the 1 with the internal identifier type id (you can find this under "Manage Identifier Types", hovering your mouse over the identifier type and looking at the link's address)

    Select Multi

    Leave unchecked

NOTE: typically, patient demographic fields (like an identifier) should be placed under the "PATIENT" section of a form schema.


  • No labels