I am looking for a solution to the below-mentioned problem:
Q-1 Doctor for how long you suggested the medicine to your patience (Single code)
1- Up to 2 months
2- 3 to 6 months
3- 7 to 10 months
4- More than 10 months
Q-2 Doctor for how long your patience took the medicine (Single code)
1- Up to 2 months
2- 3 to 6 months (cannot select this option if selected option 1 in Q1)
3- 7 to 10 months (cannot select this option if selected option 1 or 2 in Q1)
4- More than 10 months (cannot select this option if selected **option 1, 2 or 3 in Q1)
What you are looking for in this is covered by validation criteria. However when you look at your validation criteria, you kind of have a clear logic which seems to point out to Q2>=Q1. With this in mind you can simply create constraint .<=${Q1}
Just for my understanding if we also had others option what should we do ?
Q-1 Doctor for how long you suggested the medicine to your patience (Single code)
1- Up to 2 months
2- 3 to 6 months
3- 7 to 10 months
4- More than 10 months
99- others
Q-2 Doctor for how long your patience took the medicine (Single code)
1- Up to 2 months
2- 3 to 6 months (cannot select this option if selected option 1 in Q1)
3- 7 to 10 months (cannot select this option if selected option 1 or 2 in Q1)
4- More than 10 months (cannot select this option if selected **option 1, 2 or 3 in Q1)
99- others
Hello @nalinsharma_2004,
Just a remark from an analytical view: Could it not be interesting also that a patient took the medicine longer than suggested (for example creating bad sight effects)? So, the constraint might become a warning (acknowledge type) only?
(Also, sometimes a doctor’s suggestion is not a fixed time but related to the symptoms.)
Keep healthy!