Coding Period Begins..! Week-1 Summary
The first week of coding period (31st May-4th June) has come to an end. It was a successful one and I achieved what I had planned to do.
As I have previously talked, LibreEHR is a medical practice management software . It features fully integrated electronic medical records, practice management for medical practice, scheduling, and electronic billing. The server side is written in PHP and can be employed in conjunction with a LAMP “stack”, though any operating system with PHP support is supported.
The current application uses a Layout Generator which is used to create various dynamic forms. The picture below would be worth 1000 words.
As you can see, the form in the left frame is completely generated by the layout generator on the right. User/Practitioner has the complete freedom to add a new field, and change the existing data-types of the fields . This makes the layout generator to be very useful. But, one of the major issues with the forms using this layout generator was that there was no datatype for numeric fields. So, user was able to enter string data into these fields. Here is the link to this issue.
Thus, I introduced 3 more data-types in the system namely numeric, email and URL . I also introduced client-side validation on this screen, thereby preventing wrong format of data to enter the database.
Here is the pull request.
The real challenge would begin this week onwards when I’ll start to remove Smarty Template Engine dependent pieces.
So this concludes my update to the starting week of the exciting coding period .
Until next time!