Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add notifications for file upload , prescription #7589

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/Common/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,16 @@ export const NOTIFICATION_EVENTS: NotificationEvent[] = [
text: "Patient Note Added",
icon: "l-notes",
},
{
id: "PATIENT_PRESCRIPTION_CREATED",
text: "Patient Consultation Created",
icon: "l-capsule",
},
{
id: "PATIENT_PRESCRIPTION_UPDATED",
text: "Patient Consultation Updated",
icon: "l-capsule",
},
rash-27 marked this conversation as resolved.
Show resolved Hide resolved
];

export const BREATHLESSNESS_LEVEL = [
Expand Down
8 changes: 8 additions & 0 deletions src/Components/Notifications/NotificationsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ const NotificationTile = ({
return `/facility/${data.facility}/patient/${data.patient}/notes`;
case "MESSAGE":
return "/notice_board/";
case "CONSULTATION_FILE_UPLOAD_CREATED":
return `/facility/${data.facility}/patient/${data.patient}/consultation/${data.consultation}/files`;
case "PATIENT_FILE_UPLOAD_CREATED":
return `/facility/${data.facility}/patient/${data.patient}/files`;
case "PATIENT_PRESCRIPTION_CREATED":
return `/facility/${data.facility}/patient/${data.patient}/consultation/${data.consultation}/medicines`;
case "PATIENT_PRESCRIPTION_UPDATED":
return `/facility/${data.facility}/patient/${data.patient}/consultation/${data.consultation}/medicines`;
default:
return "#";
}
Expand Down
Loading