diff --git a/src/CAREUI/display/Timeline.tsx b/src/CAREUI/display/Timeline.tsx index 7fcb57f56ea..156405eb688 100644 --- a/src/CAREUI/display/Timeline.tsx +++ b/src/CAREUI/display/Timeline.tsx @@ -52,6 +52,10 @@ interface TimelineNodeProps { export const TimelineNode = (props: TimelineNodeProps) => { const name = useContext(TimelineContext); + let newName: string | null = null; + if (props.name === "daily round details Event") { + newName = props.name.replace("daily round", "log update"); + } const { t } = useTranslation(); return ( @@ -95,7 +99,9 @@ export const TimelineNode = (props: TimelineNodeProps) => { {props.titleSuffix || ( <> {`${props.event.type} the `} - {props.name || name} + + {newName || props.name || name} + )}

diff --git a/src/Common/constants.tsx b/src/Common/constants.tsx index 4a490f34e78..1d006ca18fd 100644 --- a/src/Common/constants.tsx +++ b/src/Common/constants.tsx @@ -575,12 +575,12 @@ export const NOTIFICATION_EVENTS: NotificationEvent[] = [ }, { id: "PATIENT_CONSULTATION_CREATED", - text: "Patient Consultation Created", + text: "Patient Log Created", icon: "l-heart", }, { id: "PATIENT_CONSULTATION_UPDATED", - text: "Patient Consultation Updated", + text: "Patient Log Updated", icon: "l-heart-medical", }, { @@ -605,12 +605,12 @@ export const NOTIFICATION_EVENTS: NotificationEvent[] = [ }, { id: "PATIENT_CONSULTATION_UPDATE_CREATED", - text: "Patient Consultation Update Created", + text: "Patient Log Update Created", icon: "l-heart", }, { id: "PATIENT_CONSULTATION_UPDATE_UPDATED", - text: "Patient Consultation Update Updated", + text: "Patient Log Update Updated", icon: "l-heart-medical", }, { diff --git a/src/Components/Common/Breadcrumbs.tsx b/src/Components/Common/Breadcrumbs.tsx index bb5419bbe10..3149650628a 100644 --- a/src/Components/Common/Breadcrumbs.tsx +++ b/src/Components/Common/Breadcrumbs.tsx @@ -13,6 +13,7 @@ const MENU_TAGS: { [key: string]: string } = { external_results: "External Results", users: "Users", notice_board: "Notice Board", + "daily-rounds": "Log Update", }; const capitalize = (string: string) => { diff --git a/src/Components/CriticalCareRecording/CriticalCare__Index.res b/src/Components/CriticalCareRecording/CriticalCare__Index.res index 0290728fd82..945849f89a6 100644 --- a/src/Components/CriticalCareRecording/CriticalCare__Index.res +++ b/src/Components/CriticalCareRecording/CriticalCare__Index.res @@ -113,7 +113,7 @@ let make = (
-

{str("Consultation Update")}

+

{str("Log Update")}

diff --git a/src/Components/Facility/ConsultationDetails/ConsultationUpdatesTab.tsx b/src/Components/Facility/ConsultationDetails/ConsultationUpdatesTab.tsx index d00b77d9bca..c1aa4a1f3ae 100644 --- a/src/Components/Facility/ConsultationDetails/ConsultationUpdatesTab.tsx +++ b/src/Components/Facility/ConsultationDetails/ConsultationUpdatesTab.tsx @@ -661,7 +661,7 @@ export const ConsultationUpdatesTab = (props: ConsultationTabProps) => {
} - tab1="Daily Rounds" + tab1="Log Updates" onClickTab1={() => setShowEvents(false)} onClickTab2={() => setShowEvents(true)} isTab2Active={showEvents} diff --git a/src/Components/Notifications/NotificationsList.tsx b/src/Components/Notifications/NotificationsList.tsx index 2de3ae7922c..a71f3db9705 100644 --- a/src/Components/Notifications/NotificationsList.tsx +++ b/src/Components/Notifications/NotificationsList.tsx @@ -350,7 +350,26 @@ export default function NotificationsList({ }) .then((res) => { if (res && res.data) { - setData(res.data.results); + const toChangeId = [ + "PATIENT_CONSULTATION_UPDATED", + "PATIENT_CONSULTATION_UPDATE_CREATED", + "PATIENT_CONSULTATION_UPDATE_UPDATED", + "PATIENT_CONSULTATION_CREATED", + ]; + const modifiedData = res.data.results.map((notification: any) => { + if (toChangeId.includes(notification.event)) { + return { + ...notification, + message: notification.message.replace( + "Consultation", + "Log Updates", + ), + }; + } else { + return notification; + } + }); + setData(modifiedData); setUnreadCount( res.data.results?.reduce( (acc: number, result: any) => acc + (result.read_at ? 0 : 1), diff --git a/src/Components/Patient/DailyRoundListDetails.tsx b/src/Components/Patient/DailyRoundListDetails.tsx index 66536c986ca..162025f8864 100644 --- a/src/Components/Patient/DailyRoundListDetails.tsx +++ b/src/Components/Patient/DailyRoundListDetails.tsx @@ -33,7 +33,7 @@ export const DailyRoundListDetails = (props: any) => { return (