Skip to content

Commit

Permalink
fixes respiratory support filters and adds badge (#5360)
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad authored Apr 20, 2023
1 parent db7b9b2 commit 26882a2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/Components/Patient/ManagePatients.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ export const PatientManager = () => {
last_consultation_is_telemedicine:
qParams.last_consultation_is_telemedicine || undefined,
is_antenatal: qParams.is_antenatal || undefined,
ventilator_interface: qParams.ventilator_interface || undefined,
};

useEffect(() => {
Expand Down Expand Up @@ -312,6 +313,7 @@ export const PatientManager = () => {
qParams.last_vaccinated_date_after,
qParams.last_consultation_is_telemedicine,
qParams.is_antenatal,
qParams.ventilator_interface,
]);

const getTheCategoryFromId = () => {
Expand Down Expand Up @@ -841,6 +843,12 @@ export const PatientManager = () => {
ordering(),
value("Category", "category", getTheCategoryFromId()),
badge("Disease Status", "disease_status"),
value(
"Respiratory Support",
"ventilator_interface",
qParams.ventilator_interface &&
t(`RESPIRATORY_SUPPORT_${qParams.ventilator_interface}`)
),
value(
"Gender",
"gender",
Expand Down
6 changes: 5 additions & 1 deletion src/Locale/en/Common.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,9 @@
"select_skills": "Select and add some skills",
"contact_your_admin_to_add_skills": "Contact your admin to add skills",
"add": "Add",
"sort_by": "Sort By"
"sort_by": "Sort By",
"RESPIRATORY_SUPPORT_UNKNOWN": "None",
"RESPIRATORY_SUPPORT_OXYGEN_SUPPORT": "O2 Support",
"RESPIRATORY_SUPPORT_NON_INVASIVE": "NIV",
"RESPIRATORY_SUPPORT_INVASIVE": "IV"
}

0 comments on commit 26882a2

Please sign in to comment.