This PR adds models that can be used to create patients and save patient data in a MongoDB database. The patient data is updated every 5 second using a interval function. There are postman tests that check that success of endpoints. This PR closes #24
Related Issue: #24
Feature Name: Patient and Data endpoints
Type of Change
[x] New feature (non-breaking change which adds functionality)
[ ] Enhancement (non-breaking improvement to an existing feature)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
How Has This Been Tested?
Postman tests are updated. Change directory to server and run npm run test
Tested On:
[x] Local machine
[x] CI Pipeline
[ ] Staging environment
Test Description:
[ ] Unit tests
[x] Integration tests
[x] Manual testing
Checklist
[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[ ] I have commented my code where necessary.
[ ] I have added documentation explaining what this feature does and how to use it.
[x] I have added tests to cover my changes.
[ ] I have checked for any security concerns or performance impacts.
Impacted Areas in the Project
The server is changed by this feature. Moreover, some code in the front-end is changed to be able to retrieve patient data from the back-end
Components/Files Affected:server directory and /client/App.tsx along with the hook that receives patient data
Reviewer’s Guide:
Please ensure:
Code is clean and properly documented.
The feature works as expected and doesn’t introduce any regressions.
Description
This PR adds models that can be used to create patients and save patient data in a MongoDB database. The patient data is updated every 5 second using a interval function. There are postman tests that check that success of endpoints. This PR closes #24
Type of Change
How Has This Been Tested?
Postman tests are updated. Change directory to
server
and runnpm run test
Checklist
Impacted Areas in the Project
The server is changed by this feature. Moreover, some code in the front-end is changed to be able to retrieve patient data from the back-end
server
directory and/client/App.tsx
along with the hook that receives patient dataReviewer’s Guide:
Please ensure: