OnyeOne Documentation
  1. Health Service
OnyeOne Documentation
  • Overview
  • OnyeOne Use Cases
  • Authentication
  • Guides
    • OnyeOne Request Flow
  • Core EHR/EMR FHIR R4 APIs
    • Administration
      • Patients
        • Create Patient Resource
        • Update Patient Resource
      • Practitioners
        • Create Practitioner Resource
        • Update Practitioner Resource
        • Create Practitioner Role
        • Update PractitionerRole Resource
      • Locations
        • Create a Location Resource
        • Update Location Resource
      • Health Service
        • Create Health Service Resource
          POST
        • Update Health Service Resource
          PUT
      • Encounters
        • Create Encounter Resource
        • Update Encounter Resource
      • Appointments
        • Create Appointment Resource
        • Update Appointment Resource
      • Group
    • Clinical
      • AllergyIntolerance
      • Condition (Problem)
      • Procedure
      • FamilyMemberHistory
      • CarePlan
      • Goal
      • CareTeam
      • ClinicalImpression
      • AdverseEvent
      • DetectedIssue
      • RiskAssessment
    • Diagnostics
      • Observation
        • Create Observation Resource
      • DiagnosticReport
      • ServiceRequest
      • Media
      • ImagingStudy
      • MolecularSequence
      • Specimen
      • BodyStructure
    • Medications
      • MedicationRequest
      • MedicationDispense
      • MedicationAdministration
      • MedicationStatement
      • Medication
      • MedicationKnowledge
      • Immunization
      • ImmunizationEvaluation
      • ImmunizationRecommendation
    • Financial
      • Account
      • Contract
      • Coverage
      • CoverageEligibilityRequest
      • CoverageEligibilityResponse
      • EnrollmentRequest
      • EnrollmentResponse
      • Claim
      • ClaimResponse
      • PaymentNotice
      • PaymentReconciliation
      • ExplanationOfBenefit
      • VisionPrescription
  • Health Data Transformation
    • Transfrom HL7v2 to FHIR R4
      POST
    • Transform CCDA to FHIR R4
      POST
    • Transform HL7v2 to FHIR R4 and Store in Backend Database
      POST
    • Track API Request
      GET
  • Health Interoperabilty System
    • Create a Subscription
      POST
  • Webhook
  • Get Resource.
    GET
  1. Health Service

Update Health Service Resource

Testing Env
https://staging.onyeone.com/api
Testing Env
https://staging.onyeone.com/api
PUT
/emr/healthcareservice/{healthcareservice_id}
This endpoint updates an existing HealthcareService resource. Note that this operation replaces the section in the resource as specified in the body of the request.

Request

Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Path Params

Body Params application/json

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' \
--header 'x-api-key;' \
--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

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
Previous
Create Health Service Resource
Next
Create Encounter Resource
Built with