Skip to main content

Nurse Registration

info

Before you continue, make sure you have a valid facility account as a nurse must be associated with a facility. See Create a Facility Account for more information.

Adding a Nurse to a Facility

An admin of a facility with a valid token can add a nurse to the facility.

info

If you need admin token, see Admin Login for more information.

To register a nurse, the admin must provide the following information:

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"
}
}
}
}