fix(ui): use clinician-friendly assessment copy
Deploy Ladill Care / deploy (push) Successful in 1m22s

Replace internal design jargon (Layer 1, narrative source of truth,
pathway instruments) with plain clinical language on consultations,
patient charts, settings, and nav.
This commit is contained in:
isaacclad
2026-07-16 23:17:08 +00:00
parent f6780b9958
commit 6c9051d2c6
13 changed files with 48 additions and 51 deletions
@@ -9,7 +9,7 @@
<section class="mt-6 rounded-2xl border border-slate-200 bg-white p-6"> <section class="mt-6 rounded-2xl border border-slate-200 bg-white p-6">
@if ($templates->isEmpty()) @if ($templates->isEmpty())
<p class="text-sm text-slate-500">No capturable assessment templates are available for your role. Ensure content packs are seeded and the assessments engine is enabled.</p> <p class="text-sm text-slate-500">No forms are available for your role right now. Ask an administrator to confirm clinical forms are enabled in Settings.</p>
@else @else
<form method="POST" action="{{ route('care.assessments.store', $patient) }}" class="space-y-4"> <form method="POST" action="{{ route('care.assessments.store', $patient) }}" class="space-y-4">
@csrf @csrf
@@ -89,26 +89,25 @@
@endif @endif
@if ($canViewAssessments ?? false) @if ($canViewAssessments ?? false)
{{-- Layer 1: universal intake (structured overlay; does not replace free-text symptoms) --}}
@if ($universalTemplate) @if ($universalTemplate)
<section class="mt-6 rounded-2xl border border-sky-100 bg-sky-50/40 p-6"> <section class="mt-6 rounded-2xl border border-sky-100 bg-sky-50/40 p-6">
<div class="flex flex-wrap items-start justify-between gap-3"> <div class="flex flex-wrap items-start justify-between gap-3">
<div> <div>
<h2 class="text-sm font-semibold uppercase tracking-wide text-sky-800">Universal intake</h2> <h2 class="text-sm font-semibold uppercase tracking-wide text-sky-800">Patient history form</h2>
<p class="mt-1 text-xs text-slate-500"> <p class="mt-1 text-xs text-slate-500">
Structured Layer 1 assessment (presenting complaint, social history, function). Optional checklist for chief complaint, social history, and day-to-day function.
Free-text <span class="font-medium">Symptoms</span> and <span class="font-medium">Clinical notes</span> below remain the narrative source of truth they are not auto-copied either way. You can still write freely in Symptoms and Clinical notes below the two are separate and do not overwrite each other.
</p> </p>
</div> </div>
@if ($universalAssessment) @if ($universalAssessment)
<a href="{{ route('care.assessments.show', $universalAssessment) }}" class="rounded-lg bg-sky-600 px-3 py-2 text-sm font-medium text-white hover:bg-sky-700"> <a href="{{ route('care.assessments.show', $universalAssessment) }}" class="rounded-lg bg-sky-600 px-3 py-2 text-sm font-medium text-white hover:bg-sky-700">
{{ $universalAssessment->isDraft() ? 'Continue intake' : 'View intake' }} {{ $universalAssessment->isDraft() ? 'Continue form' : 'View form' }}
</a> </a>
@elseif (($canCaptureUniversal ?? false) && ! $isCompleted) @elseif (($canCaptureUniversal ?? false) && ! $isCompleted)
<form method="POST" action="{{ route('care.consultations.assessments.store', $consultation) }}"> <form method="POST" action="{{ route('care.consultations.assessments.store', $consultation) }}">
@csrf @csrf
<input type="hidden" name="template_code" value="universal_intake"> <input type="hidden" name="template_code" value="universal_intake">
<button type="submit" class="rounded-lg bg-sky-600 px-3 py-2 text-sm font-medium text-white hover:bg-sky-700">Start universal intake</button> <button type="submit" class="rounded-lg bg-sky-600 px-3 py-2 text-sm font-medium text-white hover:bg-sky-700">Start patient history form</button>
</form> </form>
@endif @endif
</div> </div>
@@ -118,7 +117,7 @@
Status: Status:
<span class="font-medium">{{ $assessmentStatuses[$universalAssessment->status] ?? $universalAssessment->status }}</span> <span class="font-medium">{{ $assessmentStatuses[$universalAssessment->status] ?? $universalAssessment->status }}</span>
@if ($universalAssessment->consultation_id !== $consultation->id) @if ($universalAssessment->consultation_id !== $consultation->id)
<span class="text-slate-400">(from another visit open to review)</span> <span class="text-slate-400">(from an earlier visit open to review)</span>
@endif @endif
</p> </p>
@php @php
@@ -142,16 +141,15 @@
</dl> </dl>
@endif @endif
@elseif (! ($canCaptureUniversal ?? false)) @elseif (! ($canCaptureUniversal ?? false))
<p class="mt-3 text-sm text-slate-400">No universal intake for this patient yet.</p> <p class="mt-3 text-sm text-slate-400">No patient history form recorded yet.</p>
@endif @endif
</section> </section>
@endif @endif
{{-- Layer 2: pathways (suggest from persisted diagnoses; clinician confirms) --}}
<section class="mt-6 rounded-2xl border border-slate-200 bg-white p-6"> <section class="mt-6 rounded-2xl border border-slate-200 bg-white p-6">
<div class="flex flex-wrap items-center justify-between gap-2"> <div class="flex flex-wrap items-center justify-between gap-2">
<h2 class="text-sm font-semibold uppercase tracking-wide text-slate-500">Clinical pathways</h2> <h2 class="text-sm font-semibold uppercase tracking-wide text-slate-500">Condition pathways</h2>
<a href="{{ route('care.pathways.index', $consultation->patient) }}" class="text-sm text-sky-600 hover:text-sky-700">Manage pathways</a> <a href="{{ route('care.pathways.index', $consultation->patient) }}" class="text-sm text-sky-600 hover:text-sky-700">View all</a>
</div> </div>
@if (($activePathways ?? collect())->isNotEmpty()) @if (($activePathways ?? collect())->isNotEmpty())
@@ -167,7 +165,7 @@
@if (($pathwayInstruments ?? collect())->isNotEmpty()) @if (($pathwayInstruments ?? collect())->isNotEmpty())
<div class="mt-4 overflow-hidden rounded-xl border border-slate-100"> <div class="mt-4 overflow-hidden rounded-xl border border-slate-100">
<div class="bg-slate-50 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-slate-500"> <div class="bg-slate-50 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-slate-500">
Pathway instruments Recommended forms
</div> </div>
<ul class="divide-y divide-slate-100 text-sm"> <ul class="divide-y divide-slate-100 text-sm">
@foreach ($pathwayInstruments as $instrument) @foreach ($pathwayInstruments as $instrument)
@@ -176,8 +174,7 @@
<span class="font-medium text-slate-900">{{ $instrument['template_name'] }}</span> <span class="font-medium text-slate-900">{{ $instrument['template_name'] }}</span>
<span class="text-xs text-slate-400"> <span class="text-xs text-slate-400">
· {{ $instrument['pathway_name'] }} · {{ $instrument['pathway_name'] }}
· {{ $instrument['template_code'] }} @if ($instrument['required']) · recommended for this condition @endif
@if ($instrument['required']) · required @endif
</span> </span>
@if ($instrument['assessment']?->score) @if ($instrument['assessment']?->score)
<span class="ml-1 text-xs font-medium text-emerald-700"> <span class="ml-1 text-xs font-medium text-emerald-700">
@@ -187,7 +184,7 @@
</div> </div>
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
@if ($instrument['pack_missing']) @if ($instrument['pack_missing'])
<span class="text-xs text-amber-600">Content pack not seeded</span> <span class="text-xs text-amber-600">Form not available yet</span>
@elseif ($instrument['assessment']) @elseif ($instrument['assessment'])
<span class="text-xs text-slate-500">{{ $assessmentStatuses[$instrument['assessment']->status] ?? $instrument['assessment']->status }}</span> <span class="text-xs text-slate-500">{{ $assessmentStatuses[$instrument['assessment']->status] ?? $instrument['assessment']->status }}</span>
<a href="{{ route('care.assessments.show', $instrument['assessment']) }}" class="text-sky-600 hover:text-sky-700"> <a href="{{ route('care.assessments.show', $instrument['assessment']) }}" class="text-sky-600 hover:text-sky-700">
@@ -234,9 +231,9 @@
@else @else
<p class="mt-3 text-sm text-slate-400"> <p class="mt-3 text-sm text-slate-400">
@if ($consultation->diagnoses->isEmpty()) @if ($consultation->diagnoses->isEmpty())
Save diagnoses to see pathway suggestions. Save diagnoses to see suggested condition pathways.
@else @else
No pathway matches for saved diagnoses. No matching condition pathways for the saved diagnoses.
@endif @endif
</p> </p>
@endif @endif
@@ -244,8 +241,8 @@
<section class="mt-6 rounded-2xl border border-slate-200 bg-white p-6"> <section class="mt-6 rounded-2xl border border-slate-200 bg-white p-6">
<div class="flex flex-wrap items-center justify-between gap-2"> <div class="flex flex-wrap items-center justify-between gap-2">
<h2 class="text-sm font-semibold uppercase tracking-wide text-slate-500">Clinical assessments</h2> <h2 class="text-sm font-semibold uppercase tracking-wide text-slate-500">Clinical forms this visit</h2>
<a href="{{ route('care.assessments.index', $consultation->patient) }}" class="text-sm text-sky-600 hover:text-sky-700">Patient assessments</a> <a href="{{ route('care.assessments.index', $consultation->patient) }}" class="text-sm text-sky-600 hover:text-sky-700">All patient forms</a>
</div> </div>
@if (($consultationAssessments ?? collect())->isNotEmpty()) @if (($consultationAssessments ?? collect())->isNotEmpty())
@@ -260,18 +257,18 @@
@endforeach @endforeach
</ul> </ul>
@else @else
<p class="mt-4 text-sm text-slate-400">No assessments linked to this consultation yet.</p> <p class="mt-4 text-sm text-slate-400">No extra forms started for this visit yet.</p>
@endif @endif
@if (($canCaptureAssessment ?? false) && ! $isCompleted && ($startableTemplates ?? collect())->isNotEmpty()) @if (($canCaptureAssessment ?? false) && ! $isCompleted && ($startableTemplates ?? collect())->isNotEmpty())
<form method="POST" action="{{ route('care.consultations.assessments.store', $consultation) }}" class="mt-4 flex flex-wrap items-end gap-3 border-t border-slate-100 pt-4"> <form method="POST" action="{{ route('care.consultations.assessments.store', $consultation) }}" class="mt-4 flex flex-wrap items-end gap-3 border-t border-slate-100 pt-4">
@csrf @csrf
<div class="min-w-[12rem] flex-1"> <div class="min-w-[12rem] flex-1">
<label class="block text-xs text-slate-500">Start other assessment</label> <label class="block text-xs text-slate-500">Add another form</label>
<select name="template_code" required class="mt-1 w-full rounded-lg border-slate-300 text-sm"> <select name="template_code" required class="mt-1 w-full rounded-lg border-slate-300 text-sm">
<option value="">Select template</option> <option value="">Select a form</option>
@foreach ($startableTemplates as $template) @foreach ($startableTemplates as $template)
<option value="{{ $template->code }}">{{ $template->name }} ({{ $template->code }})</option> <option value="{{ $template->code }}">{{ $template->name }}</option>
@endforeach @endforeach
</select> </select>
</div> </div>
@@ -328,10 +325,10 @@
@if ($canManage) @if ($canManage)
<section class="rounded-2xl border border-slate-200 bg-white p-6"> <section class="rounded-2xl border border-slate-200 bg-white p-6">
<h2 class="text-sm font-semibold uppercase tracking-wide text-slate-500">Clinical notes (narrative)</h2> <h2 class="text-sm font-semibold uppercase tracking-wide text-slate-500">Clinical notes</h2>
@if ($canViewAssessments ?? false) @if ($canViewAssessments ?? false)
<p class="mt-1 text-xs text-slate-400"> <p class="mt-1 text-xs text-slate-400">
Narrative source of truth for this encounter. Structured universal intake is a separate overlay above and is not auto-synced with these fields. Free-text notes for this visit. The patient history form above is optional and will not replace what you write here.
</p> </p>
@endif @endif
<div class="mt-4 space-y-4"> <div class="mt-4 space-y-4">
@@ -390,7 +387,7 @@
<button type="submit" class="btn-primary">Save</button> <button type="submit" class="btn-primary">Save</button>
@if ($canManage && ($canViewAssessments ?? false)) @if ($canManage && ($canViewAssessments ?? false))
<button type="submit" name="suggest_pathways" value="1" class="rounded-lg border border-sky-200 bg-sky-50 px-4 py-2 text-sm font-medium text-sky-800 hover:bg-sky-100"> <button type="submit" name="suggest_pathways" value="1" class="rounded-lg border border-sky-200 bg-sky-50 px-4 py-2 text-sm font-medium text-sky-800 hover:bg-sky-100">
Save diagnoses &amp; suggest pathways Save diagnoses &amp; show condition suggestions
</button> </button>
@endif @endif
<a href="{{ route('care.queue.index') }}" class="rounded-lg border border-slate-200 px-4 py-2 text-sm text-slate-600">Back to queue</a> <a href="{{ route('care.queue.index') }}" class="rounded-lg border border-slate-200 px-4 py-2 text-sm text-slate-600">Back to queue</a>
@@ -414,7 +411,7 @@
@if ($consultation->symptoms || $consultation->clinical_notes) @if ($consultation->symptoms || $consultation->clinical_notes)
<section class="rounded-2xl border border-slate-200 bg-white p-6"> <section class="rounded-2xl border border-slate-200 bg-white p-6">
<h2 class="text-sm font-semibold uppercase tracking-wide text-slate-500">Clinical notes (narrative)</h2> <h2 class="text-sm font-semibold uppercase tracking-wide text-slate-500">Clinical notes</h2>
@if ($consultation->symptoms) @if ($consultation->symptoms)
<p class="mt-4 text-sm"><span class="font-medium text-slate-700">Symptoms:</span> {{ $consultation->symptoms }}</p> <p class="mt-4 text-sm"><span class="font-medium text-slate-700">Symptoms:</span> {{ $consultation->symptoms }}</p>
@endif @endif
@@ -427,7 +424,7 @@
@if (($canViewAssessments ?? false) && ($universalAssessment ?? null)?->isCompleted()) @if (($canViewAssessments ?? false) && ($universalAssessment ?? null)?->isCompleted())
<section class="rounded-2xl border border-sky-100 bg-white p-6"> <section class="rounded-2xl border border-sky-100 bg-white p-6">
<div class="flex items-center justify-between gap-2"> <div class="flex items-center justify-between gap-2">
<h2 class="text-sm font-semibold uppercase tracking-wide text-slate-500">Universal intake (structured)</h2> <h2 class="text-sm font-semibold uppercase tracking-wide text-slate-500">Patient history form</h2>
<a href="{{ route('care.assessments.show', $universalAssessment) }}" class="text-sm text-sky-600 hover:text-sky-700">Open</a> <a href="{{ route('care.assessments.show', $universalAssessment) }}" class="text-sm text-sky-600 hover:text-sky-700">Open</a>
</div> </div>
<dl class="mt-4 space-y-2 text-sm"> <dl class="mt-4 space-y-2 text-sm">
@@ -1,7 +1,7 @@
<x-app-layout :title="'Outcomes · '.$patient->fullName()"> <x-app-layout :title="'Outcomes · '.$patient->fullName()">
<div class="flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between"> <div class="flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between">
<div> <div>
<p class="text-xs font-medium uppercase tracking-wide text-slate-500">Longitudinal outcomes</p> <p class="text-xs font-medium uppercase tracking-wide text-slate-500">Follow-up scores</p>
<h1 class="text-2xl font-semibold text-slate-900">{{ $patient->fullName() }}</h1> <h1 class="text-2xl font-semibold text-slate-900">{{ $patient->fullName() }}</h1>
<p class="mt-1 text-sm text-slate-500"> <p class="mt-1 text-sm text-slate-500">
<a href="{{ route('care.patients.show', $patient) }}" class="text-sky-600 hover:text-sky-700">{{ $patient->patient_number }}</a> <a href="{{ route('care.patients.show', $patient) }}" class="text-sky-600 hover:text-sky-700">{{ $patient->patient_number }}</a>
@@ -1,7 +1,7 @@
<x-app-layout :title="'Pathways · '.$patient->fullName()"> <x-app-layout :title="'Pathways · '.$patient->fullName()">
<div class="flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between"> <div class="flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between">
<div> <div>
<p class="text-xs font-medium uppercase tracking-wide text-slate-500">Clinical pathways</p> <p class="text-xs font-medium uppercase tracking-wide text-slate-500">Condition pathways</p>
<h1 class="text-2xl font-semibold text-slate-900">{{ $patient->fullName() }}</h1> <h1 class="text-2xl font-semibold text-slate-900">{{ $patient->fullName() }}</h1>
<p class="mt-1 text-sm text-slate-500"> <p class="mt-1 text-sm text-slate-500">
<a href="{{ route('care.patients.show', $patient) }}" class="text-sky-600 hover:text-sky-700">{{ $patient->patient_number }}</a> <a href="{{ route('care.patients.show', $patient) }}" class="text-sky-600 hover:text-sky-700">{{ $patient->patient_number }}</a>
@@ -42,7 +42,7 @@
@if ($canManage && $catalog->isNotEmpty()) @if ($canManage && $catalog->isNotEmpty())
<section class="mt-6 rounded-2xl border border-slate-200 bg-white p-6"> <section class="mt-6 rounded-2xl border border-slate-200 bg-white p-6">
<h2 class="text-sm font-semibold uppercase tracking-wide text-slate-500">Activate pathway</h2> <h2 class="text-sm font-semibold uppercase tracking-wide text-slate-500">Add a condition pathway</h2>
<form method="POST" action="{{ route('care.pathways.store', $patient) }}" class="mt-4 flex flex-wrap items-end gap-3"> <form method="POST" action="{{ route('care.pathways.store', $patient) }}" class="mt-4 flex flex-wrap items-end gap-3">
@csrf @csrf
<div class="min-w-[14rem] flex-1"> <div class="min-w-[14rem] flex-1">
@@ -25,11 +25,11 @@
@if (request('focus') === 'assessments') @if (request('focus') === 'assessments')
<div class="rounded-2xl border border-sky-100 bg-sky-50 px-4 py-3 text-sm text-sky-900"> <div class="rounded-2xl border border-sky-100 bg-sky-50 px-4 py-3 text-sm text-sky-900">
<p class="font-medium">Clinical assessments</p> <p class="font-medium">Clinical forms</p>
<p class="mt-1 text-sky-800/90"> <p class="mt-1 text-sky-800/90">
Open a patient chart for assessments, pathways, and outcomes or start a visit from Open a patient to review history forms and condition-specific scores, or start a visit from
<a href="{{ route('care.queue.index') }}" class="font-medium underline">Queue</a> <a href="{{ route('care.queue.index') }}" class="font-medium underline">Queue</a>
and use <strong>Universal intake</strong> / <strong>Clinical pathways</strong> on the consultation. and use the patient history form and condition pathways on the consultation.
</p> </p>
</div> </div>
@endif @endif
+3 -3
View File
@@ -148,7 +148,7 @@
$ccAnswer = $latestUniversalIntake->answers->first(fn ($a) => $a->question?->code === 'chief_complaint'); $ccAnswer = $latestUniversalIntake->answers->first(fn ($a) => $a->question?->code === 'chief_complaint');
@endphp @endphp
<div class="mt-2 rounded-lg border border-sky-100 bg-sky-50/50 px-3 py-2"> <div class="mt-2 rounded-lg border border-sky-100 bg-sky-50/50 px-3 py-2">
<p class="text-xs font-medium uppercase tracking-wide text-sky-800">Universal intake</p> <p class="text-xs font-medium uppercase tracking-wide text-sky-800">Patient history form</p>
<p class="mt-1"> <p class="mt-1">
<a href="{{ route('care.assessments.show', $latestUniversalIntake) }}" class="text-sky-600 hover:text-sky-700"> <a href="{{ route('care.assessments.show', $latestUniversalIntake) }}" class="text-sky-600 hover:text-sky-700">
{{ $assessmentStatuses[$latestUniversalIntake->status] ?? $latestUniversalIntake->status }} {{ $assessmentStatuses[$latestUniversalIntake->status] ?? $latestUniversalIntake->status }}
@@ -176,8 +176,8 @@
@if ($canCaptureAssessment ?? false) @if ($canCaptureAssessment ?? false)
<a href="{{ route('care.assessments.create', $patient) }}" class="text-sm font-medium text-sky-600 hover:text-sky-700">Start assessment</a> <a href="{{ route('care.assessments.create', $patient) }}" class="text-sm font-medium text-sky-600 hover:text-sky-700">Start assessment</a>
@endif @endif
<a href="{{ route('care.pathways.index', $patient) }}" class="text-sm font-medium text-sky-600 hover:text-sky-700">Clinical pathways</a> <a href="{{ route('care.pathways.index', $patient) }}" class="text-sm font-medium text-sky-600 hover:text-sky-700">Condition pathways</a>
<a href="{{ route('care.outcomes.index', $patient) }}" class="text-sm font-medium text-sky-600 hover:text-sky-700">Outcomes &amp; trends</a> <a href="{{ route('care.outcomes.index', $patient) }}" class="text-sm font-medium text-sky-600 hover:text-sky-700">Follow-up scores</a>
</p> </p>
@endif @endif
</div> </div>
+1 -1
View File
@@ -53,7 +53,7 @@
</dl> </dl>
</div> </div>
<div class="rounded-2xl border border-slate-200 bg-white p-6"> <div class="rounded-2xl border border-slate-200 bg-white p-6">
<h2 class="text-sm font-semibold uppercase tracking-wide text-slate-500">By template</h2> <h2 class="text-sm font-semibold uppercase tracking-wide text-slate-500">By clinical form</h2>
<table class="mt-4 min-w-full text-sm"> <table class="mt-4 min-w-full text-sm">
<thead> <thead>
<tr> <tr>
+4 -4
View File
@@ -89,16 +89,16 @@
@endif @endif
@if ($canManage) @if ($canManage)
<x-settings.card title="Clinical assessments" description="Layered intake, disease pathways (stroke, diabetes, COPD, …), scoring instruments, and outcome tracking on consultations and patient charts."> <x-settings.card title="Clinical forms" description="Patient history checklists, condition-specific forms (stroke, diabetes, COPD, and more), and follow-up scores on visits and patient charts.">
<label class="flex items-start gap-3 text-sm"> <label class="flex items-start gap-3 text-sm">
<input type="checkbox" name="assessments_engine" value="1" <input type="checkbox" name="assessments_engine" value="1"
@checked(old('assessments_engine', $assessmentsEngineEnabled ?? true)) @checked(old('assessments_engine', $assessmentsEngineEnabled ?? true))
class="mt-0.5 rounded border-slate-300"> class="mt-0.5 rounded border-slate-300">
<span> <span>
<span class="font-medium text-slate-800">Enable clinical assessments engine</span> <span class="font-medium text-slate-800">Show clinical forms on consultations</span>
<span class="mt-0.5 block text-xs text-slate-500"> <span class="mt-0.5 block text-xs text-slate-500">
Shows universal intake, pathway suggestions, and disease forms on consultations. Adds a patient history form and condition pathways on each visit.
Open a patient consultation (Queue) or patient chart Assessments / Pathways / Outcomes. Find them on Queue consultations, or open a patient chart for history, pathways, and follow-up scores.
</span> </span>
</span> </span>
</label> </label>
+1 -1
View File
@@ -38,7 +38,7 @@
); );
if ($assessmentsEngineOn && $permissions->can($member, 'assessments.view') && $permissions->can($member, 'patients.view')) { if ($assessmentsEngineOn && $permissions->can($member, 'assessments.view') && $permissions->can($member, 'patients.view')) {
$nav[] = [ $nav[] = [
'name' => 'Assessments', 'name' => 'Clinical forms',
'route' => route('care.patients.index', ['focus' => 'assessments']), 'route' => route('care.patients.index', ['focus' => 'assessments']),
'active' => request()->routeIs('care.assessments.*') 'active' => request()->routeIs('care.assessments.*')
|| request()->routeIs('care.pathways.*') || request()->routeIs('care.pathways.*')
+1 -1
View File
@@ -93,7 +93,7 @@ class CareAssessmentExtrasTest extends TestCase
->get(route('care.reports.show', ['type' => 'assessments'])) ->get(route('care.reports.show', ['type' => 'assessments']))
->assertOk() ->assertOk()
->assertSee('Assessment analytics') ->assertSee('Assessment analytics')
->assertSee('By template') ->assertSee('By clinical form')
->assertSee('mrs'); ->assertSee('mrs');
} }
+1 -1
View File
@@ -248,7 +248,7 @@ class CarePathwayTest extends TestCase
$this->actingAs($this->user) $this->actingAs($this->user)
->get(route('care.consultations.show', $consultation)) ->get(route('care.consultations.show', $consultation))
->assertOk() ->assertOk()
->assertSee('Clinical pathways') ->assertSee('Condition pathways')
->assertSee('Stroke') ->assertSee('Stroke')
->assertSee('keyword:'); ->assertSee('keyword:');
} }
+1 -1
View File
@@ -231,7 +231,7 @@ class CareStrokeMvpTest extends TestCase
$this->actingAs($this->user) $this->actingAs($this->user)
->get(route('care.consultations.show', $consultation)) ->get(route('care.consultations.show', $consultation))
->assertOk() ->assertOk()
->assertSee('Pathway instruments') ->assertSee('Recommended forms')
->assertSee('NIH Stroke Scale') ->assertSee('NIH Stroke Scale')
->assertSee('Modified Rankin Scale') ->assertSee('Modified Rankin Scale')
->assertSee('Continue'); ->assertSee('Continue');
+4 -4
View File
@@ -143,9 +143,9 @@ class CareUniversalIntakeTest extends TestCase
$this->actingAs($this->user) $this->actingAs($this->user)
->get(route('care.consultations.show', $consultation)) ->get(route('care.consultations.show', $consultation))
->assertOk() ->assertOk()
->assertSee('Universal intake') ->assertSee('Patient history form')
->assertSee('narrative source of truth', false) ->assertSee('do not overwrite each other', false)
->assertSee('Start universal intake'); ->assertSee('Start patient history form');
$this->actingAs($this->user) $this->actingAs($this->user)
->post(route('care.consultations.assessments.store', $consultation), [ ->post(route('care.consultations.assessments.store', $consultation), [
@@ -182,7 +182,7 @@ class CareUniversalIntakeTest extends TestCase
$this->actingAs($this->user) $this->actingAs($this->user)
->get(route('care.patients.show', $this->patient)) ->get(route('care.patients.show', $this->patient))
->assertOk() ->assertOk()
->assertSee('Universal intake') ->assertSee('Patient history form')
->assertSee('Severe headache for 2 days'); ->assertSee('Severe headache for 2 days');
} }