- Overview
- OnyeOne Use Cases
- Authentication
- Guides
- Core EHR/EMR FHIR R4 APIs
- Administration
- Patients
- Practitioners
- Locations
- Health Service
- Encounters
- Appointments
- Group
- Clinical
- Diagnostics
- Medications
- Financial
- Health Data Transformation
- Health Interoperabilty System
- Webhook
- Get Resource.GET
Update Health Service Resource
Testing Env
Testing Env
PUT
/emr/healthcareservice/{healthcareservice_id}
emr
Request
Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Path Params
healthcareservice_id
string
required
Body Params application/json
active
boolean
optional
name
string
optional
location
array[string]
optional
telecom
array [object {2}]
optional
phone
string
optional
email
string
optional
coverage_area
array[string]
optional
appointment_required
boolean
optional
available_times
array [object {4}]
optional
days_of_week
array[string]
optional
Allowed values:
montuewedthufrisatsun
all_day
boolean
optional
start_time
string
optional
end_time
string
optional
not_available_times
array [object {3}]
optional
description
string
optional
start_date
string
optional
end_date
string
optional
availability_exceptions
string
optional
comment
string
optional
extra_details
string
optional
specialties
array [object {2}]
optional
code
string
optional
name
string
optional
type
array [object {2}]
optional
code
string
required
name
string
required
Example
{
"active": true,
"name": "Gerald Koch",
"location": [
"d0f2ff01-9bc3-5652-87cf-428d1b3f3170"
],
"telecom": [
{
"phone": "+1234654328",
"email": "Sid.VonRueden3@hotmail.com"
},
{
"phone": "+1234986745",
"email": "Candido_Nader54@gmail.com"
}
],
"coverage_area": [
"d0f2ff01-9bc3-5652-87cf-428d1b3f3170"
],
"appointment_required": true,
"available_times": [
{
"days_of_week": [
"wed",
"thu",
"fri"
],
"all_day": true
},
{
"days_of_week": [
"mon",
"tue",
"sun"
],
"all_day": true
},
{
"days_of_week": [
"tue",
"tue",
"fri"
],
"all_day": false,
"start_time": "12:00:00",
"end_time": "17:00:00"
}
],
"not_available_times": [
{
"description": "Depono vado adipisci adflicto tantillus tyrannus accusamus delibero. Arbor curia subiungo carmen congregatio tertius vesco. Coma amplexus delectus vitiosus denuncio officiis auctus umerus.",
"start_date": "2024-03-06",
"end_date": "2025-01-06"
},
{
"description": "Sonitus abutor ceno pariatur tribuo adeptio cogo. Tristis ipsam adopto aggero beneficium titulus canis una viscus cultura. Libero attollo maxime summisse vilitas advenio amitto quaerat ab accommodo.",
"start_date": "2024-05-23",
"end_date": "2025-05-10"
}
],
"availability_exceptions": "dolor Ut in",
"comment": "mollit amet velit",
"extra_details": "qui sit laborum mollit",
"specialties": [
{
"code": "394586005",
"name": "Gynecology"
}
],
"type": [
{
"code": "263",
"name": "Birth"
},
{
"code": "52",
"name": "Chiropractic"
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://staging.onyeone.com/api/emr/healthcareservice/' \
--header 'Content-Type: application/json' \
--data-raw '{
"active": true,
"name": "Gerald Koch",
"location": [
"d0f2ff01-9bc3-5652-87cf-428d1b3f3170"
],
"telecom": [
{
"phone": "+1234654328",
"email": "Sid.VonRueden3@hotmail.com"
},
{
"phone": "+1234986745",
"email": "Candido_Nader54@gmail.com"
}
],
"coverage_area": [
"d0f2ff01-9bc3-5652-87cf-428d1b3f3170"
],
"appointment_required": true,
"available_times": [
{
"days_of_week": [
"wed",
"thu",
"fri"
],
"all_day": true
},
{
"days_of_week": [
"mon",
"tue",
"sun"
],
"all_day": true
},
{
"days_of_week": [
"tue",
"tue",
"fri"
],
"all_day": false,
"start_time": "12:00:00",
"end_time": "17:00:00"
}
],
"not_available_times": [
{
"description": "Depono vado adipisci adflicto tantillus tyrannus accusamus delibero. Arbor curia subiungo carmen congregatio tertius vesco. Coma amplexus delectus vitiosus denuncio officiis auctus umerus.",
"start_date": "2024-03-06",
"end_date": "2025-01-06"
},
{
"description": "Sonitus abutor ceno pariatur tribuo adeptio cogo. Tristis ipsam adopto aggero beneficium titulus canis una viscus cultura. Libero attollo maxime summisse vilitas advenio amitto quaerat ab accommodo.",
"start_date": "2024-05-23",
"end_date": "2025-05-10"
}
],
"availability_exceptions": "dolor Ut in",
"comment": "mollit amet velit",
"extra_details": "qui sit laborum mollit",
"specialties": [
{
"code": "394586005",
"name": "Gynecology"
}
],
"type": [
{
"code": "263",
"name": "Birth"
},
{
"code": "52",
"name": "Chiropractic"
}
]
}'
Responses
🟢200Success
application/json
Body
message
string
required
resource_id
string
required
updated_fields
object
required
active
boolean
optional
name
string
optional
appointmentRequired
boolean
optional
Example
{
"message": "HealthcareService resource updated successfully.",
"resource_id": "4e4fbc42-ce67-5a60-bfd7-9cedca2f376c",
"updated_fields": {
"active": false,
"name": "Social Support",
"appointmentRequired": false
}
}
Modified at 2025-01-02 12:10:34