x-api-key: ********************
{
"practitioner_id": "ff9d42ba-2174-56fb-866f-1dad74b629f5",
"roles": [{
"code": "doctor",
"name": "doctor"
}],
"active": true,
"period": {
"start": "2024-12-20",
"end": "2025-04-26"
},
"specialties": [
{
"code": "39457900",
"name": "Cardiology"
}
],
"available_times": [
{
"days_of_week": [
"mon"
],
"all_day": false,
"start_time": "17:00:00",
"end_time": "18:00:00"
},
{
"days_of_week": [
"mon",
"fri"
],
"all_day": true,
"start_time": "15:00:00",
"end_time": "18:00:00"
},
{
"days_of_week": [
"thu",
"fri",
"sun"
],
"all_day": true,
"start_time": "20:00:00",
"end_time": "18:00:00"
}
],
"not_available_times": [
{
"description": "Away on a holiday.",
"start_date": "2025-08-17",
"end_date": "2025-08-26"
}
]
}
curl --location --request POST 'https://staging.onyeone.com/api/emr/practitionerrole' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
"practitioner_id": "ff9d42ba-2174-56fb-866f-1dad74b629f5",
"roles": [{
"code": "doctor",
"name": "doctor"
}],
"active": true,
"period": {
"start": "2024-12-20",
"end": "2025-04-26"
},
"specialties": [
{
"code": "39457900",
"name": "Cardiology"
}
],
"available_times": [
{
"days_of_week": [
"mon"
],
"all_day": false,
"start_time": "17:00:00",
"end_time": "18:00:00"
},
{
"days_of_week": [
"mon",
"fri"
],
"all_day": true,
"start_time": "15:00:00",
"end_time": "18:00:00"
},
{
"days_of_week": [
"thu",
"fri",
"sun"
],
"all_day": true,
"start_time": "20:00:00",
"end_time": "18:00:00"
}
],
"not_available_times": [
{
"description": "Away on a holiday.",
"start_date": "2025-08-17",
"end_date": "2025-08-26"
}
]
}'
{
"message": "Resource created successfully",
"resource_name": "PractitionerRole",
"resource_id": "16c73a58-fe55-515f-ba79-57c6392777e9",
"full_resource": {
"resourceType": "PractitionerRole",
"id": "16c73a58-fe55-515f-ba79-57c6392777e9",
"meta": {
"versionId": "1",
"lastUpdated": "2024-12-17T10:17:44.500+00:00",
"source": "#BenkyK8TlQD3cDER",
"tag": [
{
"system": "http://onyeone.com/facility-tags/origination",
"code": "1",
"display": "Green Group Hospital"
}
]
},
"active": true,
"period": {
"start": "2024-12-20",
"end": "2025-04-26"
},
"practitioner": {
"reference": "Practitioner/ff9d42ba-2174-56fb-866f-1dad74b629f5",
"display": "Don Merekesh"
},
"organization": {
"reference": "Organization/5abe99ee-0928-546b-93e9-0207ba8a556b",
"display": "Green Group Hospital"
},
"code": [
{
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/practitioner-role",
"code": "doctor",
"display": "doctor"
}
],
"text": "doctor"
}
],
"specialty": [
{
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/c80-practice-codes",
"code": "39457900",
"display": "Cardiology"
}
],
"text": "Cardiology"
}
],
"telecom": [
{
"system": "phone",
"value": "08034768638",
"use": "mobile"
},
{
"system": "email",
"value": "Colton_Schimmel68@gmail.com",
"use": "home"
}
],
"availableTime": [
{
"daysOfWeek": [
"mon"
],
"allDay": false,
"availableStartTime": "17:00:00",
"availableEndTime": "18:00:00"
},
{
"daysOfWeek": [
"mon",
"fri"
],
"allDay": true
},
{
"daysOfWeek": [
"thu",
"fri",
"sun"
],
"allDay": true
}
],
"notAvailable": [
{
"description": "Away on a holiday.",
"during": {
"start": "2025-08-17",
"end": "2025-08-26"
}
}
]
}
}