Skip to content

Commit

Permalink
Merge pull request #8393 from coronasafe/rithviknishad/fix/staging-pa…
Browse files Browse the repository at this point in the history
…tch-avoid-to-reversed

Fixes neurological tab from crashing in older browsers
  • Loading branch information
khavinshankar authored Aug 22, 2024
2 parents 154fe43 + 2719156 commit 77857d5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
24 changes: 12 additions & 12 deletions src/Common/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -716,27 +716,27 @@ export const NURSING_CARE_PROCEDURES = [
] as const;

export const EYE_OPEN_SCALE = [
{ value: 4, text: "Spontaneous" },
{ value: 3, text: "To Speech" },
{ value: 2, text: "To Pain" },
{ value: 1, text: "No Response" },
{ value: 2, text: "To Pain" },
{ value: 3, text: "To Speech" },
{ value: 4, text: "Spontaneous" },
];

export const VERBAL_RESPONSE_SCALE = [
{ value: 5, text: "Oriented to Time, Place and Person" },
{ value: 4, text: "Confused/Irritable" },
{ value: 3, text: "Inappropriate words/Cry to Pain" },
{ value: 2, text: "Incomprehensible words/Moans to pain" },
{ value: 1, text: "No Response" },
{ value: 2, text: "Incomprehensible words/Moans to pain" },
{ value: 3, text: "Inappropriate words/Cry to Pain" },
{ value: 4, text: "Confused/Irritable" },
{ value: 5, text: "Oriented to Time, Place and Person" },
];

export const MOTOR_RESPONSE_SCALE = [
{ value: 6, text: "Obeying commands/Normal acrivity" },
{ value: 5, text: "Moves to localized pain" },
{ value: 4, text: "Flexion/Withdrawal from pain" },
{ value: 3, text: "Abnormal Flexion(decorticate)" },
{ value: 2, text: "Abnormal Extension(decerebrate)" },
{ value: 1, text: "No Response" },
{ value: 2, text: "Abnormal Extension(decerebrate)" },
{ value: 3, text: "Abnormal Flexion(decorticate)" },
{ value: 4, text: "Flexion/Withdrawal from pain" },
{ value: 5, text: "Moves to localized pain" },
{ value: 6, text: "Obeying commands/Normal acrivity" },
];
export const CONSULTATION_TABS = [
{ text: "UPDATES", desc: "Overview" },
Expand Down
6 changes: 3 additions & 3 deletions src/Components/LogUpdate/Sections/NeurologicalMonitoring.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const NeurologicalMonitoring = ({ log, onChange }: LogUpdateSectionProps) => {
<div className="p-2">
<RadioFormField
label={<b>Eye Opening Response</b>}
options={EYE_OPEN_SCALE.toReversed()}
options={EYE_OPEN_SCALE}
optionDisplay={(c) => c.value + " - " + c.text}
optionValue={(c) => `${c.value}`}
name="eye_opening_response"
Expand All @@ -109,7 +109,7 @@ const NeurologicalMonitoring = ({ log, onChange }: LogUpdateSectionProps) => {
/>
<RadioFormField
label={<b>Verbal Response</b>}
options={VERBAL_RESPONSE_SCALE.toReversed()}
options={VERBAL_RESPONSE_SCALE}
optionDisplay={(c) => c.value + " - " + c.text}
optionValue={(c) => `${c.value}`}
name="verbal_response"
Expand All @@ -123,7 +123,7 @@ const NeurologicalMonitoring = ({ log, onChange }: LogUpdateSectionProps) => {
/>
<RadioFormField
label={<b>Motor Response</b>}
options={MOTOR_RESPONSE_SCALE.toReversed()}
options={MOTOR_RESPONSE_SCALE}
optionDisplay={(c) => c.value + " - " + c.text}
optionValue={(c) => `${c.value}`}
name="motor_response"
Expand Down

0 comments on commit 77857d5

Please sign in to comment.