@extends('hms.layout') @section('title','Historical patient records') @section('content')

Historical patient records

Search reviewed text from legacy records and scanned documents. Historical entries do not create current prescriptions, test orders, charges or stock movements.

@if(request('patient')) @endif
@if($canUpload)
Upload a scanned or digital record

Scan paper using a document scanner or phone, then upload the file. PDF (up to 10 pages), JPEG, PNG, TIFF, Word DOCX and UTF-8 TXT; up to 10 MB. Confirm the patient number before uploading. A physician reviews extracted text against the original before saving searchable entries.

@csrf
@endif @forelse($entries as $entry)
{{ $entry->first_name }} {{ $entry->last_name }} · {{ $entry->patient_number }} · {{ str_replace('_',' ',$entry->category) }} · {{ $entry->occurred_on??'Date unknown' }}

{{ $entry->title }}

{{ $entry->content }}

@if($entry->document_id)Original document & review history @elseLegacy reference: {{ $entry->external_reference }} @endif
@empty

No reviewed historical entries match this search.

@endforelse {{ $entries->links() }}
Recent source documents / extraction queue @forelse($documents as $doc){{ $doc->name }} · {{ str_replace('_',' ',$doc->status) }} · {{ $doc->created_at }} @empty

No source documents in this scope.

@endforelse
@endsection