Uploaded image for project: 'Radiology Module'
  1. Radiology Module
  2. RAD-326 Remove dependency on emrapi
  3. RAD-324

Create radiology order encounter without emrapi

    XMLWordPrintable

    Details

    • Type: Technical task
    • Status: Approved
    • Priority: Must
    • Resolution: Fixed
    • Component/s: Ordering
    • Labels:
      None
    • Complexity:
      Low

      Description

      The RadiologyOrderService API methods

      • RadiologyOrderService.placeRadiologyOrder()
      • RadiologyOrderService.discontinueRadiologyOrder()

      should not be concerned with creating visits at all.
      There is already a mechanism in openmrs-core for it. Implementers can configure handlers to decide if they want to create a new visit if no active visits exist when creating encounters.

      See

      these API methods should thus only have to create an encounter for the radiology order encounter type.

      Changes

      • API
        Test above API methods with @should create radiology order encounter
      • API Implementation
        Adapt
        RadiologyOrderServiceImpl.saveRadiologyOrderEncounter()

      so it does not use the emr api instead probably only the EncounterService will be needed.

      Background
      https://talk.openmrs.org/t/matching-visits-encounters-on-order-entry/7234

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: