Create Practitioner

Creates a practitioner with the given attributes.

POST /directory/v1/practitioners

Request Body Parameters

You can see a breakdown of the different supported attributes for practitioners here

The required attributes to create a practitioner are :

Examples

Create Practitioner

curl -X POST "https://api.clinia.ca/directory/v1/practitioners" \
-H "Content-Type: application/vnd.api+json"
--data-binary '{
"data": {
"type": "practitioners",
"attributes": {
"first-name": "Jacques",
"last-name": "Plante",
"title": "DR",
"gender": "MALE",
"accept-new-patients": true,
"emails": [{ "address": "jacques.plante@gmail.com" }],
"faxes": [{ "number": "15143433344", "type": "FAX" }],
"clientele": {
"age-ranges": [
{ "label": "CHILDREN", "lower": 72, "upper": 120 },
{ "label": "TEENAGERS", "lower": 168, "upper": 228 },
{ "label": "ADULTS", "lower": 240, "upper": 768 },
{ "label": "ELDERS", "lower": 780 }
]
},
"communications": [
{ "language": "FRENCH", "preferred": true },
{ "language": "ENGLISH", "preferred": false }
],
"phones": [
{ "number": "15146626666", "type": "MOBILE" },
{ "number": "15145606266", "type": "PAGER" }
],
"registrations": [{ "practice-number": "66155", "region-code": "QC" }]
},
"relationships": {
"specialities": {
"data": [
{
"type": "specialities",
"id": "910ab773-db3d-4ccf-bc0c-102d53b6fd6b"
}
]
},
"services": {
"data": [
{ "type": "services", "id": "ed6e8a42-e7a0-42f3-8f9a-8c1786150e63" },
{ "type": "services", "id": "1e6b5230-c0e0-40a9-a23c-fa047b3c73ed" }
]
}
}
}
}'
{
"data": {
"attributes": {
"created-at": "2020-10-15T19:42:31.9419882Z",
"updated-at": "2020-10-15T19:42:31.9419882Z",
"first-name": "Jacques",
"last-name": "Plante",
"title": "DR",
"gender": "MALE",
"registrations": [
{
"id": "registration-2127362d-0655-4699-a03e-7016a52b1361",
"practice-number": "66155",
"region-code": "QC"
}
],
"accept-new-patients": true,
"note": null,
"internal-note": null,
"modalities": null,
"cases-to-refer": null,
"communications": [
{ "language": "FRENCH", "preferred": true },
{ "language": "ENGLISH", "preferred": false }
],
"clientele": {
"age-ranges": [
{
"id": "age_range-3885f4f3-d06c-4b2c-bdfb-52c9b0f87141",
"lower": 72,
"upper": 120,
"label": "CHILDREN"
},
{
"id": "age_range-989ef5f1-efb7-4fdd-8ad1-61d593c0bc81",
"lower": 168,
"upper": 228,
"label": "TEENAGERS"
},
{
"id": "age_range-46fc44ad-6b8b-43e2-a7f1-aa6b9f4782c5",
"lower": 240,
"upper": 768,
"label": "ADULTS"
},
{
"id": "age_range-df3ea643-5096-4d99-824a-298d08687b52",
"lower": 780,
"label": "ELDERS"
}
]
},
"phones": [
{
"id": "phone-21f48c32-8453-4b89-b0a7-180389037f60",
"number": "15146626666",
"type": "MOBILE"
},
{
"id": "phone-9a780dc5-2f76-4f73-8179-c1393214f87e",
"number": "15145606266",
"type": "PAGER"
}
],
"faxes": [
{
"id": "fax-fba688e3-d14e-4923-b8e6-87bb6b16dfe9",
"number": "15143433344",
"type": "FAX"
}
],
"emails": [
{
"id": "email-aed4fde6-15c1-4ac9-b68c-44d7cdc66ba8",
"address": "jacques.plante@gmail.com"
}
]
},
"relationships": {
"specialities": {
"links": {
"self": "http://directory-jsonapi/v1/practitioners/62324099-c8be-4d78-8409-0fd5bf7b713d/relationships/specialities",
"related": "http://directory-jsonapi/v1/practitioners/62324099-c8be-4d78-8409-0fd5bf7b713d/specialities"
},
"data": [
{
"type": "specialities",
"id": "910ab773-db3d-4ccf-bc0c-102d53b6fd6b"
}
]
},
"services": {
"links": {
"self": "http://directory-jsonapi/v1/practitioners/62324099-c8be-4d78-8409-0fd5bf7b713d/relationships/services",
"related": "http://directory-jsonapi/v1/practitioners/62324099-c8be-4d78-8409-0fd5bf7b713d/services"
},
"data": [
{ "type": "services", "id": "ed6e8a42-e7a0-42f3-8f9a-8c1786150e63" },
{ "type": "services", "id": "1e6b5230-c0e0-40a9-a23c-fa047b3c73ed" }
]
},
"practices": {
"links": {
"self": "http://directory-jsonapi/v1/practitioners/62324099-c8be-4d78-8409-0fd5bf7b713d/relationships/practices",
"related": "http://directory-jsonapi/v1/practitioners/62324099-c8be-4d78-8409-0fd5bf7b713d/practices"
}
}
},
"type": "practitioners",
"id": "62324099-c8be-4d78-8409-0fd5bf7b713d"
}
}