-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Be able to provide available slots to API client #3
Comments
fhir is a Laravel package for talking to a LibreEHR database via FHIR API What methods implements fhir? What kind of architecture should have fhir? |
Now in this repository LibreEHR/LibreEHR the source code of the website OpenEMR. fhir will be communicating with this website? Or OpenEMR will be rewritten in laravel? |
There is a core package in the LibreEHR github, which the fhir package depends on. The core package contains the beginnings of a backend API for communicating to the EMR. The core package contains a set of interfaces in core/src/Contracts which are the interfaces used by the fhir package. The implementations of those interfaces are in the core/src/Emr directory. For example, src/Emr/Repositories/PatientRepository.php implements the create, and find operations for patients. The REST controllers and mapping of FHIR models to LibreEHR interfaces and back are located in fhir/src/Http/Controllers and fhir/src/Adapters. To create a new FHIR Resource endpoint, for Appointment for example, you would
The fhir package will communicate with the database in the LibreEHR/LibreEHR. So, if enhancements need to be made for the FHIR API, they will also need to be made to LibreEHR. |
I have a some questions on the implementation of the resource Slot and the Schedule. |
Slots are basically availability. Free times and busy time. In OpenEMR the provider sets his in and out of office times, and appointments. The Slot API would use the provider's in-office times and his existing appointments to provide the iPhone app available slots and unavailable slots. It is my understanding that you first query the Schedule resource for a given provider by provider ID and a time frame, then from that get the slots. Ken
|
The resource Schedule needs to return the time frame size one day or several days? |
The search would be done by providing the API a Practitioner ID and period identified by a start and end time. See the Schedule FHIR documentation under search parameters. https://www.hl7.org/fhir/schedule.html#search I would start with a Core API (in core package) that pulls schedule for a given provider ID in between two dates, then we can hook up the FHIR endpoint from there. Ken
|
What is the size of the slot should be? Should it be static or variable? |
Good question. Use the slot times that are illustrated on the wire frames for now. We can make them configurable later if necessary. Ken
|
OpenEMR allows the slot times to be configured by appointment type. This Table is openemr_postcalendar_categories Tony McCormick, CTO On Tue, Aug 9, 2016 at 7:53 AM, Ken notifications@github.com wrote:
Please be aware that e-mail communication can be intercepted in |
A client should be able to query available slots for a particular practice using the Appointment Slot resource, which needs to be implemented to close this issue.
Unit test required.
See https://www.hl7.org/fhir/appointment.html#5.27.1.1
The text was updated successfully, but these errors were encountered: