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

Issue with patient export for last consultation but re-registered without consultation filed #1998

Closed
rithviknishad opened this issue Mar 21, 2024 · 2 comments · Fixed by #2002

Comments

@rithviknishad
Copy link
Member

rithviknishad commented Mar 21, 2024

Describe the bug
When a patient is registered again, but no consultation is filed, the patient CSV export contains that patient but consultation-related fields consist of fields related to previous consultation.

To Reproduce
Steps to reproduce the behavior:

  1. Register an existing patient to a facility without filing a consultation
  2. Export the patient list that covers this patient
  3. See error

Screenshots
@nihal467

@rithviknishad rithviknishad changed the title Issue with patient export for last consultation but registered without consultation in another facility Issue with patient export for last consultation but re-registered without consultation filed Mar 21, 2024
@nihal467
Copy link
Member

rithviknishad added a commit that referenced this issue Mar 21, 2024
@rithviknishad
Copy link
Member Author

Decided to ignore patients whose last consultation has a discharge date.

cc: @gigincg

vigneshhari pushed a commit that referenced this issue Mar 22, 2024
… export (#1999)

* fixes issues with annotate + distinct not implemented for csv export

* fixes #1998

* fix typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants