ohcnetwork / care

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

Update bed types #1930

Open sainak opened 8 months ago

sainak commented 8 months ago

coronasafe/care@master/care/facility/models/facility.py#L20-L39

make custom migrations to migrate deprecated types to new types

required for https://github.com/coronasafe/care_fe/pull/7300

arnit-coder commented 8 months ago

Is anyone working of this issue? If not can you please assign this issue to me?

sainak commented 8 months ago

@arnit-coder will you be able to work on this?

arnit-coder commented 8 months ago

Yaa sure, I may give it a try. But There may be the delay because my mid semester exams are coming.

Ayush398 commented 8 months ago

if @arnit-coder is not able to resolve this can I make a pull request to resolve this issue.

arnit-coder commented 8 months ago

if @arnit-coder is not able to resolve this can I make a pull request to resolve this issue.

Actually my mid sems are going on so I won't get a plenty of time to work on this issue. I will try to close this issue by end of this week. If I would not be able to do I will for sure contact you.

DraKen0009 commented 7 months ago

@arnit-coder I can help with this issue if you are busy

DraKen0009 commented 7 months ago
BASE_ROOM_TYPES = [
    (1, "General Bed"),
    (10, "ICU"),
    # (20, "Ventilator"), => ICU
    # (30, "Covid Beds"), => Isolation beds
    # (100, "Covid Ventilators"), => Isolation beds
    # (110, "Covid ICU"), => Isolation beds
    # (120, "Covid Oxygen beds"), => Isolation beds
    (150, "Oxygen beds"),
    (4, "Isolation beds"),
    (5, "Others")
]

ROOM_TYPES = [
    (0, "Total"),
    # (2, "Hostel"), => Other
    # (3, "Single Room with Attached Bathroom"), => other
    (40, "KASP Beds"),
    (50, "KASP ICU beds"),
    (60, "KASP Oxygen beds"),
    # (70, "KASP Ventilator beds"), => KASP ICU beds
]

@sainak is it the correct order of shifting the data?

rithviknishad commented 2 months ago

@gigincg waiting for your comment on https://github.com/ohcnetwork/care/pull/1994#issuecomment-2044750616