XUND API Documentation

InsurerFilter

InsurerFilter extends FilterBase

InsurerFilter is a filter type that can be used to filter Medical Services by supported insurers.

InsurerFilter describes is a multiselect input, where user can select the searched accepted insurers. Its values are of type InsurerFilterValue.

Property name

Property type

Property description

text

string

Localised text of the Filter

type

FilterType = ‘MULTISELECT’

Type of the Filter

values

InsurerFilterValue[]

Values to select the insurer(s) from

Example response

An example of a InsurerFilter retrieved from GET /v1/services/filters endpoint looks like this:

JSON
{
   "insurers": {
        "text": "Insurers",
        "type": "MULTISELECT",
        "values": [
            {
                "text": "BVAEB",
                "value": "1"
            },
            {
                "text": "ÖGK",
                "value": "2"
            },
            {
                "text": "KFA",
                "value": "3"
            },
            {
                "text": "SVS",
                "value": "4"
            }
        ]
    }
}

Example request

After the filter was rendered, filled and submitted by the user, its value should be sent to Apply Filter endpoint.

Location filter is always mandatory

The request body would look like this:

JSON
{
    "insurers": [
        "1"
    ],
    "location": {
        "latitude": 48.218323, 
        "longitude": 16.324020
    }
}

The insurer value sent is the value of insurer BVAEB in the response above.

This will return the Medical Services that are contracted with insurer BVAEB, restricted by the endpoint’s limits.