Uploaded image for project: 'OpenMRS Dictionary Manager'
  1. OpenMRS Dictionary Manager
  2. OCLOMRS-862

Display more specific validation messages on Concept create/edit screen

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0: MVP
    • Component/s: None
    • Labels:
      None

      Description

      Context:
      Today when the user creates/edits a concept, user doesn't get clear validation message on the UI. Instead user gets a generic message that the action couldn't be completed.

      Acceptance criteria:
      1. Identify the list of backend validation messages and enable the same on UI

      List of Backend Validation on concept form:

      • OPENMRS_ONE_FULLY_SPECIFIED_NAME_PER_LOCALE = 'A concept may not have more than one fully specified name in any locale'
      • OPENMRS_NO_MORE_THAN_ONE_SHORT_NAME_PER_LOCALE = 'A concept cannot have more than one short name in a locale'
      • OPENMRS_NAMES_EXCEPT_SHORT_MUST_BE_UNIQUE = 'All names except short names must be unique for a concept and locale'
      • OPENMRS_FULLY_SPECIFIED_NAME_UNIQUE_PER_SOURCE_LOCALE = 'Concept fully specified name must be unique for same source and locale'
      • OPENMRS_MUST_HAVE_EXACTLY_ONE_PREFERRED_NAME = 'A concept may not have more than one preferred name (per locale)'
      • OPENMRS_SHORT_NAME_CANNOT_BE_PREFERRED = 'A short name cannot be marked as locale preferred'
      • OPENMRS_AT_LEAST_ONE_FULLY_SPECIFIED_NAME = 'A concept must have at least one fully specified name'
      • OPENMRS_PREFERRED_NAME_UNIQUE_PER_SOURCE_LOCALE = 'Concept preferred name must be unique for same source and locale'

       

        Gliffy Diagrams

          Attachments

          1. 2FSNWithPrefferedNameYes.jpg
            2FSNWithPrefferedNameYes.jpg
            417 kB
          2. 2FSNWithPrefferedNameYesForOneConcept.jpg
            2FSNWithPrefferedNameYesForOneConcept.jpg
            469 kB
          3. allTypeHavePreferredLangAsYes.jpg
            allTypeHavePreferredLangAsYes.jpg
            528 kB
          4. multipleSN.jpg
            multipleSN.jpg
            438 kB
          5. sameNameForFSN.jpg
            sameNameForFSN.jpg
            376 kB
          6. sameNameForSN.jpg
            sameNameForSN.jpg
            409 kB
          7. sameNameForSynonyms.jpg
            sameNameForSynonyms.jpg
            387 kB

            Activity

              People

              Assignee:
              kirity kirity mahanty
              Reporter:
              swedhan Swedhan Gunasekaran
              Designated Committer:
              Rakesh Kumar Rakesh Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: