Uploaded image for project: 'Webservices REST Module'
  1. Webservices REST Module
  2. RESTWS-461

Should automatically convert to Double

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7
    • Labels:
      None
    • Complexity:
      Low

      Description

      I tried submitting a drug order with dose = 7 (an integer) and got an error like:

      org.openmrs.module.webservices.rest.web.response.ConversionException: Don't know how to convert from class java.lang.Integer to class java.lang.Double
      at org.openmrs.module.webservices.rest.web.ConversionUtil.convert(ConversionUtil.java:189)

      We should support this conversion automatically

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: