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

Heartbeat description is missing in events log #8457

Closed
nihal467 opened this issue Sep 2, 2024 · 3 comments · Fixed by ohcnetwork/care#2467
Closed

Heartbeat description is missing in events log #8457

nihal467 opened this issue Sep 2, 2024 · 3 comments · Fixed by ohcnetwork/care#2467
Assignees
Labels
Backend bug Something isn't working

Comments

@nihal467
Copy link
Member

nihal467 commented Sep 2, 2024

Describe the bug

Heartbeat description we added during a patient log update is missing in the events log present in the patients consultation page

To Reproduce
Steps to reproduce the behavior:

  1. Go to patient tab and open any active consultation
  2. click on the log update and add a rhythm description for the patient and save it
  3. in the patient consultation page, on the event log
  4. See the error

Expected behavior

Heartbeat rhythm description should be visible in the events log at the patient consultation page

Screenshots

image
image

@HitishRaoP
Copy link
Contributor

@nihal467 when we submit the Log Update Form, it is logged as rhythm_detail but when we fetch it from the api to display in the evenlist page it is logged as rhythm_details and it is always null. I think this is causing the error.

During Form submission:
Screenshot 2024-09-11 171726

Fetching from api:
Screenshot 2024-09-11 171751

@rithviknishad
Copy link
Member

rithviknishad commented Sep 12, 2024

Thanks for debugging the root cause @HitishRaoP

Looks like there's a spelling mistake in the event types. It'll have to be updated here: https://github.com/ohcnetwork/care/blob/develop/care/facility/management/commands/load_event_types.py#L123

cc: @sainak

@github-project-automation github-project-automation bot moved this to Triage in Care Sep 12, 2024
@rithviknishad rithviknishad moved this from Triage to Up Next in Care Sep 12, 2024
@rithviknishad rithviknishad added the bug Something isn't working label Sep 12, 2024
@rithviknishad rithviknishad moved this from Up Next to Review required in Care Sep 19, 2024
@DraKen0009
Copy link

@rithviknishad can you please assign this issue to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants