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

Fixes neurological tab from crashing in older browsers #8392

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Loading