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

Service and DAO for VisitType

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Must
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.9 Road Map Sprint 1
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      Create a VisitService and VisitServiceImpl, initially with the methods:

      * List<VisitType> getAllVisitTypes()
      * VisitType getVisitType(Integer)
      * VisitType getVisitTypeByUuid(String)
      * List<VisitType> getVisitTypes(String) // fuzzy search
      * VisitType saveVisitType(VisitType)
      * VisitType retireVisitType(VisitType, String reason)
      * VisitType unretireVisitType(VisitType)
      * void purgeVisitType(VisitType)
      

      Create a VisitDAO and HibernateVisitDAO with whatever methods are required to support the service methods.

      • note that "purge" in the service should map to "delete" in the DAO
      • "retire" in the service should not need its own DAO method

      (Consider using part of the patch on TRUNK-48, but check them for correctness, since the design has changed since then.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dkayiwa Daniel Kayiwa
              Reporter:
              darius Darius Jazayeri
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: