List diagnoses
Returns a paginated list of all diagnoses of the company.
Request
GET /api/oauth/v2/resource/diagnoses
Header
| Header | Value |
|---|---|
Authorization | Bearer {access_token} |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
offset | integer | No | Start position (default: 0, min: 0) |
limit | integer | No | Number of results (default: 50, min: 1, max: 200) |
Response
Success (200 OK)
json
{
"data": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"text": "Essential hypertension",
"diagnoseKey": "I10",
"date": "2026-06-09",
"side": null,
"longTerm": true,
"isExternal": false,
"customer": {
"id": "f0e1d2c3-b4a5-6789-fedc-ba9876543210",
"firstName": "Anna",
"lastName": "Muster"
},
"treatingUser": {
"id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"firstName": "Dr. Maria",
"lastName": "Huber"
}
},
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"text": null,
"diagnoseKey": "J06.9",
"date": "2026-06-08",
"side": null,
"longTerm": false,
"isExternal": false,
"customer": {
"id": "f0e1d2c3-b4a5-6789-fedc-ba9876543210",
"firstName": "Anna",
"lastName": "Muster"
},
"treatingUser": {
"id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"firstName": "Dr. Maria",
"lastName": "Huber"
}
}
],
"meta": {
"total": 42,
"offset": 0,
"limit": 50
}
}Response fields
| Field | Type | Description |
|---|---|---|
data | Array | List of diagnoses |
data[].id | string (UUID) | Unique ID of the diagnosis |
data[].text | string | null | Diagnosis text (may be encrypted/null) |
data[].diagnoseKey | string | null | ICD code of the diagnosis |
data[].date | string | Diagnosis date (YYYY-MM-DD) |
data[].side | string | null | Body side (e.g. "left", "right") |
data[].longTerm | boolean | null | Long-term diagnosis |
data[].isExternal | boolean | null | Externally issued |
data[].customer | object | null | Assigned customer |
data[].customer.id | string (UUID) | Customer ID |
data[].customer.firstName | string | Customer first name |
data[].customer.lastName | string | Customer last name |
data[].treatingUser | object | null | Treating user |
data[].treatingUser.id | string (UUID) | User ID |
data[].treatingUser.firstName | string | First name |
data[].treatingUser.lastName | string | Last name |
meta.total | integer | Total number of diagnoses |
meta.offset | integer | Current start position |
meta.limit | integer | Number of returned entries |
Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/diagnoses?offset=0&limit=50" \
-H "Authorization: Bearer {access_token}"Parameter
Zuerst Token anfordern
Possible errors
| Status | Code | Description |
|---|---|---|
| 401 | invalid_client | Invalid or missing access token |
| 403 | insufficient_scope | Scope medicals not present |