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

Add CSV Export Support for FacilityDischargedPatientsList API #2587

Open
AnveshNalimela opened this issue Nov 8, 2024 · 2 comments
Open
Assignees

Comments

@AnveshNalimela
Copy link
Contributor

The FacilityDischargedPatientsList API currently provides patient discharge data in Object, but it lacks support for CSV output. CSV export functionality is needed to allow users to easily download and manage patient discharge data in a widely-used spreadsheet format.

Add an option to the FacilityDischargedPatientsList API to allow data to be exported in CSV format.

Proposed Solution:

Implement a CSV export option for the FacilityDischargedPatientsList API.
Add a query parameter (e.g., ?format=csv) to specify CSV output.
Modify the API route handler to check for the format=csv parameter.
If format=csv is specified, generate and return a CSV response containing the list of discharged patients, including relevant headers and fields.
Ensure compatibility with the current API response structure for easy integration.

@AnveshNalimela
Copy link
Contributor Author

AnveshNalimela commented Nov 8, 2024

@rithviknishad @gigincg Assign these issue to me. I will would like on these issue

@sainak
Copy link
Member

sainak commented Nov 18, 2024

ohcnetwork/care_fe#8993

@bodhish bodhish moved this from Up Next to In Progress in Care Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

3 participants