ojosproject / iris

Iris, the at-home hospice management system by the Ojos Project. Made with 💙💛 at UCI.
https://ojosproject.org/iris/
GNU General Public License v3.0
1 stars 1 forks source link

Medication Logging #22

Closed luongp134 closed 1 week ago

luongp134 commented 2 months ago

ID: FUNC3 TITLE: Medication Logging DESCRIPTION: The system must be able to record and log user inputs of various medication data. It must additionally include various fields and provide reminders of the medication. It may, at first internet-connected launch, display medications from the openFDA NDC Directory database. PRIORITY: High

FRONTEND TODO:

BACKEND TODO:

Carlos' edit: Removed "Next refill" as a requirement.

calejvaldez commented 2 months ago

Backend todo:

calejvaldez commented 2 months ago

We should check in to figure out if frequency is needed.

Also, I'll try to get the total prescribed medication on Friday's meeting... or sooner. Added in b57d9f33098f4139f0b87e18c1e3c81df13656df

https://github.com/ojosproject/iris/blob/3ebd5886fb80202e39c32bf508af09e71ea5f0e7/src/app/log_view/page.tsx#L180-L182

luongp134 commented 2 months ago

Backend todo:

Implement the medication "interval" information (e.g. _x per day)

@calejvaldez

luongp134 commented 1 month ago

Backend todo:

* [ ]   Implement the medication "interval" information (e.g. _x per day)

@calejvaldez

Will not be implemented for the time being

luongp134 commented 1 month ago
calejvaldez commented 1 month ago

The commands will be properly documented in main.rs for frontend devs: https://github.com/ojosproject/iris/blob/Medication-Logging/src-tauri/src/main.rs

(Note: A Vec is basically an array!)

calejvaldez commented 1 month ago

Another thing for backend to worry about later: implement an async function running in the background to constantly check on the time and send out a notification when it's time to take a medication.

Another solution may be to implement like, a callback function. Writing this here just to keep it in writing.

calejvaldez commented 1 month ago

Stopping for now.

I need to make the "Add Medication" button require more fields, such as brand, dosage, supply, etc. This will be done soon. I'm also going to remove some of the placeholder code we had for testing and add the actual invoke() code.

calejvaldez commented 1 week ago

A good chunk of things have been implemented, and the page is mostly functional. At this point, I'm just focusing on styling and refactoring (specifically, naming).

More things should be implemented in future releases, and issues will be created for them soon.

calejvaldez commented 1 week ago

Alright, I think it's ready.

A few issues:

These issues will be implemented later on. At least for now, we have functional medication logging.