- 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 Encounter Resource
Developing
Testing Env
Testing Env
PUT
/emr/encounter/{encounter_id}
emr
Request
Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Path Params
encounter_id
string
required
Body Params application/json
status
enum<string>
optional
Allowed values:
plannedarrivedtriagedin-progressonleavefinishedcancelledentered-in-errorunknown
class
enum<string>
optional
Allowed values:
AMBEMERFLDHHIMPACUTENONACOBSENCPRENCSSVR
service_type
object
optional
code
string
required
name
string
required
priority
enum<string>
optional
Allowed values:
ACRCSCSPCSRELEMPPRNRRRSTUDUR
subject
object
optional
type
enum<string>
required
Allowed values:
patientgroup
id
string
required
based_on
array[string]
optional
appointment
array[string]
optional
period
object
optional
start
string
required
end
string
required
reason_code
array [object {2}]
optional
code
string
required
name
string
required
reason_reference
array [object {2}]
optional
type
enum<string>
required
Allowed values:
conditionprocedureobservationimmunization_recommendation
id
string
required
participant
array [object {3}]
optional
type
enum<string>
required
Allowed values:
admitterattendercallback contactconsultantdischargerescortreferrersecondary performerprimary performerParticipationTranslatorEmergency
period
object
optional
individual
object
required
diagnosis
array [object {3}]
optional
condition
object
required
use
enum<string>
optional
Allowed values:
ADDDCCCMpre-oppost-opbilling
rank
number
optional
>= 1
account
array[string]
optional
hospitalization
object
optional
origin
object
optional
diet_preference
array[string]
optional
Allowed values:
vegetariandairy-freenut-freegluten-freeveganhalalkosher
admit_source
enum<string>
optional
Allowed values:
hosp-transemdoutpborngpmpnursingpsychrehabother
location
array [object {2}]
optional
location
string
required
period
object
optional
part_of
string
optional
Example
{
"status": "cancelled",
"class": "AMB"
}
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/encounter/' \
--header 'Content-Type: application/json' \
--data-raw '{
"status": "cancelled",
"class": "AMB"
}'
Responses
🟢200Success
application/json
Body
message
string
required
resource_id
string
required
updated_fields
object
required
status
string
optional
class
object
optional
Example
{
"message": "Encounter resource updated successfully.",
"resource_id": "e59f43ba-e124-588e-b70d-da3c5025273c",
"updated_fields": {
"status": "cancelled",
"class": {
"code": "AMB",
"display": "Ambulatory",
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode"
}
}
}
Modified at 2024-12-23 08:18:40