Skip to content

Commit 48deb42

Browse files
committed
Add BOM flag to Patient ID CSV oarsing
1 parent dccf248 commit 48deb42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async function mcodeApp(Client, fromDate, toDate, pathToConfig, pathToRunLogs, d
8484

8585
// Parse CSV for list of patient mrns
8686
const patientIdsCsvPath = path.resolve(config.patientIdCsvPath);
87-
const patientIds = parse(fs.readFileSync(patientIdsCsvPath, 'utf8'), { columns: true }).map((row) => row.mrn);
87+
const patientIds = parse(fs.readFileSync(patientIdsCsvPath, 'utf8'), { columns: true, bom: true }).map((row) => row.mrn);
8888

8989
// Get RunInstanceLogger for recording new runs and inferring dates from previous runs
9090
const runLogger = allEntries ? null : new RunInstanceLogger(pathToRunLogs);

0 commit comments

Comments
 (0)