EndpointsNurse Vitals

Nurse Vitals

Function-calling namespace: nurseVitals

  • Base URL: https://api.aivida.in
  • Engine endpoint: POST /api
  • Auth: Stack token middleware enabled in optional mode.
  • Send token in header: x-stack-access-token: <access_token> (or Authorization: Bearer <access_token>).
  • In optional mode: no token is allowed; invalid token is rejected with 401.

getQueueByOrganizationId

Source: backend/endpoints/nurse-vitals/get-queue-by-organization-id

Input Fields

FieldTypeRequiredConstraints
organizationIdstringYes-

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": "nurseVitals",
  "apiName": "getQueueByOrganizationId",
  "data": {
    "organizationId": "org_123"
  }
}'

Example Response

{ "status": "ok", "data": {} }

recordByAppointmentId

Source: backend/endpoints/nurse-vitals/record-by-appointment-id

Input Fields

FieldTypeRequiredConstraints
organizationIdstringYes-
appointmentIdstringYes-
stackUserIdstringYes-
vitalsobjectYes-

Nested Field Structures

vitals

FieldTypeRequiredConstraints
bloodPressurestringNo-
heartRatenumberNonullable
temperatureobjectNonullable
weightnumberNonullable
heightnumberNonullable
oxygenSaturationnumberNonullable
respiratoryRatenumberNonullable

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": "nurseVitals",
  "apiName": "recordByAppointmentId",
  "data": {
    "organizationId": "org_123",
    "appointmentId": "appointment_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": {} }