I-TECH-UW / OpenELIS-Global-2

OpenELIS 2.X is a rewrite of the original OpenELIS global with updated components and technology
http://openelis-global.org/
Mozilla Public License 2.0
82 stars 209 forks source link

Patient Status CSV Report #1265

Open pascagihozo opened 2 months ago

pascagihozo commented 2 months ago

Pull Requests Requirements

Summary

This PR is to introduce the CSV downloading functionality in OpenElis at Patient Status Report which was initially generating information in pdf but the users would like to have information in CSV as well to facilitate them in making statistical decisions. New class CSVPatientStatusReport and CSVPatientStatusReportColumn builder were created which copies the same mechanisms as CSVSampleRejectionReport and its column builder. The feature is patially working on my side i.e the endpoint is tested to be working( status 200) and the issue is that instead of receiving the CSV of patient data we are receiving html content in CSV file. Additionally the CSV Patient Status Report was not modified to have the sql querires that picks the data that is specific to the Patient Status Report so further help on writing SQL queries is beneficial as well. Please review the PR and help out @adityadeshlahre @mozzy11 @caseyi

Screenshots

Screencast from 2024-09-16 22-19-47.webm

Related Issue

[Add a link to the related issue or mention it here if applicable]

Other

[Add any additional information or notes here]

mozzy11 commented 2 months ago

can you run mvn spotless:apply to format your changes

pascagihozo commented 2 months ago

can you run mvn spotless:apply to format your changes

Hello @mozzy11 Done, thank you!

mozzy11 commented 2 months ago

Thanks @pascagihozo . The screen recording does not seem to be clear , can you attach a clear screen record or sample of the report generated ??

pascagihozo commented 2 months ago

PatientStatusReport (6).csv Screencast from 2024-09-17 15-14-53.webm

Hello @mozzy11

Please find the file generated and video capture of the Console &Network above

Thank you!