Published 2025-07-23
This Dart commandline package takes the Woonzorg data file and split, checks and modify the data. After done that, it drops the database of the Mediabase (1) table end create a new one with the new data.
Provide the "WoonzorgSourceFileParser" with the sourceFile, the translateFile and the mode and run it.
The "sourceFile" is a file provided by Woonzorg in csv format with hte modified data. (see 'Drukkerij.cvs' in the assets of the test folder)
The "mode" is optional and is one of these:
If not set, the option 'debug' is the default and it writes the data to the database named 'test' in Darwin1
The "translateFile" file is optional, if given, the "complexnaam" wil be replaced by the value of the "complexnummer" key. If not given, the names of the complexes in the source file wil be taken and displayed in the template when creating a card in Darwin1. (see 'complex_display_name_lookup.xlsx' in the assets of the test folder)
final int resultCode = await WoonzorgSourceFileParser(
sourceFile: File('test/assets/Drukkerij.csv'),
//Optional
mode: 'debug',
translateFile: File('test/assets/complex_display_name_lookup.xlsx'),
).run();
A more detailed example can be found in /example folder.
More info contact Rein...