@php $statuses = \App\Modules\Patients\Enums\ClinicalRecordStatus::class; @endphp {{-- Problem list --------------------------------------------------------- --}} @can('manageClinical', $patient) @endcan @can('manageClinical', $patient)
{{-- A problem list is dictated in one sitting; the panel takes as many lines as were filled in and writes them together. --}}
@csrf
{{-- No ICD-10 field here (removed 2026-08-10). The column, the DTO and the validation rule all remain, so nothing already coded was lost and putting the input back is a one-line change. Consultation diagnoses still carry a code — that is where coding for claims and reporting is done. --}} {{-- Diagnosed how long ago, rather than on what date. Nobody arrives knowing the date they were told they had diabetes; they say "about three months ago". The column is still a date — this converts before it is submitted, so nothing downstream learns a new shape — and the note under the control prints the date it worked out, because a clinician is entitled to see what is being written to the record rather than trust arithmetic they cannot check. The date field stays in the markup and is what a browser running no script would see and use. --}}
@endcan @forelse ($conditions as $condition)
{{ $condition->name }} @if ($condition->status !== $statuses::Active) {{ $condition->status->label() }} @endif
@if ($condition->diagnosed_on) {{ __('patients::messages.clinical.diagnosed_on') }}: {{ $condition->diagnosed_on->format('Y-m-d') }} @endif
@include('patients::partials.clinical-entry-actions', [ 'type' => 'condition', 'entry' => $condition, 'resolveLabel' => __('patients::messages.clinical.mark_resolved'), ])
@empty

{{ __('patients::messages.clinical.no_conditions') }}

{{ __('patients::messages.clinical.no_conditions_text') }}

@endforelse