All invoices refer to a specific treatment type by its treatment_type_number
property.
Endpoints in this group can be used to interact with all treatment types that lies within the system.
{info} Requires authentication
List all treatment types for a specific treatment group, an optional coverage group and within a date period.
Treatment group is also known as "Hovedgruppe" in Danish terms.
Coverage group is also known as "Dækningsgruppe" in Danish terms.
If the treatment type has a fixed price it is returned as a integer in DKK otherwise it will be null.
Patient share percentage is returned as a integer between 0-100 or null if this is not defined.
Max payout is an integer or null if it is not defined. It indicates the upper limit on payouts for treatments without a fixed price.
Age min and age max are integers between 0 and 999, indicating the valid age range this treatment is for.
Method | URI | Headers |
---|---|---|
GET | /api/treatment-types |
Accept: application/json Authorization: Bearer your_token |
"treatment_group": "integer|required",
"coverage_group": "integer|optional",
"valid_from": "date(YYYY-mm-dd)|optional",
"valid_to": "date(YYYY-mm-dd)|optional"
If valid_from
is not present we default to the start of the year(YYYY-01-01).
If valid_to
is not present we default to the end of the year(YYYY-12-31).
{success} Example Success Response
Code 200
Content
{
"data": [
{
"treatment_type_number": 960001,
"name": "Høreapparater",
"treatment_group": 96,
"valid_from": "2020-01-01",
"valid_to": "2020-01-31",
"coverage_group": 1,
"fixed_price": null,
"patient_share_percentage": 50,
"max_payout": 1500,
"age_min": 0,
"age_max": 4
},
{
"treatment_type_number": 960001,
"name": "Høreapparater",
"treatment_group": 96,
"valid_from": "2020-01-01",
"valid_to": "2020-01-31",
"coverage_group": 1,
"fixed_price": null,
"patient_share_percentage": null,
"max_payout": null,
"age_min": 5,
"age_max": 999
}
]
}
{danger} Error Response
Code 401|422
Content
{
"message": "The given data was invalid.",
"errors": {
"treatment_group": [
"The treatment group field is required."
]
},
"status_code": 422
}