Skip to content

Instantly share code, notes, and snippets.

@2208Abhinav
Last active February 27, 2019 17:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2208Abhinav/b0d5b41ce51646e936d76c139e867946 to your computer and use it in GitHub Desktop.
Save 2208Abhinav/b0d5b41ce51646e936d76c139e867946 to your computer and use it in GitHub Desktop.

Work Summary - GSoC 2018

Project

Title: Make a module that will handle all the PDF generation requirements of the software autonomously | Project proposal
Mentors: Tony McCormick, Nilesh Prasad
Organization: LibreHealth

Introduction

The software used a lot of exteranal libraries like HTML2PDF, MPDF, FPDF and TCPDF. My aim for the project was to make a custom PHP library based on TCPDF as backbone to create PDFs autonomously according to the data present in the database and the choices made by the user.

Work Done

Commit 1
a)I added Test Download buttons.
b)Code for Patient billing, communications, demographics, history, immunizations, insurance, notes, transactions.
c)Code for selector.php. This is the main file which selects the above mentioned codes according to the user selections.

Commit 2
a)Added the code for procedure orders.
b)Updated selector.php for procedure orders code.

Commit 3
a)Added xlt() functions.
b)Added proper standard LibreEHR headers on all new files.
c)While testing Mua Laurent told me that there were some errors in patient history code. I found that the HTML tags were not closed properly due to which the PDF was not created. I rewrote the history code from scratch again.
d)Code for clinical instructions, patient issues and procedures.
e)Updated selector.php.

Commit 4
a)This was accidental commit to remove merge conflict. Later Mua Laurent told me that merge conflicts will be removed after GSOC.

Commit 5
a)In initial testing, error was found in demographics.php. I Rewrote the whole code for it from scratch.
b)Added diagnosis code support for patient history.
c)Added code for patient encounter, soap, speech dictation and vitals.
d)Updated selector.php.

Commit 6
a)Removed old download buttons.
b)Improved date checking logic.
c)Added facility for Procedures orders PDF to be downloaded by the use of two separate buttons.
d)Added the code in selector.php to serve PDFs in two formats: Download or Inline(in browser itself).

Work Left

  1. Writing the code to generate PDFs for Review of Systems and Review of Systems Checks.
  2. Adding the code with Trodrige's project.

Imporatnt Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment