Feature #169
Print Tagged cases
0%
Description
When you click on a tag and you want to print the list of patients with the same tags, the print window only contemplates 50 cases at a time, it should be contemplating all cases tagged.
History
#1
Updated by Maurício Dos Santos over 12 years ago
- Status changed from New to Feedback
- Assignee set to Ricardo Memoria
It occur because the system is printing the browser screen. I will discuss it with Ricardo...
#2
Updated by Maurício Dos Santos over 12 years ago
- Status changed from Feedback to New
- Assignee changed from Ricardo Memoria to Maurício Dos Santos
Insert the option of exporting the patients to excel in searchresult.xhtml.
#3
Updated by Maurício Dos Santos over 12 years ago
- Status changed from New to Feedback
- Assignee changed from Maurício Dos Santos to Ricardo Memoria
Ricardo,
I've seen that CaseExportHome (the class that generates the excel report) is strongly accomplished with the class CaseHQLBase...
I think the better solution to generate an excel report based on the result showed in searchresult page is to generalize CaseExportHome class to make it usable by CasesQuery (the class that generates the result to searchresult.xhtml)... I think this is better than creating another class to do the same thing to CasesQuery...
What do you think about it?
#4
Updated by Ricardo Memoria over 12 years ago
- Status changed from Feedback to In Progress
- Assignee changed from Ricardo Memoria to Maurício Dos Santos
CaseExportHome is a more complex implementation, and it depends on IndicatorFilters, which will be much more difficult to decouple.
The better is to implement a new class (maybe called CasesExport) that will use CasesQuery and export its output to an Excel file. Using Excel in java is quite straighforward and you won't have problems to implement that using the CaseExportHome as a guide.
These are some issues you'll have to pay some attention:
- Before export, limit the number of cases returned in CasesQuery (using setMaxResult) to the limit of lines in an Excel file (I think an Excel spreadsheet has a limit of 65536 rows).
- Another possibility is to bring all records the user select, but during export, if it reachs the max number of rows in a sheet, create a new sheet and continue exporting there (BETTER SOLUTION);
#5
Updated by Maurício Dos Santos over 12 years ago
- Status changed from In Progress to Resolved
Done.