DSACMS / dedupliFHIR

Prototype for basic deduplication and aggregation of eCQM data
Creative Commons Zero v1.0 Universal
8 stars 0 forks source link

Allow User to Set the File Format of Result Data #49

Closed IsaacMilarky closed 2 months ago

IsaacMilarky commented 2 months ago

Allow User to Set the File Format of Result Data

Problem

Currently the script only outputs a static output file, "deduped_record_mapping.xlsx", in the directory that is passed into the CLI.

Solution

Change the usage of the CLI to make the user determine the file format of the output along with the filename.

Result

The usage of the CLI will change slightly from accepting a directory to place the output to accepting a file to place the output with dynamic determination of the format of the file. Most file formats supported by pandas are included.

There will also need to be some integration with the front-end to make this change work.

natalialuzuriaga commented 2 months ago

@IsaacMilarky As for frontend integration, I added a dropdown component where the user can select what file format they'd like to have the results data in with the 7 options provided in the backend. I tested it and the results file is created accordingly + downloads successfully into user's local machine. LGTM!

Screen Shot 2024-05-02 at 5 05 18 PM Screen Shot 2024-05-02 at 5 05 30 PM