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

Add OrderType class and table

    XMLWordPrintable

    Details

      Description

      • Structure of the order_type table
        *order_type_id
        *name (varchar 255)
        *description (varchar 1024)
        *java_class_name (varchar 1024)
        parent_id (order_type.order_type_id)
        *creator (users.user_id)
        *dateCreated (datetime)
        *retired (boolean)
        date_retired (datetime)
        retired_by (users.user_id)
        *uuid (varchar(38))
        
      • Add the Java class, should extend BaseOpenmrsMetadata, should have a conceptClasses(Collection<ConceptClass>) property see TRUNK-4288, should be a one-to-many relationship, i.e several concept classes can belong to one order type e.g serology and radiology test are both forms of tests, so the concept classes for serology and radiology tests will be added to the order type for TestOrder.
      • Add an hbm file for it (remember to register it in hibernate.cfg.xml file)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                andras Andras Szell
                Reporter:
                wyclif Wyclif Luyima
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 6 hours
                    6h
                    Remaining:
                    Time Spent - 5 hours, 30 minutes Remaining Estimate - 30 minutes
                    30m
                    Logged:
                    Time Spent - 5 hours, 30 minutes Remaining Estimate - 30 minutes
                    5h 30m