Lets get a running list of “Best Practices” for forms. This should help developers until we get some more documentation. What I’m looking for are both functional and technical tips to be used when developing forms. I have a couple to start the list off (gleaned from another topic).
1. Correct spelling
2. Should have a "did not ask" option default for questions (like radio buttons).
3. Checkboxes should have other values for printing other than "on" and null
SQL reserved words are called reserved for a reason: They are to be used for the SQL engine.
Use of the reserved words is a sloppy practice.
Mysqldump in particular does not distinguish between normal column names and reserved words. This is’nt discovered until you try to recover the database and the tables with reserved words won’t load.
The names have to be repaired by hand. This gets progressively more difficult as the database gets larger. If the database gets very large, a typical PC may not be able to open the mysqldump file to make these modifications.
There are two reserved words being used in the table structure already.
this link was posted in another open source health related list, some of you may already have it.
the title is:
Medical Usability: How to Kill Patients Through Bad Design
Incorporating a reiterative cycle of feedback from real users on usability and "Perceived practicality" would be an excellent addition to our "best practices" list.
No template files required for this one, it is completely self contained.
I will get around to testing within OpenEMR this weekend. I am concerned about the checkbox groups particularly. I know how to work with them better in Perl than PHP.
I will also look at fixing the processing of data, particularly empty fields in the save.php file.
you can run the script at the command line with no arguments to get a help printout. It will also generate a sample data file ‘sample.txt’ to work with.
There are a few minor bugs to work out and I should have no problem implementing the other features requested here. Much of it is just putting a little preprocessing of POST variables in the save.php file.