From 48deb42443e651fad422e05c4148225a948e43dc Mon Sep 17 00:00:00 2001 From: Dylan Mendelowitz Date: Wed, 19 May 2021 13:41:41 -0400 Subject: [PATCH] Add BOM flag to Patient ID CSV oarsing --- src/cli/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/app.js b/src/cli/app.js index 6dc82903..057cb7a5 100644 --- a/src/cli/app.js +++ b/src/cli/app.js @@ -84,7 +84,7 @@ async function mcodeApp(Client, fromDate, toDate, pathToConfig, pathToRunLogs, d // Parse CSV for list of patient mrns const patientIdsCsvPath = path.resolve(config.patientIdCsvPath); - const patientIds = parse(fs.readFileSync(patientIdsCsvPath, 'utf8'), { columns: true }).map((row) => row.mrn); + const patientIds = parse(fs.readFileSync(patientIdsCsvPath, 'utf8'), { columns: true, bom: true }).map((row) => row.mrn); // Get RunInstanceLogger for recording new runs and inferring dates from previous runs const runLogger = allEntries ? null : new RunInstanceLogger(pathToRunLogs);