Skip to main content

Get Specializations

Overview

The section describes how to obtain a list of available medical specialties for your own integration. The specialty ID returned directly in response to the query will be used at a later stage to obtain cities, doctors, and terms that match the provided specialty ID and schedule a consultation. The value returned in the amount field represents the price of the current specialization in coins.

For example: 5000 = 50.00 PLN.

Query

token is not required - Authorization

query getSpecializationsQuery($insurerId: String!) {
specializations(insurerId: $insurerId) {
edges {
node {
_id
name
price {
amount
currency
}
}
}
}
}

Response:

{
"edges": [
{
"node": {
"_id": "5486f594-5efd-43fa-ba37-27a7e09c9ec2",
"name": "Internista",
"price": {
"amount": 5000,
"currency": "PLN",
"__typename": "Price"
},
"__typename": "Specialization"
},
"__typename": "SpecializationEdge"
},
],
"__typename": "SpecializationConnection"
}