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

API should have a convenience method for getting orderable concepts

    Details

      Description

      In order for to minimise the chance that users will place orders for non orderable concepts and also not to have them set the order type field, the API should a provide a convenience method for fetching orderable concepts.

      Dev Notes:

      See the pseudo code below:

      public List<ConceptSearchResult> getOrderables(String phrase, Locale, boolean includeRetired, Integer start, Integer length){
          List<ConceptClass> MAPPED_CLASSES = null;
          //fetch the mapped concepts class into the list above from the order_type_class_map table
         
         //Call the dao method that does paging and takes several lists as parameters and pass in the list 
         //above to filter on the orderable concept classes.
         return dao.getConcepts(phrase, locales, includeRetired, MAPPED_CLASSES, excludeClasses, requireDatatypes,
      		    excludeDatatypes, answersToConcept, start, size);
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                harsha89 Harsha Kumara [X] (Inactive)
                Reporter:
                wyclif Wyclif Luyima
                Designated Committer:
                Rafal Korytkowski
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day Original Estimate - 1 day
                  1d
                  Remaining:
                  Time Spent - 1 day, 2 hours Remaining Estimate - 30 minutes
                  30m
                  Logged:
                  Time Spent - 1 day, 2 hours Remaining Estimate - 30 minutes
                  1d 2h