Skip to main content

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:

  1. Admin: The admin has full access to the facility's account and can manage all aspects of the facility.
  2. Nurse: The nurse has access to the facility's account and can manage patients and their records.
  3. Doctor: The doctor has access to the facility's account and can manage patients and their records.
  4. Pharmacist: The pharmacist has access to the facility's account and can manage medications and their records.
  5. 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

FieldTypeRequiredDescription
emailStringYesNurse's email address
firstNameStringYesNurse's first name
lastNameStringYesNurse's last name
phoneStringYesNurse's phone number
addressStringNoNurse's address
genderStringNoNurse's gender
healthFacilityIdIntegerYesNurse's health facility ID
departmentIdStringNoNurse's department ID. If given the nurse will be added to this department within the facility.
pictureStringNoNurse's profile picture URL
residenceStringNoNurse's residence
roles[String]NoNurse'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"
}
}
}
}