Open aparnacoronasafe opened 6 months ago
hey @rithviknishad please assign this issue to me.
@rithviknishad for oxygen do we have any icon already at add oxygen details button?
Couldn't find one specific to oxygen/cylinder. You could use the same one as the one used in the "Add Triage" button.
Hi @rithviknishad, we need 4 new api endpoints (Get,Post,Put,Delete) for Oxygen Section at facility home page. can i create those or do i have to raise a issue?
Also while making Post api call at update facility button should we remove oxygen data that we are sending (as in ui we have removed) or keep default values to be 0. since if we remove oxygen related data for api call i guess we will also need to update that endpoint.
You could simply use the existing PATCH facility api instead right?
@rithviknishad this one?
Yup!
and what about fetching oxygen details? should i use this
You don't need to fetch anything right? The parent component which is the facility details page, already would have fetched the facility record right? Just pass it down as a prop?
@rithviknishad is the issue still on? Can I work on this?
Is your feature request related to a problem? Please describe. Details of oxygen storage and consumption may not be very relevant for many facilities registered in CARE.
Hence the data input fields may be moved to a separate section in the facility dashboard https://care.coronasafe.in/facility/40ff580a-b37f-4738-b74c-25073d6b1288 (like the bed capacity and doctor's list)
Describe the solution you'd like
[ ] Remove the oxygen related fields from facility registration form https://care.coronasafe.in/facility/40ff580a-b37f-4738-b74c-25073d6b1288/update
[ ] On facility dashboard edit the title "Oxygen Information" to "Details on oxygen supply and consumption"
[ ] Add button to "Add details"
[ ] Pop-up to be added (design consistent with "Bed Capacity") Pop-up title "Add oxygen details" with
Type of oxygen (dropdown with "Liquid Oxygen, Type B cylinder, Type C cylinder, Type D cylinder"
Field for Max. Capacity and Expected burn rate to be added on the Pop-up window
[ ] Visualisation of the details to be kept in consistent with the visualisation of bed capacity and doctors list.