Dispense med function#37
Conversation
|
oooooooo.... I pulled up mongo compass, and checked the dispense logs there, it is in fact logging every time a medication was dispensed. So they only thing that is not working is my controller, to get the dispense log. |
|
ahh ok, Yea maybe just quantity on the dispense form for the front end. |
|
I just changed the dispense controller to use populate, and took store , lot , and ndc, off of the log model . |
|
Changed Create and Dispense Controllers, and |
|
Awesome job implementing all of this!
|
|
It is working and now it has its own controller and route files. note for testing in post man , the route name changed, instead of |
|
I kept getting an "invalid token" error, and I believe it might be related to the "expires in 1hr" setting in the token configuration. It might not be necessary in this case I changed it to 24 hours, |
|
conflicts resolved |
devandres-tech
left a comment
There was a problem hiding this comment.
changes look good



Description
1) What does this PR do? 2) List out what you did.
Dispense medication
Feature update/change/addition, bug fix, styling update, etc.
new feature
Testing Instructions
end point and body

note: I included , creating a dispenseLog model, and a "retrieve Dispense Log" controller , located directly under the dispense medication controller. I have not figured out how this works yet, I just new it would be the 2nd part of the dispense med function. Both are located in the medication controller.