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

Improving Asset-Bed and Camera Preset relations and enabling monitoring of a bed via multiple cameras #7511

Closed
5 tasks done
NNSiri opened this issue Apr 1, 2024 · 8 comments · Fixed by #8253
Closed
5 tasks done

Comments

@NNSiri
Copy link

NNSiri commented Apr 1, 2024

Currently, each camera bed preset is stored as an individual AssetBed record (1 preset => 1 AssetBed record; 10 presets => 10 AssetBed records). This is not very efficient. Instead a camera (asset) can be linked to a bed (which represents an AssetBed record), and multiple presets can be added for this AssetBed record.

Action Items

  • Create a new model CameraPreset (having many-to-one relation with AssetBed model).
  • Add fields for tracking modifications made to the CameraPreset records (created_by and modified_by along with created and updated at datetime fields)
  • Necessary changes in FE to reflect these.
  • Enforce unique names for a Bed<>Preset, across cameras.
  • Enable monitoring of 1 bed through multiple cameras.

Originally reported issue

Describe the bug
The Camera Feed option do not appear on most patient pages. This has been observed randomly in many patients cards.
Initially we though it to be dependent on assigning a bed to the patient.
But later we are observing that, inspire of assigning the beds, and under View Facility>Live Monitoring all 3 cameras are functional. But under View Patient>select patient the feed option will not appear.
It must be a bug or it is dependent on some other data entry field, apart from assigning bed to a patient.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Facility > GH Nagamangala'

  2. Click on 'view patients'

  3. Scroll down to 'Patient Name Narayana Swamy Bed 5'

  4. See error Camera Feed option not seen

  5. Go to View Facility > GH Nagamanagala

  6. Click on Live Monitoring

  7. All 3 cameras are Live

Expected behavior
Camera Feed option should be available for all patients with beds assigned.

Screenshots
Camera Feed Feature not appearing
WhatsApp Image 2024-04-01 at 14 33 54_65bf55b9

All 3 cameras are live
WhatsApp Image 2024-04-01 at 14 33 18_79daf601

Desktop (please complete the following information):

  • OS: [e.g. windows ]
  • Browser [e.g. chrome]
@rithviknishad
Copy link
Member

rithviknishad commented Apr 1, 2024

@NNSiri the "Feed" tab/button is hidden for any of the following reasons as of today:

  • No bed assigned to the patient
  • No camera is attached/configured to the patient's bed.
  • The consultation has ended (discharged).
  • User is not one of the following: "District Admin", "State Admin", "Doctor"

@NNSiri could you also specify which user type this bug is present for? The screenshots attached above does not confirm if both are same users.

@gigincg read-only users of the above mentioned users also does not have access to the camera feed from consultation dashboard. Should we allow for read only user types?

image image

@NNSiri
Copy link
Author

NNSiri commented Apr 1, 2024

@rithviknishad

  • Bed is assigned to the patient
  • Camera was configured to the patient (later we found that the presets were getting deleted) this is observed in many hospitals . So may be we should restrict who deletes the Camera Presets.
  • The consultation was not ended. Patient is not yet discharged
  • User : State Admin

@NNSiri
Copy link
Author

NNSiri commented Apr 2, 2024

@rithviknishad We understood, that the issue is observed when the presets are deleted. but we do not know who deleted the presets. can we restrict the delete option, and keep only edit preset option. ?

@gigincg
Copy link
Member

gigincg commented Apr 2, 2024

@NNSiri The presets being deleted seems is being repeatedly reported from the field now. We can work on improving the audit trail for Preset Deletions to track this better.

@rithviknishad Can you update the issue to improve the AssetBed through table as well as add audit-trail for soft deleted presets

@rithviknishad rithviknishad changed the title Camera feed feature do not appear for all patients. Improving AssetBed and Camera Preset relations Apr 2, 2024
@rithviknishad
Copy link
Member

Updated the issue body with the following:

Currently, each camera bed preset is stored as an individual AssetBed record (1 preset => 1 AssetBed record; 10 presets => 10 AssetBed records). This is not very efficient. Instead a camera (asset) can be linked to a bed (which represents an AssetBed record), and multiple presets can be added for this AssetBed record.

Action Items

  • Create a new model CameraPreset (having many-to-one relation with AssetBed model).
  • Add fields for tracking modifications made to the CameraPreset records (created_by and modified_by along with created and updated at datetime fields)
  • Necessary changes in FE to reflect these.

@NNSiri
Copy link
Author

NNSiri commented Apr 16, 2024

Any update on this feature ?

@aeswibon
Copy link
Member

aeswibon commented Apr 16, 2024

@NNSiri We have discussed the issue and I am currently in the process of implementing those changes.

@nihal467
Copy link
Member

@aeswibon unassigning you from this issue due to inactivity ,

@rithviknishad rithviknishad added this to the Camera Feed milestone Aug 19, 2024
@rithviknishad rithviknishad moved this from Up Next to In Progress in Care Aug 22, 2024
@rithviknishad rithviknishad changed the title Improving AssetBed and Camera Preset relations Improving Asset-Bed and Camera Preset relations and enabling monitoring of a bed via multiple cameras Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment