Closed yonimn2000 closed 3 years ago
@rahman-mahmudur Please submit your work for initial review by Friday 10/15 6 PM.
patients.csv Test file for all possible cases
Thanks. Please update the CSV file to include invalid records too: like no name, invalid birthday, etc.
Failure test file patients_failure_test.csv
Will finish this by tomorrow for final review.
Implement importing patients from an external system using a CSV file. It will live under Patients/Import.
You will need to create a view (or more) and the required actions (there's already a blank Import action under PatientsController).
Keep it simple. Suppose the input file has a header row and the columns in the following order (with a sample data row):
Patients.CSV
Remember that the patient might not have an external ID. Then it is just null and you will have a row like this:
,John Doe,01/01/1900
(a comma at the beginning).If a patient exists already when importing (same external ID if exists, else, both full name and birthday), ignore the row.
Please also create a 10+ patients CSV file and attach it here. Do not include it in the project source files.