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

Add other methods to OrderService for managing Order Types

    XMLWordPrintable

    Details

      Description

      Add the methods below to OrderService

       
        public OrderType saveOrderType(OrderType orderType)
      
        //it would be nice to check if it in use before purging
        public void purgeOrderType(OrderType orderType)
      
        public OrderType retireOrderType(OrderType orderType, String retireReason)
      
        public OrderType unretireOrderType(OrderType orderType)
       
        /*
         * Returns all descendants of a given order type (e.g., Given TEST, you 
         * might get back LAB TEST and RADIOLOGY TEST; given LAB TEST, you might
         * get back SEROLOGY, MICROBIOLOGY, and CHEMISTRY).
         */
        public List<OrderType> getOrderSubtypes(OrderType orderType, boolean includeRetired)
      
       
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              harsha89 Harsha Kumara
              Reporter:
              wyclif Wyclif Luyima
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 days
                  2d
                  Remaining:
                  Time Spent - 1 day, 4 hours Remaining Estimate - 2 hours
                  2h
                  Logged:
                  Time Spent - 1 day, 4 hours Remaining Estimate - 2 hours Time Not Required
                  1d 4h