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