You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usecase:
In LAHI alumini profile encounter, want to calculate some of the statuses(Employed and Higher Technical Education) of "LAHI alumini status" based on value in a repeatable question group.
Issues:
The below doesn't work: const condition15 = new imports.rulesConfig.RuleCondition({programEncounter, formElement}).when.valueInEncounter(childConceptUuid, parentConceptUuidOfQuestionGroup).containsAnswerConceptName(answerConceptValue).matches(); and
const condition12 = new imports.rulesConfig.RuleCondition({programEncounter, formElement}).when.valueInEncounter("07b7866f-1318-48f1-9cde-3720131575c1","a284be97-2fb7-44e7-9891-b90f166aa532").containsAnswerConceptName("f69d34d8-0316-43b7-b211-653b38ba69d8").matches();
Analysis:
The above didn't work since findObservation in avni-models, AbstractEncounter.js didn't handle for repeatable question group.
The below also cannot be done: const condition12 = new imports.rulesConfig.RuleCondition({programEncounter, formElement}).when.questionGroupValueInEncounter("07b7866f-1318-48f1-9cde-3720131575c1","a284be97-2fb7-44e7-9891-b90f166aa532", questionGroupIndex).containsAnswerConceptName("f69d34d8-0316-43b7-b211-653b38ba69d8").matches(); since need to iterate for each value(questionGroupIndex) in repeatable observations.
Need to Handle all cases where the values of repeatable question group could be multiple or empty
Significance of fixing this issue:
For projects that self-manage like LAHI, fixing this will make their work easier.
Code duplication in implementations
Slows down work of implementation
The text was updated successfully, but these errors were encountered:
Usecase:
In LAHI alumini profile encounter, want to calculate some of the statuses(Employed and Higher Technical Education) of "LAHI alumini status" based on value in a repeatable question group.
Issues:
The below doesn't work:
const condition15 = new imports.rulesConfig.RuleCondition({programEncounter, formElement}).when.valueInEncounter(childConceptUuid, parentConceptUuidOfQuestionGroup).containsAnswerConceptName(answerConceptValue).matches();
andconst condition12 = new imports.rulesConfig.RuleCondition({programEncounter, formElement}).when.valueInEncounter("07b7866f-1318-48f1-9cde-3720131575c1","a284be97-2fb7-44e7-9891-b90f166aa532").containsAnswerConceptName("f69d34d8-0316-43b7-b211-653b38ba69d8").matches();
Analysis:
Hence currently, function like below is done:
The below also cannot be done:
const condition12 = new imports.rulesConfig.RuleCondition({programEncounter, formElement}).when.questionGroupValueInEncounter("07b7866f-1318-48f1-9cde-3720131575c1","a284be97-2fb7-44e7-9891-b90f166aa532", questionGroupIndex).containsAnswerConceptName("f69d34d8-0316-43b7-b211-653b38ba69d8").matches();
since need to iterate for each value(questionGroupIndex) in repeatable observations.Need to Handle all cases where the values of repeatable question group could be multiple or empty
Significance of fixing this issue:
The text was updated successfully, but these errors were encountered: