Situation
I want to fetch calendar events to get check the availability of the facility. I was looking at the documents but didn’t get any thing favourable. Please help…
OpenEMR Version
I’m using OpenEMR version 5.0.2
Browser :
I’m using: Chrome
Operating System
I’m using: linux
Best regards,
Hi @rhlcliffex ,
Please check with the below link,
# OpenEMR REST API Documentation
## Overview
Easy-to-use JSON-based REST API for OpenEMR. All code is done in classes and separate from the view to help with codebase modernization efforts. FHIR is also supported, see FHIR API documentation [here](FHIR_README.md)
## Implementation
REST API endpoints are defined in the [primary routes file](_rest_routes.inc.php). The routes file maps an external, addressable
endpoint to the OpenEMR controller which handles the request, and also handles the JSON data conversions.
```php
"POST /api/patient" => function () {
RestConfig::scope_check("user", "patient", "write");
RestConfig::authorization_check("patients", "demo");
$data = (array) (json_decode(file_get_contents("php://input")));
$return = (new PatientRestController())->post($data);
RestConfig::apiLog($return, $data);
return $return;
}
This file has been truncated. show original
Hope this may helps you.
Thanks,
ViSolve-121
Hi @visolveemr thanks for your response.
The document shared by you doesn’t have any endpoint to fetch calendar events of any given day’s appointments. Does open-emr also has endpoint which are not documented? Should I look into the code ? Please help
Best regards,
benmarte
(Benjamin Marte)
June 2, 2021, 12:52am
4
There is no calendar API afaik so no this is not currently possible
adunsulag
(Stephen Nielson)
June 2, 2021, 5:19pm
6
They are looking for an external api. I believe that PR only refers to something you can call inside the code base.
2 Likes