From 26882a29a0a2805f060aa04d367eb12364669a01 Mon Sep 17 00:00:00 2001 From: Rithvik Nishad Date: Thu, 20 Apr 2023 14:49:13 +0530 Subject: [PATCH] fixes respiratory support filters and adds badge (#5360) --- src/Components/Patient/ManagePatients.tsx | 8 ++++++++ src/Locale/en/Common.json | 6 +++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Components/Patient/ManagePatients.tsx b/src/Components/Patient/ManagePatients.tsx index d3dc7cda14b..542c7e58b0e 100644 --- a/src/Components/Patient/ManagePatients.tsx +++ b/src/Components/Patient/ManagePatients.tsx @@ -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(() => { @@ -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 = () => { @@ -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", diff --git a/src/Locale/en/Common.json b/src/Locale/en/Common.json index 4fe2df88112..093f43dc374 100644 --- a/src/Locale/en/Common.json +++ b/src/Locale/en/Common.json @@ -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" } \ No newline at end of file