← Back to team overview

dhis2-devs team mailing list archive

Re: Co-relation with two or more but mutually exclusive different data elements

 

A little correction in my previous query in trail email,
On Thursday, 27 March 2014 11:58 AM, Brajesh Murari <brajesh.murari@xxxxxxxxx> wrote:
 
Hello Devs,

I need a help to know little more about is there any functionality in DHIS with the help of which user can 
co-relate two or more but mutually exclusive different data elements ( including option-set, or category-options-combos) ?

For example, there are three data elements in "Cause of Death" data set that associated with four data elements
given below

1. Gender
    Option Set - Male, Female

2. How did injury occurred !
   Option Set - Alleged Accident, Alleged Suicide, Alleged Homicide

3. Was the death associated with pregnancy !
   Option Set - Yes, No

4. If Yes, was there a delivery !
   Option Set - Yes, No

Use Case / Scenario : 

While doing data entry in "Cause of Death" data set, for third data element  ( ie. Was the death associated with pregnancy !) should be co-related with first data element ( ie. Gender ) with certain predefined occurrence of events like enable/disable. 

For example, 

a. ) If option set "Male" selected for first data element ie. "Gender" than third data element ie. "Was the death associated with pregnancy !" should be disabled in data entry screen. Similarly, if option set "Female" selected for first data element ie. "Gender" than third data element "Was the death associated with pregnancy !" should be disabled in data entry screen.

Little correction : --
a. ) If option set "Male" selected for first data element ie. "Gender" than third data element ie. "Was the death associated with pregnancy !" should be disabled in data entry screen. Similarly, if option set "Female" selected for first data element ie. "Gender" than third data element "Was the death associated with pregnancy !" should be enabled in data entry screen.


b.) If option set "No" selected for third data element ie. "Was the death associated with pregnancy !"  than
fourth data element ie. "If Yes, was there a delivery !" should be disabled in data entry screen. Similarly, if option set "Yes" selected for third data element ie. "Was the death associated with pregnancy !"  than fourth data element "If Yes, was there a delivery !" should be enabled in data entry screen.

Regards 
Brajesh Murari

References