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

feature request: analgesic/anesthetic administration table #914

Open
nsteinme opened this issue Feb 14, 2025 · 2 comments
Open

feature request: analgesic/anesthetic administration table #914

nsteinme opened this issue Feb 14, 2025 · 2 comments
Labels

Comments

@nsteinme
Copy link
Contributor

We're being encouraged to have surgery documentation systems that automatically prompt users about what analgesics or other meds are required by protocol to be delivered. I think the simplest way would probably be to set up notifications to the user (by email) when they create a surgery. The user is already selecting 'procedure types' that are part of the surgery, so each one of these could be associated with the required meds. So maybe there would be a table of "meds administration" with fields 'name' (string, name of the medication), 'dosage' (probably just a string describing the calculation or specific amount), 'deadline' (in time relative to procedure) and a 1-multiple relationship between Procedure types and meds administration. Then when the user creates a surgery and selects procedures, the appropriate meds would be triggered and emails sent at the deadline.

Optional components are 1) a system of letting the user mark whether they have completed it or not. This would make it easy to keep reminding people until they do it and easy to programmatically prove that protocol obligations are being met. But, we already have a 'notes' field where people can write what drugs they've given. 2) a way to calculate and communicate dosage based on the known weight of the subject in cases where dosage is weight dependent. again, not critical, if the formula is described in a string people can calculate it themselves.

@oliche oliche added the feature label Feb 16, 2025
@k1o0
Copy link
Collaborator

k1o0 commented Feb 20, 2025

Sounds like a good idea. Perhaps we can generalize this a little by having a pharmaceuticals and administrations model. The administrations could have a m2m relationship to pharmaceuticals and procedures, along with a dosage (float) and unit (char) field. A management command that's run as a cron job can queue the notifications and potentially calculate dosage based on recorded weight. The management command will contain logic specific to your lab. Another option could potentially be Django signal callbacks. We would then add a specific notification rule that would trigger email reminders. I'll look into it during the next sprint.

@nsteinme
Copy link
Contributor Author

Thanks! Happy to keep it as simple as possible, especially for a first version. But definitely your ideas all sound good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants