profjake wrote on Thursday, September 20, 2007:
Well what I did was I changed the Appointment report in these ways
1. I added a reason column
2. I added a Copay column which is the copay amt of the primary insurance (if found)
3. I added a Notes/Comment field which is the Comments you type in on setting up an appointment.
4. I got rid of the Provider column. Most of the time, you are printing/using this report to give to the doc so he can pull charts or know his day. Rarely do you need a report of all appointments for all providers on a given day and if you did, why would you care what the provider’s name was (my opinion).
I am also going to add end time AND, Im gonna convert the time into AM/PM time. Has anyone done this yet? This should be a function in common api Id think. Do you think I should make that a config flag? Or is it already a config flag I can query? If not, I recommend one… a Euro time versus USA time flag.
Also, the report is using the cascading style sheet entries for detail and dehead from common_api. But I think the appointments report needs different settings, because for example, I want to left justify certain columns, right justify others, top justify them too, and make certain columns smaller so it forces a word wrap, particularly for the comments field because it gets too long. BTW did you know you can embed html code in many fields like in the comment field? I tried it with simple stuff like <br> and <p> This is BAD BAD BAD… I could probably enter php commands this way to do things like ERASE FILES OR DATA if I wanted to… Shouldn’t we be filtering out all HTML code from ALL of these fields???
Also, this is a viewable report, but how would I go about making a printable report? OR better yet, a PDF?
I mean, there are no examples or templates of a "printable" report or an example of how to make a PDF.
That is REALLY what i need.
Ideally, Id like to add 3 buttons to the bottom of all viewable reports, PRINT, Generate PDF, Export to CSV
Now as for a better way to submit reports. The REPORTS screen should be pulling from a database of reports that has the name of the report php code in it to be executed. That wouldnt be too hard, would it? So it would make it easier to add reports because all youd have to do is write the report code, THEN add its name and php code file name to the database rather than have to edit the actual "reports" screen code.