CombiRWTH / medical-staff-assessment

Webapp for assessing medical staff according to the German "Pflegepersonalbemessungsverordnung"
3 stars 2 forks source link

Add the endpoint to retrieve the patients #57

Closed lennart-huesing closed 6 days ago

lennart-huesing commented 1 week ago

Please note: This branch relies on the model DailyClassifications which will be changed by https://github.com/CombiRWTH/medical-staff-assessment/pull/55/files. Which ever gets merged last, needs to adjust this.

Closes #32 For Testing this endpoint you need at least one Station, one Patient and a DailyClassification for them. Patients are only assigned to a station if the classification has been made today or yesterday.

Example Response: [ { "id": 1, "first_name": "Test Patient", "last_name": "test", "date_of_birth": "2024-11-20", "weight": 1, "height": 1, "classified_today": false }, { "id": 2, "first_name": "test2", "last_name": "test", "date_of_birth": "2024-11-20", "weight": 1, "height": 1, "classified_today": true } ]