Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-166

Two Name (Given and Family Only) Layout

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Could
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: OpenMRS 1.7.0
    • Component/s: None
    • Labels:
    • Complexity:
      Low

      Description

      Can we add a two name format, that only uses the Given and Family Name?
      http://dev.openmrs.org/ticket/2015#comment:2

      Does it require more than adding a new section in the openmrs-servlet.xml file?

      I tried adding the following section to the openmrs-servlet.xml file...

      <bean id="nameTemplateTwoName" class="org.openmrs.layout.web.name.NameTemplate">
                      <property name="displayName"><value>Two Name Format</value></property>
                      <property name="codeName"><value>twoname</value></property>
                      <property name="nameMappings">
                              <props>
                                      <prop key="givenName">PersonName.givenName</prop>
                                      <prop key="familyName">PersonName.familyName</prop>
                              </props>
                      </property>
                      <property name="sizeMappings">
                              <props>
                                      <prop key="givenName">30</prop>
                                      <prop key="familyName">30</prop>
                              </props>
                      </property>
                      <property name="lineByLineFormat">
                              <list>
                                      <value>givenName</value>
                                      <value>familyName</value>
                              </list>
                      </property>
              </bean>
      

      I then set the layout.name.format global property to twoname. I then restarted tomcat and logged in again. It didn't display the name properly on the patient dashboard (in the lower section where it lists alternate names). It showed an *. Nor did it allow me to add a new name, under "Edit this Patient". The "Edit this Patient (Short Form) didn't show field boxes to enter a name, nor did the New Patient screen.

      I tried this on my OpenMRS 1.6RC test server, following the new spain format as a guide. http://dev.openmrs.org/ticket/2015

        Attachments

          Activity

            People

            Assignee:
            darius Darius Jazayeri [X] (Inactive)
            Reporter:
            arbaughj James Arbaugh [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: