Skip to content

List long-term medications

Returns a paginated list of all long-term medications of the company.

Request

GET /api/oauth/v2/resource/long-term-medications

HeaderValue
AuthorizationBearer {access_token}

Query parameters

ParameterTypeRequiredDescription
offsetintegerNoStart position (default: 0, min: 0)
limitintegerNoNumber of results (default: 50, min: 1, max: 200)

Response

Success (200 OK)

json
{
  "data": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "medicamentName": "Ramipril",
      "medicament": "Ramipril-ratiopharm 5 mg",
      "medicamentAmount": "1",
      "medicamentUnit": "Tablet",
      "op": 30,
      "dosage1": "1",
      "dosage2": "0",
      "dosage3": "0",
      "dosage4": "1",
      "dosage5": null,
      "dosageText": "1 tablet in the morning and evening",
      "customer": {
        "id": "f0e1d2c3-b4a5-6789-fedc-ba9876543210",
        "firstName": "Anna",
        "lastName": "Muster"
      }
    },
    {
      "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "medicamentName": "Metformin",
      "medicament": null,
      "medicamentAmount": "500",
      "medicamentUnit": "mg",
      "op": null,
      "dosage1": "1",
      "dosage2": "0",
      "dosage3": "1",
      "dosage4": "0",
      "dosage5": null,
      "dosageText": null,
      "customer": {
        "id": "f0e1d2c3-b4a5-6789-fedc-ba9876543210",
        "firstName": "Anna",
        "lastName": "Muster"
      }
    }
  ],
  "meta": {
    "total": 18,
    "offset": 0,
    "limit": 50
  }
}

Response fields

FieldTypeDescription
dataArrayList of long-term medications
data[].idstring (UUID)Unique ID of the long-term medication
data[].medicamentNamestringName of the medication
data[].medicamentstring | nullTrade name / exact designation
data[].medicamentAmountstring | nullAmount (e.g. "1", "500")
data[].medicamentUnitstring | nullUnit (e.g. "Tablet", "mg")
data[].opinteger | nullNumber of original packs
data[].dosage1string | nullMorning dosage
data[].dosage2string | nullMidday dosage
data[].dosage3string | nullEvening dosage
data[].dosage4string | nullNight dosage
data[].dosage5string | nullAdditional dosage value
data[].dosageTextstring | nullFree-text dosage instructions
data[].customerobject | nullAssigned customer
data[].customer.idstring (UUID)Customer ID
data[].customer.firstNamestringCustomer first name
data[].customer.lastNamestringCustomer last name
meta.totalintegerTotal number of long-term medications
meta.offsetintegerCurrent start position
meta.limitintegerNumber of returned entries
Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/long-term-medications?offset=0&limit=50" \
  -H "Authorization: Bearer {access_token}"
Parameter
Zuerst Token anfordern

Possible errors

StatusCodeDescription
401invalid_clientInvalid or missing access token
403insufficient_scopeScope medicals not present

Offisy GmbH