personalcancertoolkit / openmrs-module-patientportaltoolkit

Other
7 stars 9 forks source link

Admin group messages functionality #440

Closed bmamlin closed 1 year ago

bmamlin commented 2 years ago

@bmamlin and @maurya to discuss options

bmamlin commented 2 years ago

Current approach allows messages between individuals by creating a row for each message with from/to users.

Proposed approach: null == everyone (broadcast)

This approach assumes we don't need the ability for admins to direct messages to a select group of users. This approach also assumes we don't need to know if a broadcast message has been read

bmamlin commented 1 year ago

On further reflection, we will want individual users to be able to delete (or mark the message read), which would require a separate table to track individual. It will be easier to simply create a new row for each individual message.

The updated approach would be something like: