ohcnetwork / care_fe

Care is a Digital Public Good enabling TeleICU & Decentralised Administration of Healthcare Capacity across States.
https://care.ohc.network
MIT License
252 stars 435 forks source link

Respiratory Support Logs Not Displaying Correctly Without Mode Selection #9136

Open nihal467 opened 2 hours ago

nihal467 commented 2 hours ago

Describe the bug

edge case bug from : https://github.com/ohcnetwork/care_fe/pull/8781

When creating a detailed log update with respiratory support options (NIV, IV, OS) but without selecting a mode, the data does not display correctly in the ventilator log or graph, even though the data itself is being stored correctly.

To Reproduce Steps to reproduce the behavior:

  1. Navigate to the Patient Consultation page.
  2. Click on Log Update and create a detailed log update.
  3. In the Respiratory Support section, select NIV, IV, or OS without selecting a mode.
  4. Submit the form and navigate to the Ventilator section.
  5. Observe the error in the log and graph display.

Expected behavior

Screenshots

Image

Image

github-actions[bot] commented 2 hours ago

:warning: Refrain from assigning this issue to yourself if you have another P1 issue assigned that is not yet closed.