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

Tool to attempt to convert java.util.Date person attribute types to org.openmrs.util.AttributableDate

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Non-Essential
    • Resolution: Won't Fix
    • Affects Version/s: OpenMRS 1.6.0, OpenMRS 1.6.1, OpenMRS 1.7.0, OpenMRS 1.7.1, OpenMRS 1.8.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Complexity:
      High

      Description

      Previously, OpenMRS allowed you to create a PersonAttributeType with format=java.util.Date. If anyone did this, and managed to create any PersonAttributes for that type, then they contain dates in dd/mm/yyyy or mm/dd/yyyy format, depending on the date format of the user that entered them. The solution to this was ticket TRUNK-505.

      The correct fix would be to convert all these dates to yyyy-mm-dd and change the PersonAttributeType format to org.openmrs.util.AttributableDate. But old data entered as java.util.Date cannot be automatically fixed, because we don't know the date format it would be entered in. The point of this ticket is to devise a strategy to clean up the data as best as is possible. If any date has a component > 12 that must be a day, not a month. And it's likely that if user created some person attributes with a known date format, they created other person attributes with the same date format.

      It's possible that the data entry screen never actually allowed this, in which case nobody is affected by this issue.

      Before doing this ticket please query the OpenMRS community to see if anybody at all is actually affected by this issue!

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              darius Darius Jazayeri
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: