Closed AnonimGuest closed 7 hours ago
Describe the bug The function readPatientsFromCSV() failed to read data when the file contained an empty line or extra spaces.
Expected behavior The function should skip invalid lines and continue reading the rest of the data.
Additional context Observed with a sample CSV file containing extra newline characters.
The readPatientsFromCSV() function was enhanced to ignore empty lines and extra spaces while reading the file. Exception handling was implemented to skip invalid entries and log errors for debugging purposes.
Describe the bug The function readPatientsFromCSV() failed to read data when the file contained an empty line or extra spaces.
Expected behavior The function should skip invalid lines and continue reading the rest of the data.
Additional context Observed with a sample CSV file containing extra newline characters.