Assigning a value

I have got two data element:
First Data element: MPT64. Its value can be one of two options: Positive or Negative.
Second Data element: Organism Type. Its value can be one of two options: MTB or NTM.
Now, I want to assign value to the second data element(Organism Type) according to the value of the first data element.
i.e If MPT64 is Positive then, the Organism Type should be automatically assigned to MTB, and if MPT64 is Negative then, the Organism Type should be automatically assigned to NTM.

How can I do this?

Hello @manish198,

You can use Program Rule, with Assign Value Action.

Here is the documentation : https://docs.dhis2.org/master/en/user/html/configure_program_rule.html

I hope this will help you