Team Management
info
Before you continue, make sure you have a valid facility account. See Create a Facility Account for more information.
Managing Your Team
A facility on MedTrack can have different team members with different roles. The following roles are available:
- Admin: The admin has full access to the facility's account and can manage all aspects of the facility.
- Nurse: The nurse has access to the facility's account and can manage patients and their records.
- Doctor: The doctor has access to the facility's account and can manage patients and their records.
- Pharmacist: The pharmacist has access to the facility's account and can manage medications and their records.
- Laboratory Technician: The laboratory technician has access to the facility's account and can manage laboratory tests and their records.
Adding a Team Member - Non doctors
All users with non-doctor roles (not physician and physician_assistant) can add a team member to the facility
through the AddFacilityNurse mutation. You should specify the approriate roles
for the user you are adding to the facility as some functionalities are role based.
For instance, only a user with role pharmacist can list and dispense facility
mutation AddFacilityNurse($input: AddFacilityNurseInput!) {
addFacilityNurse(input: $input) {
errors {
code
fields
message
shortMessage
vars
}
result {
address
email
firstName
gender
globalId
id
insertedAt
lastName
meta
phone
picture
residence
updatedAt
createdHealthFacility {
id
}
healthFacilityNurses {
id
healthFacilityId
roles
status
}
}
}
}
Input Variables
| Field | Type | Required | Description |
|---|---|---|---|
| String | Yes | Nurse's email address | |
| firstName | String | Yes | Nurse's first name |
| lastName | String | Yes | Nurse's last name |
| phone | String | Yes | Nurse's phone number |
| address | String | No | Nurse's address |
| gender | String | No | Nurse's gender |
| healthFacilityId | Integer | Yes | Nurse's health facility ID |
| departmentId | String | No | Nurse's department ID. If given the nurse will be added to this department within the facility. |
| picture | String | No | Nurse's profile picture URL |
| residence | String | No | Nurse's residence |
| roles | [String] | No | Nurse's roles. By default nurse. Can be pharmacist, lab_technician, dispenser, etc. |
Variables:
{
"input": {
"address": "nurse_address",
"departmentId": "department_id",
"email": "nurse_email@example.com",
"firstName": "nurse_first_name",
"gender": "nurse_gender",
"healthFacilityId": 123,
"lastName": "nurse_last_name",
"phone": "123-456-7890",
"picture": "picture_file_name",
"residence": "nurse_residence",
"roles": ["nurse"]
}
}
Response
{
"data": {
"addFacilityNurse": {
"result": {
"id": "nurse_id",
"email": "nurse_email@example.com",
"firstName": "nurse_first_name",
"lastName": "nurse_last_name",
"phone": "123-456-7890"
}
}
}
}