Error while using Open Dental's FHIR API (v2)

For requests or help with our API
Post Reply
mgrover6
Posts: 1
Joined: Wed Dec 22, 2021 6:50 am

Error while using Open Dental's FHIR API (v2)

Post by mgrover6 » Wed Dec 22, 2021 7:31 am

I am using FHIR Interface Specification API with endpoint - https://api.opendental.com/fhir/v2
I've been using this API to create and cancel an appointment in OD for some time now without any issues/errors using:
POSting- "status": "booked" and PUTing- "status": "cancelled" respectively.
Today when I was trying to create an appointment, it worked without any issues but when I tried canceling an appointment (PUTing- "status": "cancelled"), it gave me the following error message:
Do you know what could be the reason for this? Has the API been updated? Could you please help me with this?
THANK YOU

The error is :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>404 - File or directory not found.</title>
<style type="text/css">
<!--
body {
margin: 0;
font-size: .7em;
font-family: Verdana, Arial, Helvetica, sans-serif;
background: #EEEEEE;
}

fieldset {
padding: 0 15px 10px 15px;
}

h1 {
font-size: 2.4em;
margin: 0;
color: #FFF;
}

h2 {
font-size: 1.7em;
margin: 0;
color: #CC0000;
}

h3 {
font-size: 1.2em;
margin: 10px 0 0 0;
color: #000000;
}

#header {
width: 96%;
margin: 0 0 0 0;
padding: 6px 2% 6px 2%;
font-family: "trebuchet MS", Verdana, sans-serif;
color: #FFF;
background-color: #555555;
}

#content {
margin: 0 0 0 2%;
position: relative;
}

.content-container {
background: #FFF;
width: 96%;
margin-top: 8px;
padding: 10px;
position: relative;
}
-->
</style>
</head>

<body>
<div id="header">
<h1>Server Error</h1>
</div>
<div id="content">
<div class="content-container">
<fieldset>
<h2>404 - File or directory not found.</h2>
<h3>The resource you are looking for might have been removed, had its name changed, or is temporarily
unavailable.</h3>
</fieldset>
</div>
</div>
</body>

</html>

I am using the following text for PUTing:

{
"status": "cancelled",
"priority": 5,
"description": "Ext, Ext",
"start": "2021-12-22T10:00:00",
"end": "2021-12-22T11:00:00",
"minutesDuration": 60,
"participant": [
{
"type": [
{
"coding": [
{
"system": "http://hl7.org/fhir/participant-type",
"code": "PART"
}
]
}
],
"actor": {
"reference": "patient/22"
},
"required": "required",
"status": "needsaction"
},
{
"type": [
{
"coding": [
{
"system": "http://hl7.org/fhir/participant-type",
"code": "PPRF"
}
]
}
],
"actor": {
"reference": "practitioner/2"
},
"required": "required",
"status": "accepted"
},
{
"type": [
{
"coding": [
{
"system": "http://hl7.org/fhir/participant-type",
"code": "PART",
"userSelected": "False"
}
]
}
],
"actor": {
"reference": "Location/5",
"display": "Hyg1"
},
"required": "required",
"status": "accepted"
}
],
"basedOn": [{"reference": "serviceRequest/297"}]
}

justine
Posts: 175
Joined: Tue Dec 28, 2021 7:59 am

Re: Error while using Open Dental's FHIR API (v2)

Post by justine » Tue Dec 28, 2021 8:02 am

The FHIR PUT issue has been resolved.

Post Reply