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

Encounter creation fails for Obs mapping with ConceptMapping instead of Concept uuid

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Should
    • Resolution: Fixed
    • 2.9
    • 2.12
    • None

    Description

      With reference to this issue https://issues.openmrs.org/browse/RESTWS-468 :

      Using Concept mappings instead of uuids for posting data to OpenMRS via REST fails with error here pastie.org/101068832.

      However same call successfully passes when Obs are mapped with concept uuids.

      A test class is attached which have two tests
      1- with Obs mappings with concept uuids
      2- with Obs mappings with concept mappings as defined in ticket earlier. This throws RuntimeException.

      The test class needs to have openmrs url, username, pwd and an existing valid encounter type. First 4 class properties would need to be changed to reflect this.

      The version of module required for expected Rest Web Services - 2.9. The test doesnot work on OpenMRS demo server as it has REST module version 2.6

      Gliffy Diagrams

        Attachments

          Activity

            People

              tmueller Tomasz Mueller
              maimoonak Maimoona K
              Rafal Korytkowski Rafal Korytkowski
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 3 hours Original Estimate - 3 hours
                  3h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 7 hours
                  2d 7h