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
JS error because encounter.encounterType is null
"Cannot read properties of null (reading 'uuid')". "NewGeneralEncounterButton.js" line 34:93 ${newEncounterBaseURL}?subjectUuid=${subjectUuid}&uuid=${encounter.encounterType.uuid}
Analysis
There is a voided encounter type with id 2156 which is getting returned as an eligible encounter when the subject dashboard tab is loaded but cannot be mapped because it is voided.
This is happening when the encounter_eligibility_check_rule is set to an empty string.
AC
Voided encounter types should not be returned as eligible encounters.
Also, check how this rule was set to blank string?
The text was updated successfully, but these errors were encountered:
https://avni.freshdesk.com/a/tickets/3698
Org: ctrith_iph
Issue
JS error because
encounter.encounterType
is null"Cannot read properties of null (reading 'uuid')". "NewGeneralEncounterButton.js" line 34:93
${newEncounterBaseURL}?subjectUuid=${subjectUuid}&uuid=${encounter.encounterType.uuid}
Analysis
There is a voided encounter type with id 2156 which is getting returned as an eligible encounter when the subject dashboard tab is loaded but cannot be mapped because it is voided.
This is happening when the
encounter_eligibility_check_rule
is set to an empty string.AC
Voided encounter types should not be returned as eligible encounters.
Also, check how this rule was set to blank string?
The text was updated successfully, but these errors were encountered: