Uploaded image for project: 'EMR API'
  1. EMR API
  2. EA-42

When formatting a coded answer, treat identical name strings as identical

    XMLWordPrintable

    Details

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

      Description

      The CodedOrFreeTextAnswer.format(Locale) method behaves such that if the answer's specific coded name was given in a locale other than the one you're formatting to, then it is rendered like: specific coded answer in other locale → preferred name in locale

      For example if I entered this in English but am formatting for French:
      Hemorrhage → Hémorragie

      There is one small defect, in the case where the concept has identical names in the two locales, they are still displayed this way, e.g. if a name is the same in Haitian Creole and French, it might display like this:
      Hémorragie → Hémorragie

      This is because we're testing equality of the ConceptName objects when deciding to display this, but we should be comparing the String name. (Even though it might be technically correct to show something like "Hémorragie (Creole Haitien) → Hémorragie", this would be pedantic and confusing.)

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: