Uploaded image for project: 'Radiology Module'
  1. Radiology Module
  2. RAD-138

Simplify radiologyOrder URIs for UI

    XMLWordPrintable

    Details

    • Complexity:
      Low

      Description

      Currently the URIs to access the radiology modules web UI are a bit cumbersome:

      1. To access a specific radiologyOrder with orderId = 1 the URI is:
      http://localhost:8080/openmrs/module/radiology/radiologyOrder.form?orderId=1

      I suggest we simplify it using a kind of RESTful API resource based approach and change it to:
      http://localhost:8080/openmrs/module/radiology/radiologyOrders/1

      using springs pathvariable. see http://docs.spring.io/spring/docs/current/spring-framework-reference/html/mvc.html#mvc-ann-requestmapping-uri-templates

      2. To create a new radiologyOrder the URI should be

      http://localhost:8080/openmrs/module/radiology/radiologyOrders

      Note: it should still support adding query parameter patient like http://localhost:8080/openmrs/module/radiology/radiologyOrders?patientId=3 to already fill out the patient

      3. To access the list of all radiologyOrders instead of
      http://localhost:8080/openmrs/module/radiology/radiologyOrder.list

      I suggest

      http://localhost:8080/openmrs/module/radiology/radiologyOrders/search

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              teleivo Ivo Ulrich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: