Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore other alternatives to generate PDF reports #812

Closed
14 tasks
sainak opened this issue Jun 1, 2022 · 22 comments · Fixed by #2132
Closed
14 tasks

Explore other alternatives to generate PDF reports #812

sainak opened this issue Jun 1, 2022 · 22 comments · Fixed by #2132
Labels

Comments

@sainak
Copy link
Member

sainak commented Jun 1, 2022

Project Detail

CARE is a centralized capacity management and patient management system, central to the 10BedICU Project, integrating patients, doctors, hospitals, labs, specialized treatment centers, hospital administrators, and shifting control cells. Hospitals update crucial information about their assets, providing district administration with a comprehensive view of the healthcare system via smart dashboards. CARE digitizes patient records, streamlines workflows for pandemic management, and is deployed in remote areas, enabling TeleICU services for underserved citizens. It revolutionizes healthcare management, enhancing efficiency, accessibility, and patient outcomes.

Features To Be Implemented

Context

We're exploring alternatives for generating PDF reports. Our current approach involves using a browser to render HTML pages as reports via django-hardcopy.
https://github.com/coronasafe/care/blob/19b63d2f47f41d7642698e128877651c51e5d2f3/care/facility/utils/reports/discharge_summary.py#L102-L121
However, we're interested in finding a native Python package capable of generating reports, ideally with the capability to directly create PDFs from HTML/templates.

Action Items

  • Identify a native Python package for generating PDF reports
  • Add new functions to generate the reports using the new packages
  • If required change the existing report template to support the format of the packages
  • Compare the resource usage of the workers for each package
  • Get user feedback on the new report PDFs
  • Select the best alternative by comparing the feedback on PDFs and resource usage of the packages
  • Update the old methods to use the new package
  • Add test cases to validate the reports generated
  • Cleanup Dockerfiles

Learning Path

Details
Complexity Medium
Required Skills Python, Django
Mentors @nihal467 , @vigneshhari , @khavinshankar , @rithviknishad , @gigincg , @Ashesh3 , @sainak
Project Size 175 hours

Link to documentation for Product Set-Up

  1. For setting up the frontend, please refer to the readme file available at: https://github.com/coronasafe/care_fe
  2. For setting up the backend, please refer to the readme file available at: https://github.com/coronasafe/care

Acceptance Criteria

  • All the CI/CD workflows should pass.
  • Code is logically structured for long-term project sustainability.
  • Proper descriptions should be included for review purposes.
  • QA and Code Review

Milestone

  • Get to know CARE as a product and understand the workflow.
  • Understand the user-level requirements and come up with an optimal solution.
  • Implement the required PDF generations (refer above action items)
  • Optimise and improve the PDF generation
  • Review and QA
@mathew-alex mathew-alex added this to Care Jun 1, 2022
@mathew-alex mathew-alex moved this to Triage in Care Jun 1, 2022
@gigincg

This comment was marked as outdated.

@sainak sainak added the P3 Low priority label Jun 25, 2022
@sainak

This comment was marked as outdated.

@gigincg gigincg moved this from Triage to Wishlist in Care Jun 25, 2022
@rithviknishad rithviknishad added the good first issue Good for newcomers label May 24, 2023
@Yash12Bansal

This comment was marked as outdated.

@vigneshhari

This comment was marked as outdated.

@Yash12Bansal

This comment was marked as outdated.

@Yash12Bansal

This comment was marked as outdated.

@gigincg

This comment was marked as outdated.

@Yash12Bansal

This comment was marked as outdated.

@Yash12Bansal

This comment was marked as outdated.

@Yash12Bansal

This comment was marked as outdated.

@sainak

This comment was marked as outdated.

@Yash12Bansal

This comment was marked as outdated.

@rithviknishad

This comment was marked as outdated.

@rithviknishad

This comment was marked as outdated.

@sainak

This comment was marked as outdated.

@sainak sainak changed the title Use Firefox to generate pdf report Explore other alternatives to generate PDF reports Aug 2, 2023
@khavinshankar khavinshankar added GSoC and removed good first issue Good for newcomers P3 Low priority labels Feb 2, 2024
@FireNdIce3
Copy link

FireNdIce3 commented Feb 21, 2024

Hello There !
A bit of my background
Myself Madhav, Student of IIT Roorkee doing major in Electronics and currently in 3rd Year. I have done an internship in a startup about prior authorisation which involved Next.js and I created a package that generated approval or denial letters based on patient details.
As the project aligns a bit with my previous internship, I would like to work on this project.
Can you please help me how to proceed
Thanks

@sainak

@nihal467
Copy link
Member

Hey everyone,

Thank you for showing interest in the projects. I would like to inform you that we have scheduled EOD calls on Zoom from Monday to Saturday at 7:30 PM to discuss your work and address any doubts with the core team. Alternatively, feel free to use our #care_general Slack channel.

The meeting links will be shared in our #reminder channel in our Slack workspace.

Link to join the Slack: Slack Workspace

Meanwhile, please explore the care platform and familiarize yourself with its features. Feel free to play around with it and assign any open issues as you see fit.

@gupta-sujal
Copy link

Hello community,
I am Sujal Gupta, A Sophomore at IIT Hyderabad in Electrical Engineering.
I came across this project idea while going through the organizations. I have previously worked with Django and Python and would love to be able to contribute and learn something new from this opportunity. Please guide me on how to get started

@PlanetDestroyyer
Copy link

Hello everyone,

I'm excited to be part of this discussion on exploring alternatives for generating PDF reports. With my experience in Python development, particularly within the Django framework, I'm confident in my ability to research and implement efficient solutions to meet our project's needs.

Having reviewed our current approach, which involves using a browser to render HTML pages as reports via django-hardcopy, I understand the desire to find a more native Python package for generating reports. I'm eager to contribute my skills to this endeavor and help identify the best-suited solution for our requirements.

I am well-versed in utilizing Python libraries such as WeasyPrint, ReportLab, PDFKit, PyFPDF, and xhtml2pdf, all of which offer capabilities to directly create PDFs from HTML/templates. Whether it's exploring the simplicity of PDFKit or the robust features of ReportLab, I am prepared to thoroughly evaluate and implement the most suitable option for our project.I look forward to collaborating with the team to ensure a seamless transition to our chosen solution and contribute to the success of our PDF report generation efforts.

Best regards, Pranav

1 similar comment
@PlanetDestroyyer
Copy link

Hello everyone,

I'm excited to be part of this discussion on exploring alternatives for generating PDF reports. With my experience in Python development, particularly within the Django framework, I'm confident in my ability to research and implement efficient solutions to meet our project's needs.

Having reviewed our current approach, which involves using a browser to render HTML pages as reports via django-hardcopy, I understand the desire to find a more native Python package for generating reports. I'm eager to contribute my skills to this endeavor and help identify the best-suited solution for our requirements.

I am well-versed in utilizing Python libraries such as WeasyPrint, ReportLab, PDFKit, PyFPDF, and xhtml2pdf, all of which offer capabilities to directly create PDFs from HTML/templates. Whether it's exploring the simplicity of PDFKit or the robust features of ReportLab, I am prepared to thoroughly evaluate and implement the most suitable option for our project.I look forward to collaborating with the team to ensure a seamless transition to our chosen solution and contribute to the success of our PDF report generation efforts.

Best regards, Pranav

@AyushGupta11442
Copy link

hello everyone !
I, Ayush Gupta, a B.Tech student in Computer Science from India, with 3 years in mobile/web dev and 1 year in data science/ML, am keen to contribute to your GSoC 2024 project, "Explore other alternatives to generate PDF reports." I'm prepared to delve into relevant documentation and prerequisites for optimal project execution.

Regards,
Ayush

@adityasuthar
Copy link

Hello,

I'm Aditya Suthar, a third-year Computer Science student at Engineering College Bikaner. I'm eager to contribute to your project through the Google Summer of Code program. With experience in Python and Django, I'm keen to apply my skills to this issue.

@gigincg gigincg moved this from Wishlist to In Progress in Care Jun 13, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in Care Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.