Medical Terms
Function-calling namespace: medicalTerms
- 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.
create
Source: backend/endpoints/medical-terms/create
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
type | string | Yes | - |
name | string | Yes | - |
platformDepartmentId | string | No | nullable |
isPopular | boolean | No | nullable |
isActive | boolean | No | nullable |
createdByUserId | string | 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": "medicalTerms",
"apiName": "create",
"data": {
"type": "diagnosis",
"name": "Hypertension",
"platformDepartmentId": "platform_department_123",
"isPopular": true
}
}'Example Response
{ "status": "ok", "data": {} }delete
Source: backend/endpoints/medical-terms/delete
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
id | 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": "medicalTerms",
"apiName": "delete",
"data": {
"id": "id_123"
}
}'Example Response
{ "status": "ok", "data": {} }get
Source: backend/endpoints/medical-terms/get
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
id | 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": "medicalTerms",
"apiName": "get",
"data": {
"id": "id_123"
}
}'Example Response
{ "status": "ok", "data": {} }listActive
Source: backend/endpoints/medical-terms/list-active
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
search | string | No | - |
type | string | No | - |
createdByUserId | string | No | - |
departmentId | string | No | - |
platformDepartmentId | string | No | - |
sortBy | string | No | - |
sortOrder | string | No | - |
page | integer | No | - |
pageSize | integer | No | - |
Filter Notes
departmentIdfilters bymedical_terms.platform_department_id.platformDepartmentIdis also accepted for the same filter and takes priority when both fields are sent.
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": "medicalTerms",
"apiName": "listActive",
"data": {
"type": "diagnosis",
"departmentId": "platform_department_123",
"page": 1,
"pageSize": 20
}
}'Example Response
{ "status": "ok", "data": {} }update
Source: backend/endpoints/medical-terms/update
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
id | string | Yes | - |
type | string | No | nullable |
name | string | No | nullable |
platformDepartmentId | string | No | nullable |
isPopular | boolean | No | nullable |
isActive | boolean | 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": "medicalTerms",
"apiName": "update",
"data": {
"id": "term_123",
"platformDepartmentId": "platform_department_123"
}
}'Example Response
{ "status": "ok", "data": {} }