Documentation for CSV Upload on Architecture 2.0
Description of the service
The CSV Upload functionality gives the possibility to import multiple parameters from a set of patients in one time into HD4DP 2.0. The csv file is based on an extract of the electronic patient files and/or other local databases.
Currently there is no user interface in HD4DP 2.0 for uploading csv files. If a data provider wants to upload a csv file, the file has to be dropped at a specific location. These files will be picked up and processed periodically. The files should be “final”, meaning that no application is writing to them. The pick-up location will be identical for all registries.
Pre-registry handling will be based on a naming-convention of the csv file.
HOW TO: Upload data using CSV Upload
Steps To Upload data
1. Prepare the csv file (example file in this section)
- Extract the csv file from the electronic patient files and/or other local databases.
- Author group, Author and Coauthor:
- When the Author Group, Author and Coauthor have been left out in the csv file, the default Author group, Author and Coauthor will be used automatically.
- When the desired Author Group, Author and Coauthor are specified in the csv file, the following headers TX_AUTHOR_GR, TX_AUTHOR and TX_COAUTHOR must be added to the csv file with their values respectively.
TX_AUTHOR_GR;TX_AUTHOR;TX_COAUTHOR Author Group;firstname.lastname@example.org;email@example.com
Note: The Author group, Author and Coauthor must exist and are well configured at the back-end of the system. TX_AUTHOR_GR can be a string that identifies the Author group to which this Author belongs. Commonly, the first name and last name are used to identify the TX_AUTHOR_GROUP.
- Similarly, add the filename 'STATUS' in an additional column. Add the value 'draft' in case a manual submission of the record is requested.
If not, the record will be submitted without manual intervention.
- Make sure the name of the CSV file has the correct format:
So for Hand Hygiene - Post Campaign the format would be : HD_DCD_submcsv_HD_DCD_submcsv_HDBP0025_HH_HandHygiene-Post-Campaing_01_18102022.csv
Please find here an example file for Hand Hygiene - Post Campaign:
CD_DATA_PROV;CD_SITE;CD_WARD;CD_SPLTY;CD_TPE_UNT;CD_TPE_OBS;TX_OBS_INIT;D_OBS;T_START_OBS;T_STP_OBS;CD_PROF;CD_OPT_MDL;CD_WATCH;CD_BRAC;CD_RING;CD_NAIL_DIRT;CD_NAIL_LON;CD_NAIL_EXT;CD_PLSH;CD_SLEEVE_LON;MS_NHH_BEF_TCH_PAT;MS_SOAP_BEF_TCH_PAT;MS_ALC_BEF_TCH_PAT;MS_NHH_AFTER_TCH_PAT;MS_SOAP_AFTER_TCH_PAT;MS_ALC_AFTER_TCH_PAT;MS_NHH_BEF_CONT_VEN_ARTER;MS_SOAP_BEF_CONT_VEN_ARTER;MS_ALC_BEF_CONT_VEN_ARTER;MS_NHH_BEF_CONT_URY_SITE;MS_SOAP_BEF_CONT_URY_SITE;MS_ALC_BEF_CONT_URY_SITE;MS_NHH_BEF_CONT_RESPI_SITE;MS_SOAP_BEF_CONT_RESPI_SITE;MS_ALC_BEF_CONT_RESPI_SITE;MS_NHH_BEF_CONT_INJRY_SKIN;MS_SOAP_BEF_CONT_INJRY_SKIN;MS_ALC_BEF_CONT_INJRY_SKIN;MS_NHH_BEF_CONT_DRUG;MS_SOAP_BEF_CONT_DRUG;MS_ALC_BEF_CONT_DRUG;MS_NHH_AFTER_CONT_INJRY_SKIN;MS_SOAP_AFTER_CONT_INJRY_SKIN;MS_ALC_AFTER_CONT_INJRY_SKIN;MS_NHH_AFTER_CONT_MAT_PAT;MS_SOAP_AFTER_CONT_MAT_PAT;MS_ALC_AFTER_CONT_MAT_PAT;CD_STATUS_REC;TX_REG_NAM;TX_LANG;TX_BUSINESS_KEY 70100179;B1;001L-1581;224890005;2;0;CSV Hand Hygiene Post Campaign;23/03/2022;08:30:00;23:00:00;106289002;0;0;1;0;1;1;1;0;1;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23;24;25;26;27;status_submitted;NSIH_HH_POST;nl;4418CSV Hand Hygiene Post Campaign23/03/202208:30:0023:00:002076
Disclaimer: The example files above are only provided as a guideline and do not contain real life data.
2. Uploading the csv file
Step 1: Open the sftp tool like WinSCP
Step 2: Get the credentials (Host name, Port number, User name and Password) from the IT department of the Data Provider, to log on to the sftp server located on the Data Provider side.
Step 3: Fill in the credentials into the Login screen and click on Login to be able to access the different upload folders:
Note: a warning might be given, just click on Update
Now the CSV Upload folder structure is displayed on the right-hand side panel:
Step 4: Select the project folder Handhygiene-1 and open it by double-clicking on it:
Step 5: Double-click on the DCD folder to open it:
Step 6: Now go to the folder on the left-hand side panel where the CSV file to be uploaded is located:
Step 7: Drag the CSV file to be uploaded from the left-hand side panel into the folder on the right-hand side panel:
Step 8: Wait until the polling system of the CSV Uploader has picked up the CSV file and has processed it.
Once the CSV file has been processed it will disappear from the folder, when we refresh the page manually!
3. Validate csv upload
Once the csv file has been processed 3 folders will be created (if they haven't been created already) in the DCD folder:
- ARCHIVE (after a csv file has been processed, the original csv file will be saved in this folder)
- RESULT (when the csv file is placed in this folder, it means that the csv file has been processed, a file will be created or (or appended, if the file already existed) with the result of the upload of the csv file).
All the errors that are described in this file are business related, which means that they are technically correct, but in violation with the business rules or contain wrong values for that field.
- ERROR (when the csv file is placed in this folder, it means that a technical error has occurred like the csv file contained erroneous formatting. The csv file won't get processed and an error file will be created with the errors and reason why the csv file couldn't be processed)
3.1 Validation of the csv upload via sftp tool:
Step 1: Double-click on the ERROR folder to open it, click on the refresh button and verify that there is no error file present.
Step 2: Return to the DCD folder. Now double-click on the RESULT folder to open it, click on the refresh button and verify that the result file is present.
Step 3: Double-click on the result file to open it.
Step 4: If there are multiple records in the result file, scroll to the entry of the current csv upload by looking at the upload date (Started at dd/mm/yyyy hh:mm).
Verify the result file that the upload was successful by searching for the word SUCCESS and having a look at the Status. This Status must contain: Success;Success Count:1;Error Count:0
3.2 Validation of the csv upload via HD4DP 2.0:
Step 1: Open the web application HD4DP 2.0.
Step 2: Select the concerned organization in the dropdown list and click on Volgende (Next)
Step 3: Fill in the username and password, that has been provided by your IT Department or Healthdata team, and click on Log in to access the HD4DP 2.0 application.
Step 4: Navigate in the menu on the left-hand side panel to the desired DCD:
Step 5: Check that the uploaded DCD(s) is/are displayed in the DCD overview