Workflow or API calls:
{
"resourceType": "Encounter",
"status": "in-progress",
"type": [
{
"coding": [
{
"system": "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/71",
"code": "309309",
"display": "Outpatient",
"userSelected": true
}
],
"text": "Outpatient"
}
],
"subject": {
"reference": "Patient/12834731",
"display": "SMART, CAREFLUENCE"
},
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Encounter</b></p><p><b>Patient</b>: SMART, CAREFLUENCE</p><p><b>Location</b>: Model Clinic 1</p><p><b>Type</b>: Outpatient</p><p><b>Class</b>: ambulatory</p><p><b>Status</b>: In Progress</p><p><b>Service Provider</b>: Model Clinic 1</p></div>"
},
"reasonCode": [
{
"text": "Office Procedure Visit"
}
],
"class": {
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code": "AMB",
"display": "ambulatory",
"userSelected": false
},
"serviceProvider": {
"reference": "Organization/685844"
},
"period": {
"start": "2025-03-17T13:00:00Z",
"end": "2025-03-17T15:00:00Z"
},
"participant": [
{
"type": [
{
"coding": [
{
"system": "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/333",
"code": "1121",
"display": "Consulting Physician",
"userSelected": true
}
],
"text": "Consulting Physician"
}
],
"period": {
"start": "2025-03-17T13:00:00Z"
},
"individual": {
"reference": "Practitioner/12742711",
"display": "PWJuxly, PhysicianHosp"
}
},
{
"type": [
{
"coding": [
{
"system": "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/333",
"code": "1125",
"display": "Registered Nurse",
"userSelected": true
}
],
"text": "Registered Nurse"
}
],
"period": {
"start": "2025-03-17T13:00:00Z"
},
"individual": {
"reference": "Practitioner/12742577",
"display": "MedActionPlanRN, PW"
}
},
{
"type": [
{
"coding": [
{
"system": "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/333",
"code": "18883355",
"display": "Covering Physician",
"userSelected": true
}
],
"text": "Covering Physician"
}
],
"period": {
"start": "2025-03-17T13:00:00Z"
},
"individual": {
"reference": "Practitioner/12743338",
"display": "PWXealth, MDCardio"
}
},
{
"type": [
{
"coding": [
{
"system": "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/333",
"code": "681295",
"display": "Physician (Office/Clinic Only)",
"userSelected": true
}
],
"text": "Physician (Office/Clinic Only)"
}
],
"period": {
"start": "2025-03-17T13:00:00Z"
},
"individual": {
"reference": "Practitioner/12742919",
"display": "PWCareDx, MD Cardio"
}
}
],
"location": [
{
"location": {
"reference": "Location/21304872",
"display": "Model Clinic 1"
}
}
]
}
Failed with the following error X-Request-Id
/ Cerner-Correlation-Id
/ opc-request-id
: /D454E62CB811AB9C991399AC6618D71F+kwwZ_5GI0
Date/time of the example
:Mon, 17 Mar 2025 14:37:15 GMT
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "business-rule",
"diagnostics": "serviceProvider and location may not be set at the same time"
}
]
}
Removed service provider and tried it, it fails with invalid request error as shown below
X-Request-Id : /02E71A308B04ACABB14BE8637F739472+HpOu_47pE
Date and time stamp Mon, 17 Mar 2025 14:55:05 GMT
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invalid",
"details": {
"text": "Invalid request"
}
}
]
}
Removed Location and had the serviceprovider as an alternative, it fails with invalid request error as shown below
X-Request-Id : /975D0DA8DFF1D364CFB1968B801924B9+1tZE_2RCM
Date and time stamp Mon, 17 Mar 2025 14:58:16 GMT
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invalid",
"details": {
"text": "Invalid request"
}
}
]
}
Background Information:
Failure to provide answers will impact our ability to respond in a timely and effective manner
Developer questions:
Are you an OPN Member? No
Have you signed up to be in the Healthcare Developer Track? No
Are you a registered Code Program member? Yes
Does your App have a presence on the Oracle Healthcare App Marketplace? No
Are you developing on behalf of an Oracle Health client? No
If so, which client:
Application's Client ID and App ID, if relevant
: f20992b2-2de2-4815-b058-76fcc6ddbddd
Expected Result: Able to create encounter without any errors with the same payloads earlier.
Actual Result: It fails with 422 error. Even with removing service provider and keep location or remove location and service provider, ending up with 500 internal server error.
X-Request-Id
/ Cerner-Correlation-Id
/ opc-request-id
: /D454E62CB811AB9C991399AC6618D71F+kwwZ_5GI0
Date/time of the example
:Mon, 17 Mar 2025 14:37:15 GMT