A new endpoint should be implemented to receive and handle people's data (person's name, surname, birth date, other registry data, etc.). It is very important to include an array of roles, so that it is possible to populate the Dashboard page and, some day, a "My Account" page.
Here's a quick list of properties that are needed for sure right now:
- User's name and surname;
- User's email address;
- User's role(s) (user / therapist / system admin)
This collection should include something like:
- GET
/people?[facility={id}&type=all], to get a list of people linked to a facility and let the client pre-filter this call by type ("patient", "admin", "doctor" or "all" by default);
- POST
/people, to add a person to a facility (to be passed in the body)
- GET `/people/[id], to get a specific person
etc.
A new endpoint should be implemented to receive and handle people's data (person's name, surname, birth date, other registry data, etc.). It is very important to include an array of roles, so that it is possible to populate the Dashboard page and, some day, a "My Account" page.
Here's a quick list of properties that are needed for sure right now:
This collection should include something like:
/people?[facility={id}&type=all], to get a list of people linked to a facility and let the client pre-filter this call by type ("patient", "admin", "doctor" or "all" by default);/people, to add a person to a facility (to be passed in the body)etc.