-
Notifications
You must be signed in to change notification settings - Fork 47
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
Duplicate columns on Patient List export #558
Comments
Thanks for pointing this out, @olayemiibrahim . TLDR;The problem is in the duplicate for loop in the WebWorkerContext.ts file. This only happens when the user is exporting a dataset with a one-to-many relationship with patients (i.e., a patient can have more than one row of data). BackgroundBasically, web workers are odd. Especially when using The Why? Well, writing it in TypeScript allows us to get type checking and helpful stuff like that. However due to oddities of how the browser initializes webworkers (specifically, you just send a big blob of code as a string), basically that won't work. This causes all sorts of headaches. I've seen quite a few workarounds in the past (and maybe there are better, more recent, solutions), but to my knowledge none really do a reliable job of making this easier. Anyway, I've never felt that the way we do this with Leaf as ideal or the best solution (clearly, given this issue and possible others, it's not), but I convert the TypeScript If you look at the line linked above, you can see that the I'll make a fix for this of course, but in the meantime, if necessary, you can just manually cut out those 4 unnecessary lines of the |
Fixed in 3.11.3 |
Hello everyone,
Is anyone else experiencing an issue with Leafs export? It looks like when we export patient information from the patient list tab all the columns are duplicated without their column headers.
I had attempted to follow the export function in the dataExport.ts to see where the columns are being duplicated. It looks like the error would be in the getMultirowDatasetCSV function call on line 55, which leads to the patientListWebWorker.ts file. Going through the addMultiRowDataset function (assuming that is the correct one to look at) there doesn't seem to be any flaws in the logic.
Has anyone seen this issue and been able to fix it?
The text was updated successfully, but these errors were encountered: