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
In "Lend a hand India" org, for "LAHI Intern" Subject, "Internship LAHI" Program, "LAHI INTERN ATTENDANCE" Program Encounter is to be created.
As part of the ProgramEncounter's Decision rule, we need to fetch "Date of Attendance" concept value from within the "Attendance Day" RepeatableQuestionGroup's groupObservations.
Attempting this results in failure, as following method fails to handle the array nature of "Attendance Day" RepeatableQuestionGroup :
const dateOfAttendance = programEncounter.findObservation("Date of Attendance","Attendance Day");
**ERROR: undefined is not an object (evaluating 't.concept.name')**
Handle fetch value of a concept from RepeatableQuestionGroup Observations
I. for all repetition in RepeatableQuestionGroup
II. for a single repetition in RepeatableQuestionGroup
III. for specific repetition in RepeatableQuestionGroup based on some filter criteria
The text was updated successfully, but these errors were encountered:
In "Lend a hand India" org, for "LAHI Intern" Subject, "Internship LAHI" Program, "LAHI INTERN ATTENDANCE" Program Encounter is to be created.
As part of the ProgramEncounter's Decision rule, we need to fetch "Date of Attendance" concept value from within the "Attendance Day" RepeatableQuestionGroup's groupObservations.
Attempting this results in failure, as following method fails to handle the array nature of "Attendance Day" RepeatableQuestionGroup :
In avni-models, AbstractEncounter.js:
ERROR is at "(observation.concept.name === conceptNameOrUuid)".. observation.concept is undefined.
Instead, we should fetch the value from the first entry in RepeatableQuestionGroup as follows:
Tech tasks:
I. for all repetition in RepeatableQuestionGroup
II. for a single repetition in RepeatableQuestionGroup
III. for specific repetition in RepeatableQuestionGroup based on some filter criteria
The text was updated successfully, but these errors were encountered: