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

Improve Java 8 streams usage on Cohort.getActiveMembership(Patient)

    XMLWordPrintable

Details

    • Enhancement
    • Status: Closed
    • Could
    • Resolution: Fixed
    • None
    • Platform 2.2.0
    • None
    • Low

    Description

      In this method we do filter -> collect -> get. Instead this should do filter -> findFirst -> get. (This would be potentially a bit more efficient.)

      https://github.com/openmrs/openmrs-core/blob/2.1.3/api/src/main/java/org/openmrs/Cohort.java#L215

       

      Gliffy Diagrams

        Attachments

          Activity

            People

              fungucide Will Fu
              darius Darius Jazayeri
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: