Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEA] Empty encounter eligibility check rule on voided encounter type breaks Subject General tab #1183

Open
1t5j0y opened this issue Mar 28, 2024 · 0 comments

Comments

@1t5j0y
Copy link
Contributor

1t5j0y commented Mar 28, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New Issues
Development

No branches or pull requests

1 participant