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

Show the fully-specified birthdate date format like it did previously on patient search results

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: OpenMRS 1.9.0
    • Fix Version/s: OpenMRS 1.9.4
    • Component/s: None
    • Labels:

      Description

      I ran across this issue after upgrading from OpenMRS 1.8.3 to 1.9.0. When searching for a patient, the list of patients uses a short date format (8/30/77) for the birthdate rather than a long date which it previously showed (30-Aug-1977). It should continue to show the long format as it did previously.

      See the comment in TRUNK-2522.

      TODO:
      Let us use a global property as Wyclif suggests, but set its default value to the old one which James expects.

      • Add a global property named searchWidget.dateDisplayFormat, look at OpenmrsConstants.CORE_GLOBAL_PROPERTIES() to see how to add a core global property
      • You need to cache the global property's value and update when it is changed/delete by making PersonListItem implement GlobalPropertyListener, it should default to display the date as 30-Aug-1977
      • To format the birth date, look at PersonListItem.java for the line that looks like: birthdateString = Format.format(person.getBirthdate());

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              k.joseph Kaweesi Joseph
              Reporter:
              arbaughj James Arbaugh
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 hours
                  2h
                  Remaining:
                  Remaining Estimate - 2 hours
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified