Description
Implement a CSV import tool for bulk importing pet medical records, allowing vet clinics to migrate existing records into PetChain with validation, error reporting, and blockchain anchoring.
Requirements and context
- Define and document the PetChain CSV import schema
- Validate all rows before import with detailed error reporting
- Support partial imports: skip invalid rows, import valid ones
- Anchor all imported records to Stellar blockchain in batch
- Provide import progress UI with success/failure summary
Suggested execution
- Branch:
feature/csv-batch-import
- Key files:
backend/services/csvImportService.ts, src/screens/ImportScreen.tsx, backend/src/routes/import.ts
- Use
csv-parse for CSV parsing
- Write tests for validation logic with malformed CSV inputs
Guidelines
- Assignment required before starting
- PR must include:
Closes #72
- Timeframe: 96 hours
Description
Implement a CSV import tool for bulk importing pet medical records, allowing vet clinics to migrate existing records into PetChain with validation, error reporting, and blockchain anchoring.
Requirements and context
Suggested execution
feature/csv-batch-importbackend/services/csvImportService.ts,src/screens/ImportScreen.tsx,backend/src/routes/import.tscsv-parsefor CSV parsingGuidelines
Closes #72