-
Notifications
You must be signed in to change notification settings - Fork 0
REST API
/api/patients/
Returns JSON Object containing all the patients. It contains information that is important for an overview like the recent status of a patient and whether he gets critical. It looks like this:
[
{
"id": 2,
"first_name": "Adriana",
"last_name": "C. Ocampo Uria",
"last_update": "2019-12-21T15:18:26.666167Z",
"midos_status": "good",
"health_status": "medium"
},
{
"id": 3,
"first_name": "Edmond",
"last_name": "Halley",
"last_update": "2019-12-21T15:18:45.070093Z",
"midos_status": "bad",
"health_status": "medium"
},
{
"id": 4,
"first_name": "Gertrude",
"last_name": "B. Elion",
"last_update": "2019-12-21T15:18:55.977195Z",
"midos_status": "critical",
"health_status": "critical"
},
...
]/api/patient/id/
Returns the all the lifetime data of a patient in a JSON Object:
{
"id": 2,
"age":72,
"address": "Fürther Straße 10a",
"under supervision": true,
},/api/patient/id/contacts/
If patient allows doctor access to contact data list of contacts is returned. Else no permissions is returned with 401 Unauthorized.
[
{
"id": 1,
"name": "Petra Müller",
"phone": "+49123456",
},
{
"id": 2,
"name": "Karl Heinrich",
"phone": "+49123456",
},
]
or
{
"No permissons: patient denied access"
}api/patient/id/midos/
A list of all the measurements is returned
{
},api/patient/id/midos/y=2019
Midos data for the entire year is returned
api/patient/id/midos/m=2019-10 Midos data for the entire october is returned
api/patient/id/midos/w=2019-42 Midos data for the entire calendar week 42 is returned
api/patient/id/midos/d=2019-12-01 Midos data for december the first is returned
The same logic is applied for biometric data e.g.
api/patient/id/health/y=2019