-
Notifications
You must be signed in to change notification settings - Fork 423
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: Renaming patient categorisation #7811 #7820
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -375,16 +375,16 @@ export const RESPIRATORY_SUPPORT = [ | |
{ id: "NONE", text: "UNKNOWN" }, | ||
]; | ||
|
||
export type PatientCategoryID = "Comfort" | "Stable" | "Moderate" | "Critical"; | ||
export type PatientCategoryID = "Comfort" | "Mild" | "Moderate" | "Critical"; | ||
|
||
export const PATIENT_CATEGORIES: { | ||
id: PatientCategoryID; | ||
text: PatientCategory; | ||
twClass: string; | ||
}[] = [ | ||
{ id: "Comfort", text: "Comfort Care", twClass: "patient-comfort" }, | ||
{ id: "Stable", text: "Stable", twClass: "patient-stable" }, | ||
{ id: "Moderate", text: "Abnormal", twClass: "patient-abnormal" }, | ||
{ id: "Mild", text: "Mild", twClass: "patient-mild" }, | ||
{ id: "Moderate", text: "Moderate", twClass: "patient-moderate" }, | ||
{ id: "Critical", text: "Critical", twClass: "patient-critical" }, | ||
]; | ||
|
||
|
@@ -683,8 +683,8 @@ 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: 3, text: "Moderate Flexion(decorticate)" }, | ||
{ value: 2, text: "Moderate Extension(decerebrate)" }, | ||
Comment on lines
+686
to
+687
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why was this changed? Totally unrelated to patient category. |
||
{ value: 1, text: "No Response" }, | ||
]; | ||
export const CONSULTATION_TABS = [ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,8 +79,8 @@ function TabPanel(props: TabPanelProps) { | |
|
||
const PatientCategoryDisplayText: Record<PatientCategory, string> = { | ||
"Comfort Care": "COMFORT CARE", | ||
Stable: "STABLE", | ||
Abnormal: "ABNORMAL", | ||
Mild: "MILD", | ||
Moderate: "MODERATE", | ||
Comment on lines
+82
to
+83
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Keys need not be changed. Just display text needs to be changed |
||
Critical: "CRITICAL", | ||
}; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ export default function PatientCategorySelect( | |
"h-2 w-2 rounded-full", | ||
{ | ||
Comfort: "bg-patient-comfort", | ||
Stable: "bg-patient-stable", | ||
Mild: "bg-patient-stable", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here too |
||
Moderate: "bg-patient-abnormal", | ||
Critical: "bg-patient-critical", | ||
}[option.id], | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need not change the ID' and tailwind classess. You can just change the labels (text)