nextcloud / health

Nextcloud health app
GNU Affero General Public License v3.0
95 stars 19 forks source link

Add medication module #125

Closed kenda closed 2 years ago

kenda commented 2 years ago

About

PR adds a medication module based on:

Changes

datenangebot commented 2 years ago

Hi, great work and thank you!

As I'm on vacation right now, I will have a detailed look and merge right after this in about 2 Weeks.

datenangebot commented 2 years ago

@kenda What is the relation between "medication plan" and "medication"? I thought you have many medications belonging to a plan. But I merged your PR and if I click on one plan I see always all medications (in the second table). Can you help?

kenda commented 2 years ago

Yes, the relationship is correct. A medication plan (like the German "ABDA Medikationsplan" [1]) represents the medication of a person at a certain point of time. This might be the current medication or from the past. I see two main use cases:

1) A user has one medication plan always reflecting the current medication 2) A user is tracking medication changes by creating a new plan as soon as there are any changes and therefore receives a complete history of the taken medication. (That was my main use case for tracking medication changes during a longer hospital visit.)

What might confuse you is the fact that creating a new medication plan takes over the medication from the previous medication plan. That is basically a convenience feature.

Does this help you? Does it make sense to you?

[1] https://www.abda.de/themen/arzneimitteltherapiesicherheit/medikationsplan/

datenangebot commented 2 years ago

Okay, thanks for the words. The feature might make sense, but I guess a hint for it is very useful. Maybe just a hint text at the creating form for the plans? What do you think?

kenda commented 2 years ago

Yes, agree. Even better would be probably an option "Take over previous medication?" when creating a new plan. I see if I find the time in the next days to add this.

datenangebot commented 2 years ago

do you like to send me a pull request for that option?

kenda commented 2 years ago

Definitely. Currently working on it ;)