Configuring other order types

Purpose and Benefits

This feature was introduced in Bahmni V0.93

The Order Tab allows the user to define any products or services to be ordered for the patient.

For example, if you would want to have “Counseling” as order type displayed on “orders” tab of consultation, it may look something like below

Order Placement tab

Master Data Setup

  1. Setup an order type. Example - “Counseling service”

    insert into order_type (name, description, creator, date_created, retired, uuid, java_class_name) values('Counseling service', 'Counseling service to patients', 1, now(), 0, uuid(), 'org.openmrs.Order');
  2. Map the above “order type” to a concept class specifically for “Counseling service”. You can create a “concept class” from OpenMRS administration if a suitable one does not exist.

    //Use this query to find appropriate concept class
    select * from concept_class;
    //Now fire the insert statement to create a mapping to appropriate concept class.
    insert into order_type_class_map (order_type_id, concept_class_id) values(<order type id>, <concept class id>);
  3. In OpenMRS concept dictionary, setup a concept set for grouping ‘Counseling’ services under “All orderables”
    All Orderables
    - Other Services
       ---Family Planning
       ---Mental Health   

    While defining “Family Planning” Concept, please mark the “saleable” attribute to “true” and ensure that class chosen is what you have mapped to the order type above.

  4. Setup “Order type” and “Shop mapping” in Odoo.

           Please follow instructions in the Odoo sales configuration.

The Bahmni documentation is licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)