Plan for OpenMRS Core 2.0.x

Build: #46 was successful

Job: Deploy was successful

Stages & jobs

  1. Build and Test

  2. Deploy

  3. Release

    Requires a user to start manually

Code commits

openmrs-core

  • ys-achinta <achintar@thoughtworks.com>

    ys-achinta <achintar@thoughtworks.com> 2ba3b4c24f41c6da5d36371ea5f940a394ff9435

    TRUNK-4834 | Support for orderSets and orderGroups
    Creating OrderSet, OrderSetMember metadata,
    Corresponding tables order_set, order_set_meber,
    Services OrderSetService for operations on the metadata.
    Creating OrderGroup
    Adding extra methods in OrderService for saving the OrderGroup,
    Updating the Order model to have new fields for OrderGroup

    Used a List for putting the orderSetMembers in OrderSet,
            (Hibernate internally sets the sequenceNumber)
    Added functionality in OrderSet to add a member at a particular position
    Used a List for putting the orders in the OrderGroup,
            (Used a bag for mapping the list of orders in hibernate mapping file)
    Added functionality in OrderGroup to add an order at a particular postion.

    Added functionality for the API to handle negative position values for adding orderSetMembers and Orders
    Added validation for illegal position values for adding orderSetMembers and Orders

    Added a parameter to the OrderSetMember model to take in a templateType.
    (This template type is a name which will decide the schema of the orderTemplate
    to be generated)

    OrderSet-Implementation:
    Added two utility methods to Encounter model
            a. to getOrderGroups within a list of orders
            b. to get the orders which are not associated with orderGroups

    EncounterSave iterates through the list of orderGroups and saves them one by one.
    EncounterSave iterates through a list of order not having orderGroups for saving them.

    OrderService saves an orderGroup and the orders within it.

    (cherry picked from commit 008b101aaae07cb61006beec703b3cc4e7f05a6b)

    • api/src/main/java/org/openmrs/Encounter.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/java/org/openmrs/Order.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/java/org/openmrs/OrderGroup.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/java/org/openmrs/OrderSet.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/java/org/openmrs/OrderSetMember.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/java/org/openmrs/TestOrder.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/java/org/openmrs/api/OrderService.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/java/org/openmrs/api/OrderSetService.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/java/org/openmrs/api/context/Context.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/java/org/openmrs/api/context/ServiceContext.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/java/org/openmrs/api/db/OrderDAO.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/java/org/openmrs/api/db/OrderSetDAO.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/java/org/openmrs/api/db/hibernate/HibernateOrderDAO.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/java/org/openmrs/api/db/hibernate/HibernateOrderSetDAO.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/java/org/openmrs/api/impl/EncounterServiceImpl.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/java/org/openmrs/api/impl/OrderServiceImpl.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/java/org/openmrs/api/impl/OrderSetServiceImpl.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/java/org/openmrs/util/PrivilegeConstants.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/java/org/openmrs/validator/OrderValidator.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/resources/applicationContext-service.xml (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/resources/hibernate.cfg.xml (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/resources/liquibase-update-to-latest.xml (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/resources/org/openmrs/api/db/hibernate/Order.hbm.xml (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/resources/org/openmrs/api/db/hibernate/OrderGroup.hbm.xml (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/resources/org/openmrs/api/db/hibernate/OrderSet.hbm.xml (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/main/resources/org/openmrs/api/db/hibernate/OrderSetMember.hbm.xml (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/test/java/org/openmrs/OrderTest.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/test/java/org/openmrs/TestOrderTest.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/test/java/org/openmrs/api/EncounterServiceTest.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/test/java/org/openmrs/api/OrderServiceTest.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/test/java/org/openmrs/api/OrderSetServiceTest.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/test/java/org/openmrs/api/builder/DrugOrderBuilder.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/test/java/org/openmrs/api/builder/OrderBuilder.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/test/java/org/openmrs/api/db/hibernate/HibernateOrderDAOTest.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/test/java/org/openmrs/validator/OrderValidatorTest.java (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)
    • api/src/test/resources/org/openmrs/api/include/OrderSetServiceTest-general.xml (version 2ba3b4c24f41c6da5d36371ea5f940a394ff9435)