Sitemap
Apoorv Choubey

Apoorv Choubey

An enthusiast of all sorts.

Coding Period with LibreHealth — Week 6 & 7

3 min readJul 13, 2018
Press enter or click to view image in full size

In the previous week, I did some work on adding a feature to change time zone in EHR in this PR. Initially, it only covered time zone over Calendar and was later extended to cover time zone all over EHR. Some additional changes such as moving time zone option list to a different tab and its code to an appropriate file, changing corresponding global’s name, adding forward-slash to options for better navigation were done during these two weeks.

I added display styles to an appointment’s tooltip as they were in an appointment’s slot in Calendar in this PR. I also reviewed three PRs. First one added another provider display option in Calendar, second one used accordion to improve the interface of patient reports and third one changed name in download files from old system to new system.

Get Apoorv Choubey’s stories in your inbox

Join Medium for free to get updates from this writer.

I worked on interface of a feature which lets users make vacation events or holiday events in bulk (PR) in previous week. During these two weeks, I worked on improving the interface of holiday tab and adding back-end code for making vacation and holiday events as specified by user. Former involved adding clinic drop-down, radio buttons for choosing between half-day/full-day holiday and latter involved adding form validation, form handling, main processing code for vacation and holiday events. I learned something new while I was working on back-end code for adding holiday events. It basically involved passing data from JavaScript to PHP and was achieved by converting a JS object to JSON string, passing it to server using an input element and converting that string into a PHP associative array.

I also worked on covering Calendar (PR) for a facility based ACL feature (initial PR) on which Art Eaton was working on. The ACL feature restricted user’s access to patients based on user’s allowed/scheduled facilities. Covering Calendar for this feature involved not letting any event appear on Calendar which a user shouldn’t have any access to as per the ACL feature. The ACL feature PR was eventually merged into covering Calendar PR so as to test and develop everything related to ACL feature in one place.

In Audit feature, there was an issue of updater (added by Naveen in this PR) getting opened after Log window was closed, which shouldn’t happen. This issue was addressed in this PR and was because the selector (class) name used to refresh tab after Log window (iziModal) was closed was same as that in updater icon. I also added the back-end code in Audit feature (PR). DataTables framework is used to display data in Track Appointments tab using server-side processing (server deals with pagination, filtering, sorting of data). Two main queries (each for Track Appointments tab and Log widow) are used to combine particular tables into a single table to get all required data for each of them under one place and iteration is performed on resulting tables to generate rows in Track Appointments tab and Log window.

That’s all for now. Until next time then!

--

--