Uploaded image for project: 'Metadata Sharing Module'
  1. Metadata Sharing Module
  2. META-365

Problem when importing a concept that has been upgraded to a ConceptNumeric against OpenMRS 2.x

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Undetermined

      Description

      When importing a package that has a concept that has been changed from a Concept to a ConceptNumeric against OpenMRS 2.x, the import fails because the Concept Names aren't properly copied over.

      Looking at the history, we had to add some custom code years ago to handle the case when a concept was changed from Concept to Concept Numeric, see META-331.

      This line in particular fails because as of 2.x the getNames method doesn't return the actual "names" property of but rather a copy of it:

      https://github.com/openmrs/openmrs-module-metadatasharing/commit/b3b41a2ff77893b38547215eb35899f7fba329ea#diff-8b72b38861770be4415b74a9f35c11f9R64

       

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              mogoodrich Mark Goodrich
              Reporter:
              mogoodrich Mark Goodrich
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: