Skip to content

Commit

Permalink
Avoid unnecessary toReversed fn. invocation (ohcnetwork#8392)
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad authored and UdaySagar-Git committed Aug 23, 2024
1 parent 18989ea commit b7d617c
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 @@ -721,27 +721,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 b7d617c

Please sign in to comment.