Difference between revisions of "Active Projects"
Bradymiller (talk | contribs) |
Bradymiller (talk | contribs) |
||
Line 201: | Line 201: | ||
Here is the related [http://sourceforge.net/tracker/?func=detail&aid=2872330&group_id=60081&atid=493004 feature request tracker item]. | Here is the related [http://sourceforge.net/tracker/?func=detail&aid=2872330&group_id=60081&atid=493004 feature request tracker item]. | ||
'' | ''Rod is working on this.'' | ||
==User Interface Refactor== | ==User Interface Refactor== |
Revision as of 05:41, 24 February 2010
Overview
This is a listing of currently important active projects. This is a place to see what's going on, and also a place to see where help is needed by other developers and testers. These are kind of ordered by how important they are to OpenEMR's future.
Wiki
We have just migrated the wiki to mediawiki. Below describes the active projects in this wiki migration that still need to be completed.
License
Change to GPL. All the FDL stuff needs to be changed to GPL. Places I notice this:
- bottom left icon
- bottom page text link
- bottom page during editing of a page
- When users are requesting a new account.
Seems like most of these can simply be configured near bottom of the LocalSettings.php file
Documentation is available under multiple licenses. when importing this documentation into the wiki, its important to be able to brand inividual pages as having certain licensing requirements.
Internationalization
This has been a bit more difficult than anticipated. The polyglot extension was initially considered but is no longer maintained and likely buggy. Gonna go with below manual approach described HERE
- Install/configure the following extension:
- ParserFunctions
- The ParserFunctions extensions adds some logical functions to allow use of the languages and languages/Lang templates described HERE.
- ParserFunctions
- Recruit translators
Jason B. and Brady are working on this.
Certification
A very large multi-developer project is currently underway to get CCHIT certifications and is described on the CCHIT Roadmap wiki page.
Internationalization
OpenEMR supports internationalization and multi-language clinics. Most of this are from recent modifications that got released in OpenEMR 3.1.0. Further information on the project can be found on the internationalization configuration and development wiki pages.
Date formatting
Still work to do in order to support date formats across multiple languages. Here's the forum thread discussing this.
Awaiting a Analyzer to figure out a good plan for this.
Translation database maintenance/improvement
We currently have a stable collaborative system in place to allow translation of any language. The translations are entered into a OpenEMR Translation Google Doc Spreadsheet. These instructions and scripts (README files describes the pipeline in detail) then allows conversions of the translation spreadsheet to mysql tables and allow detection and insertion of new english constants into the translation spreadsheet.
A new set of official translation tables are created approximately every 1-6 weeks depending on where we are in the release cycle.
Brady is maintaining this.
Calendar
Multi-facility bugs
Description of bugs:
- Things work great with one facility
- With two facility the bugs appear (different bugs happen with the $GLOBALS['restrict_user_facility'] turned off(default) and on)
- When $GLOBALS['restrict_user_facility'] is turned off get following behavior. In essence the calendar only shows what is set as 'default facility' in the users settings. If you choose the facility then that user won't be available. By choosing all facilities, it will actually show all appointments from all facilities, however the scrollbar display is confusing (shows the top item), and unable to schedule an appt at anything but in the scroll bar; this also screws up what you see when scrolling through new days.
- When $GLOBALS['restrict_user_facility'] is turned on, then only seems to work right if you place all facilities in the users settings 'Schedule facilities'. Then everything seems to work fine, but there is no option to view all facilities, which seems like should be an option. If you don' t place all facilities in the users 'schedule facilities', then you'll see other appointments at other disallowed facilties like they are on the selected on (not much of a bug since appointments shouldn' be scheduled on disallowed facilities anyways), however can only add to the allowed facility, which is good.
Seems like the bug(s) really stem from three mechanisms:
- When choose all facilities, don't then highlight the item below it; highlight them all and that have this supported when click other buttons (moving days or adding appt)
- With global restrict_user_facility off (default) allow users to be scheduled at all facilities.
- With global restrict_user_facility on give option to show all facilties in calendar.
Currently linked to this tracker item and this forum thread.
Awaiting a Developer to fix this bug.
Recurring appointment bugs
This problem() is discussed in this forum thread and this forum thread.
Awaiting a Tester to further document this bug behavior and make a bug report in tracker with this behavior.
General code base improvements
Security Vulnerability Assessment and Fixing
- The Realsearch group at NC State has been working with OpenEMR in it's evaluation of the CCHIT security criteria. As a part of this research they've done automated testing of the application and have discovered a number of security vulnerabilities with the software. They have gone through and tried to manually verify each vulnerability. The list of actual vulnerabilities, more than 500 in total, can be found at the links below. The true vulnerabilities have a value of True in the 'Vulnerable' column.
- As a summary, here are the types of issues they've found and their counts:
- Fortify 360:
- Cross-Site Scripting (215)
- Nonexistent Access Control (129)
- Dangerous Function (24)
- Path Manipulation (20)
- Error Information Leak (19)
- Global Variable Manipulation (9)
- Insecure Upload (8)
- Improper Cookie Use (7)
- HTTP Header Manipulation (4)
- Rational AppScan:
- Cross-Site Scripting (50)
- Phishing Through Frames (25)
- Cross-Site Request Forgery (22)
- Error Message Information Leak (14)
- SQL Injection (4)
- JavaScript Cookie References (6)
- Directory Listing (6)
- Password Not Encrypted (2)
- Path Disclosure (1)
- Fortify 360:
- Some sort of software convention (Eurostar 2009) looking for OpenEMR bugs, still waiting for them to post the bugs. Here are all the links pertaining to this: link1 Link2 link3 link4 link5
Awaiting a Analyzer to figure out a good plan for this.
Clean up magic quotes, prevent sql-injection, and prepare for PHP6
Plan to pass all input data through functions in the openemr/library/formdata.inc.php file before inserting into mysql database. This is useful for following reasons:
- Will centralize input validation
- Will centralize sql-injection blocking
- Fix the escaping bugs(magic quotes) that are seen throughout OpenEMR when inputting the apostrophe character
- Will allow easy migration to php6 (since magic quotes will no longer exist in php6)
- Simplify support for other database software
Objectives of openemr/library/formdata.inc.php functions:
- formData() - This function will remove escapes (if magic quotes is set), and then places database specific escapes to ensure safe database insertion of variable. Input accepts POST, GET, or REQUEST variables, and there is an option to trim the input.
- formDataCore() - This function will remove escapes (if magic quotes is set), and then places database specific escapes to ensure safe database insertion of variable. Input accepts any variable, and there is an option to trim the input.
- strip_escape_custom() - This function will remove escapes (if magic quotes is set). Input accepts any variable
- add_escape_custom() - This functions places database specific escapes to ensure safe database insertion of variable. Input accepts any variable
Timeline objectives:
- 12/2009-1/2009: Clean up all the apostrophe input bugs and get OpenEMR to work with magic quotes turned on and off.
- 01/2009-??????: Replace all calls for get_magic_quotes_gpc() and mysql_real_escape_string() with the formdata.inc.php functions (moderate amount of work).
- 02/2009-??????: Systematically migrate all scripts into formdata.inc.php functions. (large amount of work)
Specific Code changes and dates:
- 12/01/2009: Committed a cleaner openemr/library/formdata.inc.php to CVS and will include in patch#5 for 3.1.0. Read file for details. --Bradymiller 00:05, 2 December 2009 (UTC)
- 12/05/2009: Committed an even cleaner openemr/library/formdata.inc.php to CVS and will include in patch#5 for 3.1.0. Read file for details. --Bradymiller 09:08, 5 December 2009 (UTC)
- 12/05/2009 and 12/06/2009: Focused changes in calendar appt, calendar searching, and bookmarks to make compatible with both magic quotes settings (on or off). Files modified:
- openemr/interface/main/finder/patient_select.php
- openemr/interface/main/calendar/find_patient_popup.php
- openemr/interface/main/calendar/add_edit_event.php
- openemr/interface/main/calendar/modules/PostCalendar/pntemplates/default/user/ajax_search.html
- openemr/interface/main/calendar/modules/PostCalendar/pnuser.php
- openemr/interface/usergroup/addrbook_list.php
- openemr/interface/usergroup/addrbook_edit.php
- --Bradymiller 11:02, 6 December 2009 (UTC)
- 12/11/2009: Changes in CAMOS to make compatible with both magic quotes settings (on or off). Files modified:
- openemr/interface/forms/CAMOS/admin.php
- openemr/interface/forms/CAMOS/ajax_save.php
- openemr/interface/forms/CAMOS/content_parser.php
- openemr/interface/forms/CAMOS/new.php
- openemr/interface/forms/CAMOS/save.php
- openemr/interface/forms/CAMOS/rx_print.php
- openemr/interface/forms/CAMOS/notegen.php
- --Bradymiller 22:47, 12 December 2009 (UTC)
- 12/21/2009: Quick conversion in the admin facilities edit page
- openemr/interface/usergroup/facility_admin.php
- --Bradymiller 09:48, 21 December 2009 (UTC)
- 1/22/2009: Quick fixes to allow apostrophes in drug names
- openemr/library/ajax/prescription_drugname_lookup.php
- openemr/library/classes/Prescription.class.php
- --Bradymiller 09:40, 23 January 2010 (UTC)
- 1/23/2009: Migrated the heart of the controller/smarty stuff (does not include the postnuke smarty stuff) to formdata.inc.php. No change in functionality, just centralized the input processing and string processing(before database insertion) functions. During this testing, noted a bug in the processing (if magic quotes are on then sometimes strings get slashes removed twice before going to database, thus single slashes inputted in strings may get lost; minor but worth pursuing. For example when enter a prescription it goes through the library/classes/Controller.class.php populate() function and the library/classes/ORDataObject.class.php persist() function; hence if magic quotes are on the slashes will be removed twice)
- openemr/library/classes/Controller.class.php
- openemr/library/classes/ORDataObject.class.php
- --Bradymiller 09:40, 23 January 2010 (UTC)
quick note: Smarty cleans up its variables via pnVarCleanFromInput() function in openemr/interface/main/calendar/includes/pnAPI.php file (this function will strip slashes if needed, however doesn't escape characters for database insertion). Smarty can prepare for database commands via pnVarPrepForStore() function in openemr/interface/main/calendar/includes/pnAPI.php file (this function ca not be used with pnVarCleanFromInput() and simply adds slashes if magic quotes not on, so will need to consider securing this further in future) (both of these functions are only likely specific for calendar smarty system).
quick note #2: Should be able to incorporate this throughout all the Controller code by simply modifying the functions populate_object(&$obj) in the openemr/library/classes/Controller.class.php file and the function persist() in openemr/library/classes/ORDataObject.class.php.(This was DONE on 1/23/2009)
Currently linked to this tracker item and this forum thread.
This project will be a lot of work and will involve modifications to a large amount of files. This process is currently happening slowly as we modify files(example here). However at some point this will likely become a primary multi-developer project as we get closer to the release of php6.
XML Form Generator
A stand-alone XML based form generation tool is in development. This generator is designed to be used for "eighty percent" of the form creation needs of the 'average' user.
It is currently capable of generating encounter forms with simple fields on them (no lists, layouts engine), but already produces code better than many of our current forms.
It is the intention of the developer to use this code to replace many of the forms in openemr currently, leaving only a .xml file defining the form in the tree.
Its also envisioned that it will be possible to train layouts to export XML. In this way, form development workflow can be 'create new page with proper name/class/acl', 'edit using layouts until its right' 'export' 'import into production openemr instance'.
Testers wanted! for more information, see OpenEMR Xml Form Generator
Configuration
Migrate configuration settings into OpenEMR program
Currently, many of the configuration settings are found in the actual source files. It will be very advantageous to migrate all configurations settings from these files into OpenEMR's mysql database. This would markedly simplify use, customization, upgrading, and patching of OpenEMR.
A proposed plan could include the following:
- auto-detection of the webroot and webserverroot directories (it seems all other php projects do this, so shouldn't be hard) in the interface/globals.php file, so it doesn't need to be hard-coded.
- Create an Administration->Confiugration module to allow editing of the below settings within OpenEMR
- Migration of all configuration setting from the following files to above Administration->Configuration Module (ie. mysql database) (then could simply make a database call when need the variable. For example the globals.php file would then simply be a huge sql query to collect the configuration settings):
- interface/globals.php
- includes/config.php
- custom/clickoptions.txt (place into current admin->lists structure)
- custom/code_types.inc.php
- custom/statement.inc.php
- library/lists.inc
- library/classes/class.ezpdf.php
- interface/billing/billing_process.php
Here is the related feature request tracker item.
Rod is working on this.
User Interface Refactor
- Major clean up and refactor of the User Interface experience.
- Full pass internal cleanup and implementation of more AJAX for modern look and feel
- Patient centric: using demographics page as the launch pad for all patient focused information
- Use of modal windows rather that separate browser windows for all popups
- Model for plugin of customizations that does not require code changes *designed*
- Reporting look and feel standardization - *Done*
- API to support clean work flow management
- etc ...
In Progress at MI-SQUARED
Summary goals on User Interface Refactor