-
Notifications
You must be signed in to change notification settings - Fork 1
Backend
You can create users manually through the admin page. In order to be able to invoke the API(and also to access the UI), you need to:
- Create an admin
User
through the Admin page. - Create a
Medical Personnel
entry for this User through the Admin page.
You should create new Hospitals manually through the admin page. After that, you can use the GET /hospitals/
and the GET /hospitals/{id}/
endpoints to retrieve a list of the hospitals and details of a certain hospital.
You can create a patient using the POST /patients/
endpoint. This endpoint also requires a hospital_id
which is necessary in order to also register this patient to a certain hospital.
After the patient is created, you can use the GET /patients
and GET /patients/{id}/
endpoints to retrieve a list of the patients and details of a certain patient. Those endpoints also return a hospitals
field which is a list of the hospitals that this user is registered to.