From 5027d5b013776850107fe5f5fb1de9842687f16d Mon Sep 17 00:00:00 2001 From: Rithvik Nishad Date: Fri, 20 Sep 2024 17:13:21 +0530 Subject: [PATCH] Rename procedure `Tracheostomy Tube Change` and fix oral issue not getting unselected (#8576) --- src/Common/constants.tsx | 2 +- src/Components/Patient/DailyRounds.tsx | 4 ++++ src/Locale/en/LogUpdate.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Common/constants.tsx b/src/Common/constants.tsx index 8149a144ed9..c2ddf842665 100644 --- a/src/Common/constants.tsx +++ b/src/Common/constants.tsx @@ -759,7 +759,7 @@ export const NURSING_CARE_PROCEDURES = [ "restrain", "chest_tube_care", "tracheostomy_care", - "tracheostomy_change", + "tracheostomy_tube_change", "stoma_care", "catheter_care", "catheter_change", diff --git a/src/Components/Patient/DailyRounds.tsx b/src/Components/Patient/DailyRounds.tsx index f949bd9e404..ff5ddf43fdf 100644 --- a/src/Components/Patient/DailyRounds.tsx +++ b/src/Components/Patient/DailyRounds.tsx @@ -444,6 +444,10 @@ export const DailyRounds = (props: any) => { form["investigations_dirty"] = true; } + if (event.name === "nutrition_route" && event.value !== "ORAL") { + form["oral_issue"] = undefined; + } + dispatch({ type: "set_form", form }); }; diff --git a/src/Locale/en/LogUpdate.json b/src/Locale/en/LogUpdate.json index ec5dfe8521e..2e94643fd91 100644 --- a/src/Locale/en/LogUpdate.json +++ b/src/Locale/en/LogUpdate.json @@ -131,7 +131,7 @@ "NURSING_CARE_PROCEDURE__restrain": "Restrain", "NURSING_CARE_PROCEDURE__chest_tube_care": "Chest Tube Care", "NURSING_CARE_PROCEDURE__tracheostomy_care": "Tracheostomy Care", - "NURSING_CARE_PROCEDURE__tracheostomy_change": "Tracheostomy change ", + "NURSING_CARE_PROCEDURE__tracheostomy_tube_change": "Tracheostomy Tube Change", "NURSING_CARE_PROCEDURE__stoma_care": "Stoma Care", "NURSING_CARE_PROCEDURE__catheter_care": "Catheter Care", "NURSING_CARE_PROCEDURE__catheter_change": "Catheter Change",