Nurse Admitted Patients
Function-calling namespace: nurseAdmittedPatients
- 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.
getById
Source: backend/endpoints/nurse-admitted-patients/get-by-id
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
admissionId | string | Yes | - |
organizationId | 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": "nurseAdmittedPatients",
"apiName": "getById",
"data": {
"admissionId": "admission_123",
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }listByOrganizationId
Source: backend/endpoints/nurse-admitted-patients/list-by-organization-id
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | Yes | - |
fromDate | integer | No | nullable |
toDate | integer | No | nullable |
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": "nurseAdmittedPatients",
"apiName": "listByOrganizationId",
"data": {
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }recordVitals
Source: backend/endpoints/nurse-admitted-patients/record-admission-vitals
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | Yes | - |
admissionId | string | Yes | - |
stackUserId | string | Yes | - |
vitals | object | Yes | - |
Nested Field Structures
vitals
| Field | Type | Required | Constraints |
|---|---|---|---|
bloodPressure | string | No | - |
heartRate | number | No | nullable |
temperature | object | No | nullable |
weight | number | No | nullable |
height | number | No | nullable |
oxygenSaturation | number | No | nullable |
respiratoryRate | number | No | nullable |
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": "nurseAdmittedPatients",
"apiName": "recordVitals",
"data": {
"organizationId": "org_123",
"admissionId": "admission_123",
"stackUserId": "stackuser_123",
"vitals": {
"bloodPressure": "value",
"heartRate": 1,
"temperature": {
"value": 1,
"unit": {}
},
"weight": 1,
"height": 1,
"oxygenSaturation": 1,
"respiratoryRate": 1
}
}
}'Example Response
{ "status": "ok", "data": {} }