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

Enforce Integer Values for non-precise numerics at both the web and service layers

    XMLWordPrintable

    Details

    • Complexity:
      Undetermined

      Description

      In the web interface, floats are accepted even if the concept is NOT marked as precise. We need to have some additional data validation for this.

      We need to enforce integer values for non-precise numerics at both the web and service layers – i.e., the obs management screen should check for this and the OpenMRS API should throw an exception if anyone attempts to store a float (non-integer) value into an observation that has a non-precise numeric concept for a question.

      Consider silently rounding up or down if a float is entered for a concept not marked as precise.

      For more information see...
      https://listserv.iupui.edu/cgi-bin/wa-iupui.exe?A2=ind0804&L=openmrs-implement-l&T=0&O=D&P=10202

        Attachments

        1. obs-validation.patch
          17 kB
        2. obs-validator.patch
          17 kB

          Activity

            People

            Assignee:
            rfoecking Rachel Foecking [X] (Inactive)
            Reporter:
            arbaughj James Arbaugh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: