Skip to main content

Get Terms

Overview

This section describes how to fetch a list of available time slots for doctors based on the given specialization ID, medical facility ID, and doctor ID. Note that the "params" is also retrieved, which should be passed in the next step for the correct scheduling of a stationary consultation.

Query

token is not required - Authorization

query getTermsQuery (
$insurerId: String!,
$doctorId: String!,
$medicalFacilityId: String!,
$specializationId: String!
) {
terms(
insurerId: $insurerId,
specializationId: $specializationId,
medicalFacilityId: $medicalFacilityId,
doctorId: $doctorId
) {
edges {
node {
_id
dateFromAt
period
params
}
}
}
}

Response

{
"edges": [
{
"node": {
"_id": "MTY4Mzg3ODQwMDE2ODM4Nzk2MDA=",
"dateFromAt": "2023-05-12T08:00:00+02:00",
"period": 1,
"params": {
"scheduleId": "20961"
},
"__typename": "Term"
},
"__typename": "TermEdge"
},
{
"node": {
"_id": "MTY4Mzg3OTYwMDE2ODM4ODA4MDA=",
"dateFromAt": "2023-05-12T08:20:00+02:00",
"period": 1,
"params": {
"scheduleId": "20961"
},
"__typename": "Term"
},
"__typename": "TermEdge"
},
],
"__typename": "TermConnection"
}