Skip to content

Commit

Permalink
fixes: Renaming patient categorisation #7811
Browse files Browse the repository at this point in the history
  • Loading branch information
Sulochan-khadka committed May 14, 2024
1 parent cd56431 commit e8e10a6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
10 changes: 5 additions & 5 deletions src/Common/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -371,16 +371,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" },
];

Expand Down Expand Up @@ -679,8 +679,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)" },
{ value: 1, text: "No Response" },
];
export const CONSULTATION_TABS = [
Expand Down
6 changes: 1 addition & 5 deletions src/Components/Facility/models.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,7 @@ export interface OptionsType {
disabled?: boolean;
}

export type PatientCategory =
| "Comfort Care"
| "Stable"
| "Abnormal"
| "Critical";
export type PatientCategory = "Comfort Care" | "Mild" | "Moderate" | "Critical";

export interface ConsultationModel {
encounter_date: string;
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Patient/ManagePatients.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Critical: "CRITICAL",
};

Expand Down
2 changes: 1 addition & 1 deletion src/Components/Patient/PatientCategorySelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Moderate: "bg-patient-abnormal",
Critical: "bg-patient-critical",
}[option.id],
Expand Down

0 comments on commit e8e10a6

Please sign in to comment.