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

Convert enum choices to integer choices in Daily Rounds #2460

Closed
rithviknishad opened this issue Sep 17, 2024 · 1 comment · Fixed by #2462
Closed

Convert enum choices to integer choices in Daily Rounds #2460

rithviknishad opened this issue Sep 17, 2024 · 1 comment · Fixed by #2462
Assignees

Comments

@rithviknishad
Copy link
Member

class RoundsType(enum.Enum):
NORMAL = 0
DOCTORS_LOG = 50
VENTILATOR = 100
ICU = 200
AUTOMATED = 300
TELEMEDICINE = 400
RoundsTypeChoice = [(e.value, e.name) for e in RoundsType]
RoundsTypeDict = covert_choice_dict(RoundsTypeChoice)
class ConsciousnessType(enum.Enum):
UNKNOWN = 0
ALERT = 5
RESPONDS_TO_VOICE = 10
RESPONDS_TO_PAIN = 15
UNRESPONSIVE = 20
AGITATED_OR_CONFUSED = 25
ONSET_OF_AGITATION_AND_CONFUSION = 30
ConsciousnessChoice = [(e.value, e.name) for e in ConsciousnessType]
class PupilReactionType(enum.Enum):
UNKNOWN = 0
BRISK = 5
SLUGGISH = 10
FIXED = 15
CANNOT_BE_ASSESSED = 20
PupilReactionChoice = [(e.value, e.name) for e in PupilReactionType]
class LimbResponseType(enum.Enum):
UNKNOWN = 0
STRONG = 5
MODERATE = 10
WEAK = 15
FLEXION = 20
EXTENSION = 25
NONE = 30
LimbResponseChoice = [(e.value, e.name) for e in LimbResponseType]
class RythmnType(enum.Enum):
UNKNOWN = 0
REGULAR = 5
IRREGULAR = 10
RythmnChoice = [(e.value, e.name) for e in RythmnType]
class VentilatorInterfaceType(enum.Enum):
UNKNOWN = 0
INVASIVE = 5
NON_INVASIVE = 10
OXYGEN_SUPPORT = 15
VentilatorInterfaceChoice = [(e.value, e.name) for e in VentilatorInterfaceType]
class VentilatorModeType(enum.Enum):
UNKNOWN = 0
VCV = 5
PCV = 10
PRVC = 15
APRV = 20
VC_SIMV = 25
PC_SIMV = 30
PRVC_SIMV = 40
ASV = 45
PSV = 50
VentilatorModeChoice = [(e.value, e.name) for e in VentilatorModeType]
class VentilatorOxygenModalityType(enum.Enum):
UNKNOWN = 0
NASAL_PRONGS = 5
SIMPLE_FACE_MASK = 10
NON_REBREATHING_MASK = 15
HIGH_FLOW_NASAL_CANNULA = 20
VentilatorOxygenModalityChoice = [
(e.value, e.name) for e in VentilatorOxygenModalityType
]
class InsulinIntakeFrequencyType(enum.Enum):
UNKNOWN = 0
OD = 5
BD = 10
TD = 15
InsulinIntakeFrequencyChoice = [
(e.value, e.name) for e in InsulinIntakeFrequencyType
]

@DraKen0009
Copy link
Contributor

@rithviknishad I'll like to pick this up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants