@extends('hms.layout') @section('title','Data imports') @section('content')

Validated data imports

Import new patients, inventory catalogue items, billable services or historical patient entries from UTF-8 CSV files. Existing records are never overwritten. Historical patient entries require physician review and existing patient/facility identifiers. Balances, stock quantities and user accounts are outside this import scope.

1. Download a template

@foreach($types as $kind){{ ucfirst(str_replace('_',' ',$kind)) }} CSV @endforeach

Keep identifiers as text to preserve leading zeroes. Dates: YYYY-MM-DD. Prices: up to 2 decimal places; reorder levels: up to 3. Use template headers exactly. Maximum 500 records / 2 MB per upload.

2. Upload and validate

@csrf

Previewing does not create records or send messages. All errors must be resolved before committing. Preview contents expire after 24 hours.

Import batches

@forelse($batches as $batch){{ ucfirst(str_replace('_',' ',$batch->kind)) }} · {{ $batch->row_count }} rows · {{ $batch->status }} · {{ $batch->created_at }} @empty

No imports yet.

@endforelse {{ $batches->links() }}
@endsection