Nurse Patients
Function-calling namespace: nursePatients
- Base URL:
https://api.aivida.in - Engine endpoint:
POST /api - Auth: Stack token middleware enabled in
optionalmode. - Send token in header:
x-stack-access-token: <access_token>(orAuthorization: Bearer <access_token>). - In
optionalmode: no token is allowed; invalid token is rejected with401.
activateMedication
Source: backend/endpoints/nurse-patients/activate-medication
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | Yes | - |
patientId | string | Yes | - |
medicationName | string | Yes | - |
Example Request
curl -X POST https://api.aivida.in/api \
-H "Content-Type: application/json" \
-H "x-stack-access-token: <access_token_optional>" \
-d '{
"namespace": "nursePatients",
"apiName": "activateMedication",
"data": {
"organizationId": "org_123",
"patientId": "patient_123",
"medicationName": "value"
}
}'Example Response
{ "status": "ok", "data": {} }getDetailByOrganizationId
Source: backend/endpoints/nurse-patients/get-detail-by-organization-id
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | Yes | - |
patientId | string | Yes | - |
Example Request
curl -X POST https://api.aivida.in/api \
-H "Content-Type: application/json" \
-H "x-stack-access-token: <access_token_optional>" \
-d '{
"namespace": "nursePatients",
"apiName": "getDetailByOrganizationId",
"data": {
"organizationId": "org_123",
"patientId": "patient_123"
}
}'Example Response
{ "status": "ok", "data": {} }listByOrganizationSlug
Source: backend/endpoints/nurse-patients/list-by-organization-slug
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | Yes | - |
page | integer | No | - |
pageSize | integer | No | - |
Example Request
curl -X POST https://api.aivida.in/api \
-H "Content-Type: application/json" \
-H "x-stack-access-token: <access_token_optional>" \
-d '{
"namespace": "nursePatients",
"apiName": "listByOrganizationSlug",
"data": {
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }startVisit
Source: backend/endpoints/nurse-patients/start-visit
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | Yes | - |
patientId | string | Yes | - |
stackUserId | string | Yes | - |
appointmentId | string | No | - |
Example Request
curl -X POST https://api.aivida.in/api \
-H "Content-Type: application/json" \
-H "x-stack-access-token: <access_token_optional>" \
-d '{
"namespace": "nursePatients",
"apiName": "startVisit",
"data": {
"organizationId": "org_123",
"patientId": "patient_123",
"stackUserId": "stackuser_123"
}
}'Example Response
{ "status": "ok", "data": {} }